/* Octarrow site. Mobile first, system fonts, no external resources. */
:root {
  --bg: #0b1240; --bg2: #141d63; --card: #1a2478; --card2: #222e8f; --line: rgba(255, 255, 255, .14);
  --ink: #f5f7ff; --muted: #c3cbf2; --yellow: #ffd94a; --green: #3ecf57; --green2: #26a843;
  --pink: #ff7fc4; --teal: #58d6c9; --purple: #b58cff;
  --r: 18px; --tab: 62px; --max: 1080px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .18s ease-out both vt-out; }
::view-transition-new(root) { animation: .22s ease-out both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font: 400 1rem/1.6 var(--font); color: var(--ink); background: var(--bg);
  background-image: radial-gradient(120% 60% at 50% -10%, #2a3fb8 0%, rgba(42, 63, 184, 0) 60%), linear-gradient(180deg, #101a5c 0%, var(--bg) 480px);
  background-repeat: no-repeat; padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom)); overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 6.4vw, 2.9rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 4.6vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.small { font-size: .875rem; color: var(--muted); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: #111; padding: 8px 12px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: #0d1548; border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { border-radius: 9px; }
.topnav { display: none; margin-left: auto; gap: 4px; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.topnav a:hover, .topnav a[aria-current] { color: #fff; background: rgba(255, 255, 255, .1); }
.langlink { margin-left: auto; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; }

/* bottom tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: #0d1448; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tab); color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 700; padding: 6px 2px; text-align: center; line-height: 1.15; }
.tabbar a[aria-current] { color: var(--yellow); }
.tabbar a[aria-current] svg { transform: translateY(-1px) scale(1.08); }
.tabbar svg { transition: transform .15s; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border: 0; border-radius: 16px; font: 800 1.05rem/1.2 var(--font); color: #06310f; background: linear-gradient(180deg, #6fe07f, var(--green)); box-shadow: 0 4px 0 var(--green2), 0 10px 22px rgba(0, 0, 0, .28); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { color: #06310f; filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--green2); }
.btn.ghost { background: rgba(255, 255, 255, .1); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.btn.store { flex-direction: column; gap: 0; background: #fff; color: #10153f; box-shadow: 0 4px 0 #b9c0e6, 0 10px 22px rgba(0, 0, 0, .28); min-width: 190px; }
.btn.store small { font-size: .72rem; font-weight: 700; opacity: .75; }
.btn.store[aria-disabled="true"] { background: rgba(255, 255, 255, .12); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: default; pointer-events: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.2em 0; }

/* hero */
.hero { display: grid; gap: 22px; padding: 22px 0 8px; align-items: center; }
.hero .lede { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-art { justify-self: center; width: min(66vw, 290px); }
.device { position: relative; padding: 9px; border-radius: 46px; background: linear-gradient(145deg, #2b3270, #05082a 40%, #05082a 60%, #232a66); box-shadow: 0 0 0 1.5px #4a55a8, 0 24px 60px rgba(0, 0, 0, .55), 0 0 80px rgba(120, 140, 255, .18); }
.device::before { content: ""; position: absolute; top: 19px; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); background: #05082a; border-radius: 999px; z-index: 1; }
.device::after { content: ""; position: absolute; right: -3px; top: 24%; width: 3px; height: 11%; background: #3a4590; border-radius: 0 3px 3px 0; }
.device img, .device video { display: block; width: 100%; height: auto; border-radius: 38px; aspect-ratio: 9 / 16; object-fit: cover; background: #1a2a6e; }
.device video { position: absolute; left: 9px; top: 9px; width: calc(100% - 18px); opacity: 0; transition: opacity .4s; pointer-events: none; }
.device video.on { opacity: 1; }
.badge { display: inline-block; background: rgba(255, 217, 74, .16); color: var(--yellow); border: 1px solid rgba(255, 217, 74, .4); border-radius: 999px; font-weight: 800; font-size: .8rem; padding: 4px 12px; margin-bottom: 12px; }

section { padding: 30px 0; }
.sec-head { margin-bottom: 14px; }
.sec-head p { color: var(--muted); max-width: 44em; }
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.grid { display: grid; gap: 14px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3 img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.more { font-weight: 800; display: inline-flex; align-items: center; min-height: 44px; }
.more::after { content: "→"; margin-left: 6px; }

/* numbered steps */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps > li { counter-increment: s; margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.steps > li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #10153f; background: var(--yellow); }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); }

/* screenshots */
.phone { margin: 0; }
.phone img { border-radius: 22px; border: 3px solid #05092b; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); width: 100%; aspect-ratio: 320 / 696; background: #1a2a6e; }
.phone figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 230px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: thin; scrollbar-color: var(--card2) transparent; }
.rail > * { scroll-snap-align: center; }
.split { display: grid; gap: 18px; align-items: start; }
.split .phone { width: min(70vw, 260px); justify-self: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }

/* article pages */
.crumbs { font-size: .85rem; color: var(--muted); padding: 14px 0 4px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose > p, .prose li { color: #e3e8ff; }
.intro { font-size: 1.1rem; color: var(--muted); }
.toc { padding: 14px 18px; margin: 18px 0; }
.toc ul { margin: 0; padding-left: 1.1em; }
.note { border-left: 4px solid var(--yellow); background: rgba(255, 217, 74, .1); border-radius: 0 12px 12px 0; padding: 12px 14px; margin: 1em 0; }
.order { counter-reset: o; list-style: none; padding: 0; }
.order li { counter-increment: o; padding-left: 40px; position: relative; margin-bottom: .6em; }
.order li::before { content: counter(o); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #06262b; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.next { display: grid; gap: 12px; margin: 28px 0 8px; }
.next a.card { display: block; text-decoration: none; color: var(--ink); }
.next a.card:hover { border-color: var(--yellow); }
.next strong { display: block; color: var(--yellow); font-size: 1.05rem; }
.next span { color: var(--muted); font-size: .92rem; }

/* FAQ */
details.q { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 10px; }
details.q summary { cursor: pointer; font-weight: 700; padding: 14px 44px 14px 16px; list-style: none; position: relative; min-height: 50px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.5rem; font-weight: 400; color: var(--yellow); }
details.q[open] summary::after { content: "–"; }
details.q > div { padding: 0 16px 14px; color: #e3e8ff; }
details.q > div p:last-child { margin: 0; }

/* legal documents */
.doc { max-width: 46em; margin: 16px 0 30px; }
.doc h1 { font-size: clamp(1.6rem, 5.5vw, 2.3rem); }
.doc h2 { font-size: 1.2rem; margin-top: 1.5em; }
.doc .meta { color: var(--muted); font-size: .9rem; }
.doc .callout { border-left: 4px solid var(--teal); background: rgba(88, 214, 201, .1); border-radius: 0 12px 12px 0; padding: 12px 14px; }
.doc a { overflow-wrap: anywhere; }

/* download band */
.band { text-align: center; padding: 26px 18px; background: linear-gradient(160deg, #3a2ea6, #1b2a8e 60%, #12606d); }
.band img { margin: 0 auto 8px; }
.band .cta { justify-content: center; }
.band p { color: #e3e8ff; max-width: 36em; margin-left: auto; margin-right: auto; }

/* mini game */
.mini { max-width: 420px; margin: 0 auto; position: relative; }
.mini-hud { display: flex; justify-content: space-between; align-items: center; font-weight: 800; padding: 0 4px 8px; min-height: 36px; }
.mini-hearts { color: var(--pink); font-size: 1.3rem; letter-spacing: 3px; }
.mini-frame { background: #24348f; border: 4px solid #3b4fc0; border-radius: 20px; padding: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); aspect-ratio: 1; overflow: hidden; touch-action: manipulation; }
.mini-frame svg { width: 100%; height: 100%; overflow: hidden; border-radius: 12px; }
.mini .cell { fill: #31449f; }
.mini .arrow { cursor: pointer; transition: transform .28s cubic-bezier(.5, 0, .9, .6); outline: none; -webkit-tap-highlight-color: transparent; }
.mini .arrow.bump { transition: transform .16s ease-out; }
.mini .shaft { stroke: currentColor; stroke-width: .3; stroke-linecap: round; }
.mini .head { fill: currentColor; stroke: currentColor; stroke-width: .1; stroke-linejoin: round; }
.mini .hit { stroke: transparent; stroke-width: .9; stroke-linecap: square; }
.mini .arrow:focus-visible .shaft, .mini .arrow:focus-visible .head { stroke: #fff; }
.mini .arrow:focus-visible .head { fill: #fff; }
.mini-msg { position: absolute; inset: 44px 0 0; display: grid; place-content: center; gap: 12px; text-align: center; background: rgba(11, 18, 64, .9); border-radius: 20px; padding: 20px; }
.mini-msg[hidden] { display: none; }
.mini-msg p { font-weight: 800; font-size: 1.2rem; margin: 0; }
.mini-note { text-align: center; margin-top: 12px; }

/* language chip */
.chip { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 10px); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--yellow); color: #10153f; border-radius: 14px; padding: 4px 4px 4px 16px; font-weight: 800; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); max-width: 420px; margin: 0 auto; }
.chip[hidden] { display: none; }
.chip a { color: #10153f; padding: 10px 0; }
.chip button { border: 0; background: transparent; font-size: 1.5rem; width: 44px; height: 44px; cursor: pointer; color: #10153f; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 0 18px; background: rgba(0, 0, 0, .18); }
.footgrid { display: grid; gap: 20px; }
.foot h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .6em; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0; }
.foot li a { color: var(--ink); text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.foot li a:hover { text-decoration: underline; }
.footbrand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; margin-bottom: .4em; }
.footbrand img { border-radius: 8px; }
.legal { margin-top: 16px; }
.center { text-align: center; padding-top: 12vh; }
.center img { margin: 0 auto 12px; }
.center .cta { justify-content: center; }
[hidden] { display: none !important; }

@media (min-width: 640px) {
  .grid.c2, .next { grid-template-columns: 1fr 1fr; }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
  .footgrid { grid-template-columns: 1.4fr 1fr 1fr; }
  .split { grid-template-columns: 1fr 260px; }
  .rail { grid-auto-columns: 220px; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .langlink { margin-left: 8px; }
  .hero { grid-template-columns: 1.15fr .85fr; padding: 48px 0 20px; gap: 40px; }
  .hero-art { width: 320px; }
  section { padding: 44px 0; }
  .chip { bottom: 16px; left: auto; right: 16px; }
  .rail { grid-auto-columns: 1fr; overflow: visible; margin: 0; padding: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
  .device video { display: none; }
}
