/* ============================================================================
 * Epic-Codirector — Modern variant · v2
 * Magnific landing hero + Higgsfield product-card grid
 * ============================================================================ */

:root {
  /* Surfaces — Higgsfield dark */
  --bg:           #050505;
  --surface:      #0e0e0e;
  --surface-2:    #131313;
  --surface-3:    #1a1a1a;
  --surface-card: #131313;   /* Higgsfield card bg */
  --surface-card-hi: #1c1c1c;
  --surface-cream: #f5efe6;  /* Higgsfield's cream feature card */

  --border:       rgba(255,255,255,0.07);
  --border-1:     rgba(255,255,255,0.10);
  --border-2:     rgba(255,255,255,0.16);

  /* Text */
  --fg:        #fafafa;
  --fg-1:      #ededee;
  --muted:     #b3b3b6;
  --muted-2:   #808086;
  --muted-3:   #4d4d52;

  /* Accents */
  --lime:      #b3655b;       /* Higgsfield Sign-up bright lime */
  --lime-2:    #b8e029;
  --pink:      #ff3b9a;       /* Magnific's hot pink + Higgsfield pink badge */
  --pink-2:    #ff5fb0;
  --wine:      #4d1a2a;       /* Magnific hero burgundy tint */
  --wine-2:    #2a0d18;
  --amber:     #f59e0b;
  --emerald:   #10b981;
  --cyan:      #22d3ee;
  --red:       #ef4444;

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

  /* Shadows */
  --shadow-sm: 0 1px 0 rgba(255,255,255,0.04) inset, 0 2px 6px rgba(0,0,0,0.45);
  --shadow-md: 0 12px 32px -14px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 32px 80px -28px rgba(0,0,0,0.75), 0 8px 24px rgba(0,0,0,0.45);
  --shadow-pink: 0 24px 60px -20px rgba(255,59,154,0.50);
  --shadow-lime: 0 16px 40px -16px rgba(179,101,91,0.45);

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

  /* Type — system stacks */
  --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;
  /* Display font — Magnific stack (Degular is paid; falls to Inter / Helvetica) */
  --font-alternate: "Degular Display", "Degular";
  --font-display: var(--font-alternate), Degular, var(--font-sans), Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Keep --font-serif alias pointing at display stack so existing markup keeps working */
  --font-serif: var(--font-display);

  color-scheme: dark;
}

* { 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; }
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(--lime); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255,59,154,0.40); color: #fff; }

/* layout */
.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; }
.grow { flex-grow: 1; }

.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; }
.col-span-3 { grid-column: span 3; }

.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.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; }

/* padding */
.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; }
.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; }

/* sizing */
.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 */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-photo { aspect-ratio: 16 / 10; }
.aspect-square { aspect-ratio: 1; }

/* type — sans defaults */
.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-display, .font-serif { font-family: var(--font-display); }
.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; }

/* color */
.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); }
.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 */
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ─── COMPONENTS ─────────────────────────────────────── */

/* Top notification banner — black thin strip with pink arrow */
.notif-bar {
  background: #000;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  padding: 12px 16px;
  color: var(--fg);
}
.notif-bar a { display: inline-flex; align-items: center; gap: 6px; }
.notif-bar .arr { color: var(--pink); }

/* Nav */
.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(255,255,255,0.08); }

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

/* Pill buttons — Magnific style */
.btn-white {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  background: #fff; color: #0a0a0a;
  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(255,255,255,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(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 15px; font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out), transform .15s var(--ease-out);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.30); transform: translateY(-1px); }

/* Higgsfield lime sign-up button */
.btn-lime {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-full);
  background: var(--lime); color: #0a0a0a;
  font-size: 14px; font-weight: 600;
  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(1.08); box-shadow: var(--shadow-lime); }
.btn-lime-lg { padding: 14px 28px; font-size: 15px; }

/* Pricing badge / promo pill */
.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: var(--lime); color: #0a0a0a;
  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: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--muted);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Subtle tag pill */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.tag .arr { color: var(--pink); margin-left: 4px; }

/* Pill — selectable */
.pill {
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  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: rgba(255,255,255,0.08); border-color: var(--border-2); }
.pill.active {
  background: var(--lime);
  border-color: transparent;
  color: #0a0a0a;
  box-shadow: 0 8px 24px -10px rgba(179,101,91,0.5);
}

/* CINEMATIC HERO — real photo backdrop + readability scrim */
.hero-cinematic {
  position: relative;
  background-color: #160710;             /* fallback if image fails to load */
  background-image: url("hero.avif");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}
/* Readability scrim — keeps headline + body text legible regardless of what's in the photo */
.hero-cinematic::before {
  content: ""; position: absolute; inset: 0;
  background:
    /* darken left side where headline sits */
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 70%),
    /* soft vertical edge fade */
    linear-gradient(180deg, rgba(0,0,0,0.20) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.35) 100%);
  z-index: 0;
}
/* Vignette (kept) */
.hero-cinematic::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at center 50%, transparent 50%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}
/* Subject figure now hidden — real photo provides it */
.hero-figure { display: none; }
/* Body silhouette no longer needed */
.hero-figure::before {
  content: ""; display: none;
}
/* Head / upper shoulders — no longer needed with real photo */
.hero-figure::after { content: ""; display: none; }
/* Rim light hidden — real photo has its own lighting */
.hero-rim { display: none; }
/* Grain overlay — kept, but subtler over a real photo */
.hero-cinematic .grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(rgba(255,255,255,0.020) 1px, transparent 1.5px),
    radial-gradient(rgba(0,0,0,0.020) 1px, transparent 1.5px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 1px;
  mix-blend-mode: overlay;
  z-index: 2;
}
/* Smooth transition from hero into next dark section */
.hero-fade-out {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent 0%, rgba(8,3,8,0.6) 50%, var(--bg) 100%);
  pointer-events: none;
  z-index: 3;
}

/* Feature toggle list — Magnific right column */
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: rgba(255,255,255,0.22);
  transition: color .2s var(--ease-out);
  cursor: pointer;
  line-height: 1.1;
}
.feature-item:hover { color: rgba(255,255,255,0.55); }
.feature-item.active {
  color: #fff;
}
.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; }
}

/* HIGGSFIELD PRODUCT CARD — refined hover with subtle sheen */
.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);
}
.product-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 35%, transparent 65%, rgba(255,255,255,0.02) 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.55), 0 6px 16px rgba(0,0,0,0.3);
}
.product-card:hover::before { opacity: 1; }

.product-card-feature {
  /* Cream feature card (Higgsfield "DTC ADS" style) */
  background: var(--surface-cream);
  color: #1a1a1a;
  border: 1px solid var(--border);
}
.product-card-feature .meta { color: #1a1a1a; }
.product-card-feature .meta-sub { color: rgba(0,0,0,0.55); }

/* Card imagery preview block */
.card-frame {
  width: 100%;
  position: relative;
  overflow: hidden;
}
/* Inner visual block — color-tinted gradient with hint of imagery */
.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(255,59,154,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(16,185,129,0.50), transparent 60%), radial-gradient(at 75% 70%, rgba(34,211,238,0.40), transparent 70%), #0a1f1a; }
.frame-amber   { background: radial-gradient(at 35% 40%, rgba(245,158,11,0.50), transparent 60%), radial-gradient(at 75% 70%, rgba(255,59,154,0.40), transparent 70%), #1f1408; }
.frame-cyan    { background: radial-gradient(at 35% 40%, rgba(34,211,238,0.50), transparent 60%), radial-gradient(at 75% 70%, rgba(168,85,247,0.40), transparent 70%), #08141f; }
.frame-violet  { background: radial-gradient(at 35% 40%, rgba(168,85,247,0.50), transparent 60%), radial-gradient(at 75% 70%, rgba(255,59,154,0.40), transparent 70%), #14081f; }
.frame-mono    { background: linear-gradient(180deg, #1a1a1a 0%, #0e0e0e 100%); }

/* Higgsfield app-icon style — small rounded squircle */
.app-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3);
  border: 1px solid var(--border-1);
  flex-shrink: 0;
}

/* MCP & CLI style hero card — dark with grid of icons */
.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(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  position: relative;
}

/* Progress segmented bar (Stage 3) */
.progress-track {
  display: flex; gap: 4px;
  height: 6px;
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-track .seg {
  flex: 1;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.progress-track .seg.done { background: var(--lime); }
.progress-track .seg.active {
  background: var(--lime);
  position: relative;
}
.progress-track .seg.active::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), 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 */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: ringPulse 2s ease-out infinite;
}
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  70% { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,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 */
.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 */
.scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }

/* responsive */
@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)); }
}

/* Hide on mobile / Magnific feature list responsive */
@media (max-width: 980px) {
  .feature-list { display: none; }
  .hero-figure, .hero-rim { display: none; }
}

/* ─── REFINED MOCK-CONTENT PRIMITIVES ─────────────────────────────── */

/* Mock phone — more credible illustration */
.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.35), 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 — proper Apple-style with tail */
.chat-bubble {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  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;
}
.chat-bubble.dark {
  background: rgba(28,28,32,0.92);
  border-color: rgba(255,255,255,0.10);
  color: var(--fg);
}

/* Score bar visualization */
.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;
}
.score-row.dark .lbl { color: rgba(255,255,255,0.55); }
.score-row.dark .bar { background: rgba(255,255,255,0.08); }
.score-row.dark .fill { background: var(--lime); }
.score-row.dark .val { color: var(--fg); }

/* Tiny mock UI elements */
.mock-pill-row { display: flex; gap: 4px; flex-wrap: wrap; }
.mock-pill {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  color: var(--fg-1);
  letter-spacing: 0.04em;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08);
}
.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 (horizontal 12-stage indicator) ─────────────────── */
.stage-strip {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: nowrap;
}
.stage-strip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  transition: background .2s var(--ease-out);
}
.stage-strip .dot.done { background: var(--emerald); }
.stage-strip .dot.active {
  width: 12px; height: 12px;
  background: var(--lime);
  box-shadow: 0 0 16px rgba(179,101,91,0.55);
}
.stage-strip .seg-line {
  width: 16px; height: 1px;
  background: rgba(255,255,255,0.08);
}

/* ─── GENRE CARD (selectable tile) ─────────────────────────────────── */
.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-card-hi);
  border-color: var(--border-2);
  transform: translateY(-1px);
}
.genre-card.selected {
  background: linear-gradient(135deg, rgba(179,101,91,0.10) 0%, rgba(255,59,154,0.06) 100%);
  border-color: var(--lime);
  color: var(--fg);
}
.genre-card .check {
  position: absolute; top: 8px; right: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--lime);
  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: #0a0a0a; stroke-width: 3; fill: none; }

/* ─── FAMILY CARD (style family with expand) ───────────────────────── */
.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-card-hi);
  border-color: var(--border-2);
}
.family-card.expanded {
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(255,59,154,0.06) 0%, rgba(168,85,247,0.04) 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;
  display: none;
}
.family-card.expanded .family-card-body {
  display: block;
}
.family-card .family-card-head {
  cursor: pointer;
  user-select: none;
}

/* Variant chip (inside expanded family) */
.variant-chip {
  position: relative;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  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;
}
.variant-chip:hover:not(.selected) { background: rgba(255,255,255,0.06); border-color: var(--border-2); }
.variant-chip.selected {
  border-color: var(--pink);
  background: rgba(255,59,154,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-aesthetic dashed slot */
.custom-slot {
  border: 1.5px dashed rgba(255,59,154,0.35);
  background: rgba(255,59,154,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(255,59,154,0.65); background: rgba(255,59,154,0.08); }

/* ─── MODAL ───────────────────────────────────────────────────────── */
.backdrop-deep {
  background: rgba(0,0,0,0.7);
  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.7), 0 0 0 1px rgba(255,255,255,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(255,255,255,0.04); color: var(--fg); }
.modal-tab.active {
  background: rgba(255,59,154,0.10);
  color: var(--fg);
  border-color: rgba(255,59,154,0.30);
}
.modal-tab.active svg { color: var(--pink); }

/* Director card (Intelligence Center) */
.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(255,59,154,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 (visual / narrative / production sections) */
.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-card-hi); }

/* Technique pill (inside director card) */
.technique-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  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(255,59,154,0.12);
  border-color: rgba(255,59,154,0.30);
  color: var(--fg);
}

/* Slate / film-mark for stage strip context */
.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 — selectable, modern */
.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.30);
  color: var(--lime);
  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; }
}

/* Body sans utility for type pairing */
.font-body { font-family: var(--font-sans); }

