/* ============================================
   Blackforest Data – Website Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0B1120;
  --bg-secondary: #111827;
  --bg-card: #1a2332;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-orange: #f59e0b;
  --accent-orange-light: #fbbf24;
  --accent-orange-dark: #d97706;
  --accent-purple: #8b5cf6;
  --accent-teal: #2dd4bf;
  --accent-red: #ef4444;
  --border-color: #1e293b;
  --glow-orange: rgba(245, 158, 11, 0.15);
  --glow-orange-strong: rgba(245, 158, 11, 0.3);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-orange-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-orange-light), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-color);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* --- Hero Section --- */
.hero {
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--glow-orange) 0%, transparent 70%);
  pointer-events: none;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 2rem;
  box-shadow: 0 0 60px var(--glow-orange-strong), 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.badge-link img {
  height: 52px;
  width: auto;
  transition: transform var(--transition), opacity var(--transition);
}

.badge-link:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-orange);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Screenshots Section --- */
.screenshots {
  padding: 3rem 0 5rem;
  overflow: hidden;
}

.screenshots h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.screenshot-carousel {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 1rem 2rem 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshot-carousel::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: center;
  transition: transform var(--transition);
}

.screenshot-item:hover {
  transform: translateY(-8px);
}

.screenshot-item img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

.screenshot-label {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Features Section --- */
.features {
  padding: 5rem 0;
}

.features h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.features .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Highlight / Evening Mode Section --- */
.highlight {
  padding: 5rem 0;
  position: relative;
}

.highlight-inner {
  background: linear-gradient(135deg, var(--bg-card), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 24px;
  padding: 4rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.highlight-content {
  flex: 1;
}

.highlight-content .tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.highlight-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.highlight-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.highlight-image {
  flex: 0 0 240px;
}

.highlight-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- Privacy Highlights --- */
.privacy-highlights {
  padding: 5rem 0;
  text-align: center;
}

.privacy-highlights h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.privacy-highlights .section-subtitle {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 3rem;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.privacy-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.privacy-item .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.privacy-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.privacy-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta {
  padding: 5rem 0;
  text-align: center;
}

.cta-inner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 24px;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--glow-orange) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- About / Studio Section --- */
.about {
  padding: 5rem 0;
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-logo {
  flex: 0 0 80px;
}

.about-logo img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.about-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* --- Legal Pages (Privacy, Imprint, Support) --- */
.legal-page {
  padding: 8rem 0 5rem;
}

.legal-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

.legal-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-page ul, .legal-page ol {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.legal-page li {
  margin-bottom: 0.35rem;
}

.legal-page a {
  color: var(--accent-orange);
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.legal-page .back-link:hover {
  color: var(--accent-orange);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: 7rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat .number {
    font-size: 1.4rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .highlight-inner {
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }

  .highlight-image {
    flex: 0 0 auto;
    max-width: 200px;
    margin: 0 auto;
  }

  .screenshot-item {
    width: 180px;
  }

  .about-inner {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-inner {
    padding: 3rem 1.5rem;
  }

  .legal-page {
    padding: 6rem 0 3rem;
  }

  .legal-page h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
  }

  .screenshot-item {
    width: 160px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
