/* ============================================================================
 * Epic-Codirector — Modern · LIGHT variant
 * Light theme · hero stays cinematic (dark) for editorial contrast
 * ============================================================================ */

:root {
  --bg:           #fafafa;
  --surface:      #ffffff;
  --surface-2:    #f4f4f5;
  --surface-3:    #e9e9ec;
  --surface-card: #ffffff;
  --surface-card-hi: #fafafa;
  --surface-cream: #f5efe6;

  --border:       rgba(0,0,0,0.07);
  --border-1:     rgba(0,0,0,0.10);
  --border-2:     rgba(0,0,0,0.18);

  --glass:        rgba(0,0,0,0.04);
  --glass-strong: rgba(0,0,0,0.07);

  --fg:        #09090b;
  --fg-1:      #18181b;
  --muted:     #52525b;
  --muted-2:   #71717a;
  --muted-3:   #a1a1aa;

  --lime:      #b3655b;
  --lime-2:    #65a30d;
  --pink:      #db2777;
  --pink-2:    #ec4899;
  --wine:      #4d1a2a;
  --wine-2:    #2a0d18;
  --amber:     #d97706;
  --emerald:   #059669;
  --cyan:      #0891b2;
  --red:       #dc2626;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --r-xl: 18px; --r-2xl: 22px; --r-3xl: 28px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 0 rgba(0,0,0,0.04) inset, 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 12px 32px -14px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 32px 80px -28px rgba(0,0,0,0.22), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-pink: 0 24px 60px -20px rgba(219,39,119,0.40);
  --shadow-lime: 0 16px 40px -16px rgba(179,101,91,0.50);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
  --font-alternate: "Degular Display", "Degular";
  --font-display: var(--font-alternate), Degular, var(--font-sans), Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: var(--font-display);

  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--font-display); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; letter-spacing: -0.011em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: transparent; border: 0; color: inherit; padding: 0; }
input, select { font-family: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(219,39,119,0.25); color: inherit; }

.container { max-width: 1440px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.container-tight { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.min-h-screen { min-height: 100vh; }
.relative { position: relative; } .sticky { position: sticky; top: 0; }
.fixed { position: fixed; } .absolute { position: absolute; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; } .z-20 { z-index: 20; } .z-30 { z-index: 30; }
.overflow-hidden { overflow: hidden; } .overflow-y-auto { overflow-y: auto; } .overflow-x-auto { overflow-x: auto; }
.hidden { display: none !important; } .block { display: block; } .inline-flex { display: inline-flex; }

.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .items-start { align-items: flex-start; } .items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; } .flex-shrink-0 { flex-shrink: 0; } .flex-wrap { flex-wrap: wrap; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: minmax(0, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2; }

.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; } .gap-10 { gap: 2.5rem; } .gap-12 { gap: 3rem; }

.p-2 { padding: .5rem; } .p-3 { padding: .75rem; } .p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; } .p-7 { padding: 1.75rem; } .p-8 { padding: 2rem; } .p-10 { padding: 2.5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; } .mt-16 { margin-top: 4rem; } .mt-20 { margin-top: 5rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-5 { margin-bottom: 1.25rem; } .mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; } .mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-2 { width: .5rem; } .w-3 { width: .75rem; } .w-4 { width: 1rem; } .w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; } .w-8 { width: 2rem; } .w-9 { width: 2.25rem; } .w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; } .w-12 { width: 3rem; } .w-14 { width: 3.5rem; } .w-16 { width: 4rem; }
.w-full { width: 100%; }
.h-2 { height: .5rem; } .h-3 { height: .75rem; } .h-4 { height: 1rem; } .h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; } .h-8 { height: 2rem; } .h-10 { height: 2.5rem; } .h-11 { height: 2.75rem; }
.h-12 { height: 3rem; } .h-14 { height: 3.5rem; } .h-px { height: 1px; }
.h-full { height: 100%; }
.max-w-md { max-width: 28rem; } .max-w-lg { max-width: 32rem; } .max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; } .max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; } .max-w-6xl { max-width: 72rem; }

.aspect-video { aspect-ratio: 16 / 9; }
.aspect-photo { aspect-ratio: 16 / 10; }
.aspect-square { aspect-ratio: 1; }

.text-xs { font-size: 12px; line-height: 1.4; }
.text-sm { font-size: 14px; line-height: 1.5; }
.text-base { font-size: 16px; line-height: 1.55; }
.text-lg { font-size: 18px; line-height: 1.55; }
.text-xl { font-size: 20px; line-height: 1.4; }
.text-2xl { font-size: 24px; line-height: 1.3; }
.text-3xl { font-size: 30px; line-height: 1.2; }
.text-4xl { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; }
.text-5xl { font-size: 48px; line-height: 1.08; letter-spacing: -0.025em; }
.text-6xl { font-size: 60px; line-height: 1.04; letter-spacing: -0.028em; }
.text-7xl { font-size: 72px; line-height: 1; letter-spacing: -0.03em; }
.text-8xl { font-size: 96px; line-height: 0.95; letter-spacing: -0.034em; }

.font-mono { font-family: var(--font-mono); }
.font-serif, .font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-sans); }
.font-normal { font-weight: 400; } .font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; } .font-black { font-weight: 900; }
.italic { font-style: italic; } .uppercase { text-transform: uppercase; }
.text-left { text-align: left; } .text-center { text-align: center; }
.tracking-tight { letter-spacing: -0.018em; }
.tracking-tighter { letter-spacing: -0.034em; }
.tracking-wide { letter-spacing: 0.04em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.1; } .leading-snug { line-height: 1.3; }
.leading-relaxed { line-height: 1.65; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.whitespace-nowrap { white-space: nowrap; }

.text-fg { color: var(--fg); }
.text-muted { color: var(--muted); }
.text-muted-2 { color: var(--muted-2); }
.text-pink { color: var(--pink); }
.text-lime { color: var(--lime-2); }
.text-amber { color: var(--amber); }
.text-emerald { color: var(--emerald); }
.text-cyan { color: var(--cyan); }
.text-red { color: var(--red); }
.text-white { color: #fff; }

.bg-bg { background: var(--bg); }
.bg-surface { background: var(--surface); }
.bg-surface-card { background: var(--surface-card); }
.bg-lime { background: var(--lime); }
.bg-pink { background: var(--pink); }
.bg-cream { background: var(--surface-cream); color: #1a1a1a; }
.bg-white { background: #fff; color: #0a0a0a; }

.border { border: 1px solid var(--border); }
.border-1 { border: 1px solid var(--border-1); }
.border-r { border-right: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-dashed { border-style: dashed; }

.rounded { border-radius: var(--r-sm); }
.rounded-md { border-radius: var(--r-md); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.rounded-2xl { border-radius: var(--r-2xl); }
.rounded-3xl { border-radius: var(--r-3xl); }
.rounded-full { border-radius: var(--r-full); }

.opacity-30 { opacity: 0.3; } .opacity-40 { opacity: 0.4; } .opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; } .opacity-70 { opacity: 0.7; } .opacity-80 { opacity: 0.8; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ─── Light-theme components ──────────────────────────── */

/* Notification bar — keeps black for contrast (Magnific pattern) */
.notif-bar {
  background: #0a0a0a;
  color: #fff;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  padding: 12px 16px;
}
.notif-bar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.notif-bar .arr { color: var(--pink-2); }

.nav { position: relative; z-index: 30; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  padding: 8px 14px;
  border-radius: var(--r-md);
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
.nav-link:hover { background: rgba(0,0,0,0.06); }

.search-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  color: var(--muted);
  font-size: 14px;
  min-width: 240px;
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out);
}
.search-pill:hover { background: var(--surface-3); border-color: var(--border-2); }
.search-pill .kbd {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.10);
  color: var(--muted-2);
}

/* Primary CTA — dark pill on light bg (inverse of dark variant) */
.btn-white {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  background: #0a0a0a; color: #fff;
  font-size: 15px; font-weight: 600;
  transition: transform .15s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -10px rgba(0,0,0,0.30); }

.btn-ghost-white {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border-1);
  color: var(--fg);
  font-size: 15px; font-weight: 600;
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out), transform .15s var(--ease-out);
}
.btn-ghost-white:hover { background: rgba(0,0,0,0.08); border-color: var(--border-2); transform: translateY(-1px); }

.btn-lime {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-full);
  background: #b3655b; color: #0a0a0a;
  font-size: 14px; font-weight: 700;
  border: 1px solid #b3655b;
  transition: transform .15s var(--ease-out), filter .15s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn-lime:hover { transform: translateY(-1px); filter: brightness(0.96); box-shadow: var(--shadow-lime); }
.btn-lime-lg { padding: 14px 28px; font-size: 15px; }

.badge-pink {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--pink); color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-lime {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: #b3655b; color: #1a1a1a;
  border: 1px solid #b3655b;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-outline {
  display: inline-flex; align-items: center;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  color: var(--muted);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  color: var(--muted);
  font-size: 13px; font-weight: 500;
}
.tag .arr { color: var(--pink); margin-left: 4px; }

.pill {
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  color: var(--fg-1);
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out);
}
.pill:hover:not(.active) { background: var(--surface-3); border-color: var(--border-2); }
.pill.active {
  background: #b3655b; border-color: #b3655b;
  color: #1a1a1a; font-weight: 700;
  box-shadow: 0 8px 24px -10px rgba(179,101,91,0.4);
}

/* HERO — light theme (matches body) */
.hero-cinematic {
  position: relative;
  background-color: #fdf6ef;          /* warm cream base */
  overflow: hidden;
  isolation: isolate;
}
.hero-cinematic::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 700px at 78% 30%, rgba(255,165,180,0.45), transparent 60%),
    radial-gradient(900px 600px at 18% 70%, rgba(255,200,170,0.40), transparent 65%),
    radial-gradient(80% 50% at 50% 0%, rgba(255,180,200,0.18), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(245,235,225,0.45) 100%);
  z-index: 0;
}
.hero-cinematic::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  /* subtle warm vignette to avoid being flat */
  background: radial-gradient(ellipse 85% 65% at center 50%, transparent 35%, rgba(180,100,100,0.10) 100%);
  z-index: 1;
}
/* Decorative warm orbs replace the dark figure suggestion */
.hero-figure {
  position: absolute;
  top: 50%; left: 65%;
  transform: translate(-50%, -50%);
  width: 36%; max-width: 420px;
  aspect-ratio: 3 / 5;
  z-index: 1; pointer-events: none;
}
.hero-figure::before {
  content: ""; position: absolute;
  top: 20%; left: 18%; right: 18%; bottom: 5%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255,140,170,0.45) 0%, rgba(255,180,180,0.25) 50%, transparent 80%);
  border-radius: 45% 45% 30% 30% / 40% 40% 15% 15%;
  filter: blur(40px);
}
.hero-figure::after {
  content: ""; position: absolute;
  top: -5%; left: 30%; width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,200,150,0.50) 0%, rgba(255,200,150,0.20) 50%, transparent 80%);
  filter: blur(50px);
}
.hero-rim {
  position: absolute;
  top: 12%; left: 80%;
  width: 6%; height: 70%;
  background: linear-gradient(180deg, transparent 0%, rgba(255,200,180,0.40) 30%, rgba(255,170,180,0.30) 70%, transparent 100%);
  filter: blur(14px); z-index: 2; pointer-events: none;
}
.hero-cinematic .grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.25;
  background-image:
    radial-gradient(rgba(0,0,0,0.020) 1px, transparent 1.5px),
    radial-gradient(rgba(0,0,0,0.015) 1px, transparent 1.5px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 1px;
  mix-blend-mode: multiply; z-index: 2;
}
.hero-fade-out {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
  pointer-events: none; z-index: 3;
}

/* Feature list — dark text on light hero */
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.018em;
  color: rgba(20,15,20,0.25);
  transition: color .2s var(--ease-out);
  cursor: pointer; line-height: 1.1;
}
.feature-item:hover { color: rgba(20,15,20,0.55); }
.feature-item.active { color: var(--fg); }
.feature-item .triangle {
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--pink);
  opacity: 0;
  transition: opacity .2s var(--ease-out);
  flex-shrink: 0;
}
.feature-item.active .triangle { opacity: 1; }
@media (min-width: 1200px) { .feature-item { font-size: 32px; } }

/* In-hero pills/tags inherit light theme automatically since they use surface tokens */
.hero-cinematic .tag {
  background: rgba(255,255,255,0.55);
  border-color: rgba(0,0,0,0.08);
  color: var(--fg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-cinematic .tag .arr { color: var(--pink); }
.hero-cinematic .btn-ghost-white {
  background: rgba(255,255,255,0.45);
  border-color: rgba(0,0,0,0.10);
  color: var(--fg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-cinematic .btn-ghost-white:hover {
  background: rgba(255,255,255,0.65);
  border-color: rgba(0,0,0,0.15);
}

/* PRODUCT CARD — light variant */
.product-card {
  position: relative; overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  color: var(--fg);
}
.product-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.025) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.015) 100%);
  opacity: 0;
  transition: opacity .3s var(--ease-out);
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}
.product-card > * { position: relative; z-index: 2; }
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.22), 0 6px 16px rgba(0,0,0,0.06);
}
.product-card:hover::before { opacity: 1; }

.product-card-feature {
  background: var(--surface-cream);
  color: #1a1a1a;
  border: 1px solid var(--border);
}

.card-frame { width: 100%; position: relative; overflow: hidden; }
.frame { width: 100%; position: relative; overflow: hidden; }
.frame-wine    { background: radial-gradient(at 35% 40%, rgba(180,60,90,0.55), transparent 60%), radial-gradient(at 75% 70%, rgba(60,20,40,0.7), transparent 70%), #2a0d18; }
.frame-cream   { background: linear-gradient(180deg, #f5efe6 0%, #ebe3d6 100%); }
.frame-pink    { background: radial-gradient(at 35% 40%, rgba(219,39,119,0.55), transparent 60%), radial-gradient(at 75% 70%, rgba(120,30,80,0.7), transparent 70%), #1a0a14; }
.frame-emerald { background: radial-gradient(at 35% 40%, rgba(5,150,105,0.50), transparent 60%), radial-gradient(at 75% 70%, rgba(8,145,178,0.40), transparent 70%), #0a1f1a; }
.frame-amber   { background: radial-gradient(at 35% 40%, rgba(217,119,6,0.50), transparent 60%), radial-gradient(at 75% 70%, rgba(219,39,119,0.40), transparent 70%), #1f1408; }
.frame-cyan    { background: radial-gradient(at 35% 40%, rgba(8,145,178,0.50), transparent 60%), radial-gradient(at 75% 70%, rgba(124,58,237,0.40), transparent 70%), #08141f; }
.frame-violet  { background: radial-gradient(at 35% 40%, rgba(124,58,237,0.50), transparent 60%), radial-gradient(at 75% 70%, rgba(219,39,119,0.40), transparent 70%), #14081f; }
.frame-mono    { background: linear-gradient(180deg, #1a1a1a 0%, #0e0e0e 100%); }

.app-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  flex-shrink: 0;
}

.icon-grid { display: grid; grid-template-columns: repeat(3, 60px); gap: 14px; position: relative; }
.icon-grid .icon-tile {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
  border: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; position: relative;
}

.progress-track { display: flex; gap: 4px; height: 6px; border-radius: var(--r-full); overflow: hidden; }
.progress-track .seg { flex: 1; background: rgba(0,0,0,0.06); position: relative; overflow: hidden; }
.progress-track .seg.done { background: #b3655b; }
.progress-track .seg.active { background: #b3655b; position: relative; }
.progress-track .seg.active::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.18), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(5,150,105,0.6);
  animation: ringPulse 2s ease-out infinite;
}
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(5,150,105,0.55); }
  70% { box-shadow: 0 0 0 12px rgba(5,150,105,0); }
  100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); }
}

.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp .5s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.icon { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.icon-sm { width: 0.75rem; height: 0.75rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 1.75rem; height: 1.75rem; }
.icon-2xl { width: 2rem; height: 2rem; }

.scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.scrollbar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 6px; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-5xl { font-size: 48px; letter-spacing: -0.025em; }
  .md\:text-6xl { font-size: 60px; letter-spacing: -0.028em; }
  .md\:text-7xl { font-size: 72px; letter-spacing: -0.03em; }
  .md\:text-8xl { font-size: 96px; letter-spacing: -0.034em; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .feature-list { display: none; }
  .hero-figure, .hero-rim { display: none; }
}

/* Mock content primitives */
.mock-phone {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, #2a2a30 0%, #1a1a20 100%);
  padding: 5px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.1);
}
.mock-phone .notch {
  position: absolute; top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 38%; height: 14px;
  background: #0a0a0d;
  border-radius: 0 0 10px 10px;
  z-index: 4;
}
.mock-phone .screen {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0d;
  height: 100%;
}

.chat-bubble {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 12px;
  color: #1a1a1a;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  position: relative;
}

.score-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  margin-bottom: 5px;
}
.score-row:last-child { margin-bottom: 0; }
.score-row .lbl {
  width: 64px;
  color: rgba(0,0,0,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 9px;
}
.score-row .bar {
  flex: 1; height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.score-row .fill { height: 100%; background: #1a1a1a; border-radius: 2px; }
.score-row .val {
  width: 24px; text-align: right;
  color: rgba(0,0,0,0.8);
  font-weight: 700;
}

.mock-pill-row { display: flex; gap: 4px; flex-wrap: wrap; }
.mock-pill {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.04);
  color: var(--fg-1);
  letter-spacing: 0.04em;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.06);
}
.mock-pill.dark-bg { background: rgba(0,0,0,0.06); color: rgba(0,0,0,0.65); border-color: rgba(0,0,0,0.08); }

/* Stage strip */
.stage-strip { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.stage-strip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
  transition: background .2s var(--ease-out);
}
.stage-strip .dot.done { background: var(--emerald); }
.stage-strip .dot.active {
  width: 12px; height: 12px;
  background: #b3655b;
  box-shadow: 0 0 16px rgba(179,101,91,0.55);
}
.stage-strip .seg-line { width: 16px; height: 1px; background: rgba(0,0,0,0.10); }

/* Genre card */
.genre-card {
  position: relative;
  padding: 14px 14px;
  border-radius: var(--r-md);
  background: var(--surface-card);
  border: 1px solid var(--border-1);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out), transform .15s var(--ease-out);
  cursor: pointer;
  color: var(--fg-1);
}
.genre-card:hover:not(.selected) {
  background: var(--surface-2);
  border-color: var(--border-2);
  transform: translateY(-1px);
}
.genre-card.selected {
  background: linear-gradient(135deg, rgba(179,101,91,0.12) 0%, rgba(219,39,119,0.06) 100%);
  border-color: #b3655b;
  color: var(--fg);
}
.genre-card .check {
  position: absolute; top: 8px; right: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #b3655b;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.85);
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out);
}
.genre-card.selected .check { opacity: 1; transform: scale(1); }
.genre-card .check svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 3; fill: none; }

/* Family card */
.family-card {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-1);
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
  overflow: hidden; cursor: pointer;
}
.family-card:hover:not(.expanded) {
  background: var(--surface-2);
  border-color: var(--border-2);
}
.family-card.expanded {
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(219,39,119,0.05) 0%, rgba(124,58,237,0.03) 100%);
}
.family-card-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; }
.family-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.family-card-body { padding: 0 22px 22px; }

.variant-chip {
  position: relative;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: border-color .15s var(--ease-out), background .15s var(--ease-out);
  cursor: pointer;
  color: var(--fg-1);
}
.variant-chip:hover:not(.selected) { background: var(--surface-3); border-color: var(--border-2); }
.variant-chip.selected {
  border-color: var(--pink);
  background: rgba(219,39,119,0.08);
}
.variant-chip .check {
  position: absolute; top: 6px; right: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--pink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .15s var(--ease-out);
}
.variant-chip.selected .check { opacity: 1; }
.variant-chip .check svg { width: 9px; height: 9px; stroke: #fff; stroke-width: 3; fill: none; }

.custom-slot {
  border: 1.5px dashed rgba(219,39,119,0.35);
  background: rgba(219,39,119,0.04);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out);
}
.custom-slot:hover { border-color: rgba(219,39,119,0.65); background: rgba(219,39,119,0.08); }

/* Modal */
.backdrop-deep {
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-enter { animation: modalIn 0.3s var(--ease-out); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border-1);
  border-radius: var(--r-3xl);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.modal-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  transition: background .15s var(--ease-out), color .15s var(--ease-out), border-color .15s var(--ease-out);
  cursor: pointer;
}
.modal-tab:hover { background: rgba(0,0,0,0.04); color: var(--fg); }
.modal-tab.active {
  background: rgba(219,39,119,0.08);
  color: var(--fg);
  border-color: rgba(219,39,119,0.30);
}
.modal-tab.active svg { color: var(--pink); }

.director-card {
  background: var(--surface-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 18px;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.director-card:hover { border-color: rgba(219,39,119,0.40); transform: translateY(-2px); }
.director-portrait {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.principle-card {
  background: var(--surface-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 16px;
  transition: border-color .15s var(--ease-out), background .15s var(--ease-out);
}
.principle-card:hover { border-color: var(--border-2); background: var(--surface-2); }

.technique-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  color: var(--muted);
  font-weight: 500;
  transition: background .15s var(--ease-out), border-color .15s var(--ease-out), color .15s var(--ease-out);
}
.technique-pill:hover {
  background: rgba(219,39,119,0.10);
  border-color: rgba(219,39,119,0.30);
  color: var(--fg);
}

.stage-meta {
  font-size: 11px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  background: rgba(179,101,91,0.10);
  border: 1px solid rgba(179,101,91,0.40);
  color: #4d7c0f;
  animation: chipIn 0.22s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.chip button {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease-out);
  cursor: pointer;
}
.chip button:hover { background: rgba(179,101,91,0.25); }
.chip svg { width: 8px; height: 8px; stroke: currentColor; stroke-width: 2.5; fill: none; }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* === Family-card accordion (synced from modern variant) === */
.family-card-body { display: none; }
.family-card.expanded .family-card-body { display: block; }
.family-card .family-card-head { cursor: pointer; user-select: none; }
.genre-group [data-genre-grid] { align-items: start; }
