/* ============================================================
   ChristRadio.de – Stylesheet
   Aesthetic: Sacred Editorial – Midnight Blue & Warm Gold
   ============================================================ */

/* DSGVO-konforme Schriftarten via Bunny Fonts (EU-Server, keine Datenweitergabe an Google) */
@import url('https://fonts.bunny.net/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300&family=Cormorant+SC:wght@400;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --midnight:   #0c1825;
  --deep:       #112233;
  --panel:      #162840;
  --gold:       #c8a84b;
  --gold-light: #dfc07a;
  --gold-dim:   rgba(200, 168, 75, 0.18);
  --cream:      #f4ede0;
  --ivory:      #faf6ef;
  --text:       #d8cfc3;
  --muted:      #7a8fa8;
  --border:     rgba(200, 168, 75, 0.22);
  --shadow:     0 12px 48px rgba(0,0,0,0.45);
  --r:          6px;
  --nav-h:      72px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--midnight);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Noise / Grain Overlay ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1rem; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

.small-caps {
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Nav ───────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: rgba(12, 24, 37, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.3s;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
}
.nav-logo .cross-icon { font-size: 1.3rem; color: var(--gold); }
.nav-logo span {
  font-family: 'Cormorant SC', serif;
  font-size: 1.25rem;
  color: var(--cream);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  font-family: 'Cormorant SC', serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold) !important;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: var(--gold-dim); border-color: var(--gold); }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 26px; height: 2px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(12, 24, 37, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  z-index: 99;
  flex-direction: column; gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant SC', serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--cream);
}

/* ── Main wrapper ──────────────────────────────────────────── */
main { padding-top: var(--nav-h); }

/* ── Section spacing ───────────────────────────────────────── */
section { padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 8vw, 6rem); }

.section-label {
  display: inline-block;
  margin-bottom: 1.2rem;
}

/* ── Divider ───────────────────────────────────────────────── */
.gold-line {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.2rem 0 2rem;
}
.gold-line.center { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 0 clamp(1.5rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 80% 50%, rgba(30, 60, 100, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(200, 168, 75, 0.07) 0%, transparent 60%),
    var(--midnight);
}

/* Decorative cross */
.hero-cross {
  position: absolute; right: 8%; top: 50%;
  transform: translateY(-50%);
  font-size: clamp(10rem, 22vw, 20rem);
  color: rgba(200, 168, 75, 0.05);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-content { position: relative; max-width: 680px; }
.hero-tag { margin-bottom: 1.5rem; }
.hero h1 { color: var(--ivory); margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--midnight) !important;
  font-family: 'Cormorant SC', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  color: var(--cream) !important;
  font-family: 'Cormorant SC', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--gold); background: var(--gold-dim); }

/* scroll indicator */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em;
  font-family: 'Cormorant SC', serif;
  animation: bobble 2.4s ease-in-out infinite;
}
.scroll-hint svg { width: 20px; height: 20px; }
@keyframes bobble {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── About ─────────────────────────────────────────────────── */
.about {
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.about-text h2 { color: var(--ivory); margin-bottom: 0.5rem; }
.about-text p { color: var(--text); font-size: 1.05rem; }

.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.stat-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--panel);
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.82rem; color: var(--muted); font-family: 'Cormorant SC', serif; letter-spacing: 0.1em; }

/* ── Services / Features ───────────────────────────────────── */
.services { background: var(--midnight); }
.services-header { text-align: center; margin-bottom: 3.5rem; }
.services-header h2 { color: var(--ivory); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}

.feature-card {
  padding: 2rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--panel);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 1.8rem; margin-bottom: 1rem; display: block;
}
.feature-card h3 { color: var(--cream); margin-bottom: 0.5rem; }
.feature-card p  { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ── How it works ──────────────────────────────────────────── */
.how { background: var(--deep); }
.how-header { text-align: center; margin-bottom: 3rem; }
.how-header h2 { color: var(--ivory); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px; margin: 0 auto;
  position: relative;
}
.step {
  text-align: center; padding: 2rem 1rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin: 0 auto 1rem;
}
.step h3 { color: var(--cream); margin-bottom: 0.4rem; font-size: 1.1rem; }
.step p  { font-size: 0.95rem; color: var(--muted); }

/* ── Nav Live-Player Link ──────────────────────────────────── */
.nav-player-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: 'Cormorant SC', serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--gold) !important;
}
.nav-player-link:hover { color: var(--gold-light) !important; }

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e05050;
  box-shadow: 0 0 0 0 rgba(224, 80, 80, 0.6);
  animation: livepulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0   rgba(224, 80, 80, 0.6); }
  60%  { box-shadow: 0 0 0 7px rgba(224, 80, 80, 0); }
  100% { box-shadow: 0 0 0 0   rgba(224, 80, 80, 0); }
}

.mobile-player-link {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Cormorant SC', serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--gold) !important;
}

/* ── Live-Player Section ───────────────────────────────────── */
.player-section {
  background: var(--midnight);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.player-inner {
  max-width: 780px; margin: 0 auto;
  text-align: center;
}

.player-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(224, 80, 80, 0.4);
  border-radius: 2rem;
  background: rgba(224, 80, 80, 0.08);
  margin-bottom: 1.5rem;
}
.player-badge .small-caps { color: #e05050; }

.player-inner h2 { color: var(--ivory); margin-bottom: 0.3rem; }

.player-lead {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.player-card {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.2rem;
  padding: 1.4rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--panel);
  margin-bottom: 2.2rem;
  text-align: left;
  transition: border-color 0.3s;
}
.player-card:hover { border-color: var(--gold); }

.player-card-left {
  display: flex; align-items: center; gap: 1.2rem;
}

/* Animated audio bars */
.player-visualizer {
  display: flex; align-items: flex-end; gap: 3px;
  height: 28px;
  flex-shrink: 0;
}
.player-visualizer span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--gold);
  animation: bar-bounce 1.3s ease-in-out infinite;
}
.player-visualizer span:nth-child(1) { height: 40%; animation-delay: 0s; }
.player-visualizer span:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.player-visualizer span:nth-child(3) { height: 60%; animation-delay: 0.05s; }
.player-visualizer span:nth-child(4) { height: 100%; animation-delay: 0.2s; }
.player-visualizer span:nth-child(5) { height: 50%; animation-delay: 0.1s; }

@keyframes bar-bounce {
  0%, 100% { transform: scaleY(0.5); }
  50%       { transform: scaleY(1); }
}

.player-info { display: flex; flex-direction: column; gap: 0.2rem; }
.player-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--cream);
}
.player-sub {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Cormorant SC', serif;
  letter-spacing: 0.08em;
}

.btn-player {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  background: var(--gold);
  color: var(--midnight) !important;
  font-family: 'Cormorant SC', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.btn-player:hover { background: var(--gold-light); transform: translateY(-2px); }

.player-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}
.player-features li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--panel);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}
.pf-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }

@media (max-width: 600px) {
  .player-card { flex-direction: column; align-items: flex-start; }
  .btn-player { width: 100%; justify-content: center; }
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--panel) 0%, rgba(30, 55, 90, 0.8) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-banner h2 { color: var(--ivory); margin-bottom: 0.8rem; }
.cta-banner p  { color: var(--text); max-width: 500px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ── Contact section (index.html) ──────────────────────────── */
.contact-preview {
  background: var(--midnight);
  text-align: center;
}
.contact-preview h2 { color: var(--ivory); margin-bottom: 0.5rem; }
.contact-preview p  { max-width: 480px; margin: 0 auto 2rem; }

/* ── Contact page form ─────────────────────────────────────── */
.contact-page { background: var(--midnight); }
.contact-page-inner {
  max-width: 680px; margin: 0 auto;
}
.contact-page h1 { color: var(--ivory); }
.contact-page p.intro { font-size: 1.1rem; color: var(--text); margin-bottom: 2.5rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--cream);
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--panel); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--gold);
  border-radius: var(--r);
  background: var(--gold-dim);
}
.form-success .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.form-success h3 { color: var(--cream); margin-bottom: 0.5rem; }

/* ── Impressum / Datenschutz ───────────────────────────────── */
.legal-page { background: var(--midnight); }
.legal-page-inner {
  max-width: 780px; margin: 0 auto;
}
.legal-page h1 { color: var(--ivory); }
.legal-page h2 { color: var(--cream); font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.legal-page h3 { color: var(--cream); font-size: 1.05rem; margin: 1.5rem 0 0.3rem; }
.legal-page p, .legal-page li { color: var(--text); font-size: 1rem; }
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.3rem; }
.legal-page a { color: var(--gold); }

/* ── Deep-Link-spezifische Styles ──────────────────────── */

    /* Hero mini */
    .dl-hero {
      padding: clamp(5rem, 12vw, 9rem) clamp(1.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
      background:
        radial-gradient(ellipse 60% 80% at 80% 40%, rgba(30, 60, 100, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 5% 90%, rgba(200, 168, 75, 0.06) 0%, transparent 60%),
        var(--midnight);
      position: relative;
      overflow: hidden;
    }
    .dl-hero-cross {
      position: absolute; right: 6%; top: 50%;
      transform: translateY(-50%);
      font-size: clamp(8rem, 18vw, 16rem);
      color: rgba(200, 168, 75, 0.04);
      pointer-events: none; user-select: none; line-height: 1;
    }
    .dl-hero-inner { position: relative; max-width: 720px; }
    .dl-hero h1 { color: var(--ivory); }
    .dl-hero h1 em { font-style: italic; color: var(--gold); }
    .dl-hero .lead { font-size: 1.15rem; color: var(--text); max-width: 540px; margin-bottom: 0; }

    /* Badge "Für Kunden" */
    .customer-badge {
      display: inline-flex; align-items: center; gap: 0.5rem;
      padding: 0.3rem 0.9rem;
      border: 1px solid var(--border);
      border-radius: 2rem;
      background: var(--gold-dim);
      margin-bottom: 1.5rem;
      font-family: 'Cormorant SC', serif;
      font-size: 0.72rem;
      letter-spacing: 0.16em;
      color: var(--gold);
    }
    .customer-badge-dot {
      width: 7px; height: 7px; border-radius: 50%;
      background: var(--gold);
      flex-shrink: 0;
    }

    /* ── Docs Layout ───────────────────────────────────────── */
    .docs-page { background: var(--midnight); }
    .docs-inner {
      max-width: 860px; margin: 0 auto;
    }

    /* Section headings within docs */
    .docs-section {
      padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 8vw, 6rem);
      border-bottom: 1px solid var(--border);
    }
    .docs-section:last-child { border-bottom: none; }
    .docs-section h2 {
      color: var(--ivory);
      margin-bottom: 0.4rem;
    }
    .docs-section p { color: var(--text); font-size: 1.05rem; }
    .docs-section .gold-line { margin-bottom: 1.8rem; }

    /* URL anatomy display */
    .url-anatomy {
      display: flex; flex-wrap: wrap; align-items: center;
      gap: 0;
      padding: 1.2rem 1.5rem;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--r);
      font-family: 'Courier New', monospace;
      font-size: 0.95rem;
      line-height: 2;
      margin-bottom: 2rem;
      overflow-x: auto;
      white-space: nowrap;
    }
    .url-base   { color: var(--muted); }
    .url-sep    { color: var(--muted); }
    .url-param-key  { color: var(--gold); }
    .url-param-val  { color: #8ac7a0; }
    .url-amp    { color: var(--muted); }

    /* Parameter table */
    .param-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 1.5rem;
      font-size: 0.97rem;
    }
    .param-table th {
      text-align: left;
      padding: 0.6rem 1rem;
      font-family: 'Cormorant SC', serif;
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      color: var(--gold);
      border-bottom: 1px solid var(--border);
      font-weight: 400;
    }
    .param-table td {
      padding: 0.9rem 1rem;
      border-bottom: 1px solid rgba(200,168,75,0.1);
      color: var(--text);
      vertical-align: top;
    }
    .param-table tr:last-child td { border-bottom: none; }
    .param-table code {
      font-family: 'Courier New', monospace;
      color: var(--gold-light);
      background: var(--panel);
      padding: 0.15em 0.45em;
      border-radius: 3px;
      font-size: 0.9em;
    }
    .badge-required {
      display: inline-block;
      padding: 0.15em 0.5em;
      background: rgba(200,168,75,0.15);
      border: 1px solid rgba(200,168,75,0.35);
      border-radius: 2px;
      font-family: 'Cormorant SC', serif;
      font-size: 0.66rem;
      letter-spacing: 0.1em;
      color: var(--gold);
    }

    /* Info boxes */
    .info-box {
      display: flex; gap: 1rem;
      padding: 1.1rem 1.3rem;
      border-radius: var(--r);
      margin-bottom: 1.2rem;
      font-size: 0.97rem;
    }
    .info-box-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }
    .info-box p { margin: 0; }
    .info-box.info {
      background: rgba(30, 80, 140, 0.2);
      border: 1px solid rgba(80, 140, 220, 0.25);
    }
    .info-box.info .info-box-text { color: #a0bedd; }
    .info-box.warning {
      background: rgba(200, 120, 30, 0.12);
      border: 1px solid rgba(220, 140, 50, 0.3);
    }
    .info-box.warning .info-box-text { color: #e0b87a; }
    .info-box.success {
      background: rgba(50, 140, 80, 0.12);
      border: 1px solid rgba(80, 180, 100, 0.3);
    }
    .info-box.success .info-box-text { color: #8ac7a0; }

    /* Flow steps (how it works) */
    .flow-steps { display: flex; flex-direction: column; gap: 1rem; }
    .flow-step {
      display: flex; gap: 1.2rem; align-items: flex-start;
      padding: 1.1rem 1.2rem;
      border: 1px solid var(--border);
      border-radius: var(--r);
      background: var(--panel);
      transition: border-color 0.3s;
    }
    .flow-step:hover { border-color: rgba(200,168,75,0.4); }
    .flow-step-num {
      display: flex; align-items: center; justify-content: center;
      width: 34px; height: 34px; flex-shrink: 0;
      border: 1.5px solid var(--gold);
      border-radius: 50%;
      font-family: 'Playfair Display', serif;
      font-size: 0.95rem;
      color: var(--gold);
    }
    .flow-step-body h4 {
      font-family: 'Playfair Display', serif;
      font-size: 1rem;
      color: var(--cream);
      margin-bottom: 0.25rem;
      font-weight: 600;
    }
    .flow-step-body p { color: var(--muted); font-size: 0.92rem; margin: 0; }

    /* ── Generator ────────────────────────────────────────── */
    .generator-section {
      background: var(--deep);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .generator-section h2 { color: var(--ivory); }

    .generator-card {
      border: 1px solid var(--border);
      border-radius: var(--r);
      background: var(--panel);
      padding: 2rem 2rem 1.8rem;
      margin-top: 2rem;
    }

    .gen-form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.2rem;
      margin-bottom: 1.5rem;
    }
    @media (max-width: 640px) {
      .gen-form-row { grid-template-columns: 1fr; }
    }

    .gen-label {
      display: block;
      font-family: 'Cormorant SC', serif;
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      color: var(--gold);
      margin-bottom: 0.45rem;
    }
    .gen-input {
      width: 100%;
      padding: 0.8rem 1rem;
      background: var(--midnight);
      border: 1px solid var(--border);
      border-radius: var(--r);
      color: var(--cream);
      font-family: 'Crimson Pro', serif;
      font-size: 1rem;
      outline: none;
      transition: border-color 0.2s;
    }
    .gen-input::placeholder { color: rgba(122,143,168,0.55); }
    .gen-input:focus { border-color: var(--gold); }
    .gen-input.error { border-color: #e07070; }

    .gen-hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }

    /* Result box */
    .gen-result-wrapper { margin-top: 0.5rem; }
    .gen-result-label {
      font-family: 'Cormorant SC', serif;
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      color: var(--gold);
      margin-bottom: 0.5rem;
      display: block;
    }
    .gen-result-box {
      display: flex; align-items: stretch;
      border: 1px solid var(--border);
      border-radius: var(--r);
      overflow: hidden;
      transition: border-color 0.3s;
    }
    .gen-result-box.has-result { border-color: rgba(200,168,75,0.45); }
    .gen-result-url {
      flex: 1;
      padding: 0.8rem 1rem;
      background: var(--midnight);
      color: var(--gold-light);
      font-family: 'Courier New', monospace;
      font-size: 0.88rem;
      word-break: break-all;
      line-height: 1.5;
      min-height: 44px;
    }
    .gen-result-url.empty { color: var(--muted); font-family: 'Crimson Pro', serif; font-size: 0.95rem; font-style: italic; }
    .btn-copy {
      display: flex; align-items: center; gap: 0.4rem;
      padding: 0 1.2rem;
      background: var(--gold);
      color: var(--midnight);
      font-family: 'Cormorant SC', serif;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      border: none;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.2s;
      flex-shrink: 0;
    }
    .btn-copy:hover { background: var(--gold-light); }
    .btn-copy:disabled { background: var(--muted); cursor: default; }
    .btn-copy svg { flex-shrink: 0; }

    .gen-copy-feedback {
      font-size: 0.82rem;
      color: #8ac7a0;
      margin-top: 0.4rem;
      min-height: 1.2em;
      transition: opacity 0.3s;
    }

    /* Preview link */
    .gen-preview-row {
      display: flex; align-items: center; gap: 1rem;
      margin-top: 1.2rem;
      padding-top: 1.2rem;
      border-top: 1px solid rgba(200,168,75,0.12);
      flex-wrap: wrap;
    }
    .gen-preview-label {
      font-family: 'Cormorant SC', serif;
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      color: var(--muted);
      white-space: nowrap;
    }
    .btn-test-link {
      display: inline-flex; align-items: center; gap: 0.45rem;
      padding: 0.55rem 1.2rem;
      border: 1px solid var(--border);
      border-radius: 2px;
      color: var(--cream) !important;
      font-family: 'Cormorant SC', serif;
      font-size: 0.78rem;
      letter-spacing: 0.1em;
      transition: border-color 0.2s, background 0.2s;
    }
    .btn-test-link:hover { border-color: var(--gold); background: var(--gold-dim); }
    .btn-test-link[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

    /* Use-case cards */
    .usecase-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1.2rem;
      margin-top: 0.5rem;
    }
    .usecase-card {
      padding: 1.5rem 1.4rem;
      border: 1px solid var(--border);
      border-radius: var(--r);
      background: var(--panel);
      transition: border-color 0.3s, transform 0.3s;
    }
    .usecase-card:hover { border-color: rgba(200,168,75,0.4); transform: translateY(-3px); }
    .usecase-icon { font-size: 1.6rem; margin-bottom: 0.7rem; display: block; }
    .usecase-card h4 { font-size: 1rem; color: var(--cream); margin-bottom: 0.4rem; }
    .usecase-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

    /* Code snippet */
    .code-block {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--r);
      padding: 1.2rem 1.4rem;
      font-family: 'Courier New', monospace;
      font-size: 0.88rem;
      color: var(--gold-light);
      overflow-x: auto;
      white-space: pre;
      line-height: 1.7;
      margin-bottom: 1rem;
    }
    .code-comment { color: var(--muted); }

    /* Back link */
    .back-link {
      display: inline-flex; align-items: center; gap: 0.5rem;
      font-family: 'Cormorant SC', serif;
      font-size: 0.78rem;
      letter-spacing: 0.1em;
      color: var(--muted);
      transition: color 0.2s;
      margin-bottom: 1.5rem;
    }
    .back-link:hover { color: var(--gold); }
    .back-link svg { flex-shrink: 0; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1.5rem, 6vw, 5rem) 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem;
  align-items: start;
}
.footer-brand .logo-name {
  font-family: 'Cormorant SC', serif;
  font-size: 1.2rem;
  color: var(--cream);
  letter-spacing: 0.08em;
}
.footer-brand p { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; }
.footer-links a {
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.82rem; color: var(--muted); }

/* ── Animations ────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* stagger delays */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-cross { display: none; }
}
