/* ==========================================================================
   Cloud Buffer — tokens
   ========================================================================== */
:root {
  --ink: #0a0c0f;
  --ink-2: #0d1013;
  --gunmetal: #171b20;
  --gunmetal-2: #1e2329;
  --line: #2a3038;
  --steel: #8c97a3;
  --steel-dim: #737c89;
  --mist: #e9f0f7;
  --vapor: #6fb3e0;
  --vapor-bright: #a9d9ff;
  --ember: #ff5a36;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;

  --container: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--vapor); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--vapor-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 1000;
  background: var(--vapor-bright); color: #05171f;
  padding: 12px 20px; border-radius: 8px;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* film grain + cursor glow ambiance */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; width: 480px; height: 480px; border-radius: 50%;
  pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(111,179,224,0.10) 0%, rgba(111,179,224,0) 70%);
  transform: translate(-50%, -50%);
  left: -999px; top: -999px;
  transition: opacity 0.4s ease;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--vapor-bright);
  margin: 0 0 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--vapor);
  box-shadow: 0 0 10px 2px rgba(111,179,224,0.7);
}
.eyebrow-light { color: var(--steel); }
.eyebrow-light .dot { background: var(--steel); box-shadow: 0 0 8px 1px rgba(140,151,163,0.5); }

.text-ember { color: var(--ember); }
.grad-text {
  background: linear-gradient(100deg, var(--vapor-bright) 0%, var(--vapor) 45%, #cfe8ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  border: none; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--vapor-bright), var(--vapor));
  color: #05171f;
  box-shadow: 0 8px 30px -8px rgba(111,179,224,0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(111,179,224,0.7), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-ghost {
  background: transparent; color: var(--mist);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--vapor); color: var(--vapor-bright); transform: translateY(-2px); }
.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10,12,15,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { color: var(--vapor-bright); display: inline-flex; filter: drop-shadow(0 0 7px rgba(169,217,255,0.6)); }
.brand-word {
  font-family: var(--display); font-weight: 800; font-size: 16px;
  letter-spacing: 0.02em; color: var(--mist); white-space: nowrap;
}
.brand-word-short { display: none; }
.brand-word em { font-style: normal; color: var(--vapor-bright); font-weight: 500; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14px; color: var(--steel); font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--mist); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; box-sizing: border-box;
  font-family: var(--body); font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--mist); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { border-color: var(--vapor); color: var(--vapor-bright); }
.nav-cta-short { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; box-sizing: border-box;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block; width: 18px; height: 2px; background: var(--mist);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10,12,15,0.97);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 4px 28px 20px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 15px;
  }
  .nav-links a:first-child { border-top: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta-full { display: none; }
  .nav-cta-short { display: inline; }
  .nav-cta { padding: 10px 16px; }
  .brand-word-full { display: none; }
  .brand-word-short { display: inline; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 28px 80px;
  overflow: hidden;
}
.hero-vapor {
  position: absolute; inset: -10% -10% -30% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 28%, rgba(111,179,224,0.22) 0%, rgba(111,179,224,0) 60%),
    radial-gradient(40% 35% at 15% 75%, rgba(111,179,224,0.10) 0%, rgba(111,179,224,0) 60%),
    radial-gradient(50% 40% at 50% 100%, rgba(30,35,41,0.9) 0%, rgba(10,12,15,0) 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-title {
  font-size: clamp(48px, 6.4vw, 92px);
  font-weight: 900; line-height: 0.98; letter-spacing: -0.02em;
  color: var(--mist);
  margin-bottom: 22px;
  opacity: 0; transform: translateY(18px);
  animation: rise 0.9s 0.15s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-sub {
  font-size: 18px; color: var(--steel); max-width: 480px; margin-bottom: 34px;
  opacity: 0; transform: translateY(14px);
  animation: rise 0.9s 0.35s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
  opacity: 0; transform: translateY(14px);
  animation: rise 0.9s 0.5s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-actions.center { justify-content: center; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero-shipnote {
  font-family: var(--mono); font-size: 12.5px; color: var(--vapor);
  margin: 0 0 38px;
  opacity: 0; animation: rise 0.9s 0.6s cubic-bezier(.16,1,.3,1) forwards;
}

.hero-stats {
  display: flex; gap: 34px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
  opacity: 0; animation: rise 0.9s 0.7s cubic-bezier(.16,1,.3,1) forwards;
}
.hstat { display: flex; flex-direction: column; gap: 4px; }
.hstat-num { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--vapor-bright); }
.hstat-label { font-size: 12.5px; color: var(--steel-dim); max-width: 12ch; }
.flag-icon { display: inline-block; vertical-align: 1px; margin-left: 6px; border-radius: 1.5px; box-shadow: 0 0 0 1px rgba(255,255,255,0.15); }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid var(--line); border-radius: 14px;
  z-index: 1;
}
.hero-scroll span {
  display: block; width: 4px; height: 8px; margin: 6px auto 0;
  background: var(--vapor); border-radius: 2px;
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0%,100% { opacity: 0; transform: translateY(0);} 50% { opacity:1; transform: translateY(10px);} }

/* ---- hero product shot ---- */
.hero-stage { position: relative; }
.viewer {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.viewer-model {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
  object-fit: contain;
  --poster-color: transparent;
  background-color: transparent;
}

/* ==========================================================================
   Section shells
   ========================================================================== */
main section { position: relative; padding: 120px 28px; scroll-margin-top: 90px; }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); color: var(--mist); margin-bottom: 18px; }
#impulse .section-head h2 { font-family: "Bebas Neue", var(--display); font-weight: 400; letter-spacing: 0.04em; }
.section-lede { color: var(--steel); font-size: 16.5px; line-height: 1.65; }
.section-caveat {
  font-family: var(--mono); font-size: 11.5px; color: var(--steel-dim);
  margin-top: 14px; letter-spacing: 0.02em;
}

/* ==========================================================================
   Impulse scope
   ========================================================================== */
.impulse { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.scope { max-width: var(--container); margin: 0 auto; }
.scope-readout {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.ro { display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); }
.ro-k { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-dim); }
.ro-v { font-size: 17px; font-weight: 600; }
.ro-v.ember { color: var(--ember); }
.ro-v.vapor { color: var(--vapor-bright); }
.ro-arrow { color: var(--steel-dim); }

.scope-chart-wrap {
  position: relative;
  background: var(--gunmetal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 18px;
}
.scope-chart { width: 100%; height: auto; display: block; }
.scope-grid line { stroke: rgba(255,255,255,0.045); stroke-width: 1; }
.scope-axis { stroke: var(--line); stroke-width: 1; }
.scope-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ember-line { stroke: var(--ember); filter: drop-shadow(0 0 6px rgba(255,90,54,0.35)); }
.vapor-line { stroke: var(--vapor-bright); filter: drop-shadow(0 0 8px rgba(111,179,224,0.55)); }
.scope-area { opacity: 0.9; }
.scope-legend { display: flex; gap: 22px; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--steel); }
.lg { display: flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.sw.ember { background: var(--ember); }
.sw.vapor { background: var(--vapor-bright); }
.scope-axis-label {
  text-align: right; font-family: var(--mono); font-size: 11px; color: var(--steel-dim);
  margin-top: 6px; letter-spacing: 0.04em;
}

/* draw-on animation for lines, controlled via inline stroke-dash vars set in JS */
.scope-line, .scope-area { opacity: 0; transition: opacity 0.6s ease; }
.scope.in-view .scope-line, .scope.in-view .scope-area { opacity: 1; }

/* ==========================================================================
   Mechanism
   ========================================================================== */
.mechanism { background: var(--ink-2); }
.mech-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.mech-card {
  background: var(--gunmetal); padding: 34px 26px;
  transition: background 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
  opacity: 0; transform: translateY(14px);
}
.mech-card.in-view { opacity: 1; transform: translateY(0); }
.mech-card:hover { background: var(--gunmetal-2); }
.mech-num {
  display: block; font-family: var(--mono); font-size: 12px; color: var(--vapor);
  margin-bottom: 22px; letter-spacing: 0.06em;
}
.mech-card h3 { font-size: 18px; color: var(--mist); margin-bottom: 10px; font-weight: 700; }
.mech-card p { font-size: 14.5px; color: var(--steel); line-height: 1.6; }

@media (max-width: 900px) {
  .mech-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mech-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Where it sits (exploded assembly diagram)
   ========================================================================== */
.assembly { background: var(--ink-2); }
.assembly-wrap { max-width: var(--container); margin: 0 auto; }
.assembly-wrap figure { margin: 0; }
.assembly-scroll {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.assembly-svg {
  width: 100%; min-width: 820px; height: auto; display: block;
  background: var(--gunmetal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-sizing: border-box;
}
.assembly-caption {
  font-family: var(--mono); font-size: 12px; color: var(--steel-dim);
  text-align: center; margin-top: 16px; line-height: 1.6;
}

/* ==========================================================================
   About the material
   ========================================================================== */
.material { background: var(--ink); }
.material-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.material-specs { border-top: none; }
.material-note h3 {
  font-size: 16px; color: var(--vapor-bright); margin-bottom: 12px; font-weight: 700;
}
.material-note p { font-size: 14.5px; color: var(--steel); line-height: 1.7; }
.material-note .section-caveat { margin-top: 18px; }

@media (max-width: 860px) {
  .material-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Specs
   ========================================================================== */
.specs { background: var(--ink); }
.spec-table {
  max-width: 780px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.spec-row {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 14px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.spec-row.in-view { opacity: 1; transform: translateY(0); }
.spec-k { color: var(--steel-dim); }
.spec-v { color: var(--mist); text-align: right; }

/* ==========================================================================
   Compatibility
   ========================================================================== */
.compat { background: var(--ink-2); }
.compat-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.compat-card {
  background: var(--gunmetal); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.compat-card.in-view { opacity: 1; transform: translateY(0); }
.compat-card h3 { font-size: 15.5px; color: var(--vapor-bright); margin-bottom: 10px; font-weight: 600; }
.compat-card p { font-size: 14px; color: var(--steel); line-height: 1.6; }
@media (max-width: 900px) { .compat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .compat-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative; text-align: center; overflow: hidden;
  padding: 140px 28px;
}
.cta-vapor {
  position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 40%, rgba(111,179,224,0.20), rgba(10,12,15,0) 65%);
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta h2 { font-size: clamp(28px, 4.2vw, 44px); color: var(--mist); margin-bottom: 18px; line-height: 1.12; }
.cta p { color: var(--steel); font-size: 16.5px; margin-bottom: 36px; }
.cta-shipfree { font-family: var(--mono); font-size: 12.5px; color: var(--vapor); margin-top: 18px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: 48px 28px 36px; }
.footer-inner { max-width: var(--container); margin: 0 auto; text-align: center; }
.foot-brand { justify-content: center; margin-bottom: 18px; }
.foot-note { color: var(--steel-dim); font-size: 12.5px; max-width: 560px; margin: 0 auto 14px; line-height: 1.6; }
.foot-copy { color: var(--steel-dim); font-size: 12px; opacity: 0.7; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { order: -1; max-width: 440px; margin: 0 auto; width: 100%; }
  .hero-copy { max-width: 100%; }
}
@media (max-width: 640px) {
  main section { padding: 90px 20px; }
  .hero { padding-top: 120px; }
  .hero-stats { gap: 22px; }
  .scope-readout { gap: 24px; }
}
