/* ARKA Home landing page. "Orbital Core" palette from the app (ui/Orbital.kt). */

@font-face { font-family: "Inter"; src: url("fonts/inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains_mono_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains_mono_medium.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains_mono_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --void: #07090D;
  --hull: #0D1117;
  --hull-2: #141A24;
  --bone: #EAEFF5;
  --mist: #8E9BAE;
  --lime: #B8FF3B;
  --on-lime: #081200;
  --ice: #7CE8FF;
  --wire: #232D3F;
  --radius: 22px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--lime); color: var(--on-lime); border-radius: 10px; font-weight: 600; }
.skip:focus { left: 16px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 32px); }

/* ---------- shared bits ---------- */
.tag { font: 600 12px/1 var(--mono); letter-spacing: .22em; color: var(--ice); text-transform: uppercase; margin-bottom: 18px; }
.tag--lime { color: var(--lime); }
.grad { background: linear-gradient(100deg, var(--lime) 10%, var(--ice) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--mist); font-size: 18px; max-width: 640px; margin-top: 16px; }
h2 { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 700 14px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  cursor: pointer; border: 0;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn small { font-weight: 500; letter-spacing: .04em; opacity: .7; text-transform: none; }
.btn--lime { background: var(--lime); color: var(--on-lime); box-shadow: 0 0 0 0 rgba(184,255,59,.0), 0 10px 30px -10px rgba(184,255,59,.55); }
.btn--lime:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(184,255,59,.12), 0 16px 40px -12px rgba(184,255,59,.7); }
.btn--ghost { background: rgba(13,17,23,.6); color: var(--bone); border: 1px solid var(--wire); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ice); color: var(--ice); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }

.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 600 11px/1 var(--mono); letter-spacing: .16em; color: var(--ice); padding: 9px 13px; border: 1px solid rgba(124,232,255,.32); border-radius: 999px; background: rgba(13,17,23,.6); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(7,9,13,.82); backdrop-filter: blur(14px) saturate(1.3); border-color: var(--wire); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--mono); letter-spacing: .2em; }
.brand b { color: var(--ice); font-weight: 500; margin-left: .45em; }
.brand__orb { width: 32px; height: 32px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--mist); }
.nav__links a:hover { color: var(--bone); }
.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; background: none; border: 1px solid var(--wire); border-radius: 12px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--bone); border-radius: 2px; transition: transform .25s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__menu { display: grid; padding: 8px 16px 20px; background: rgba(7,9,13,.96); border-bottom: 1px solid var(--wire); }
.nav__menu[hidden] { display: none; }
.nav__menu a { padding: 14px 4px; border-bottom: 1px solid var(--wire); font-size: 17px; }
.nav__menu a:last-child { border: 0; color: var(--lime); font: 700 14px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding-top: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; padding: 120px 0 80px; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, var(--void)); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 88px); letter-spacing: -0.035em; line-height: 1.02; }
.lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 19px); color: #C3CCD8; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- phone mockup ---------- */
.phone-wrap { position: relative; justify-self: center; perspective: 1400px; }
.phone {
  --w: min(340px, 78vw, calc((100vh - 140px) * 9 / 20));
  width: var(--w); aspect-ratio: 9 / 20;
  border-radius: calc(var(--w) * .14);
  padding: calc(var(--w) * .03);
  background: linear-gradient(145deg, #2a3342, #0c1016 40%, #1b2230);
  box-shadow: 0 0 0 1px #2c3646, 0 40px 90px -20px rgba(0,0,0,.9), 0 0 120px -30px rgba(124,232,255,.35);
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform .5s var(--ease);
  font-size: calc(var(--w) / 34); /* 10px on a 340px phone; everything inside scales in em */
}
.phone__screen { position: relative; height: 100%; border-radius: calc(var(--w) * .115); overflow: hidden; background: var(--void); display: flex; flex-direction: column; }
.phone__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-status, .ph-body, .ph-dock, .ph-input { position: relative; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 1.3em 2.2em .4em; font: 600 1.25em/1 var(--sans); }
.ph-status__r { display: flex; gap: .35em; }
.ph-status__r i { width: .7em; height: .7em; border-radius: 50%; background: var(--bone); opacity: .85; }
.ph-body { padding: 1em 1.7em 0; flex: 1; }
.ph-tag { font: 500 1em/1 var(--mono); letter-spacing: .2em; color: var(--ice); margin-top: 1em; }
.ph-clockrow { display: flex; justify-content: space-between; align-items: flex-end; }
.ph-clock { font: 700 5.6em/1.1 var(--sans); letter-spacing: -.05em; }
.ph-date { font: 400 .95em/1 var(--mono); color: var(--mist); letter-spacing: .06em; white-space: nowrap; }
.ph-weather { text-align: right; padding-bottom: .2em; }
.ph-weather b { display: block; font: 700 2.6em/1 var(--sans); }
.ph-weather span { font: 600 .9em/1 var(--mono); letter-spacing: .14em; color: var(--ice); }
.ph-gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; margin-top: 1.4em; }
.ph-g { display: flex; align-items: center; gap: .5em; }
.ph-g i {
  --deg: calc(var(--v) * 300deg);
  flex: none; width: 3.3em; height: 3.3em; border-radius: 50%;
  display: grid; place-items: center; font: 600 1.05em/1 var(--mono); font-style: normal;
  background:
    radial-gradient(closest-side, var(--void) 78%, transparent 80%),
    conic-gradient(from 210deg, var(--c) var(--deg), var(--wire) var(--deg) 300deg, transparent 300deg);
}
.ph-g span { font: 600 .85em/1 var(--mono); letter-spacing: .1em; color: var(--c); }
.ph-card { margin-top: 1.5em; padding: 1.3em 1.4em; border-radius: 1.8em; border: 1px solid rgba(184,255,59,.35); background: rgba(13,17,23,.88); }
.ph-card__top { display: flex; align-items: center; gap: .9em; }
.ph-card__ic { width: 3em; height: 3em; border-radius: .9em; border: 1px solid rgba(184,255,59,.4); display: grid; place-items: center; background: rgba(184,255,59,.08); }
.ph-card__ic canvas { width: 2em; height: 2em; }
.ph-card__tag { font: 600 1em/1 var(--mono); letter-spacing: .2em; color: var(--ice); flex: 1; }
.ph-card__btn { font: 700 .95em/1 var(--mono); letter-spacing: .14em; color: var(--on-lime); background: var(--lime); padding: .75em 1.1em; border-radius: 99px; }
.ph-card__title { font: 700 2.05em/1.2 var(--sans); margin-top: .7em; letter-spacing: -.02em; }
.ph-card__sub { font: 400 1.05em/1.5 var(--mono); color: var(--mist); margin-top: .35em; min-height: 3em; }
.ph-card__sub::after { content: "▍"; color: var(--lime); animation: blink 1s steps(1) infinite; margin-left: .1em; }
.ph-label { font: 500 .9em/1 var(--mono); letter-spacing: .18em; color: var(--mist); margin: 1.4em 0 .9em; }
.ph-grid { display: grid; grid-template-columns: repeat(5, 1fr); row-gap: 1em; }
.ph-app { display: grid; justify-items: center; gap: .45em; }
.ph-app i { width: 3.7em; height: 3.7em; border-radius: 1.2em; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--t) 45%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--t) 22%, transparent), transparent 70%), rgba(20,26,36,.95); }
.ph-app svg { width: 1.9em; height: 1.9em; fill: none; stroke: var(--t); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph-app span { font: 500 .95em/1 var(--sans); white-space: nowrap; }
.ph-dock { height: 8.6em; margin-top: auto; flex: none; }
.ph-dock svg { position: absolute; inset: 1.4em 0 auto; width: 100%; height: 4em; fill: none; stroke: rgba(124,154,168,.55); stroke-width: 1.2; }
.ph-dock svg .lit { stroke: var(--lime); stroke-width: 2.4; }
.ph-dock .d { position: absolute; width: 3.6em; height: 3.6em; border-radius: 50%; border: 1px solid var(--wire); background: rgba(13,17,23,.95); }
.ph-dock .d1 { left: 4%; top: 4.2em; } .ph-dock .d2 { left: 23%; top: 2.4em; } .ph-dock .d4 { right: 23%; top: 2.4em; } .ph-dock .d5 { right: 4%; top: 4.2em; }
.ph-dock .d3 { left: 50%; top: .6em; width: 5em; height: 5em; transform: translateX(-50%); background: var(--lime); border: 0; display: grid; place-items: center; box-shadow: 0 0 30px rgba(184,255,59,.45); }
.ph-dock .d3 canvas { width: 2.6em; height: 2.6em; }
.ph-dock p { position: absolute; left: 0; right: 0; bottom: .2em; text-align: center; font: 600 1em/1 var(--mono); letter-spacing: .3em; color: var(--lime); }
.ph-input { margin: .8em 1.5em 1.8em; height: 4.4em; border-radius: 99px; border: 1px solid var(--wire); background: rgba(13,17,23,.9); display: flex; align-items: center; gap: .8em; padding: 0 .5em 0 1.5em; font: 400 1.05em/1 var(--mono); color: var(--mist); }
.ph-input span { color: var(--lime); font-weight: 700; }
.ph-input i { margin-left: auto; width: 3.4em; height: 3.4em; border-radius: 50%; background: var(--lime); }

.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 16px; background: rgba(13,17,23,.88); border: 1px solid var(--wire); backdrop-filter: blur(10px); font: 500 13px/1 var(--mono); color: var(--mist); box-shadow: 0 20px 40px -20px #000; animation: bob 6s ease-in-out infinite; }
.float b { color: var(--lime); font-size: 22px; font-family: var(--sans); }
.float--a { right: calc(100% - 14px); top: 30%; white-space: nowrap; }
.float--b { left: calc(100% - 14px); bottom: 30%; white-space: nowrap; animation-delay: -3s; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(184,255,59,.18); animation: pulse 1.8s infinite; }

/* ---------- stats ---------- */
.stats { border-block: 1px solid var(--wire); background: linear-gradient(90deg, rgba(184,255,59,.04), rgba(124,232,255,.04)); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__grid div { padding: 34px 20px; display: grid; gap: 6px; border-left: 1px solid var(--wire); }
.stats__grid div:first-child { border-left: 0; padding-left: 0; }
.stats b { font: 700 clamp(28px, 3.4vw, 40px)/1 var(--sans); letter-spacing: -.03em; }
.stats span { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; color: var(--mist); text-transform: uppercase; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--alt { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124,232,255,.06), transparent 70%), var(--hull); border-block: 1px solid var(--wire); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card { padding: 30px; border-radius: var(--radius); background: rgba(13,17,23,.9); border: 1px solid var(--wire); transition: border-color .3s, transform .3s var(--ease); }
.card:hover { border-color: rgba(124,232,255,.45); transform: translateY(-4px); }
.card__ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(124,232,255,.12); margin-bottom: 22px; }
.card__ic svg, .gest__ic svg, .demo__ic svg { width: 24px; height: 24px; fill: none; stroke: var(--ice); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--mist); margin-top: 10px; font-size: 16px; }

/* ---------- mini apps ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--wire); background: rgba(7,9,13,.6); color: var(--mist); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--bone); border-color: #3a4760; }
.filters button[aria-selected="true"] { background: var(--lime); border-color: var(--lime); color: var(--on-lime); font-weight: 600; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 28px; }
.app {
  --t: var(--ice);
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  border-radius: 20px; background: rgba(7,9,13,.7); border: 1px solid var(--wire);
  transition: border-color .25s, transform .25s var(--ease), opacity .3s, background .25s;
}
.app:hover { border-color: color-mix(in srgb, var(--t) 55%, transparent); background-color: rgba(7,9,13,.95); transform: translateY(-3px); }
.app.is-hidden { display: none; }
.app.is-in { animation: rise .45s var(--ease) both; }
.app__ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--t) 45%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--t) 22%, transparent), transparent 70%), var(--hull-2); }
.app__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--t); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.app h3 { font-size: 17px; }
.app p { color: var(--mist); font-size: 14.5px; line-height: 1.5; margin-top: 4px; }
.app__badge { display: inline-block; margin-top: 10px; font: 600 10px/1 var(--mono); letter-spacing: .14em; color: var(--t); padding: 5px 8px; border-radius: 6px; background: color-mix(in srgb, var(--t) 12%, transparent); }

/* ---------- principle + demo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--mist); }
.ticks li b { color: var(--bone); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(184,255,59,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8FF3B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

.demo { padding: 28px; border-radius: 28px; background: rgba(13,17,23,.92); border: 1px solid rgba(255,216,107,.3); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 80px -40px rgba(255,216,107,.35); }
.demo__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.demo__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,216,107,.12); border: 1px solid rgba(255,216,107,.4); }
.demo__ic svg { stroke: #FFD86B; }
.demo__title { font-weight: 700; font-size: 19px; }
.demo__note { font: 600 10.5px/1 var(--mono); letter-spacing: .16em; color: var(--mist); margin-top: 6px; }
.demo__label { display: block; font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--mist); margin-bottom: 10px; text-transform: uppercase; }
.demo__row input { width: 100%; min-height: 54px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--wire); background: var(--void); color: var(--bone); font: 400 16px/1 var(--mono); transition: border-color .2s; }
.demo__row input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(184,255,59,.12); }
.demo__samples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.demo__samples button { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--wire); background: none; color: var(--mist); font: 400 12.5px/1 var(--mono); cursor: pointer; }
.demo__samples button:hover { color: var(--bone); border-color: #3a4760; }
.demo__out { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; min-height: 64px; }
.demo__out li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--hull-2); border: 1px solid var(--wire); animation: rise .35s var(--ease) both; }
.demo__out .cat { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; padding: 6px 8px; border-radius: 6px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); text-transform: uppercase; white-space: nowrap; }
.demo__out .note { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo__out .amt { font: 600 15px/1 var(--mono); }
.demo__out .amt.in { color: var(--lime); }
.demo__out .empty { grid-template-columns: 1fr; color: var(--mist); font-size: 14px; background: none; border-style: dashed; }
.demo__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--wire); }
.demo__total span { font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--mist); text-transform: uppercase; }
.demo__total b { font: 700 26px/1 var(--sans); letter-spacing: -.02em; }

/* ---------- gestures ---------- */
.gestures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.gest { padding: 26px; border-radius: var(--radius); border: 1px solid var(--wire); background: rgba(7,9,13,.7); }
.gest__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; border: 1px solid rgba(124,232,255,.3); margin-bottom: 20px; }
.gest p { color: var(--mist); font-size: 15px; margin-top: 8px; }

/* ---------- download ---------- */
.download { position: relative; overflow: hidden; display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 36px; border: 1px solid rgba(184,255,59,.3); background: radial-gradient(ellipse 60% 90% at 15% 50%, rgba(184,255,59,.12), transparent 70%), radial-gradient(ellipse 50% 80% at 30% 60%, rgba(124,232,255,.1), transparent 70%), var(--hull); }
.download__orb { width: 300px; height: 300px; }
.req { margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--wire); border: 1px solid var(--wire); border-radius: 18px; overflow: hidden; }
.req div { background: var(--hull); padding: 16px 18px; }
.req dt { font: 600 11px/1 var(--mono); letter-spacing: .16em; color: var(--ice); text-transform: uppercase; }
.req dd { margin: 8px 0 0; font-size: 15px; }

/* ---------- faq ---------- */
.faq { margin-top: 40px; display: grid; gap: 10px; }
.faq details { border-radius: 18px; border: 1px solid var(--wire); background: rgba(7,9,13,.7); transition: border-color .2s; }
.faq details[open] { border-color: rgba(124,232,255,.4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ice); border-bottom: 2px solid var(--ice); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 22px; color: var(--mist); }

/* ---------- footer ---------- */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--wire); }
.footer__inner { display: grid; gap: 16px; justify-items: start; }
.footer p { color: var(--mist); font-size: 14px; }
.footer__mono { font: 500 11px/1 var(--mono) !important; letter-spacing: .16em; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(184,255,59,0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero { min-height: 0; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .gestures { grid-template-columns: repeat(2, 1fr); }
  .download { grid-template-columns: 1fr; text-align: left; }
  .download__orb { width: 200px; height: 200px; }
}
@media (max-width: 820px) {
  .nav__links, .nav .btn--sm { display: none; }
  .nav__toggle { display: block; }
  .cards3 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid div { padding: 24px 16px; }
  .stats__grid div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats__grid div:nth-child(n+3) { border-top: 1px solid var(--wire); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 104px 0 56px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .gestures { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; }
  .demo { padding: 20px; border-radius: 22px; }
  .float { display: none; }
  .phone { transform: none; }
  .apps { grid-template-columns: 1fr; }
}

/* ================= additions ================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--lime), var(--ice)); box-shadow: 0 0 12px rgba(184,255,59,.6); }

/* spotlight that follows the pointer */
.spot { background-image: radial-gradient(380px circle at var(--mx, -500px) var(--my, -500px), color-mix(in srgb, var(--t, #7CE8FF) 13%, transparent), transparent 45%); }

/* hero: soft glow that follows the pointer */
.hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--hx, 70%) var(--hy, 45%), rgba(184,255,59,.08), transparent 60%); transition: background-position .3s; }
.phone__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, transparent 28%, transparent 70%, rgba(124,232,255,.05)); }

/* prompt marquee */
.marquee { position: relative; padding: 26px 0; display: grid; gap: 12px; overflow: hidden; border-top: 1px solid var(--wire); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__row { display: flex; width: max-content; gap: 12px; animation: slide 60s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--wire); background: rgba(13,17,23,.8); font: 400 14px/1 var(--mono); color: #C3CCD8; white-space: nowrap; }
.marquee__item::before { content: ">_"; color: var(--lime); font-weight: 700; }
@keyframes slide { to { transform: translateX(-50%); } }

/* chat demo */
.split--chat { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.chat { position: relative; display: flex; flex-direction: column; height: 560px; border-radius: 30px; border: 1px solid var(--wire); background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124,232,255,.08), transparent 70%), rgba(7,9,13,.92); box-shadow: 0 50px 100px -40px #000, 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; }
.chat__bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--wire); background: rgba(13,17,23,.7); backdrop-filter: blur(10px); }
.chat__orb { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(184,255,59,.08); border: 1px solid rgba(184,255,59,.35); }
.chat__orb canvas { width: 32px; height: 32px; }
.chat__who { flex: 1; display: grid; gap: 3px; min-width: 0; }
.chat__who b { font: 700 13px/1 var(--mono); letter-spacing: .2em; }
.chat__who small { font: 500 11.5px/1.2 var(--mono); color: var(--lime); letter-spacing: .04em; transition: color .3s; }
.chat__who small.is-online { color: var(--ice); }
.plane { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--wire); background: var(--hull-2); display: grid; place-items: center; cursor: pointer; transition: all .25s var(--ease); }
.plane svg { width: 20px; height: 20px; fill: var(--mist); transform: rotate(45deg); transition: fill .25s; }
.plane[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 24px rgba(184,255,59,.4); }
.plane[aria-pressed="true"] svg { fill: var(--on-lime); }
.chat__log { flex: 1; overflow-y: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
.chat__log::-webkit-scrollbar { display: none; }
.bubble { max-width: 86%; padding: 13px 16px; border-radius: 20px; font-size: 15px; line-height: 1.55; animation: rise .35s var(--ease) both; }
.bubble--me { align-self: flex-end; background: linear-gradient(135deg, var(--lime), #9BF04A); color: var(--on-lime); border-bottom-right-radius: 6px; font-weight: 500; }
.bubble--arka { align-self: flex-start; background: var(--hull-2); border: 1px solid var(--wire); border-bottom-left-radius: 6px; }
.bubble--arka b { color: var(--lime); font-weight: 600; }
.bubble--arka .li { display: block; padding-left: 16px; position: relative; }
.bubble--arka .li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); }
.bubble__app { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; color: var(--t); text-transform: uppercase; }
.bubble__app::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t); box-shadow: 0 0 8px var(--t); }
.bubble__meta { display: block; margin-top: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--mist); }
.dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.chat__input { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; min-height: 54px; padding: 0 6px 0 18px; border-radius: 999px; border: 1px solid var(--wire); background: var(--hull); font: 400 14px/1 var(--mono); color: var(--bone); }
.chat__prompt { color: var(--lime); font-weight: 700; }
.chat__typed { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chat__caret { width: 2px; height: 18px; background: var(--lime); animation: blink 1s steps(1) infinite; }
.chat__send { margin-left: auto; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.chat__send svg { width: 18px; height: 18px; fill: none; stroke: var(--on-lime); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scenarios { display: grid; gap: 10px; margin-top: 32px; }
.scenario { --t: var(--ice); position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--wire); background: rgba(7,9,13,.6); cursor: pointer; transition: border-color .25s, background-color .25s, transform .25s var(--ease); overflow: hidden; }
.scenario:hover { border-color: #3a4760; transform: translateX(4px); }
.scenario[aria-selected="true"] { border-color: color-mix(in srgb, var(--t) 60%, transparent); background-color: rgba(13,17,23,.95); }
.scenario__ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--t) 45%, transparent); background: color-mix(in srgb, var(--t) 10%, transparent); }
.scenario__ic svg { width: 21px; height: 21px; fill: none; stroke: var(--t); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.scenario b { display: block; font-size: 15.5px; }
.scenario small { display: block; color: var(--mist); font: 400 13px/1.4 var(--mono); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scenario > span:last-child { min-width: 0; }
.scenario::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--t); transform: scaleX(0); transform-origin: 0 50%; }
.scenario[aria-selected="true"].is-running::after { animation: fill var(--dur, 7s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.note { margin-top: 18px; color: var(--mist); font: 400 12.5px/1.5 var(--mono); }

/* comparison */
.compare { margin-top: 44px; border-radius: 26px; border: 1px solid var(--wire); overflow: hidden; background: rgba(13,17,23,.85); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--wire); vertical-align: middle; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); padding-top: 22px; padding-bottom: 22px; }
.compare tbody th { font-weight: 600; width: 28%; }
.compare td { color: var(--mist); width: 36%; }
.compare .is-arka { background: linear-gradient(90deg, rgba(184,255,59,.07), rgba(124,232,255,.04)); color: var(--bone); border-left: 1px solid rgba(184,255,59,.25); }
.compare thead .is-arka span { color: var(--lime); }
.compare .ok, .compare .x { display: inline-flex; align-items: center; gap: 8px; }
.compare .ok::before, .compare .x::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: center/11px no-repeat; }
.compare .ok::before { background-color: rgba(184,255,59,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8FF3B' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.compare .x::before { background-color: rgba(255,107,138,.15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B8A' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); }

/* download card: a light that runs around the border */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.download__glow { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--a), transparent 0 60%, var(--lime) 75%, var(--ice) 85%, transparent 95%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin 6s linear infinite; }
@keyframes spin { to { --a: 360deg; } }

@media (max-width: 1260px) {
  /* Not enough room beside the phone: tuck the floating chips onto its edges. */
  .float--a { right: auto; left: -18px; top: 12%; }
  .float--b { left: auto; right: -18px; bottom: 16%; }
}
@media (max-width: 1020px) {
  .split--chat { grid-template-columns: 1fr; }
  .split--chat > .chat { order: 2; }
}
@media (max-width: 720px) {
  .compare { border-radius: 20px; }
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--wire); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th { grid-column: 1 / -1; width: auto; padding: 16px 16px 6px; border: 0; font-size: 15px; }
  .compare td { width: auto; padding: 8px 16px 16px; border: 0; font-size: 14.5px; }
  .compare td::before { display: block; font: 600 10px/1 var(--mono); letter-spacing: .14em; color: var(--mist); margin-bottom: 6px; text-transform: uppercase; }
  .compare td:not(.is-arka)::before { content: "Cloud"; }
  .compare td.is-arka::before { content: "ARKA"; color: var(--lime); }
  .compare td.is-arka { border-left: 0; border-radius: 12px; margin: 0 10px 10px 0; }
}
@media (max-width: 560px) {
  .chat { height: 520px; border-radius: 24px; }
  .bubble { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__row { animation: none !important; flex-wrap: wrap; width: auto; }
}

.hash { margin-top: 16px; font: 500 11px/1.6 var(--mono); letter-spacing: .12em; color: var(--mist); }
.hash code { display: block; margin-top: 4px; font: 400 12px/1.6 var(--mono); letter-spacing: 0; color: #C3CCD8; overflow-wrap: anywhere; user-select: all; }
