/* CAELIS presentation page. Brand palette from design/logo/BRAND.md. */
:root {
  --night: #0e1433;
  --night-deep: #080c22;
  --dusk: #343c70;
  --ivory: #f2efe6;
  --ivory-dim: #c4c2cf;
  --amber: #ffb547;
  --amber-hot: #ff8a3d;
  --cyan: #6fd6e8;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(242, 239, 230, 0.12);
  --radius: 22px;
  --radius-phone: 34px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ivory);
  background: var(--night-deep);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(52, 60, 112, 0.55), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(52, 60, 112, 0.35), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 45%, var(--night) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--amber); color: var(--night); font-weight: 700; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.5em; line-height: 1;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background-color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: var(--night);
  background: linear-gradient(135deg, #ffd08a, var(--amber) 45%, var(--amber-hot));
  box-shadow: 0 10px 30px -10px rgba(255, 181, 71, 0.7);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 181, 71, 0.85); }
.btn-ghost { border-color: var(--border); background: var(--surface); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(242, 239, 230, 0.35); background: var(--surface-strong); }
.btn-small { min-height: 44px; padding: 0 1.15em; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(8, 12, 34, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { width: 150px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav .nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav .nav-links a {
  display: inline-block; padding: 10px 12px; border-radius: 10px;
  color: var(--ivory-dim); text-decoration: none; font-size: 0.95rem; font-weight: 550;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav .nav-links a:hover, .site-nav .nav-links a[aria-current="true"] { color: var(--ivory); background: var(--surface); }

.lang-picker { position: relative; }
.lang-picker summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 30px 0 14px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--ivory);
  font-size: 0.92rem; font-weight: 550; cursor: pointer; list-style: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}
.lang-picker[open] summary::after { transform: translateY(3px) rotate(225deg); }
.lang-picker summary:hover { background: var(--surface); border-color: rgba(242, 239, 230, 0.35); }
.lang-picker summary .icon { color: var(--ivory-dim); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 180px;
  list-style: none; margin: 0; padding: 6px; border-radius: 16px;
  border: 1px solid var(--border); background: rgba(14, 20, 51, 0.97);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  animation: menu-in 0.25s var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--ivory-dim); text-decoration: none; font-size: 0.95rem;
}
.lang-menu a:hover { background: var(--surface-strong); color: var(--ivory); }
.lang-menu a[aria-current="page"] { color: var(--amber); font-weight: 650; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--ivory); cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; border-radius: 2px;
  background: currentColor; transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bar::before { transform: translateY(-6px); }
.nav-toggle-bar::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); background: var(--ivory); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: rotate(-45deg); background: var(--ivory); }

@media (max-width: 920px) {
  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 16px var(--gutter) 24px;
    background: rgba(8, 12, 34, 0.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .site-nav .nav-links { flex-direction: column; }
  .js .site-nav .nav-links a { display: block; padding: 12px; font-size: 1.05rem; }
  .js .site-header:has(.is-open) { background: rgba(8, 12, 34, 0.96); }
  .lang-picker { align-self: flex-start; }
  .lang-menu { left: 0; right: auto; }
  .site-nav .btn { justify-content: center; }
  .no-js .site-nav .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; padding: 120px 0 80px;
  display: flex; align-items: center; overflow: hidden;
}
/* Day and night: main.js drives --day (0 night … 1 day), --warm (sunrise/sunset glow) and --stars.
   The day sky stays a deep blue so the ivory text keeps its contrast (≥ 6:1) at noon too. */
.hero { --day: 0; --warm: 0.6; }
.sky { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.sky-day {
  opacity: var(--day);
  background: linear-gradient(180deg, #1d2f6b 0%, #2b4290 55%, #3c57a6 100%);
}
.sky-warm {
  opacity: var(--warm);
  background:
    radial-gradient(120% 60% at 50% 105%, rgba(255, 138, 61, 0.55), transparent 60%),
    radial-gradient(70% 40% at 50% 100%, rgba(255, 181, 71, 0.4), transparent 70%);
}
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.sun-arc { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; z-index: -1; pointer-events: none; overflow: visible; }
.sun-arc-path { fill: none; stroke: url(#arc-grad); stroke-width: 2; opacity: 0.6; }
.sky-body { transform: translate(600px, 170px); }
.sky-moon { opacity: 0; }
.sun-low { opacity: 0; }
.sky-sun, .sky-moon { mix-blend-mode: screen; } /* glow adds light; over blue, a translucent amber reads grey */
.sun-rays { opacity: 0.4; transform-origin: 0 0; }
.js .sun-rays { animation: sun-spin 90s linear infinite, sun-breathe 6s ease-in-out infinite; }
@keyframes sun-spin { to { transform: rotate(360deg); } }
@keyframes sun-breathe { 50% { opacity: 0.2; } }
.ridge-back { fill: var(--ridge-back, #121a42); }
.ridge-front { fill: var(--ridge-front, #0a0f28); }
/* With WebGL the atmosphere, the Sun and the Moon are rendered (sky-gl.js); the CSS sky and the SVG
   bodies stay as the fallback and are only hidden. */
.sky-gl { display: none; width: 100%; height: 100%; }
.has-skygl .sky-gl { display: block; }
.has-skygl .sky-day, .has-skygl .sky-warm, .has-skygl .sky-sun, .has-skygl .sky-moon { display: none; }

.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--ivory-dim); font-size: 0.9rem; font-weight: 550;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 12px var(--amber);
}
.hero-title { margin-top: 22px; font-size: clamp(2.2rem, 4.8vw, 3.9rem); font-weight: 780; }
.hero-title em, .hero-title strong {
  font-style: normal;
  background: linear-gradient(100deg, #ffd08a, var(--amber) 40%, var(--amber-hot));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { margin-top: 22px; max-width: 36rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ivory-dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; color: var(--ivory-dim); font-size: 0.92rem; letter-spacing: 0.02em; }

.hero-visual { position: relative; justify-self: center; perspective: 1200px; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: min(300px, 70vw);
  padding: 10px; border-radius: var(--radius-phone);
  background: linear-gradient(160deg, #2b3157, #0b0f26 60%, #1d2246);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 20px 60px -20px rgba(52, 60, 112, 0.7);
}
/* The screenshot fills the screen at its own aspect ratio: never cropped, no fake punch hole over the app's header. */
.phone img { width: 100%; height: auto; aspect-ratio: 540 / 980; border-radius: calc(var(--radius-phone) - 10px); }
.phone-hero { width: min(320px, 74vw); }
.phone-hero::after, .phone-glow::after {
  content: ""; position: absolute; inset: 12% -18% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 214, 232, 0.28), transparent);
  filter: blur(30px);
}
.phone-small { width: min(270px, 66vw); }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 16px; border: 1px solid var(--border);
  background: rgba(14, 20, 51, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 0.88rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
}
.chip-a { top: 16%; left: -28%; }
.chip-b { bottom: 14%; right: -22%; }
.js .chip-a { animation: bob 7s ease-in-out infinite; }
.js .chip-b { animation: bob 8s ease-in-out -3s infinite; }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; }
.chip-dot-amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.chip-dot-cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats { padding: 0 0 20px; }
.stats-list {
  list-style: none; margin: 0; padding: 26px clamp(16px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); backdrop-filter: blur(8px);
}
.stats-list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.stat-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--amber); }
.stat-label { color: var(--ivory-dim); font-size: 0.95rem; line-height: 1.35; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; scroll-margin-top: 60px; }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.section h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 760; }
.kicker {
  margin-bottom: 14px; color: var(--cyan);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.kicker-amber { color: var(--amber); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 30px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, background-color 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(255, 181, 71, 0.14), transparent 70%);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 181, 71, 0.35); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--ivory-dim); flex: 1; }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.22), rgba(255, 181, 71, 0.04));
  border: 1px solid rgba(255, 181, 71, 0.3);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-link {
  align-self: flex-start; display: inline-flex; gap: 6px; padding: 8px 0;
  color: var(--amber); font-weight: 650; text-decoration: none;
}
.card-link span[aria-hidden] { transition: transform 0.3s var(--ease-out); }
.card-link:hover span[aria-hidden] { transform: translateX(4px); }

/* Feature rows */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.feature-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.feature-copy h2 { margin-bottom: 28px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 36px; color: var(--ivory-dim); }
.check-list li::before {
  /* Centred on the first line: line-height is 1.6, so the line's middle is 0.8em down. */
  content: ""; position: absolute; left: 0; top: calc(0.8em - 11px); width: 22px; height: 22px; border-radius: 50%;
  background: rgba(111, 214, 232, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236FD6E8' 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;
}
.feature-alt .check-list li::before {
  background-color: rgba(255, 181, 71, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB547' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
}
.feature-alt { background: linear-gradient(180deg, transparent, rgba(255, 138, 61, 0.06) 50%, transparent); }

/* Overlapped by layout, never rotated or scaled: a transformed screenshot is resampled and goes soft. */
.duo .phone { width: min(250px, 42vw); flex: none; }
.duo .phone-back { margin: -64px -56px 0 0; opacity: 0.8; }
.duo .phone-front { margin-top: 64px; z-index: 1; }
.js .duo.is-visible .phone-back { animation: slide-back 1.1s var(--ease-out) both; }
.js .duo.is-visible .phone-front { animation: slide-front 1.1s var(--ease-out) both; }
@keyframes slide-back { from { transform: translateX(60px); opacity: 0; } }
@keyframes slide-front { from { transform: translateX(-40px); } }

/* How */
.how-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 24px 24px 24px 88px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); counter-increment: step;
}
.step::before {
  content: counter(step); position: absolute; left: 24px; top: 22px;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  background: var(--dusk); color: var(--amber); font-weight: 800; font-size: 1.2rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--ivory-dim); }

/* Privacy */
.privacy-panel {
  position: relative; padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border); overflow: hidden;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(111, 214, 232, 0.12), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(255, 181, 71, 0.1), transparent 70%),
    var(--surface);
}
.privacy-head { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; }
.privacy-head .kicker { margin-bottom: 8px; }
.shield {
  flex: none; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px;
  background: rgba(111, 214, 232, 0.12); border: 1px solid rgba(111, 214, 232, 0.35);
}
.shield svg { width: 38px; height: 38px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.privacy-list h3 { font-size: 1.15rem; margin-bottom: 8px; }
.privacy-list p { color: var(--ivory-dim); }

/* Gallery */
.gallery { padding-bottom: clamp(48px, 8vw, 100px); overflow-x: clip; } /* the spotlight is wider than a phone */
.round-btn {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--ivory); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.round-btn:hover { background: var(--surface-strong); border-color: rgba(242, 239, 230, 0.35); }
.round-btn:active { transform: scale(0.94); }
.round-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:disabled { opacity: 0.3; cursor: default; }
.round-btn:disabled:hover { background: var(--surface); border-color: var(--border); }
.round-btn:disabled:active { transform: none; }

.section-head-center { margin-inline: auto; text-align: center; }

/* Carousel: the slide in the middle is lit, the others wait in the dark beside it.
   Slides change only opacity and outline, never transform: a scaled screenshot goes soft. */
.carousel { --slide: clamp(210px, 62vw, 280px); position: relative; isolation: isolate; }
.carousel::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 140vw); height: 85%; z-index: -1;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(52, 60, 112, 0.75), rgba(111, 214, 232, 0.06) 60%, transparent);
}
.gallery-track {
  list-style: none; margin: 0; display: flex; gap: clamp(18px, 3vw, 36px);
  padding: 24px calc(50% - var(--slide) / 2) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -3px; }
.slide { flex: none; width: var(--slide); scroll-snap-align: center; }
.slide figure { margin: 0; }
.js .slide { opacity: 0.38; transition: opacity 0.5s var(--ease-out); cursor: pointer; }
.js .slide.is-active { opacity: 1; cursor: default; }
.phone-slide { width: 100%; transition: box-shadow 0.5s var(--ease-out); }
.slide.is-active .phone-slide {
  box-shadow:
    0 0 0 1px rgba(255, 181, 71, 0.45),
    0 0 50px -6px rgba(255, 181, 71, 0.35),
    0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.slide figcaption {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 20px; color: var(--ivory); font-size: 1rem; font-weight: 600; text-align: center; line-height: 1.3;
}
.slide-num {
  flex: none; padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 181, 71, 0.14); color: var(--amber);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.no-js .carousel-nav { display: none; }
.carousel-dots { display: flex; align-items: center; }
.carousel-dots button {
  width: 32px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.carousel-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(242, 239, 230, 0.3);
  transition: width 0.35s var(--ease-out), background-color 0.35s;
}
.carousel-dots button:hover::before { background: rgba(242, 239, 230, 0.6); }
.carousel-dots button[aria-current="true"]::before { width: 24px; background: var(--amber); }

/* Final CTA */
.cta-panel {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 60px); border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255, 181, 71, 0.25);
  background:
    radial-gradient(700px 320px at 50% 120%, rgba(255, 138, 61, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(52, 60, 112, 0.5), rgba(14, 20, 51, 0.4));
}
.cta-panel p { color: var(--ivory-dim); font-size: 1.1rem; }
.cta-panel .hero-actions { justify-content: center; margin-top: 10px; }
.cta-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 20px 50px -20px rgba(255, 181, 71, 0.6); }

/* Footer */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--border); color: var(--ivory-dim); font-size: 0.92rem; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner p { flex: 1 1 280px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { display: inline-block; padding: 10px 0; text-decoration-color: rgba(242, 239, 230, 0.3); text-underline-offset: 4px; }
.footer-links a:hover { color: var(--ivory); text-decoration-color: var(--amber); }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero { padding-top: 110px; text-align: left; }
  .hero-inner, .feature-grid, .how-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
  .chip-a { left: -14%; }
  .chip-b { right: -10%; }
  .cards { grid-template-columns: 1fr; }
  .feature-grid .feature-visual { order: 2; }
  .stats-list { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .privacy-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .float-chip { font-size: 0.8rem; padding: 8px 12px; }
  .chip-a { left: -6%; top: 8%; }
  .chip-b { right: -4%; }
  .privacy-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .step { padding: 80px 20px 22px; }
  .step::before { left: 20px; top: 20px; }
  .section-head-row { align-items: flex-start; flex-direction: column; }
  .duo .phone { width: min(190px, 44vw); }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
