@font-face {
  font-family: 'Studio Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

/* Native au.jeanverseis Studio Design Tokens */
:root {
  color-scheme: light;
  --font-body: 'Studio Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Studio Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --text: #242326;
  --text-strong: #17161a;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f7f7f8;
  --border: #e7e5e9;
  --border-strong: #b5b2bc;
  --muted: #706c77;
  --accent: #713bc1;
  --accent-hover: #5f2ca9;
  --accent-foreground: #ffffff;
  --accent-text: #6631b2;
  --accent-soft: #f4effb;

  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  scroll-padding-top: 5rem;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --text: #f0eef3;
  --text-strong: #ffffff;
  --page: #19181b;
  --surface: #211f24;
  --surface-subtle: #26232b;
  --border: #3c3743;
  --border-strong: #6e6678;
  --muted: #b4afbc;
  --accent: #a78bfa;
  --accent-hover: #c4b5fd;
  --accent-foreground: #19181b;
  --accent-text: #c6a6f4;
  --accent-soft: #312640;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--page); color: var(--text); font-family: var(--font-body); }
body { margin: 0; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; background: var(--page); color: var(--text); }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.wrap-mid { width: min(860px, calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { width: min(640px, calc(100% - 48px)); margin-inline: auto; }

.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 30; top: 10px; left: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-weight: 600; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-snap), transform .58s var(--ease-snap); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar, .brand, .nav-actions, .lang-switch { display: flex; align-items: center; }
.navbar { min-height: 62px; justify-content: space-between; gap: 16px; }
.brand { gap: 9px; font-family: var(--font-display); font-size: .92rem; font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #19181b; border: 1px solid var(--border); flex: none; }

.sign-in { font-size: .82rem; font-weight: 600; color: var(--muted); }
.sign-in:hover { color: var(--text-strong); }

.nav-actions { gap: 10px; }
.lang-switch { padding: 2px; border-radius: 8px; background: var(--surface-subtle); border: 1px solid var(--border); }
.lang-switch a { display: grid; place-items: center; min-width: 28px; min-height: 26px; padding: 0 6px; border-radius: 6px; font-size: .72rem; font-weight: 700; color: var(--muted); }
.lang-switch [aria-current] { background: var(--surface); color: var(--accent-text); }

.theme-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.theme-btn:hover { color: var(--text-strong); border-color: var(--border-strong); }
.icon-sun { display: none; }
html[data-theme='dark'] .icon-moon { display: none; }
html[data-theme='dark'] .icon-sun { display: block; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 18px; border-radius: 8px; font-size: .86rem; font-weight: 650; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: background-color .15s ease, border-color .15s ease, transform .22s var(--ease-back); }
.button:hover { transform: translateY(-1px); border-color: var(--border-strong); background: var(--surface-subtle); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-foreground); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.nav-cta { min-height: 34px; padding: 0 13px; font-size: .8rem; }
.compact-btn { min-height: 32px; padding: 0 12px; font-size: .76rem; }

/* 1. HERO */
.hero-section { padding-block: clamp(28px, 4.2vw, 52px) clamp(44px, 5.5vw, 72px); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 384px); gap: clamp(28px, 4.5vw, 56px); align-items: center; }

.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hero-ghost-canvas { width: 48px; height: 44px; display: block; flex: none; }
.genre-pill-slot { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 28px; padding: 0 12px; border-radius: 999px; background: linear-gradient(135deg, #242326 0%, #713bc1 100%); color: #fff; font-family: var(--font-display); font-size: .78rem; font-weight: 700; overflow: hidden; transition: background .45s var(--ease-expo); }
.genre-pill-slot[data-active='1'] { background: linear-gradient(135deg, #713bc1 0%, #4f46e5 100%); }
.genre-pill-slot[data-active='2'] { background: linear-gradient(135deg, #be185d 0%, #713bc1 100%); }
.genre-pill-slot[data-active='3'] { background: linear-gradient(135deg, #0f766e 0%, #4338ca 100%); }
.genre-slot-item { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(105%); transition: transform .5s var(--ease-expo), opacity .3s ease; }
.genre-slot-item.is-active { opacity: 1; transform: translateY(0); }
.genre-slot-item.is-leaving { opacity: 0; transform: translateY(-105%); }

.hero-h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; line-height: 1.04; letter-spacing: -.042em; color: var(--text-strong); text-wrap: balance; }
.hero-h1 em { font-style: normal; color: var(--accent); }
.hero-lede { margin-top: 14px; max-width: 46ch; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fandom-line { margin-top: 18px; font-size: .78rem; font-weight: 600; color: var(--muted); }

/* Hero Right: Real Studio Phone */
.hero-device-stage {
  --phone-scale: .78;
  padding: 14px 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 44%),
    var(--surface-subtle);
}
.device-chrome { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.device-chrome-right { display: flex; align-items: center; gap: 6px; }
.code-chip-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); font-size: .72rem; font-weight: 600; color: var(--muted); transition: border-color .15s ease, color .15s ease; }
.code-chip-btn:hover { border-color: var(--accent); color: var(--text-strong); }
.code-chip-btn strong { font-family: var(--font-mono); color: var(--accent-text); letter-spacing: 1.2px; }
.seg-mini { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.seg-mini button { min-height: 24px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; font-size: .72rem; font-weight: 600; color: var(--muted); }
.seg-mini button.is-active { background: var(--accent-soft); color: var(--accent-text); }
.mini-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .9rem; transition: transform .24s var(--ease-back); }
.mini-btn:hover { color: var(--text-strong); transform: rotate(40deg); }

.phone-preview {
  color-scheme: light;
  position: relative;
  width: calc(393px * var(--phone-scale));
  max-width: 100%;
  aspect-ratio: 393 / 852;
  overflow: hidden;
  border-radius: calc(48px * var(--preview-scale, var(--phone-scale)));
  background: #14141d;
  margin: 0 auto;
  box-shadow: 0 0 0 3px #353746, 0 22px 44px -14px rgba(24, 18, 42, .32);
}
.phone-preview iframe {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  width: 393px;
  height: 852px;
  transform: scale(var(--preview-scale, var(--phone-scale)));
  transform-origin: top left;
  background: #14141d;
}
.preview-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #141222; color: #e6e4f7; font-size: .78rem; font-weight: 600; transition: opacity .26s var(--ease-snap); }
.preview-loading.is-hidden { opacity: 0; pointer-events: none; }
.preview-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(196, 181, 253, .28); border-top-color: #a78bfa; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 2. VISUAL STATEMENT + 30FPS MOTION REEL */
.section { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--border); }
.section-subtle { background: var(--surface-subtle); }

.statement { font-family: var(--font-display); font-size: clamp(1.55rem, 3.2vw, 2.35rem); line-height: 1.18; letter-spacing: -.032em; font-weight: 700; text-align: center; text-wrap: balance; }
.statement span { color: var(--muted); }
.statement strong { color: var(--text-strong); font-weight: 800; }

.motion-viewport { margin-top: 24px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #f7f8fd; aspect-ratio: 16 / 9; box-shadow: 0 18px 44px -20px rgba(24, 18, 42, .18); }
.motion-canvas { width: 100%; height: 100%; display: block; }

/* 3. 22 REAL APPS LOGO GRID */
.apps-head { text-align: center; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; letter-spacing: -.035em; color: var(--text-strong); }
.section-head p { margin-top: 6px; font-size: .92rem; color: var(--muted); }

.app-icon-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: transform .24s var(--ease-back), border-color .16s ease, box-shadow .22s var(--ease-snap); }
.app-tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 24px -14px rgba(113, 59, 193, .28); }
.app-tile-logo { display: block; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(20, 18, 30, .12), 0 0 0 1px rgba(20, 18, 30, .06); }
.app-tile-logo svg { display: block; width: 100%; height: 100%; }
.app-tile-name { font-size: .75rem; font-weight: 650; color: var(--text); text-align: center; line-height: 1.2; }

/* 4. COMPACT FAQ */
.faq-title { font-family: var(--font-display); font-size: clamp(1.45rem, 2.8vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); }
.faq-list { margin-top: 18px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding-block: 14px; }
.faq-item summary { font-family: var(--font-display); font-weight: 700; font-size: .94rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-strong); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.15rem; color: var(--accent-text); flex: none; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 8px; font-size: .86rem; line-height: 1.6; color: var(--muted); }

/* 5. OBSIDIAN-VIOLET FINALE */
.closing-section { padding-block: clamp(32px, 5vw, 56px); }
.closing-card { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 60px) 24px; border-radius: 18px; text-align: center; color: #f6f2e9; background: radial-gradient(circle at 28% 72%, rgba(113, 59, 193, .46), transparent 56%), radial-gradient(circle at 80% 24%, rgba(139, 92, 246, .24), transparent 48%), #0d0917; border: 1px solid rgba(167, 139, 250, .28); }
.closing-grid-bg { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px); background-size: 14px 14px; opacity: .45; pointer-events: none; }
.closing-content { position: relative; z-index: 1; }
.closing-ghost-canvas { width: 80px; height: 68px; display: block; margin: 0 auto 8px; }
.closing-card h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 3.8vw, 2.7rem); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; color: #fff; }
.closing-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }
.closing-primary { background: #f6f2e9; color: #19181b; border-color: #f6f2e9; }
.closing-primary:hover { background: #fff; border-color: #fff; color: #19181b; }
.closing-secondary { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .24); }
.closing-secondary:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* Footer */
.footer, .footer nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.footer { border-top: 1px solid var(--border); padding-block: 22px 34px; color: var(--muted); font-size: .82rem; }
.footer a:hover { color: var(--text-strong); text-decoration: underline; text-underline-offset: .22em; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-device-stage { max-width: 384px; width: 100%; margin-inline: auto; }
  .app-icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap, .wrap-mid, .wrap-narrow { width: calc(100% - 28px); }
  .navbar { gap: 8px; }
  .nav-cta { display: none; }
  .app-icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .preview-spinner { animation: none; }
}
