/* ===========================================================
   AXORIS CAPITAL — landing (theme locked to /lab/1)
   =========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #04060a; --bg2: #070b12; --panel: #0a0f18; --panel2: #0c1220;
  --line: rgba(140,160,190,0.10); --line2: rgba(140,160,190,0.20);
  --ink: #eef2f7; --muted: #b2bcca; --faint: #5a6472;
  --accent: #22d3ee; --accent2: #3b82f6; --violet: #8b5cf6; --amber: #f59e0b;
  --glow: rgba(34,211,238,0.35); --gold: #c9a227; --ok: #34d399;
  --fdisp: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --fbody: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --fmono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--fbody);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.5;
}
body.loading { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--fmono); letter-spacing: 0.18em; text-transform: uppercase; }
.kick { font-family: var(--fmono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.acc { color: var(--accent); }

/* ---------- ambient background grid ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(110% 80% at 12% -10%, rgba(34,211,238,0.07), transparent 55%),
    radial-gradient(80% 60% at 100% 8%, rgba(59,130,246,0.05), transparent 60%);
}
.ambient::after { content:""; position:absolute; inset:0;
  background-image: radial-gradient(rgba(140,160,190,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 96%, transparent);
}
main, nav { position: relative; z-index: 1; }

/* ===========================================================
   PRELOADER — "AC" particle morph
   =========================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.done { opacity: 0; visibility: hidden; }
#preloader canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#preloader #pl-logo { position: absolute; left: 50%; top: 50%; width: 42vmin; height: 42vmin; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; filter: drop-shadow(0 0 26px rgba(34,211,238,0.22)); }
#preloader .pl-cap { position: absolute; bottom: 40px; left: 0; right: 0; text-align: center;
  font-family: var(--fmono); font-size: 11px; letter-spacing: 0.24em; color: var(--faint); }
#preloader .pl-bar { position: absolute; bottom: 72px; left: 50%; transform: translateX(-50%);
  width: 180px; height: 2px; background: var(--line2); overflow: hidden; border-radius: 2px; }
#preloader .pl-bar i { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--accent);
  box-shadow: 0 0 12px var(--glow); }

/* ===========================================================
   NAV
   =========================================================== */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background 0.3s, border-color 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform;
  border-bottom: 1px solid transparent; }
nav.scrolled { background: rgba(4,6,10,0.72); backdrop-filter: blur(14px); border-color: var(--line); }
nav.hide { transform: translateY(-100%); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
nav .brand { display: flex; align-items: center; gap: 11px; font-family: var(--fmono); font-size: 14px; letter-spacing: 0.2em; }
nav .brand .dot { width: 13px; height: 13px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 16px var(--glow); }
nav .brand .brand-mark { width: 24px; height: 24px; display: block; }
nav .links { display: flex; gap: 30px; align-items: center; }
nav .links a { font-size: 13.5px; color: var(--muted); transition: color 0.2s; }
nav .links a:hover { color: var(--ink); }
.btn { font-family: var(--fbody); font-weight: 600; font-size: 13.5px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line2); color: var(--ink); background: transparent; cursor: pointer; transition: all 0.2s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.solid { background: var(--accent); color: #04121a; border-color: var(--accent); box-shadow: 0 0 24px -6px var(--glow); }
.btn.solid:hover { background: #38dcf0; color: #04121a; }
@media (max-width: 720px){ nav .links a:not(.btn){ display:none; } }

/* ===========================================================
   Reveal-on-scroll utility
   =========================================================== */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; } .rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; } .rv.d4 { transition-delay: 0.32s; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 80px; }
.hero .tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fmono); font-size: 11.5px;
  letter-spacing: 0.16em; color: var(--accent); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 15px; margin-bottom: 26px; }
.hero .tag .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.hero h1 { font-family: var(--fdisp); font-weight: 700; font-size: clamp(40px, 6.4vw, 82px); line-height: 1.02;
  letter-spacing: -0.02em; max-width: 15ch; }
.hero h1 .g { background: linear-gradient(100deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: clamp(16px, 1.7vw, 21px); color: var(--muted); max-width: 60ch; margin-top: 26px; line-height: 1.5; }
.hero .cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero .chips { display: flex; gap: 10px; margin-top: 42px; flex-wrap: wrap; }
.hero .chips span { font-family: var(--fmono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--accent);
  border: 1px solid var(--line2); border-radius: 999px; padding: 8px 15px; }

/* ===========================================================
   SECTION scaffolding
   =========================================================== */
section { padding: 110px 0; position: relative; }
.shead { max-width: 760px; margin-bottom: 54px; }
.shead h2 { font-family: var(--fdisp); font-weight: 700; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08;
  letter-spacing: -0.015em; margin-top: 14px; }
.shead p { font-size: 17px; color: var(--muted); margin-top: 16px; max-width: 60ch; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat { padding: 0 34px; } .stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .big { font-family: var(--fdisp); font-weight: 700; font-size: clamp(40px, 5vw, 62px); letter-spacing: -0.02em; line-height: 1; }
.stat .big .u { color: var(--accent); }
.stat .cap { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.stat .src { font-family: var(--fmono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.04em; margin-top: 8px; }
@media (max-width: 820px){ .stats{ grid-template-columns:1fr; gap:34px } .stat{ padding-left:0 } .stat+.stat{ border-left:none; border-top:1px solid var(--line); padding-top:34px } }

/* cards grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.card .n { font-family: var(--fmono); font-size: 22px; color: var(--accent); font-weight: 600; }
.card h3 { font-family: var(--fdisp); font-weight: 600; font-size: 18px; margin: 12px 0 8px; letter-spacing: -0.005em; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.card.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 20px 60px -30px var(--glow); }
@media (max-width: 900px){ .grid3,.grid4{ grid-template-columns:1fr } }

/* banner */
.banner { border: 1px solid var(--accent); border-radius: 14px; padding: 22px 26px; background: rgba(34,211,238,0.05);
  font-family: var(--fmono); font-size: 15px; letter-spacing: 0.02em; color: var(--accent); text-align: center; }

/* ===========================================================
   NODE GRAPH (how it works) — /graph inspired
   =========================================================== */
.graph-sec { background: linear-gradient(180deg, transparent, rgba(6,9,15,0.6), transparent); }
/* native interactive system map */
.axg { position: relative; width: 100%; margin: 30px 0 0; overflow: hidden; border: 1px solid var(--line2); border-radius: 18px; background: rgba(5,7,12,0.6); }
.axg-stage { position: absolute; top: 0; left: 0; width: 1240px; height: 660px; transform-origin: top left; }
.axg-edges { position: absolute; inset: 0; width: 1240px; height: 660px; pointer-events: none; }
.axg-e-base { stroke: rgba(148,184,255,0.10); stroke-width: 1.1; transition: stroke .4s, stroke-width .4s; }
.axg-e-base.hot { stroke: url(#axgedge); stroke-width: 2; }
@keyframes axg-march { to { stroke-dashoffset: -40; } }
.axg-e-flow { stroke: rgba(96,141,255,0.28); stroke-width: 1.2; animation: axg-march 2.6s linear infinite; transition: stroke .4s, stroke-width .4s; }
.axg-e-flow.hot { stroke: #22d3ee; stroke-width: 2.2; animation-duration: 1s; }
@media (prefers-reduced-motion: reduce){ .axg-e-flow { animation: none; } }
.axg-cloud { position: absolute; border: 1px dashed var(--line2); border-radius: 16px; pointer-events: none; }
.axg-cloud span { position: absolute; top: -9px; left: 16px; background: #05070c; padding: 0 8px; font-family: var(--fmono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.axg-node { position: absolute; text-align: left; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(148,184,255,0.14); background: linear-gradient(180deg, rgba(148,184,255,0.05), rgba(148,184,255,0.015)), #0a0e16; cursor: pointer; transition: border-color .4s, box-shadow .4s, transform .2s; }
.axg-node:hover { transform: translateY(-2px); }
.axg-node.hot { border-color: rgba(34,211,238,0.6); box-shadow: 0 0 30px rgba(34,211,238,0.16); }
.axg-badge { position: absolute; right: 8px; top: 8px; border: 1px solid; border-radius: 999px; padding: 1px 6px; font-family: var(--fmono); font-size: 7.5px; font-weight: 700; letter-spacing: 0.12em; }
.axg-nl { display: block; font-family: var(--fdisp); font-weight: 600; font-size: 13px; line-height: 1.15; color: var(--ink); }
.axg-ns { display: block; margin-top: 2px; font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.axg-pop { position: absolute; z-index: 5; padding: 15px 16px; border: 1px solid; border-radius: 14px; background: linear-gradient(180deg, rgba(16,22,34,0.98), rgba(8,11,18,0.98)); }
.axg-pop-h { display: flex; align-items: flex-start; gap: 8px; }
.axg-pop-t { font-family: var(--fdisp); font-weight: 600; font-size: 14px; line-height: 1.15; color: var(--ink); }
.axg-x { margin-left: auto; margin-top: -3px; width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: var(--faint); cursor: pointer; font-size: 12px; transition: background .2s, color .2s; }
.axg-x:hover { background: rgba(148,184,255,0.1); color: var(--ink); }
.axg-pop-s { margin-top: 2px; font-size: 10px; color: var(--faint); }
.axg-pop-b { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.axg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 16px; font-family: var(--fmono); font-size: 10px; color: var(--faint); }
.axg-legend span { display: flex; align-items: center; gap: 7px; }
.axg-legend i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.axg-legend-note { margin-left: auto; }
.graph { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 34px; background: rgba(8,12,20,0.5);
  overflow: hidden; }
.graph svg { width: 100%; height: auto; display: block; overflow: visible; }
.gnode rect { fill: var(--panel); stroke: var(--line2); }
.gnode.hot rect { stroke: var(--accent); filter: drop-shadow(0 0 12px var(--glow)); }
.gnode .gt { font-family: var(--fmono); font-size: 13px; fill: var(--ink); font-weight: 600; letter-spacing: 0.02em; }
.gnode.hot .gt { fill: var(--accent); }
.gnode .gs { font-family: var(--fbody); font-size: 11px; fill: var(--muted); }
.gpill { font-family: var(--fmono); font-size: 9px; letter-spacing: 0.1em; }
.gpill.built { fill: var(--ok); } .gpill.live { fill: var(--accent); } .gpill.spec { fill: var(--amber); }
.glink { stroke: var(--line2); stroke-width: 1.3; fill: none; }
.gflow { stroke: var(--accent); stroke-width: 1.6; fill: none; stroke-dasharray: 5 7; opacity: 0.8; }
.gdot { fill: var(--accent); filter: drop-shadow(0 0 6px var(--glow)); }

/* ===========================================================
   APP SPLIT REVEAL (the platform)
   =========================================================== */
.split-outer { height: 320vh; position: relative; }
.split-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden; }
.split-head { text-align: center; margin-bottom: 40px; max-width: 720px; padding: 0 24px; }
.split-head h2 { font-family: var(--fdisp); font-weight: 700; font-size: clamp(28px,4vw,48px); line-height: 1.06; letter-spacing: -0.02em; }
.split-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.split-stage { position: relative; width: min(1000px, 92vw); height: 56vh; max-height: 620px; }
.slab { position: absolute; top: 0; height: 100%; overflow: hidden; border: 1px solid var(--line2); border-radius: 14px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8); background: #0a0f18; will-change: transform; }
.slab img { position: absolute; top: 0; height: 100%; width: auto; max-width: none; }
.slab.s1 { left: 0; width: 33.34%; } .slab.s1 img { left: 0; }
.slab.s2 { left: 33.33%; width: 33.34%; } .slab.s2 img { left: -100%; }
.slab.s3 { left: 66.66%; width: 33.34%; } .slab.s3 img { left: -200%; }
.slab img { width: min(1000px, 92vw); }
.split-legend { display: flex; gap: 48px; justify-content: center; margin-top: 58px; opacity: 0;
  transition: opacity 0.5s ease; flex-wrap: wrap; padding: 0 24px; }
.split-legend .sc { text-align: center; max-width: 230px; }
.split-legend .sc .i { font-family: var(--fmono); font-size: 11.5px; color: var(--accent); letter-spacing: 0.14em; }
.split-legend .sc h4 { font-family: var(--fdisp); font-weight: 600; font-size: 18px; margin: 7px 0 5px; }
.split-legend .sc p { font-size: 12.8px; color: var(--muted); line-height: 1.45; }
@media (max-width: 720px){ .split-outer{ height:auto } .split-sticky{ position:relative; height:auto; padding:80px 0 } .split-stage{ height:44vh } .split-legend{ margin-top:36px } }

/* ===========================================================
   MACBOOK reveal + 3-layer app explode
   =========================================================== */
.mac-outer { height: 300vh; position: relative; }
.mac-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden; perspective: 1500px; }
.mac-title { text-align: center; margin-bottom: 22px; will-change: transform, opacity; }
.mac-title h2 { font-family: var(--fdisp); font-weight: 700; font-size: clamp(28px,4vw,48px); line-height: 1.06; letter-spacing: -0.02em; margin-top: 12px; }
.mac-title h2 .g { background: linear-gradient(100deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mac-title p { color: var(--muted); margin-top: 12px; font-size: 14px; }
.mac-rig { position: relative; transform-style: preserve-3d; }
.mac-stack { position: relative; transform-style: preserve-3d; will-change: transform; }
.mac-glow { position: absolute; left: -8%; right: -8%; top: 4%; height: 60%; z-index: 0;
  background: radial-gradient(closest-side, rgba(34,211,238,0.4), transparent);
  filter: blur(10px); opacity: 0; }
.mac-lid { position: relative; z-index: 2; width: min(calc(100vw - 40px), calc(var(--maxw) + 24px), 124vh); margin: 0 auto; transform-origin: bottom center;
  will-change: transform; backface-visibility: hidden; }
.mac-bezel { border: 1px solid var(--line2); background: #0c0e15; border-radius: 16px 16px 0 0; padding: 9px; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9); }
.mac-screen { position: relative; aspect-ratio: 1280 / 800; width: 100%; overflow: hidden; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); background: #05070c; }
.mac-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mac-screen > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.mac-base { position: relative; z-index: 1; margin: -1px auto 0; width: min(calc(100vw - 20px), calc(var(--maxw) + 48px), 130vh); }
.mac-base .deck { height: 14px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #1a1c26, #0b0c12); box-shadow: 0 24px 40px -20px rgba(0,0,0,0.8); }
.mac-base .notch { margin: 0 auto; height: 6px; width: 96px; border-radius: 0 0 8px 8px; background: rgba(255,255,255,0.09); }
/* explode layers (float out of the screen) */
.exp { position: absolute; z-index: 5; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9); opacity: 0; will-change: transform, opacity; pointer-events: none; }
.exp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exp.back { z-index: 4; }
.exp.gov { background: rgba(8,14,22,0.9); backdrop-filter: blur(8px); border-color: var(--accent);
  box-shadow: 0 0 40px -8px var(--glow), 0 40px 90px -40px rgba(0,0,0,0.9); padding: 16px 18px; }
.exp.gov .k { font-family: var(--fmono); font-size: 10px; letter-spacing: 0.16em; color: var(--accent); }
.exp.gov .r { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.exp.gov .r .t { font-family: var(--fdisp); font-weight: 600; font-size: 14px; color: var(--ink); }
.exp.gov .r .p { font-family: var(--fmono); font-size: 10px; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px; padding: 3px 9px; }
.exp.gov .r .p.no { color: var(--amber); border-color: var(--amber); }
.exp.back { width: min(66vw, 660px); aspect-ratio: 16/10; left: 50%; top: 43%; transform: translate(-50%,-50%); }
.exp.gov { width: 288px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 14px; }
.exp.phone { width: 152px; aspect-ratio: 152/295; left: 50%; top: 47%; transform: translate(-50%,-50%); border-radius: 22px; }
.mac-hint { margin-top: 26px; font-family: var(--fmono); font-size: 11px; letter-spacing: 0.18em; color: var(--faint); }
@media (max-width: 720px){ .mac-outer{ height:auto } .mac-sticky{ position:relative; height:auto; padding:70px 0 } }

/* ---- #apps: macbook reveal length + mobile trio ---- */
#apps .mac-outer { height: 250vh; }
.apps-mobile { padding-top: 20px; }
.apps-mobile-grid { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
.apps-copy .kick { display: block; }
.apps-copy h2 { font-family: var(--fdisp); font-weight: 700; font-size: clamp(26px, 3.1vw, 42px); line-height: 1.08; letter-spacing: -0.02em; margin-top: 14px; }
.apps-copy .sub { color: var(--muted); font-size: 18px; line-height: 1.55; margin-top: 20px; max-width: 46ch; }
.safety-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; max-width: 46ch; padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 12px; background: linear-gradient(180deg, rgba(34,211,238,0.05), rgba(34,211,238,0.015)); }
.safety-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--accent); }
.safety-note p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.safety-note strong { color: var(--ink); font-weight: 600; }
.safety-note .sd { color: var(--accent); font-family: var(--fmono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 900px){ .apps-mobile-grid { grid-template-columns: 1fr; gap: 34px; justify-items: center; text-align: center; } .apps-copy .sub { margin-left: auto; margin-right: auto; } .safety-note { margin-left: auto; margin-right: auto; text-align: left; } }
.phone-trio { max-width: 900px; margin: 0 auto; }
.phone-trio img { width: 100%; display: block; }
.phone-live { display: flex; justify-content: center; }
.phone-live iframe { width: 360px; max-width: 92vw; height: 760px; border: 0; display: block; background: transparent; }
/* interactive tabbed phone */
.phone-tabs { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.phone-stage { position: relative; width: 340px; max-width: 84vw; aspect-ratio: 500 / 671; }
.phone-stage .pscreen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.phone-stage .pscreen.active { opacity: 1; }
.phone-tabbar { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.02); }
.phone-tabbar .ptab { font-family: var(--fmono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); background: transparent; border: 0; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all 0.2s ease; }
.phone-tabbar .ptab:hover { color: var(--ink); }
.phone-tabbar .ptab.active { color: var(--bg); background: var(--accent); font-weight: 600; }
.apps-mobile .note { margin: 22px auto 0; max-width: 62ch; }
@media (max-width: 720px){ #apps .mac-outer { height: auto; } }

/* ---- mobile: tighter rhythm, static cockpit (no scroll-reveal), phone polish ---- */
@media (max-width: 820px){
  section { padding: 56px 0; }
  .hero { min-height: auto; padding: 92px 0 40px; }
  #apps .mac-outer, .mac-outer { height: auto; }
  .mac-sticky { position: relative; height: auto; padding: 16px 0 4px; }
  .mac-title { margin-bottom: 16px; }
  .mac-title h2 { font-size: clamp(24px, 6.2vw, 34px); }
  .mac-lid { width: calc(100vw - 24px); }
  .mac-base { width: calc(100vw - 14px); }
  .mac-glow { display: none; }
  .shead { margin-bottom: 22px; }
}
@media (max-width: 900px){
  .apps-mobile { padding-top: 6px; }
  .apps-copy h2 { font-size: clamp(24px, 6.2vw, 34px); }
  .apps-copy .sub { font-size: 16px; margin-top: 16px; }
  .phone-live { position: relative; }
  .phone-live::before { content: ""; position: absolute; inset: 6% 10%; z-index: -1; background: radial-gradient(closest-side, rgba(34,211,238,0.12), transparent 72%); filter: blur(34px); }
}

/* ===========================================================
   TABLE (validation)
   =========================================================== */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 15px 18px; font-size: 14.5px; }
.tbl thead th { font-family: var(--fmono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line2); }
.tbl td { border-bottom: 1px solid var(--line); color: var(--muted); }
.tbl td:first-child { color: var(--ink); font-weight: 500; }
.tbl td:last-child, .tbl th:last-child { color: var(--ink); }
.tbl thead th:last-child { color: var(--accent); }
.tbl .colhot { background: rgba(34,211,238,0.05); }

/* ===========================================================
   CTA + FOOTER
   =========================================================== */
.cta-sec { text-align: center; }
.cta-sec h2 { font-family: var(--fdisp); font-weight: 700; font-size: clamp(32px,5vw,60px); line-height: 1.04; letter-spacing: -0.02em; }
.cta-sec h2 .g { background: linear-gradient(100deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-sec p { color: var(--muted); font-size: 17px; margin: 20px auto 0; max-width: 52ch; }
.cta-sec .row { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
footer { border-top: 1px solid var(--line); padding: 40px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .mono { font-size: 11px; color: var(--faint); }
footer .foot-right { display: flex; flex-direction: column; gap: 6px; text-align: right; }
footer .copyr { color: var(--muted); }
@media (max-width: 560px){ footer .foot-right { text-align: left; } }
footer .brand { display: flex; align-items: center; gap: 10px; font-family: var(--fmono); letter-spacing: 0.2em; font-size: 13px; }
footer .brand .dot { width: 11px; height: 11px; border-radius: 3px; background: var(--accent); }
footer .brand .brand-mark { width: 40px; height: 40px; display: block; }

.note { font-size: 13px; color: var(--muted); margin-top: 18px; line-height: 1.5; }

/* ===========================================================
   CINEMATIC / KINETIC iteration
   =========================================================== */
.cine-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cine-bg .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; mix-blend-mode: screen; }
.cine-bg .b1 { width: 60vw; height: 60vw; left: -14vw; top: -20vh; background: radial-gradient(closest-side, rgba(34,211,238,0.55), transparent); animation: drift1 22s ease-in-out infinite; }
.cine-bg .b2 { width: 55vw; height: 55vw; right: -16vw; top: 8vh; background: radial-gradient(closest-side, rgba(59,130,246,0.5), transparent); animation: drift2 27s ease-in-out infinite; }
.cine-bg .b3 { width: 50vw; height: 50vw; left: 22vw; bottom: -24vh; background: radial-gradient(closest-side, rgba(139,92,246,0.4), transparent); animation: drift3 31s ease-in-out infinite; }
.cine-bg .veil { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 30%, transparent, rgba(4,6,10,0.55) 60%, rgba(4,6,10,0.9)); }
.cine-bg .grain { position: absolute; inset: -50%; opacity: 0.04; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 3px 3px; }
@keyframes drift1 { 0%,100%{ transform: translate(0,0) scale(1) } 50%{ transform: translate(8vw,10vh) scale(1.15) } }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) scale(1.1) } 50%{ transform: translate(-9vw,6vh) scale(0.9) } }
@keyframes drift3 { 0%,100%{ transform: translate(0,0) scale(1) } 50%{ transform: translate(-6vw,-10vh) scale(1.2) } }
body.cine main, body.cine nav { position: relative; z-index: 2; }

/* kinetic word-rise headline */
.kine { display: block; }
.kine .word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.02em 0.16em; margin-bottom: -0.16em; }
.kine .word > i { display: inline-block; font-style: inherit; transform: translateY(115%); opacity: 0;
  transition: transform 0.9s cubic-bezier(.16,.84,.24,1), opacity 0.9s ease; }
.kine.in .word > i { transform: none; opacity: 1; }

.cine-hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0; }
.cine-hero h1 { font-family: var(--fdisp); font-weight: 800; font-size: clamp(44px, 8vw, 116px); line-height: 0.98;
  letter-spacing: -0.03em; max-width: 16ch; }
.cine-hero h1 .g { background: linear-gradient(100deg, var(--accent), var(--accent2) 60%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cine-hero .sub { font-size: clamp(17px,1.8vw,22px); color: var(--muted); max-width: 56ch; margin-top: 30px; }
.cine-hero .cta { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* pinned kinetic statement */
.pin-outer { height: 220vh; position: relative; }
.pin-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.pin-sticky .big { font-family: var(--fdisp); font-weight: 800; font-size: clamp(38px,7vw,104px); line-height: 1.02; letter-spacing: -0.03em; max-width: 20ch; will-change: transform, opacity; }
.pin-sticky .big em { font-style: normal; color: var(--accent); }
@media (max-width:720px){ .pin-outer{ height:auto } .pin-sticky{ position:relative; height:auto; padding:90px 0 } }

/* 4-2-3-1 stagger bento */
.seq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.seq .cell { opacity: 0; transform: translateY(34px) scale(0.98); transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
  background: rgba(10,15,24,0.7); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.seq.in .cell { opacity: 1; transform: none; }
.seq .cell .idx { font-family: var(--fmono); font-size: 12px; color: var(--accent); letter-spacing: 0.14em; }
.seq .cell h3 { font-family: var(--fdisp); font-weight: 600; font-size: 17px; margin: 12px 0 8px; }
.seq .cell p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.seq .cell.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 20px 60px -30px var(--glow); }
@media (max-width: 900px){ .seq{ grid-template-columns:1fr 1fr } }
@media (max-width: 560px){ .seq{ grid-template-columns:1fr } }

/* cinematic product parallax */
.cine-prod { position: relative; display: flex; justify-content: center; align-items: center; padding: 40px 0; min-height: 70vh; }
.cine-prod .desk { width: min(76vw, 760px); border-radius: 16px; border: 1px solid var(--line2); box-shadow: 0 50px 120px -50px rgba(0,0,0,0.9); will-change: transform; }
.cine-prod .fone { position: absolute; right: 8%; bottom: 6%; width: 150px; border-radius: 22px; border: 1px solid var(--line2); box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9); will-change: transform; }

/* ══ Section card hovers ═══════════════════════════════════════════════
   Reveal (.rv) owns `transform` on a 0.7s curve with staggered delays, so
   hover uses the independent `translate`/`scale` properties instead and
   re-declares the reveal delay through --rvd. Result: reveals keep their
   stagger, hover stays instant. Three sections, three gestures, one
   220ms curve so they read as one system.
   ------------------------------------------------------------------- */
/* Give the three narrative sections real card surfaces. The base .card is a
   10%-opacity hairline on a panel barely lighter than the page, which reads
   as a bordered block rather than an object you can pick up. A gradient
   surface, a defined edge, a top highlight and a grounding shadow make them
   cards — before any hover is involved. */
#problem .card, #trust .card, #market .card {
  cursor: pointer;
  background: linear-gradient(180deg, var(--panel2) 0%, var(--panel) 100%);
  border-color: rgba(140,160,190,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 12px 32px -24px rgba(0,0,0,0.95);
}

.grid3 .card, .grid4 .card {
  position: relative;
  transition:
    opacity .7s cubic-bezier(.2,.7,.2,1) var(--rvd, 0s),
    transform .7s cubic-bezier(.2,.7,.2,1) var(--rvd, 0s),
    translate .22s cubic-bezier(.16,1,.3,1) 0s,
    scale .22s cubic-bezier(.16,1,.3,1) 0s,
    border-color .22s cubic-bezier(.16,1,.3,1) 0s,
    box-shadow .22s cubic-bezier(.16,1,.3,1) 0s,
    background-color .22s cubic-bezier(.16,1,.3,1) 0s;
}
.grid3 .card.d1, .grid4 .card.d1 { --rvd: .08s; }
.grid3 .card.d2, .grid4 .card.d2 { --rvd: .16s; }
.grid3 .card.d3, .grid4 .card.d3 { --rvd: .24s; }

/* The problem — lantern (Motion Lab 76/61). A light tracks the cursor and
   reveals the card; the copy lifts out of the murk as it passes. Pointer-
   driven rather than a binary :hover flip, which is what makes it feel
   physical. --mx/--my/--lit come from initCardPointer() in motion.js. */
#problem .card { overflow: hidden; }
#problem .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(34,211,238,.11), rgba(34,211,238,.035) 42%, transparent 68%);
  opacity: var(--lit, 0);
  transition: opacity .28s cubic-bezier(.16,1,.3,1);
}
#problem .card .n,
#problem .card h3,
#problem .card p { position: relative; z-index: 1; }
#problem .card .n {
  transition: color .3s cubic-bezier(.16,1,.3,1), text-shadow .3s cubic-bezier(.16,1,.3,1);
}
#problem .card p {
  transition: color .3s cubic-bezier(.16,1,.3,1);
}
#problem .card:hover {
  translate: 0 -3px;
  border-color: rgba(34,211,238,.28);
}
#problem .card:hover .n { color: var(--ink); text-shadow: 0 0 18px var(--glow); }
#problem .card:hover p { color: #cfd8e4; }

/* Governed, safe AI — corner brackets close in. The gesture is
   containment: the card is bounded, which is the whole argument. */
#trust .card::before,
#trust .card::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--accent);
  opacity: 0;
  transition: opacity .22s cubic-bezier(.16,1,.3,1), inset .28s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
#trust .card::before { inset: 4px auto auto 4px; border-width: 1px 0 0 1px; border-radius: 6px 0 0 0; }
#trust .card::after  { inset: auto 4px 4px auto; border-width: 0 1px 1px 0; border-radius: 0 0 6px 0; }
#trust .card:hover::before { inset: 10px auto auto 10px; opacity: 1; }
#trust .card:hover::after  { inset: auto 10px 10px auto; opacity: 1; }
#trust .card:hover {
  border-color: rgba(34,211,238,.45);
  background: var(--panel2);
  scale: 1.008;
}

/* Institutional-first · Abu Dhabi — gold, and the wash rises from the
   base rather than floating: growth, not lift. */
/* Institutional-first · Abu Dhabi — holographic foil (Motion Lab 60). A
   gold foil band whose angle follows the pointer, so tilting across the row
   catches the light like stamped stock. Gold rather than cyan: this is the
   regulatory/institutional section. --ang/--lit from initCardPointer(). */
#market .card { overflow: hidden; }
#market .card::before {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background: linear-gradient(var(--ang, 120deg),
    transparent 34%,
    rgba(201,162,39,.16) 46%,
    rgba(255,245,214,.09) 50%,
    rgba(201,162,39,.16) 54%,
    transparent 66%);
  opacity: var(--lit, 0);
  transition: opacity .3s cubic-bezier(.16,1,.3,1);
}
#market .card h3,
#market .card p { position: relative; z-index: 1; }
#market .card h3 { transition: color .3s cubic-bezier(.16,1,.3,1); }
#market .card:hover {
  translate: 0 -2px;
  border-color: rgba(201,162,39,.42);
  box-shadow: 0 16px 40px -30px rgba(201,162,39,.5);
}
#market .card:hover h3 { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .grid3 .card, .grid4 .card { transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease; }
  .grid3 .card:hover, .grid4 .card:hover { translate: none; scale: none; }
  #problem .card::after, #market .card::before { opacity: 0 !important; }
  #trust .card:hover::before { inset: 10px auto auto 10px; transition: opacity .22s ease; }
  #trust .card:hover::after { inset: auto 10px 10px auto; transition: opacity .22s ease; }
  #market .card:hover::before { height: 100%; transition: none; }
}
