/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

:root {
  --accent: #1e4fb8;
  --accent-dark: #163b8c;
  --accent-2: #1a9e94;
  --ink: #0e1a2b;
  --ink-soft: #5b6472;
  --ink-fixed: #0e1a2b;
  --stage-bg: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --surface: #ffffff;
  --line: #e4e8ef;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: rgba(14, 26, 43, 0.06);
  --btn-secondary-bg: rgba(255, 255, 255, 0.5);
  --btn-secondary-border: rgba(14, 26, 43, 0.15);
  --btn-secondary-bg-hover: rgba(255, 255, 255, 0.85);
  --radius: 20px;
  --container: 1180px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --accent: #4d7cf0;
  --accent-dark: #3661d6;
  --accent-2: #26c2b6;
  --ink: #f2f4f8;
  --ink-soft: #9aa3b3;
  --bg: #05070a;
  --bg-alt: #0c0f14;
  --surface: #10131a;
  --line: #242933;
  --nav-bg: rgba(5, 7, 10, 0.72);
  --shadow: rgba(0, 0, 0, 0.45);
  --btn-secondary-bg: rgba(255, 255, 255, 0.06);
  --btn-secondary-border: rgba(255, 255, 255, 0.14);
  --btn-secondary-bg-hover: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

body.no-scroll { overflow: hidden; }

.accent-text { color: var(--accent); }
.accent-text-2 { color: var(--accent-2); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
}
.eyebrow-light { color: #bcd2ff; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .3em;
  color: var(--ink);
}
.loader-bar-track {
  width: 220px;
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .15s ease;
}
.loader-pct {
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 500;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .12em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 6px 24px 18px;
}
.nav-mobile a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* ---------- Scroll-scrubbed hero ---------- */
.scrubber-wrap {
  position: relative;
  height: 500vh;
  background: var(--stage-bg);
}
.scrubber-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stage-bg);
}
.scrub-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scrub-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 140px rgba(14, 26, 43, 0.05);
}

.hero-sub {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.hero-ctas {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-primary.added { background: #1a9e5c; }
.btn-large { padding: 16px 36px; font-size: 15px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-secondary-bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid var(--btn-secondary-border);
  transition: background .2s ease, transform .2s ease;
}
.btn-secondary:hover { background: var(--btn-secondary-bg-hover); transform: translateY(-2px); }

.scrub-progress-wrap {
  position: absolute;
  bottom: 34px;
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
}
.scrub-progress-track {
  width: min(280px, 55vw);
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.scrub-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
}
.scroll-hint {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-soft);
  text-transform: uppercase;
  transition: opacity .4s ease;
}

/* ---------- Sections shared ---------- */
.section { padding: 120px 0; }
.section.overview { padding-top: 100px; }
.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.lead {
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 640px;
}

.reveal {
  opacity: 0;
  transform: translateY(52px) scale(0.97);
  filter: blur(6px);
  transition:
    opacity 1.1s cubic-bezier(.16,1,.3,1),
    transform 1.1s cubic-bezier(.16,1,.3,1),
    filter 1.1s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform, filter;
}
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* Gentle cascade for items that sit side by side in a grid */
.stat-row .stat:nth-child(2) { transition-delay: .12s; }
.stat-row .stat:nth-child(3) { transition-delay: .24s; }
.stat-row .stat:nth-child(4) { transition-delay: .36s; }

.feature-grid .feature-card:nth-child(2) { transition-delay: .1s; }
.feature-grid .feature-card:nth-child(3) { transition-delay: .2s; }
.feature-grid .feature-card:nth-child(4) { transition-delay: .3s; }
.feature-grid .feature-card:nth-child(5) { transition-delay: .4s; }
.feature-grid .feature-card:nth-child(6) { transition-delay: .5s; }

/* ---------- Overview stats ---------- */
.stat-row {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat-num {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-inline-start: 6px;
}
.stat-label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Features ---------- */
.features { background: var(--bg-alt); }
.feature-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; fill: #fff; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- Inside / exploded + checklist ---------- */
.inside-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.inside-text h2 { font-size: clamp(22px, 2.2vw, 30px); white-space: nowrap; }
.checklist { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}
.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(26, 158, 148, 0.12);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inside-visual {
  position: relative;
  background: var(--stage-bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.inside-visual img { width: 100%; height: auto; }
.callout {
  position: absolute;
  inset-inline-start: var(--x);
  top: var(--y);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(14,26,43,.88);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background .2s ease;
}
.callout::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink-fixed);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.callout:hover, .callout:focus-visible {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.12);
}
.callout:hover::after, .callout:focus-visible::after { opacity: 1; }

/* ---------- Explore (cloudimage-360-view) ---------- */
.explore { background: var(--bg-alt); }
.viewer-frame {
  margin-top: 48px;
  background: var(--ink-fixed);
  border-radius: var(--radius);
  border: 1px solid var(--ink-fixed);
  padding: 20px;
}
.cloudimage-360 {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-fixed);
}
.viewer-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 13.5px;
  color: #8a93a6;
}

/* ---------- Buy ---------- */
.buy-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.buy-card > * { min-width: 0; }
.buy-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  background: var(--stage-bg);
}
.buy-visual img { max-width: 340px; }
.buy-info {
  padding: 56px 60px;
  background: var(--bg-alt);
}
.buy-info h2 {
  margin-top: 6px;
  font-size: clamp(24px, 2.4vw, 32px);
  white-space: nowrap;
}
.price {
  margin: 28px 0 26px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price-num {
  font-size: clamp(38px, 4vw, 48px);
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.price-unit { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.trust-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.trust-list li { display: flex; align-items: center; gap: 10px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer p { font-size: 13px; color: var(--ink-soft); }
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.footer-meta a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; transition: color .2s ease; }
.footer-meta a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .inside-grid { grid-template-columns: 1fr; gap: 40px; }
  .inside-visual { order: 1; }
  .inside-text { order: 2; }
  .inside-text h2 { font-size: clamp(28px, 4vw, 46px); white-space: normal; }
  .buy-card { grid-template-columns: 1fr; }
  .buy-info { padding: 40px 32px; }
  .buy-visual { padding: 40px 32px; }
}

@media (max-width: 600px) {
  .section { padding: 84px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .scrub-caption { padding: 26px 22px; bottom: 8%; }
  .hero-ctas { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .scrub-caption { transition: none; }
}
