/* ============================================================
   Oi_iO — Roblox for brands
   Direction: dark editorial / data-forward. The numbers ARE the
   design. Rules (1px lines) structure the page like a printed
   annual report; violet is semantic: CTAs + data only.
   ============================================================ */

@font-face { font-family: 'Hauora'; src: url('../assets/fonts/Hauora-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hauora'; src: url('../assets/fonts/Hauora-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Hauora'; src: url('../assets/fonts/Hauora-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Hauora'; src: url('../assets/fonts/Hauora-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Hauora'; src: url('../assets/fonts/Hauora-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --bg: #08080c;
  --bg-tint: #0c0c13;
  --surface: #101018;
  --fg: #f2f1f7;
  --muted: #a7a5b8;
  --faint: #6e6c80;
  --line: rgba(160, 156, 190, 0.16);
  --line-strong: rgba(160, 156, 190, 0.30);
  --accent: #7c6fff;
  --accent-hi: #a89bff;
  --accent-dim: rgba(124, 111, 255, 0.12);

  --font: 'Hauora', system-ui, sans-serif;
  --text-hero: clamp(2.5rem, 5.6vw, 4.8rem);
  --text-h2: clamp(1.85rem, 3.4vw, 3rem);
  --text-stat: clamp(2.4rem, 3.6vw, 3.4rem);

  --space-section: clamp(5.5rem, 4rem + 6vw, 10rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);

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

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--accent-hi); }
s { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* film grain — kept: it sells "cinematic" without weight */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* a11y */
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 99;
  background: var(--accent);
}

/* ---------- shared type ---------- */
.label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 18px;
}
.label::before { content: '⟶ '; color: var(--accent); letter-spacing: 0; }
h1 {
  font-size: var(--text-hero); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.02em; max-width: 15ch;
}
h2 { font-size: var(--text-h2); font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; max-width: 22ch; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 46ch; margin-top: 28px; }
.sec-sub { color: var(--muted); margin-top: 16px; max-width: 52ch; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s var(--ease), border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8, 8, 12, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 36px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); transition: color .2s; display: flex; align-items: center; gap: 7px;
  padding: 6px 0;
}
.nav-idx { color: var(--accent); font-size: 10px; font-weight: 700; }
.nav-links a:hover { color: var(--fg); }

.nav-toggle {
  display: none; margin-left: 12px; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--fg); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 34px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  border-radius: 8px; border: 1px solid transparent;
  transition: background .2s, transform .2s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 8px 32px rgba(124, 111, 255, 0.28);
}
.btn:hover { background: #8d81ff; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124, 111, 255, 0.4); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 13px; box-shadow: none; }
.link-arrow {
  display: inline-flex; align-items: center; min-height: 52px; padding: 14px 6px;
  color: var(--muted); font-weight: 600; font-size: 15px;
  border-bottom: 1px solid var(--line-strong);
  transition: color .2s, border-color .2s;
}
.link-arrow:hover { color: var(--fg); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding-top: 120px; }
.hero-ring {
  position: absolute; right: -12vw; top: -8vw;
  width: min(46vw, 640px); opacity: .85; pointer-events: none;
  filter: saturate(1.1);
}
.hero-grid { position: relative; z-index: 2; padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.hero-cta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; align-items: center; }

.hero-stats-band { position: relative; z-index: 2; border-top: 1px solid var(--line); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stats > div { padding: 26px 28px 30px 0; border-left: 1px solid var(--line); padding-left: 28px; }
.hero-stats > div:first-child { border-left: none; padding-left: 0; }
.hero-stats dt { font-size: var(--text-stat); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.hero-stats dt i { font-style: normal; font-size: 0.55em; color: var(--accent); font-weight: 800; }
.hero-stats dd { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 30s linear infinite; align-items: center; }
.marquee span { font-size: 13px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.mq-dot { color: var(--accent) !important; letter-spacing: 0 !important; }
.mq-hl { color: var(--accent-hi) !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: var(--space-section) 0; position: relative; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head {
  display: grid; grid-template-columns: 130px 1fr; gap: 24px;
  align-items: start; margin-bottom: clamp(2.8rem, 5vw, 4.2rem);
  padding-top: 26px; border-top: 1px solid var(--line-strong);
}
.sec-num {
  font-size: clamp(3.2rem, 6vw, 5rem); font-weight: 800; line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
  letter-spacing: -0.02em;
}
.sec-num.ghost { -webkit-text-stroke-color: var(--line-strong); }

/* ---------- stat grid (bento of numbers) ---------- */
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat {
  padding: 34px 28px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 60%, rgba(124, 111, 255, 0.04));
  transition: background .3s var(--ease);
  position: relative;
}
.stat::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.stat:hover { background: var(--accent-dim); }
.stat:hover::after { transform: scaleX(1); }
.stat-num { display: block; font-size: var(--text-stat); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--accent-hi); font-variant-numeric: tabular-nums; }
.stat-num i { font-style: normal; font-size: 0.55em; }
.stat p { font-weight: 600; margin-top: 14px; line-height: 1.4; }
.stat small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 10px; }

.pull {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 600; line-height: 1.4;
  max-width: 34ch;
  padding-left: 26px; border-left: 3px solid var(--accent);
}

/* ---------- versus table ---------- */
.versus { border: 1px solid var(--line); background: var(--surface); }
.vs-row { display: grid; grid-template-columns: 150px 1fr 1fr; border-top: 1px solid var(--line); }
.vs-row:first-child { border-top: none; }
.vs-row > div { padding: 26px 30px; }
.vs-head > div { padding: 18px 30px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.vs-head .vs-win { color: var(--accent-hi); }
.vs-axis { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; }
.vs-row b { font-size: 22px; font-weight: 800; display: block; letter-spacing: -0.01em; }
.vs-row small { color: var(--muted); font-size: 13.5px; display: block; margin-top: 6px; }
.vs-win { background: var(--accent-dim); border-left: 1px solid rgba(124, 111, 255, 0.35); }
.vs-win b { color: var(--accent-hi); }

/* ---------- cases ---------- */
.case {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.case:last-child { border-bottom: none; }
.case.flip .case-media { order: 2; }
.case-media { position: relative; overflow: hidden; border: 1px solid var(--line); }
.case-media img { transition: transform .7s var(--ease); aspect-ratio: 1400 / 845; object-fit: cover; }
.case:hover .case-media img { transform: scale(1.03); }
.case-chip {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(8, 8, 12, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--accent-hi); padding: 8px 14px; border: 1px solid var(--line);
}
.case h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; }
.case-lead { color: var(--muted); margin-top: 14px; font-size: 16.5px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.kpis > div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpis dt { color: var(--accent-hi); font-size: 24px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpis dd { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ---------- measurement triptych ---------- */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.panel { padding: 38px 34px; border-left: 1px solid var(--line); }
.panel:first-child { border-left: none; }
.panel h4 { font-size: 17px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.panel-idx {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; font-size: 12px; font-weight: 800;
  border: 1px solid var(--accent); color: var(--accent-hi); border-radius: 50%;
}
.panel li { color: var(--muted); padding: 8px 0 8px 22px; position: relative; font-size: 14.5px; border-top: 1px solid var(--line); }
.panel li:first-child { border-top: none; }
.panel li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); counter-reset: step; }
.step { padding: 36px 30px 42px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.step-n {
  font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
  display: block; margin-bottom: 20px;
}
.step h4 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.step-go { display: block; margin-top: 16px; color: var(--accent-hi); font-size: 14px; font-weight: 700; }

/* ---------- packages ---------- */
.pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pkg { border: 1px solid var(--line); background: var(--surface); padding: 40px 36px 36px; position: relative; }
.pkg-hl { border-color: rgba(124, 111, 255, 0.55); }
.pkg-hl::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(124, 111, 255, 0.10), transparent 55%);
}
.pkg-no { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 14px; }
.pkg h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 800; }
.pkg-sub { color: var(--faint); font-size: 14px; margin: 6px 0 24px; }
.pkg li { color: var(--muted); padding: 10px 0 10px 24px; position: relative; font-size: 15px; border-top: 1px solid var(--line); }
.pkg li::before { content: '+'; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.pkg-time { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 14px; }
.pkg-time b { color: var(--fg); font-weight: 700; }
.note { color: var(--faint); margin-top: 28px; font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta { overflow: hidden; }
.cta-ring { position: absolute; right: -16vw; bottom: -28vw; width: min(48vw, 620px); opacity: .45; pointer-events: none; }
.cta-box {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  border: 1px solid var(--line-strong); background: var(--surface);
  padding: clamp(2.2rem, 5vw, 4rem);
}
.cta-box::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(124, 111, 255, 0.08), transparent 50%); }
.contact-list { display: flex; flex-direction: column; margin: 30px 0 34px; border-top: 1px solid var(--line); max-width: 520px; }
.contact-link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 15px 2px; border-bottom: 1px solid var(--line); min-height: 44px;
  transition: border-color .2s;
}
.contact-link span { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.contact-link b { color: var(--fg); font-weight: 600; font-size: 15.5px; transition: color .2s; }
.contact-link:hover { border-bottom-color: var(--accent); }
.contact-link:hover b { color: var(--accent-hi); }
.qr { width: 180px; height: auto; background: #fff; padding: 12px; border: 1px solid var(--line); }

/* ---------- footer ---------- */
.footer-word {
  font-size: clamp(5rem, 18vw, 16rem); font-weight: 800; line-height: 0.9;
  text-align: center; letter-spacing: -0.03em; user-select: none;
  color: transparent; -webkit-text-stroke: 1.5px rgba(124, 111, 255, 0.35);
  margin-top: clamp(1rem, 4vw, 3rem);
}
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: -2px; }
.footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-logo { height: 24px; width: auto; }
.footer p { color: var(--muted); font-size: 14px; }
.footer-note { font-size: 12px !important; color: #8f8d9e !important; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- reveal (JS-gated: no JS -> everything visible) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .d1 { transition-delay: .07s; }
html.js .d2 { transition-delay: .14s; }
html.js .d3 { transition-delay: .21s; }
html.js .d4 { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .stat::after, .case-media img, .btn { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .statgrid { grid-template-columns: 1fr 1fr; }
  .hero-ring { opacity: .35; }
  .triptych { grid-template-columns: 1fr; }
  .panel { border-left: none; border-top: 1px solid var(--line); }
  .panel:first-child { border-top: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin-left: 0;
    background: rgba(8, 8, 12, 0.95);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 15px 0; min-height: 48px; border-top: 1px solid var(--line); }
  .nav-links a:first-child { border-top: none; }

  .hero { min-height: auto; padding-top: 110px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div { padding: 20px 0 22px 20px; }
  .hero-stats > div:nth-child(odd) { border-left: none; padding-left: 0; }

  .sec-head { grid-template-columns: 1fr; gap: 10px; }
  .sec-num { font-size: 2.6rem; }

  .statgrid { grid-template-columns: 1fr; }
  .vs-row { grid-template-columns: 84px 1fr 1fr; }
  .vs-row > div { padding: 16px 12px; }
  .vs-head > div { padding: 12px; font-size: 10px; }
  .vs-axis { font-size: 10px; }
  .vs-row b { font-size: 16px; }
  .vs-row small { font-size: 11.5px; }

  .case, .case.flip { grid-template-columns: 1fr; gap: 22px; }
  .case.flip .case-media { order: 0; }

  .pkgs { grid-template-columns: 1fr; }
  .cta-box { grid-template-columns: 1fr; }
  .qr { justify-self: start; }
}
