/* Imagine Universe — company site (imagineuniverse.net).
   Colours, type and motion follow the "Black stage" system in docs/brand/visual.md. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --canvas: #060708;
  --nav: #08090a;
  --surface: #0e1012;
  --surface-raised: #14171a;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --ink: #f4f6f8;
  --ink-secondary: #a5adb6;
  --ink-caption: #89929d;
  --ink-faint: #6e7681;
  --accent: #ff681c;
  --accent-hover: #ff7a32;
  --accent-pressed: #e9530c;
  --on-accent: #090b0c;
  --accent-ink: #ffb08b;
  --focus: #ff8a4c;
  --success: #6ee7b7;
  --info: #67e8f9;
  --warning: #fcd34d;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-panel: 16px;
  --ease-enter: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; max-width: 22ch; }
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  padding: 8px 12px; border-radius: var(--radius-control);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  height: 64px; padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms var(--ease-enter), border-color 200ms var(--ease-enter);
}
.site-header.scrolled { background: rgb(8 9 10 / 0.86); border-bottom-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  width: 22px; height: 22px; flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M12 10v28c0 13 8 20 20 20s20-7 20-20V10' fill='none' stroke='%23ff681c' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.site-nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.site-nav a { color: var(--ink-secondary); text-decoration: none; transition: color 120ms; }
.site-nav a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: var(--radius-control); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}
.button-primary { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.button-primary:hover { background: var(--accent-hover); }
.button-primary:active { background: var(--accent-pressed); }
.button-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.button-secondary:hover { background: var(--surface-raised); }
.button-small { height: 36px; padding: 0 14px; font-size: 14px; }
.button-large { height: 56px; padding: 0 28px; font-size: 17px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(6 7 8 / 0.92) 0%, rgb(6 7 8 / 0.7) 42%, rgb(6 7 8 / 0.1) 75%),
    linear-gradient(0deg, var(--canvas) 0%, rgb(6 7 8 / 0) 38%);
}
.hero-inner { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 140px var(--gutter) 88px; }
.eyebrow, .kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-caption);
}
.hero h1 { margin-top: 20px; font-size: clamp(36px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.035em; max-width: 19ch; }
.lede { margin-top: 24px; max-width: 58ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-secondary); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 40px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-caption); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.hero-facts li:first-child::before { background: var(--success); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--nav); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#product { border-bottom: 0; }
.section h2 { margin-top: 16px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; color: var(--ink-secondary); max-width: 1040px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.card p { margin-top: 8px; color: var(--ink-secondary); font-size: 15px; }
.num { display: block; margin-bottom: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }

/* Product */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.feature { display: flex; flex-direction: column; gap: 4px; }
.feature-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.feature-wide h3 { font-size: 22px; }
.feature-wide p { font-size: 16px; max-width: 46ch; }

.mock { margin: 20px 0 0; padding: 16px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-control); font-size: 13px; list-style: none; }
.mock-record { margin: 0; }
.mock-head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--ink-caption); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.mock-head b { color: var(--ink-secondary); font-weight: 500; letter-spacing: 0.06em; }
.mock-record dl { margin: 0; }
.mock-record dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mock-record dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.mock-record dt { color: var(--ink-caption); }
.mock-record dd { margin: 0; color: var(--ink); }
.mock-queue li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-secondary); }
.mock-queue li:last-child { border-bottom: 0; }
.mock b { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.mock b::before, .mock dd.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mock dd.ok { display: inline-flex; align-items: center; gap: 6px; }
.ok { color: var(--success); }
.back { color: var(--warning); }
.wait { color: var(--info); }

/* Taste model */
.section-taste { padding: 0 0 clamp(72px, 10vw, 128px); background: var(--nav); border-bottom: 1px solid var(--line); }
.taste { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding: clamp(24px, 4vw, 40px); border: 1px solid rgb(255 104 28 / 0.4); border-radius: var(--radius-panel); background: rgb(255 104 28 / 0.06); }
.taste h2 { margin-top: 16px; }
.taste > p { color: var(--ink-secondary); font-size: 17px; }
.badge { display: inline-flex; align-items: center; height: 22px; margin-left: 10px; padding: 0 10px; border-radius: 999px; border: 1px solid rgb(255 104 28 / 0.4); color: var(--accent-ink); font-size: 11px; letter-spacing: 0.08em; vertical-align: middle; }

/* How */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.steps li p { margin-top: 8px; color: var(--ink-secondary); font-size: 15px; }
.goal { display: flex; align-items: center; gap: 24px; margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); max-width: 760px; }
.goal strong { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent-ink); line-height: 1; }
.goal p { color: var(--ink-secondary); font-size: 15px; }
.goal b { color: var(--ink); font-weight: 600; }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 0; }
.roles div { padding: 20px 0 0; border-top: 1px solid var(--line-strong); }
.roles dt { font-weight: 600; }
.roles dd { margin: 6px 0 0; color: var(--ink-secondary); font-size: 15px; }

/* Work */
.consistency { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; margin-top: 48px; }
.consistency-copy p { margin-top: 8px; color: var(--ink-secondary); font-size: 15px; }
.consistency-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.consistency-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius-card); border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-card); border: 1px solid var(--line); }
.gallery figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-caption); }
.note { margin-top: 24px; font-size: 13px; color: var(--ink-caption); }

/* Security */
.security { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.security > div > p { margin-top: 24px; color: var(--ink-secondary); max-width: 44ch; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.checklist li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.checklist h3 { font-size: 16px; }
.checklist p { margin-top: 6px; color: var(--ink-secondary); font-size: 14px; }

/* Status */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.stat { padding: 24px 0 0; border-top: 1px solid var(--line-strong); }
.stat strong { display: block; font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat p { margin-top: 12px; color: var(--ink-secondary); font-size: 15px; max-width: 34ch; }
.modules { margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.modules h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-caption); }
.modules p { margin-top: 10px; color: var(--ink-secondary); }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.roadmap li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.roadmap li.is-now { border-color: rgb(255 104 28 / 0.4); background: rgb(255 104 28 / 0.06); }
.roadmap span { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-caption); }
.roadmap li.is-now span { color: var(--accent-ink); }
.roadmap h3 { margin-top: 12px; }
.roadmap p { margin-top: 6px; color: var(--ink-secondary); font-size: 15px; }

/* Investors */
.investors { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.investors > div > p { margin-top: 20px; color: var(--ink-secondary); max-width: 50ch; }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 8px 24px; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-caption); }
.facts dd { margin: 0; }

/* Founder */
.founder { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
.founder-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-panel); border: 1px solid var(--line); }
.founder-copy h2 { margin-top: 16px; }
.founder-name { margin-top: 24px; color: var(--ink-secondary); }
.founder-name strong { color: var(--ink); font-weight: 600; }
.founder-copy p + p { margin-top: 16px; }
.founder-copy p:not(.kicker):not(.founder-name) { color: var(--ink-secondary); max-width: 60ch; }

/* Contact */
.section-contact { text-align: center; }
.contact { display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: none; }
.contact > p:not(.kicker) { margin-top: 20px; max-width: 52ch; color: var(--ink-secondary); }
.contact .button { margin-top: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 13px; color: var(--ink-caption); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-inner p { margin-right: auto; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner nav a { color: var(--ink-secondary); text-decoration: none; }
.footer-inner nav a:hover { color: var(--ink); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 320ms var(--ease-enter), transform 320ms var(--ease-enter); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.instant { transition: none; }

/* Privacy page */
.page { padding: 128px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { margin-top: 16px; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.page .meta { margin-top: 16px; font-size: 14px; color: var(--ink-caption); }
.page h2 { margin-top: 40px; font-size: 20px; max-width: none; letter-spacing: -0.01em; }
.page p, .page li { color: var(--ink-secondary); }
.page p { margin-top: 12px; }
.page ul { margin: 12px 0 0; padding-left: 20px; }
.page li + li { margin-top: 6px; }
.page a { color: var(--accent-ink); }
.page .back { display: inline-block; margin-top: 48px; color: var(--ink-secondary); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pains { grid-template-columns: repeat(2, 1fr); }
  .consistency { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .security, .investors { grid-template-columns: 1fr; gap: 40px; }
  .founder { grid-template-columns: 280px 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-header .button { margin-left: auto; }
  .two-col, .feature-wide, .audience, .roles, .stats, .roadmap { grid-template-columns: 1fr; }
  .taste { grid-template-columns: 1fr; gap: 20px; }
  .consistency-strip { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:last-child { grid-column: 1 / -1; }
  .gallery figure:last-child img { aspect-ratio: 16 / 10; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 320px; }
}

@media (max-width: 560px) {
  .hero { min-height: 88vh; }
  .hero-media img { object-position: 78% 50%; }
  .hero-shade { background: linear-gradient(0deg, var(--canvas) 6%, rgb(6 7 8 / 0.78) 42%, rgb(6 7 8 / 0.25) 72%, rgb(6 7 8 / 0.1) 100%); }
  .hero-inner { padding-top: 38vh; }
  .hero-inner { padding-bottom: 56px; }
  .pains, .checklist { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:last-child img { aspect-ratio: 3 / 4; }
  .facts { padding: 4px 16px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .goal { flex-direction: column; align-items: flex-start; gap: 12px; }
  .actions .button { flex: 1 1 100%; }
  .button-large { font-size: 16px; padding: 0 20px; }
  .footer-inner p { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .site-header, .button { transition: none; }
}

.push { margin-left: auto; }
