/* The ARVI / ORBIT product page (index.html). Loads after base.css. */

/* -- Hero ------------------------------------------------------------------------------------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #01030a; }
.hero__media, .hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 62% 60%; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 2, 8, 0.72) 0%, rgba(0, 2, 8, 0.25) 46%, transparent 70%), linear-gradient(0deg, #000 0%, transparent 24%); }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.hero__copy { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 50%; transform: translateY(-46%); max-width: 600px; }
.hero__title { font: 600 clamp(88px, min(17vw, 26svh), 240px)/0.86 var(--display); letter-spacing: -0.045em; margin: 4px 0 26px -0.05em; background: linear-gradient(180deg, #fff 30%, #9fb6cc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.04em; }
.hero__title.is-split { background: none; }
.hero__title .char { background: linear-gradient(180deg, #fff 30%, #9fb6cc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.04em; }
.hero__lead { font: 600 clamp(24px, 2.6vw, 36px)/1.15 var(--display); letter-spacing: -0.02em; max-width: 15em; }
.hero__sub { margin-top: 14px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 26em; }
.hero__hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.hero__hint i { width: 1px; height: 38px; background: linear-gradient(var(--ink-3), transparent); animation: hint 2.4s var(--ease-out) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  /* Phones: the photo takes the lower part of the screen, the words the dark sky above it. */
  .hero__media { top: 48%; height: auto; }
  .hero__media img { object-position: 90% 50%; }
  .hero__hint { display: none; }
  .hero__media::after { background: linear-gradient(180deg, #01030a 0%, rgba(1, 3, 10, 0.5) 22%, transparent 45%), linear-gradient(0deg, #000 0%, transparent 22%); }
  .hero__copy { top: calc(var(--nav-h) + 6svh); transform: none; right: var(--gutter); }
  .hero__title { margin-bottom: 14px; }
}

/* -- Statement -------------------------------------------------------------------------------- */
.statement { padding: clamp(120px, 24vh, 260px) 0; }
.statement__text { max-width: calc(1060px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); font: 600 clamp(30px, 4.3vw, 60px)/1.13 var(--display); letter-spacing: -0.024em; }
.js .statement__text .word { color: rgba(243, 241, 236, 0.16); }

/* -- Film ------------------------------------------------------------------------------------- */
.film { position: relative; background: #000; }
.film__stage { position: relative; height: 100svh; overflow: hidden; }
.film__canvas, .film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .film__poster { opacity: 0; transition: opacity 0.4s; }
.js .film:not(.is-ready) .film__poster { opacity: 1; }
.film__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.18) 42%, transparent 62%), linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 34%); pointer-events: none; }
.film__steps { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: 14svh; width: min(520px, calc(100vw - 2 * var(--gutter))); }
.film__step { position: absolute; left: 0; bottom: 0; opacity: 0; transform: translateY(24px); }
.film__step h2 { font: 600 clamp(30px, min(4.6vw, 8.5svh), 64px)/1.04 var(--display); letter-spacing: -0.03em; margin: 8px 0 14px; }
.film__step p { font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); max-width: 24em; }
.film__n { font: 500 13px/1 var(--text); letter-spacing: 0.14em; color: var(--cyan); }
.film__rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 12px; }
.film__rail i { width: 6px; height: 6px; border-radius: 50%; background: rgba(243, 241, 236, 0.25); transition: background 0.3s, transform 0.3s; }
.film__rail i.is-on { background: var(--cyan); transform: scale(1.5); }
html:not(.js) .film__step, .reduce .film__step { position: static; opacity: 1; transform: none; margin-top: 28px; }
html:not(.js) .film__stage, .reduce .film__stage { height: auto; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: 10svh; }
html:not(.js) .film__steps, .reduce .film__steps { position: relative; left: auto; bottom: auto; margin-left: var(--gutter); }
@media (max-width: 760px) {
  .film__shade { display: none; }
  .film__poster { object-fit: contain; object-position: 50% 30%; }
  .film__steps { bottom: 9svh; }
  .film__rail { display: none; }
}

/* -- Screen (firmware aura) ------------------------------------------------------------------- */
.screen { padding: clamp(110px, 18vh, 200px) 0; background: radial-gradient(120% 80% at 75% 50%, var(--night-900), #000 60%); }
.screen__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.screen__copy .lead { margin-top: 22px; }
.phases { margin: 38px 0 26px; display: grid; gap: 8px; }
.phase { width: 100%; display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; border: 1px solid transparent; text-align: left; transition: background 0.25s, border-color 0.25s; }
.phase i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.phase[data-phase='idle'] { --c: #00BFFF; }
.phase[data-phase='listening'] { --c: #35D0FF; }
.phase[data-phase='thinking'] { --c: #FFC857; }
.phase[data-phase='speaking'] { --c: #8BE9FD; }
.phase b { font-weight: 600; }
.phase span { color: var(--ink-3); font-size: 15px; }
.phase:hover { background: rgba(255, 255, 255, 0.03); }
.phase.is-on { background: rgba(12, 19, 34, 0.9); border-color: var(--line); }
.phase.is-on span { color: var(--ink-2); }
.screen__device { display: grid; justify-items: center; }
/* The device face: an explicit square (WebKit sizes an aspect-ratio <button> without its padding, which made it
   oval on iPhone), the screen canvas placed inside it in absolute terms. */
.aura {
  --glow: #00BFFF;
  --size: min(470px, 82vw);
  position: relative; flex: none; width: var(--size); height: var(--size); border-radius: 50%; padding: 0;
  -webkit-appearance: none; appearance: none;
  background: conic-gradient(from 210deg, #8d939b, #f4f6f8 12%, #a7adb5 26%, #e6e9ec 42%, #868c94 58%, #dfe2e6 74%, #9aa0a8 88%, #8d939b);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 120px -30px var(--glow);
  transition: box-shadow 0.5s;
}
.aura::before { content: ''; position: absolute; inset: 2.6%; border-radius: 50%; background: #050608; box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.8); }
.aura__canvas { position: absolute; left: 4.2%; top: 4.2%; width: 91.6%; height: 91.6%; max-width: none; border-radius: 50%; }
.aura::after { content: ''; position: absolute; inset: 4.2%; border-radius: 50%; background: linear-gradient(140deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 55%); pointer-events: none; }
.aura:active { transform: scale(0.992); }
.aura__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 900px) {
  .screen__grid { grid-template-columns: 1fr; }
  .screen__device { order: -1; }
}

/* -- Design (three.js) ------------------------------------------------------------------------ */
.design { position: relative; background: radial-gradient(90% 70% at 50% 58%, #0d1628 0%, #000 62%); }
.design__stage { position: relative; height: 100svh; overflow: hidden; }
.design__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.design__fallback { display: none; position: absolute; left: 50%; top: 55%; width: min(560px, 80vw); transform: translate(-50%, -50%); }
.no-webgl .design__fallback { display: block; }
.no-webgl .design__canvas, .no-webgl .design__labels, .no-webgl .design__copy--b { display: none; }
.design__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.design__lines line { stroke: rgba(243, 241, 236, 0.4); stroke-width: 1; }
.design__copy { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: calc(var(--nav-h) + 9svh); max-width: 520px; }
.design__copy .lead { margin-top: 18px; }
.design__copy .title { font-size: clamp(30px, min(5.6vw, 8svh), 76px); }
.design__copy--b { left: 0; right: 0; max-width: none; text-align: center; padding-inline: var(--gutter); }
.js .design__copy--b { opacity: 0; }
.reduce .design__copy--a { display: none; }
.reduce .design__copy--b { opacity: 1; }
.design__labels { position: absolute; inset: 0; pointer-events: none; }
.part { position: absolute; left: 0; top: 0; max-width: 250px; opacity: 0; will-change: transform, opacity; }
.part b { display: block; font: 600 17px/1.25 var(--display); letter-spacing: -0.01em; }
.part span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 739px) {
  .design__labels { inset: auto var(--gutter) 7svh; height: 120px; }
  .part { top: auto; bottom: 0; max-width: none; transform: none !important; text-align: center; left: 0; right: 0; }
  .design__copy { right: var(--gutter); }
}

/* -- Moments ---------------------------------------------------------------------------------- */
.moments { padding: clamp(110px, 16vh, 180px) 0 clamp(60px, 10vh, 120px); overflow: hidden; }
.moments__head { margin-bottom: clamp(28px, 5svh, 64px); }
.moments__head .title { max-width: 14em; }
/* Desktop: the gallery is pinned, so the whole scene (title + cards) is exactly one screen tall and the cards take
   the height that is left (16:9, capped by the width). Short laptop screens get smaller cards, never cut quotes. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .moments { height: 100svh; padding: calc(var(--nav-h) + 4svh) 0 5svh; display: flex; flex-direction: column; }
  .moments__head .title { font-size: clamp(30px, min(5.6vw, 7.5svh), 76px); }
  .moments__track { flex: 1 1 auto; min-height: 0; align-items: center; }
  .moment { flex: 0 0 auto; height: min(100%, calc(min(62vw, 980px) * 9 / 16)); aspect-ratio: 16 / 9; }
}
.moments__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.moment { position: relative; flex: 0 0 min(62vw, 980px); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--night-900); }
.moment picture { position: absolute; inset: 0; }
.moment img { width: 100%; height: 100%; object-fit: cover; }
.moment::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.1) 46%, transparent 62%); }
.moment__copy { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); z-index: 1; }
.moment__ctx { font-size: 15px; font-weight: 600; color: var(--cyan); margin-bottom: 8px; }
.moment blockquote { font: 600 clamp(22px, 2.7vw, 40px)/1.12 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.memory { padding: 0 0 clamp(90px, 14vh, 160px); }
.memory__text { font-size: clamp(20px, 1.9vw, 28px); }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .moments__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .moments__track::-webkit-scrollbar { display: none; }
  .moment { scroll-snap-align: center; }
}
@media (max-width: 900px) { .moment { flex-basis: 86vw; aspect-ratio: 4 / 5; } }

/* -- Outside ---------------------------------------------------------------------------------- */
.outside { padding: clamp(90px, 14vh, 160px) 0; }
.outside__grid { display: grid; grid-template-columns: 0.9fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.outside__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.outside__media img { width: 100%; height: 100%; object-fit: cover; }
.outside__copy .lead { margin-top: 22px; }
.ticks { margin-top: 32px; display: grid; gap: 14px; font-size: 19px; }
.ticks li { display: flex; gap: 14px; align-items: center; }
.ticks li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23001520' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
@media (max-width: 900px) { .outside__grid { grid-template-columns: 1fr; } .outside__media { aspect-ratio: 1; } }

/* -- Privacy ---------------------------------------------------------------------------------- */
.privacy { position: relative; padding: clamp(120px, 20vh, 220px) 0; overflow: hidden; isolation: isolate; }
.privacy__bg { position: absolute; inset: 0 0 0 36%; z-index: -1; }
@media (max-width: 900px) { .privacy__bg { inset: 0; } }
.privacy__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0.55; }
.privacy__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.25) 30%, rgba(0, 0, 0, 0.55) 70%, #000 100%), linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.4) 30%, transparent 60%); }
.privacy .title { max-width: 11em; }
.cards { margin-top: clamp(48px, 8vh, 80px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 28px 26px 30px; border-radius: 24px; background: rgba(12, 19, 34, 0.55); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.card h3 { font: 600 21px/1.2 var(--display); letter-spacing: -0.01em; margin-bottom: 12px; }
.card p { font-size: 15.5px; color: var(--ink-2); }
.privacy__more { margin-top: 34px; font-size: 17px; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* -- Everywhere ------------------------------------------------------------------------------- */
.everywhere { padding: clamp(100px, 16vh, 180px) 0; text-align: center; background: linear-gradient(180deg, #000, var(--night-950) 50%, #000); }
.everywhere .title, .everywhere .lead { margin-inline: auto; }
.everywhere .lead { margin-top: 20px; max-width: 34em; }
.surfaces { margin: 56px auto 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: center; gap: clamp(16px, 4vw, 48px); }
.surfaces li { display: grid; justify-items: center; gap: 14px; font-size: 16px; }
.surface__icon { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; color: var(--cyan); background: linear-gradient(160deg, var(--night-850), var(--night-950)); border: 1px solid var(--line); }
.surface__icon svg { width: 40px; }
@media (max-width: 600px) { .surfaces { grid-template-columns: repeat(2, minmax(0, 150px)); } }

/* -- Specs ------------------------------------------------------------------------------------ */
.specs { padding: clamp(110px, 16vh, 180px) 0; }
.stats { margin: clamp(48px, 7vh, 72px) 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 40px; }
.stat b { display: block; font: 600 clamp(44px, 5.4vw, 80px)/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 20%, var(--cyan-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.stat > span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 14em; }
.sheet { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); }
.sheet > div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; }
.sheet dt { font-weight: 600; }
.sheet dd { color: var(--ink-2); }
.specs .fine { margin-top: 26px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; } .sheet { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sheet > div { grid-template-columns: 1fr; gap: 6px; } }

/* -- CTA -------------------------------------------------------------------------------------- */
.cta { position: relative; min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center; padding: clamp(100px, 14vh, 160px) 0; overflow: hidden; }
.cta__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__glow { position: absolute; left: 50%; top: 36%; width: min(900px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(79, 195, 247, 0.28), rgba(79, 195, 247, 0.06) 55%, transparent 72%); pointer-events: none; }
.cta__device { position: relative; width: min(400px, 66vw); margin-bottom: 30px; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.8)); }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.cta__copy { position: relative; display: grid; justify-items: center; }
.cta__copy .lead { margin-top: 20px; max-width: 30em; }

/* -- Tester form -------------------------------------------------------------------------------- */
.tester { width: min(620px, 100%); margin-top: 36px; display: grid; gap: 14px; text-align: left; }
.tester__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--text); color: var(--ink); padding: 14px 16px; border-radius: 14px;
  background: rgba(12, 19, 34, 0.72); border: 1px solid rgba(243, 241, 236, 0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.18); }
.field input[aria-invalid='true'] { border-color: #ff7b72; box-shadow: 0 0 0 4px rgba(255, 123, 114, 0.15); }
.tester__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tester__captcha:empty { display: none; }
.tester__send { justify-self: center; margin-top: 10px; position: relative; min-width: 220px; }
.tester__send i { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0, 21, 32, 0.25); border-top-color: #001520; animation: spin 0.8s linear infinite; }
.tester.is-busy .tester__send { pointer-events: none; opacity: 0.85; }
.tester.is-busy .tester__send i { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.tester__status { min-height: 1.5em; text-align: center; font-size: 15px; color: #ff9b94; }
.tester__note { text-align: center; }
.tester__note a { color: var(--ink-2); }
.tester__done { margin-top: 40px; display: grid; justify-items: center; gap: 12px; max-width: 30em; outline: none; }
.tester__done svg { width: 64px; height: 64px; fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tester__done circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.7s var(--ease-out) forwards; }
.tester__done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.45s 0.5s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tester__done h3 { font: 600 clamp(26px, 3vw, 34px)/1.15 var(--display); letter-spacing: -0.02em; }
.tester__done p { color: var(--ink-2); }
@media (max-width: 600px) { .tester__row { grid-template-columns: 1fr; } .tester__send { width: 100%; } }

/* -- Reveal (set up by main.js) ---------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .cta__device, .hero__hint i { animation: none; }
  .js .statement__text .word { color: inherit; }
}
