/* First Mile — luxury-minimal aesthetic
   Reference: Balenciaga × Bottega Veneta × ARQ Finance
   Dark luxury: near-black backgrounds, champagne gold accents,
   editorial serif/sans pairing, generous whitespace
*/

/* ── Custom properties ─────────────────────────────────────── */
:root {
  /* Core palette — warm dark luxury */
  --bg-void:      #080705;   /* deepest background */
  --bg-deep:      #100e0b;   /* primary background */
  --bg-card:      #1a1713;   /* card/surface background */
  --bg-raised:    #231f1a;   /* slightly elevated surfaces */
  --bg-muted:     #2e2922;   /* muted/dividers */

  /* Champagne gold palette */
  --gold-bright:  #d4a843;   /* primary accent */
  --gold-mid:     #b8902f;   /* hover/mid */
  --gold-dim:     #8a6a22;   /* subtle/dim */
  --gold-pale:    rgba(212, 168, 67, 0.12); /* bg tints */

  /* Warm neutral tones */
  --cream:        #f0ebe0;   /* primary text */
  --cream-mid:    #b8ae9c;   /* secondary text */
  --cream-dim:    #6b6359;   /* muted/disabled */
  --cream-faint:  #352f27;   /* faint borders */

  /* Semantic */
  --border:       rgba(240, 235, 224, 0.08);
  --border-gold:  rgba(212, 168, 67, 0.25);

  /* Tag colors — muted, luxurious */
  --tag-usable-bg:    rgba(72, 160, 120, 0.12);
  --tag-usable-text:  #7ec4a0;
  --tag-fixable-bg:   rgba(180, 140, 50, 0.12);
  --tag-fixable-text: #d4a843;
  --tag-slop-bg:      rgba(180, 60, 50, 0.12);
  --tag-slop-text:    #c47060;
}

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

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

body {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--cream-faint); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cream-dim); }

/* Selection */
::selection { background: var(--gold-pale); color: var(--gold-bright); }

/* ── Typography helpers ────────────────────────────────────── */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
  font-family: 'General Sans', sans-serif;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--cream);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
  font-family: 'General Sans', sans-serif;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold-bright);
  color: var(--bg-void);
  box-shadow: 0 2px 16px rgba(212, 168, 67, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  background: #e0b84e;
  box-shadow: 0 4px 24px rgba(212, 168, 67, 0.35);
  color: var(--bg-void);
}

.btn-secondary {
  background: transparent;
  color: var(--cream-mid);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--gold-pale);
  border-color: var(--border-gold);
  color: var(--gold-bright);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 14, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.navbar-logo span { color: var(--gold-bright); }

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

.navbar-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.03em;
}
.navbar-links a:hover { color: var(--cream-mid); }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 5.5rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold-bright));
  opacity: 0.4;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-pale);
  border: 1px solid var(--border-gold);
  border-radius: 3px;
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 2.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--cream-mid);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--cream-dim);
  letter-spacing: 0.03em;
}

/* Hero diagnostic card — premium artifact */
.hero-illustration {
  margin: 3.5rem auto 0;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,168,67,0.05);
}

.hero-illustration::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px;
  width: 48px; height: 2px;
  background: var(--gold-bright);
  border-radius: 0 0 2px 2px;
}

.diagnostic-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.diagnostic-row:last-child { border-bottom: none; }

.tag {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 72px;
  text-align: center;
}
.tag-usable   { background: var(--tag-usable-bg);   color: var(--tag-usable-text); }
.tag-fixable  { background: var(--tag-fixable-bg);  color: var(--tag-fixable-text); }
.tag-slop     { background: var(--tag-slop-bg);     color: var(--tag-slop-text); }

.diagnostic-creative {
  font-weight: 600;
  color: var(--cream);
  font-family: 'General Sans', monospace;
  font-size: 0.82rem;
}
.diagnostic-reason {
  color: var(--cream-dim);
  font-size: 0.78rem;
  margin-left: auto;
  text-align: right;
  max-width: 280px;
}

/* ── VISUAL DIAGNOSTIC GRID (hero) ─────────────────────────── */
.slop-diagnostic-grid {
  margin: 3.5rem auto 0;
  max-width: 680px;
  position: relative;
}

.diagnostic-grid-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(184, 174, 156, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: 'General Sans', sans-serif;
  text-align: left;
}

.diagnostic-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.creative-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-image-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge — overlaid top-left */
.card-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.22rem 0.65rem;
  border-radius: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-usable  { background: rgba(72, 160, 120, 0.85); color: #fff; }
.badge-fixable { background: rgba(180, 140, 50, 0.85);  color: #fff; }
.badge-slop    { background: rgba(180, 60, 50, 0.85);   color: #fff; }

.card-reason {
  font-size: 0.78rem;
  color: var(--cream-mid);
  line-height: 1.5;
  text-align: left;
  font-weight: 400;
  padding: 0 0.15rem;
}

/* CSS-only placeholder cards */
.card-placeholder {
  position: relative;
  overflow: hidden;
}

.placeholder-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card 2: garbled text fixable */
.card-placeholder .placeholder-figure {
  width: 38%;
  height: 55%;
  background: linear-gradient(160deg, #5a3e2b, #3a2a1a);
  border-radius: 40% 40% 35% 35%;
  position: absolute;
  top: 12%;
  left: 22%;
}
.card-placeholder .placeholder-watch {
  width: 14%;
  height: 14%;
  border-radius: 50%;
  border: 2px solid rgba(212,168,67,0.5);
  position: absolute;
  top: 35%;
  right: 28%;
  background: rgba(212,168,67,0.1);
}
.card-placeholder .placeholder-garble {
  position: absolute;
  top: 33%;
  right: 28%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateX(16%);
}
.card-placeholder .placeholder-garble span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 1px;
}
.card-placeholder .placeholder-garble span:nth-child(1) { width: 12px; }
.card-placeholder .placeholder-garble span:nth-child(2) { width: 8px; background: rgba(255,80,80,0.3); }
.card-placeholder .placeholder-garble span:nth-child(3) { width: 10px; }
.card-placeholder .placeholder-garble span:nth-child(4) { width: 6px; background: rgba(255,80,80,0.3); }

/* Card 3: slop dropshipping */
.card-placeholder .slop-bottle {
  width: 22%;
  height: 38%;
  background: linear-gradient(160deg, #1a4a8a, #0d3060);
  border-radius: 4px 4px 6px 6px;
  position: absolute;
  bottom: 20%;
  left: 38%;
  box-shadow: 0 0 20px rgba(80,160,255,0.2);
}
.card-placeholder .slop-bottle::before {
  content: '';
  position: absolute;
  top: -18%;
  left: 25%;
  width: 50%;
  height: 18%;
  background: rgba(60,100,160,0.6);
  border-radius: 2px 2px 0 0;
}
.card-placeholder .slop-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.card-placeholder .slop-sparkles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,200,80,0.7);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,200,80,0.5);
}
.card-placeholder .slop-sparkles span:nth-child(1) { top: 20%; left: 25%; }
.card-placeholder .slop-sparkles span:nth-child(2) { top: 30%; left: 60%; width: 3px; height: 3px; }
.card-placeholder .slop-sparkles span:nth-child(3) { top: 15%; right: 20%; }
.card-placeholder .slop-sparkles span:nth-child(4) { bottom: 40%; left: 18%; width: 3px; height: 3px; }
.card-placeholder .slop-sparkles span:nth-child(5) { bottom: 25%; right: 30%; }
.card-placeholder .slop-sparkles span:nth-child(6) { top: 50%; right: 18%; width: 2px; height: 2px; background: rgba(255,220,100,0.4); }
.card-placeholder .slop-skin {
  width: 25%;
  height: 45%;
  background: linear-gradient(160deg, #c49070, #a07050);
  border-radius: 45% 45% 40% 40%;
  position: absolute;
  bottom: 22%;
  right: 20%;
  opacity: 0.85;
  filter: saturate(1.4) brightness(1.1);
}

/* Card 4: fixable — aspect ratio issue */
.card-placeholder .amber-droplet {
  width: 24%;
  height: 32%;
  background: radial-gradient(ellipse at 40% 30%, rgba(212,168,67,0.7), rgba(180,120,40,0.4), transparent);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: absolute;
  top: 30%;
  left: 38%;
}
.card-placeholder .crop-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6%;
  background: rgba(16,14,11,0.7);
}
.card-placeholder .crop-left  { left: 0; }
.card-placeholder .crop-right { right: 0; }

/* Mobile: single column */
@media (max-width: 600px) {
  .diagnostic-cards { grid-template-columns: 1fr; }
}

/* ── HOW IT WORKS ──────────────────────────────────────────── */
.how-section {
  padding: 6rem 0;
  background: var(--bg-void);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--cream-mid); font-size: 1rem; font-weight: 400; max-width: 480px; margin: 0.5rem auto 0; }

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

.step-card {
  position: relative;
  padding: 2.25rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.step-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(212,168,67,0.05);
}

.step-number {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  font-family: 'General Sans', monospace;
}

.step-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.step-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--cream-dim);
  line-height: 1.7;
  font-weight: 400;
}

/* ── WHO IT'S FOR ──────────────────────────────────────────── */
.who-section {
  padding: 6rem 0;
  background: var(--bg-deep);
}

.who-section h2 { color: var(--cream); }
.who-section .eyebrow { color: var(--gold-mid); }
.who-section .section-header p { color: rgba(184, 174, 156, 0.7); }

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.who-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--cream-mid);
  line-height: 1.6;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.who-card:hover {
  border-color: rgba(212,168,67,0.2);
  background: var(--bg-raised);
  color: var(--cream);
}
.who-card::before {
  content: '→';
  display: inline-block;
  margin-right: 0.75rem;
  color: var(--gold-dim);
  font-weight: 400;
  transition: color 0.25s, transform 0.25s;
}
.who-card:hover::before {
  color: var(--gold-bright);
  transform: translateX(3px);
}

/* ── PRICING ────────────────────────────────────────────────── */
.pricing-section {
  padding: 6rem 0;
  background: var(--bg-void);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.pricing-card:hover {
  border-color: rgba(240,235,224,0.15);
}

.pricing-card.featured {
  border-color: var(--gold-dim);
  background: linear-gradient(160deg, #1e1b15, #161310);
  box-shadow: 0 0 0 1px rgba(212,168,67,0.15), 0 16px 48px rgba(0,0,0,0.3);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-bright);
  color: var(--bg-void);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 1.2rem;
  border-radius: 0 0 3px 3px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-family: 'General Sans', sans-serif;
}

.pricing-price {
  font-family: 'Instrument Serif', serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pricing-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--cream-dim);
  font-family: 'General Sans', sans-serif;
  letter-spacing: 0;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--cream-dim);
  line-height: 1.6;
  font-weight: 400;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  font-size: 0.85rem;
  color: var(--cream-mid);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  padding-bottom: 0.5rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.pricing-features li::before {
  content: '—';
  color: var(--gold-dim);
  font-weight: 400;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── WAITLIST / CTA ─────────────────────────────────────────── */
.cta-section {
  padding: 7rem 0;
  background: var(--bg-deep);
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--border-gold));
  opacity: 0.4;
}

.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section p { color: var(--cream-mid); font-size: 1rem; margin-bottom: 2.5rem; font-weight: 400; }

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 460px;
  margin: 0 auto 1rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 260px;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.9rem;
  outline: none;
  background: var(--bg-card);
  color: var(--cream);
  transition: border-color 0.25s, box-shadow 0.25s;
  font-family: 'General Sans', sans-serif;
}
.waitlist-form input[type="email"]:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.08);
}
.waitlist-form input[type="email"]::placeholder { color: var(--cream-dim); }

.waitlist-form button { padding: 0.85rem 1.75rem; }

.waitlist-note {
  font-size: 0.75rem;
  color: var(--cream-dim);
  letter-spacing: 0.03em;
}

.waitlist-success {
  display: none;
  padding: 1rem 1.5rem;
  background: var(--tag-usable-bg);
  border: 1px solid rgba(72, 160, 120, 0.2);
  border-radius: 4px;
  color: var(--tag-usable-text);
  font-weight: 600;
  max-width: 460px;
  margin: 0 auto;
  font-size: 0.88rem;
}
.waitlist-success.show { display: block; }

.waitlist-error {
  display: none;
  padding: 0.75rem 1rem;
  background: var(--tag-slop-bg);
  border: 1px solid rgba(180, 60, 50, 0.2);
  border-radius: 3px;
  color: var(--tag-slop-text);
  font-size: 0.82rem;
  max-width: 460px;
  margin: 0.5rem auto 0;
  font-weight: 500;
}
.waitlist-error.show { display: block; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--cream-dim);
  border-top: 1px solid var(--border);
  background: var(--bg-void);
  letter-spacing: 0.03em;
}

/* ── Ambient texture overlay (subtle noise) ─────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps-grid   { grid-template-columns: 1fr; gap: 1rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .who-grid     { grid-template-columns: 1fr; }
}

/* ── INTERACTIVE DEMO CTA ───────────────────────────────────── */
.demo-section {
  padding: 7rem 0;
  background: var(--bg-void);
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.demo-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--border-gold));
  opacity: 0.4;
}

.demo-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.demo-sub {
  color: var(--cream-mid);
  font-size: 1rem;
  margin-bottom: 2.75rem;
  font-weight: 400;
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.demo-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px;
  width: 48px; height: 2px;
  background: var(--gold-bright);
  border-radius: 0 0 2px 2px;
}

/* Drop zone */
.drop-zone {
  border: 1.5px dashed rgba(212,168,67,0.3);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
  background: rgba(212,168,67,0.03);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--gold-bright);
  background: rgba(212,168,67,0.08);
  box-shadow: 0 0 0 4px rgba(212,168,67,0.08);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.drop-label {
  font-size: 0.85rem;
  color: var(--cream-mid);
  font-weight: 500;
  display: block;
}

.drop-label strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.drop-hint {
  font-size: 0.75rem;
  color: var(--cream-dim);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}

.drop-feedback {
  display: none;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.85rem 1rem;
  background: var(--gold-pale);
  border: 1px solid var(--border-gold);
  border-radius: 3px;
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.drop-feedback.show { display: flex; }

/* Demo email form */
.demo-email-wrap {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-email-wrap input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.9rem;
  outline: none;
  background: var(--bg-raised);
  color: var(--cream);
  transition: border-color 0.25s, box-shadow 0.25s;
  font-family: 'General Sans', sans-serif;
}
.demo-email-wrap input[type="email"]:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.08);
}
.demo-email-wrap input[type="email"]::placeholder { color: var(--cream-dim); }

.demo-email-wrap button { padding: 0.8rem 1.5rem; }

/* Demo processing state */
.demo-processing {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 1rem;
}

.demo-processing.show { display: flex; }

.processing-ring {
  width: 48px;
  height: 48px;
  border: 2px solid var(--cream-faint);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-text {
  font-size: 0.85rem;
  color: var(--cream-mid);
  font-weight: 500;
}

/* Demo success */
.demo-success {
  display: none;
  padding: 2rem 1rem;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.demo-success.show { display: flex; }

.demo-success-icon {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.demo-success h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0;
}

.demo-success p {
  font-size: 0.88rem;
  color: var(--cream-mid);
  font-weight: 400;
}

/* Demo form hidden when processing or success */
.demo-card[data-state="idle"] .demo-email-wrap { display: flex; }
.demo-card[data-state="idle"] .demo-processing,
.demo-card[data-state="idle"] .demo-success { display: none; }

.demo-card[data-state="processing"] .demo-email-wrap { display: none; }
.demo-card[data-state="processing"] .demo-processing { display: flex; }
.demo-card[data-state="processing"] .demo-success { display: none; }

.demo-card[data-state="done"] .demo-email-wrap { display: none; }
.demo-card[data-state="done"] .demo-processing { display: none; }
.demo-card[data-state="done"] .demo-success { display: flex; }

.demo-card[data-state="idle"] .drop-feedback.show + .demo-email-wrap { display: flex; }

/* ── REAL DIAGNOSTICS GALLERY ──────────────────────────────── */
.gallery-section {
  padding: 6rem 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.case-card:hover {
  border-color: rgba(212,168,67,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Gold accent bar — top-left */
.case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--gold-bright), var(--gold-dim), transparent);
  opacity: 0.5;
}

.case-card:hover::before { opacity: 0.8; }

.case-type {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.case-type-icon {
  font-size: 1rem;
  opacity: 0.85;
}

.case-stat {
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.case-stat-sub {
  font-size: 0.75rem;
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.case-story {
  font-size: 0.82rem;
  color: var(--cream-dim);
  line-height: 1.6;
  font-weight: 400;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .navbar { padding: 0.75rem 1.25rem; }
  .navbar-links { display: none; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .hero-illustration { padding: 1rem 1.25rem; }
  .diagnostic-reason { display: none; }
  .container { padding: 0 1.25rem; }
  .pricing-card.featured::before { font-size: 0.6rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .demo-email-wrap { flex-direction: column; }
  .demo-email-wrap input[type="email"] { min-width: unset; }
}