/* WaterSMS landing — sections, 3D stages and motion.
   Shared tokens and components live in theme.css. */

.landing { overflow-x: clip; }
.landing main { position: relative; }

/* ---------------------------------------------------------------- motion primitives */
[data-reveal] {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 28px, 0) rotateX(-9deg);
  transform-origin: 50% 0;
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal='fade'] { transform: none; }
[data-reveal='left'] { transform: perspective(1000px) translate3d(-34px, 0, 0) rotateY(10deg); }
[data-reveal='zoom'] { transform: perspective(1000px) scale(.94) rotateX(10deg); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }
.landing main > section { overflow-x: clip; }
@media (max-width: 760px) {
  /* on phones keep reveals vertical so nothing pokes past the screen edge mid-animation */
  [data-reveal], [data-reveal='left'], [data-reveal='zoom'] { transform: translate3d(0, 22px, 0); }
}

[data-tilt] { transform-style: preserve-3d; transition: transform .5s var(--ease-out), opacity .8s var(--ease-out); transition-delay: var(--d, 0ms); will-change: transform; }
[data-tilt].is-tilting { transition: transform .08s linear; }
.glare { position: relative; isolation: isolate; }
.glare::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .07), transparent 42%);
  opacity: 0; transition: opacity .3s;
}
.glare:hover::after { opacity: 1; }
:root[data-theme='light'] .glare::after { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(90, 74, 227, .07), transparent 42%); }

/* ---------------------------------------------------------------- scenes */
.scene { position: relative; width: 100%; isolation: isolate; }
.scene canvas.stage-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1s var(--ease-out); cursor: grab; touch-action: pan-y;
}
.scene canvas.stage-canvas.is-dragging, .scene.is-dragging canvas { cursor: grabbing; }
.scene.is-live canvas.stage-canvas { opacity: 1; }
.scene-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .8s var(--ease-out); pointer-events: none; }
.scene.is-live .scene-fallback { opacity: 0; }
.scene.is-fallback .scene-fallback { opacity: 1; }
.scene-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font: 450 12px/1 var(--font-mono); color: var(--muted); letter-spacing: .03em;
  transition: opacity .6s ease;
}
.scene-hint svg { width: 11px; height: 15px; color: var(--brand); }
.scene-hint.is-used { opacity: .45; }

/* fallback droplet + rings (also the loading state) */
.fallback-drop { position: relative; width: min(340px, 70%); aspect-ratio: 1; }
.fallback-drop svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fallback-drop .ring { transform-origin: 50% 74%; animation: ring 3.2s var(--ease-out) infinite; opacity: 0; }
.fallback-drop .ring:nth-child(2) { animation-delay: 1.05s; }
.fallback-drop .ring:nth-child(3) { animation-delay: 2.1s; }
@keyframes ring { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; overflow: clip; }
.hero-aura {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(640px 480px at 72% 34%, var(--brand-soft-2), transparent 70%),
    radial-gradient(520px 420px at 12% 8%, var(--brand-soft), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; min-height: min(760px, calc(100vh - var(--nav-h) - 40px)); }
.hero-copy { position: relative; z-index: 2; padding: 24px 0 40px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--paper) 70%, transparent);
  font: 450 12.5px/1 var(--font-mono); color: var(--body); letter-spacing: .01em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.live-badge .dot { width: 7px; height: 7px; }
.live-badge.is-idle .dot { background: var(--brand); animation: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.hero-title { margin-top: 26px; font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; animation: rise 1.1s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { transform: translateY(105%) rotate(2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.accent {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-fill) 0%, #b9b0ff 38%, #8b7ff7 62%, var(--brand-fill) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
:root[data-theme='light'] .accent { background-image: linear-gradient(100deg, #4b3bd5 0%, #8b7ff7 40%, #5a4ae3 70%, #3a2db8 100%); }
@keyframes shimmer { to { background-position: -220% 0; } }
.hero .lead { margin-top: 26px; font-size: 1.14rem; line-height: 1.62; max-width: 33rem; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 30px 0 0; }
.hero-meta div { display: flex; gap: 9px; align-items: baseline; }
.hero-meta dt { font: 450 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.hero-meta dd { margin: 0; font: 500 13.5px/1 var(--font-mono); color: var(--ink); }
.hero-visual { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: 560px; }
.scene--hero {
  height: min(700px, 76vh); min-height: 540px; margin-right: calc(var(--gutter) * -1); margin-left: -12%; width: 112%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%), linear-gradient(to bottom, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 16%), linear-gradient(to bottom, #000 76%, transparent 100%); mask-composite: intersect;
}
.hero-visual .scene-hint { position: absolute; right: 8px; bottom: 26px; z-index: 3; }
.hero [data-hero-in] { animation: fadeup 1s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* strip under the hero */
.strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 8px; padding: 26px 0 34px; border-top: 1px solid var(--line);
}
.strip-k { display: block; font: 450 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 12px; }
.strip ul { display: flex; flex-wrap: wrap; gap: 8px; }
.strip li {
  font-weight: 540; color: var(--ink); font-size: 14px; display: inline-flex; align-items: center;
  padding: 6px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- services orbit */
.orbit-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
.orbit-grid .section-head { margin-bottom: 0; }
.orbit-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.orbit-cta .flat { font: 500 13.5px/1.4 var(--font-mono); color: var(--muted); }
.orbit-cta .flat b { color: var(--ink); font-weight: 600; }
.orbit { position: relative; height: 640px; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: grab; }
.orbit.is-dragging { cursor: grabbing; }
.orbit-stage { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 40%; }
.orbit-floor {
  position: absolute; left: 50%; top: 60%; width: 96%; aspect-ratio: 1; transform: translate(-50%, -50%) rotateX(68deg);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--brand-soft-2), transparent 72%);
}
.orbit-floor::before, .orbit-floor::after {
  content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 1px solid var(--brand-line); opacity: .6;
}
.orbit-floor::after { inset: 26%; opacity: .45; }
.orbit-3d { position: absolute; left: 50%; top: 47%; width: 0; height: 0; transform-style: preserve-3d; }
.orbit-core { position: absolute; left: -78px; top: -84px; width: 156px; height: 156px; transform: translateZ(0); }
.orbit-core .core-drop { position: absolute; inset: 0; filter: drop-shadow(0 22px 40px var(--brand-glow)); animation: bob 4.5s ease-in-out infinite; }
.orbit-core .core-ring { position: absolute; left: 50%; top: 92%; width: 220px; height: 60px; margin-left: -110px; border-radius: 50%; border: 1.5px solid var(--brand); opacity: 0; animation: ripple 3.6s var(--ease-out) infinite; }
.orbit-core .core-ring:nth-child(3) { animation-delay: 1.2s; }
.orbit-core .core-ring:nth-child(4) { animation-delay: 2.4s; }
@keyframes ripple { 0% { transform: scale(.2); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
.orbit-ring { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.orbit-chip {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 14px; white-space: nowrap;
  background: color-mix(in srgb, var(--paper) 88%, transparent); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-md); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  will-change: transform, opacity; backface-visibility: hidden;
}
.orbit-chip .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.orbit-chip .nm { font-weight: 600; color: var(--ink); font-size: 14px; }
.orbit-chip .pr { font: 500 12.5px/1 var(--font-mono); color: var(--brand); }
.orbit .scene-hint { position: absolute; right: 0; bottom: 6px; }


/* ---------------------------------------------------------------- price board */
.board { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; box-shadow: var(--shadow-md); }
.board-head, .board-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.board-cols { display: grid; grid-template-columns: 1fr 1fr; }
.board-cols > ol + ol { border-left: 1px solid var(--line); }
.board-head { padding: 14px 22px; border-bottom: 1px solid var(--line); background: var(--bg-2); font: 450 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.board-head .spread { width: 100%; }
.board-row { position: relative; padding: 14px 22px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: var(--pool); }
.board-row .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.board-row .name { font-weight: 600; color: var(--ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .stock { font: 450 12px/1 var(--font-mono); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; }
.board-row .stock .dot { width: 6px; height: 6px; }
.board-row .price { font: 600 15.5px/1 var(--font-mono); color: var(--ink); white-space: nowrap; letter-spacing: -.02em; }
.board-row .price small { font: 450 11.5px/1 var(--font-mono); color: var(--muted); margin-right: 6px; letter-spacing: .02em; }
.board-row.is-flat { background: linear-gradient(90deg, var(--brand-soft), transparent 70%); }
.board-foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 24px; font-size: .95rem; color: var(--muted); }
.board-foot .ico { width: 16px; height: 16px; color: var(--ok); vertical-align: -3px; margin-right: 6px; }

/* ---------------------------------------------------------------- plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; perspective: 1400px; }
.plan {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.plan.is-featured { border-color: var(--brand-line); box-shadow: 0 0 0 1px var(--brand-soft), 0 40px 90px -40px var(--brand-glow); }
.plan-art { position: relative; height: 176px; display: grid; place-items: center; overflow: hidden; perspective: 700px; border-bottom: 1px solid var(--line);
  background: radial-gradient(260px 140px at 50% 100%, var(--brand-soft-2), transparent 70%), var(--bg-2); }
.plan-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 26px; }
.plan-top h3 { font-size: 1.05rem; font-stretch: 108%; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price .amt { font: 650 2.6rem/1 var(--font-mono); letter-spacing: -.05em; color: var(--ink); }
.plan-price .unit { font: 450 13px/1.3 var(--font-mono); color: var(--muted); }
.plan-sub { font: 450 12.5px/1.3 var(--font-mono); color: var(--brand); margin-top: -8px; }
.plan-desc { font-size: .97rem; min-height: 3.1em; }
.plan ul { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.plan li svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--ok); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-note { margin-top: 24px; font: 450 13px/1.7 var(--font-mono); color: var(--muted); max-width: 60rem; }

/* art 1: an extruded SMS bubble */
.art-bubble { position: relative; width: 168px; height: 92px; transform-style: preserve-3d; animation: swing 6s ease-in-out infinite; }
.art-bubble .layer {
  position: absolute; inset: 0; border-radius: 22px; background: #3a2db8;
  transform: translateZ(calc(var(--i) * -2px));
}
.art-bubble .layer::after {
  content: ""; position: absolute; left: 26px; bottom: -14px; width: 26px; height: 26px; background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.art-bubble .face {
  position: absolute; inset: 0; border-radius: 22px; display: grid; place-items: center; transform: translateZ(2px);
  background: linear-gradient(140deg, #8d80ff, var(--brand-fill) 60%, #4535c4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 24px 40px -18px var(--brand-glow);
  font: 700 26px/1 var(--font-mono); color: #fff; letter-spacing: .12em;
}
.art-bubble .face::after {
  content: ""; position: absolute; left: 26px; bottom: -14px; width: 26px; height: 26px;
  background: #5848e0; clip-path: polygon(0 0, 100% 0, 0 100%);
}
@keyframes swing { 0%, 100% { transform: rotateX(16deg) rotateY(-26deg) translateY(4px); } 50% { transform: rotateX(8deg) rotateY(22deg) translateY(-8px); } }

/* art 2: a cube of rental windows */
.art-cube { position: relative; width: 84px; height: 84px; transform-style: preserve-3d; animation: cube 12s cubic-bezier(.6, 0, .4, 1) infinite; }
.art-cube .f {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px;
  font: 700 20px/1 var(--font-mono); color: #fff; letter-spacing: -.02em;
  background: linear-gradient(145deg, #8b7ff7, var(--brand-fill));
  border: 1px solid rgba(255, 255, 255, .25); box-shadow: inset 0 0 22px rgba(20, 10, 80, .35);
  backface-visibility: hidden;
}
.art-cube .f1 { transform: translateZ(42px); }
.art-cube .f2 { transform: rotateY(90deg) translateZ(42px); background: linear-gradient(145deg, #7466f5, #4b3bd5); }
.art-cube .f3 { transform: rotateY(180deg) translateZ(42px); }
.art-cube .f4 { transform: rotateY(-90deg) translateZ(42px); background: linear-gradient(145deg, #7466f5, #4b3bd5); }
.art-cube .f5 { transform: rotateX(90deg) translateZ(42px); background: linear-gradient(145deg, #a59bfa, #6f61f4); }
.art-cube .f6 { transform: rotateX(-90deg) translateZ(42px); background: #2f2490; }
@keyframes cube {
  0%, 16% { transform: rotateX(-18deg) rotateY(-24deg); }
  25%, 41% { transform: rotateX(-18deg) rotateY(-114deg); }
  50%, 66% { transform: rotateX(-18deg) rotateY(-204deg); }
  75%, 91% { transform: rotateX(-18deg) rotateY(-294deg); }
  100% { transform: rotateX(-18deg) rotateY(-384deg); }
}
.art-shadow { position: absolute; left: 50%; bottom: 22px; width: 120px; height: 18px; margin-left: -60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); filter: blur(2px); }
:root[data-theme='light'] .art-shadow { background: radial-gradient(closest-side, rgba(40, 28, 120, .22), transparent); }

/* art 3: thirty days as a rippling grid */
.art-grid { display: grid; grid-template-columns: repeat(6, 18px); gap: 6px; transform: rotateX(56deg) rotateZ(-38deg); transform-style: preserve-3d; margin-top: 10px; }
.art-grid i {
  width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(145deg, #8b7ff7, var(--brand-fill));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 6px 10px -6px rgba(0, 0, 0, .6);
  animation: wave 2.8s ease-in-out infinite; animation-delay: calc(var(--k) * 90ms);
}
.art-grid i.today { background: linear-gradient(145deg, #ffffff, #c9c2ff); }
@keyframes wave { 0%, 100% { transform: translateZ(0); } 30% { transform: translateZ(16px); } 60% { transform: translateZ(-2px); } }

/* ---------------------------------------------------------------- why / hardware */
.why-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.why-visual { position: relative; }
.scene--rack { height: 500px; }
.why-visual .scene-hint { position: absolute; left: 0; bottom: 6px; }
.why-copy .lead { margin-top: 18px; font-size: 1.06rem; }
.spec { margin: 30px 0 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 450 11.5px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); font-weight: 550; font-size: .98rem; }
.spec dd span { display: block; color: var(--body); font-weight: 400; font-size: .92rem; margin-top: 2px; }

.compare-wrap { margin-top: 88px; }
.compare-wrap h3 { font-size: 1.4rem; margin-bottom: 20px; }
.compare-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-md); }
.compare { width: 100%; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: transparent; }
.compare thead th { background: var(--bg-2); }
.compare thead th.us { color: var(--brand); }
.compare tbody th { font: 560 .95rem/1.4 var(--font-body); color: var(--ink); width: 26%; text-transform: none; letter-spacing: 0; white-space: normal; }
.compare col.w { width: 37%; }
.compare td.no { color: var(--muted); }
.compare td.no::before, .compare td.yes::before { display: inline-block; width: 18px; font: 600 14px/1 var(--font-mono); }
.compare td.no::before { content: "×"; color: var(--err); opacity: .8; }
.compare td.yes { color: var(--ink); font-weight: 520; background: linear-gradient(90deg, var(--brand-soft), transparent); }
.compare td.yes::before { content: "✓"; color: var(--ok); }

/* ---------------------------------------------------------------- how / flow */
.scene--flow { height: 300px; margin: -6px 0 6px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  position: relative; padding: 22px 22px 24px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line);
  transition: border-color .4s, box-shadow .4s, transform .4s var(--ease-out);
}
.step::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-fill), #b9b0ff); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.step.is-active { border-color: var(--brand-line); box-shadow: 0 24px 50px -30px var(--brand-glow); transform: translateY(-4px); }
.step.is-active::before { transform: scaleX(1); }
.step-num { font: 500 12px/1 var(--font-mono); color: var(--muted); letter-spacing: .08em; }
.step.is-active .step-num { color: var(--brand); }
.step h3 { margin-top: 14px; font-size: 1.08rem; }
.step p { margin-top: 8px; font-size: .95rem; }

/* ---------------------------------------------------------------- api terminal */
.api-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.api-grid .section-head { margin-bottom: 0; }
.api-list { margin: 26px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.api-list li { display: flex; gap: 10px; align-items: flex-start; }
.api-list svg { flex: none; width: 16px; height: 16px; margin-top: 5px; color: var(--ok); }
.term-stage { position: relative; perspective: 1500px; padding: 34px 0; }
.term {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--brand-ink); border: 1px solid rgba(165, 155, 250, .22);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03), 0 30px 80px -50px var(--brand-glow);
  transform: rotateY(-16deg) rotateX(7deg) rotateZ(.6deg); transform-style: preserve-3d;
  transition: transform .9s var(--ease-out);
}
.term-stage:hover .term { transform: rotateY(-5deg) rotateX(2deg); }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .02); }
.term-bar .dots { display: flex; gap: 6px; }
.term-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c2a3d; }
.term-bar .dots i:first-child { background: #ff6b76; } .term-bar .dots i:nth-child(2) { background: #f0ae45; } .term-bar .dots i:nth-child(3) { background: #3ccf98; }
.term-title { font: 450 12px/1 var(--font-mono); color: #85849a; }
.term-badge { margin-left: auto; font: 500 11.5px/1 var(--font-mono); color: #3ccf98; background: rgba(60, 207, 152, .12); padding: 5px 8px; border-radius: 6px; opacity: 0; transition: opacity .3s; }
.term-badge.on { opacity: 1; }
.term-body { margin: 0; padding: 20px 22px 24px; min-height: 352px; font: 450 13px/1.75 var(--font-mono); color: #d9d6f5; white-space: pre-wrap; word-break: break-word; }
.term-body .p { color: #8b7ff7; }
.term-body .c { color: #6f6e83; }
.term-body .k { color: #b9f0ff; }
.term-body .s { color: #ffd9a6; }
.term-body .n { color: #c9c2ff; }
.term-body .code-hit { color: #0b0a12; background: #3ccf98; border-radius: 4px; padding: 0 4px; box-shadow: 0 0 22px rgba(60, 207, 152, .55); }
.term-body .caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: #a59bfa; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.term-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  font: 500 12.5px/1 var(--font-mono); color: var(--ink); background: var(--paper); border: 1px solid var(--line-2);
  padding: 10px 12px; border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.term-chip.a { right: -8px; top: 6px; }
.term-chip.b { left: -18px; bottom: 6px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ---------------------------------------------------------------- promises */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise { padding: 26px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.promise h3 { margin: 18px 0 10px; font-size: 1.12rem; }
.promise p { font-size: .96rem; }
.ico3d { position: relative; width: 52px; height: 52px; perspective: 400px; }
.ico3d span {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 15px;
  background: linear-gradient(145deg, #8b7ff7, var(--brand-fill) 70%); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 0 #3a2db8, 0 18px 30px -12px var(--brand-glow);
  transform: rotateX(22deg) rotateY(-18deg); transition: transform .6s var(--ease-spring);
}
.ico3d svg { width: 24px; height: 24px; }
.promise:hover .ico3d span { transform: rotateX(0) rotateY(0) translateY(-3px); }

/* ---------------------------------------------------------------- faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-side { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-side .section-head { margin-bottom: 28px; }
.support-card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.support-card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.support-card .ico svg { width: 20px; height: 20px; }
.support-card p { font-size: .92rem; }
.support-card a { font-weight: 600; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font: 600 1.04rem/1.4 var(--font-display); font-stretch: 104%; color: var(--ink); letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-icon { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); position: relative; transition: background-color .2s, border-color .2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease-out); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item .faq-a { overflow: hidden; }
.faq-item .faq-a p { padding: 0 48px 22px 0; max-width: 44rem; }

/* ---------------------------------------------------------------- cta (always night water) */
.cta {
  position: relative; overflow: hidden; isolation: isolate; color: #eeedf6;
  background: radial-gradient(900px 420px at 50% 120%, rgba(99, 83, 236, .35), transparent 70%), #07070c;
  border-top: 1px solid #1c1b26;
}
.scene--pool { position: absolute; inset: 0; z-index: -1; }
.cta-inner { position: relative; padding: 130px 0 210px; text-align: center; max-width: 46rem; pointer-events: none; }
.cta-inner::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: 150%; height: 120%; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(7, 7, 12, .92), rgba(7, 7, 12, .6) 55%, transparent); pointer-events: none;
}
.cta-inner a, .cta-inner button { pointer-events: auto; }
.cta h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cta p { margin: 20px auto 0; font-size: 1.12rem; color: #b8b6cc; max-width: 34rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.cta .support { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; font: 450 13px/1.5 var(--font-mono); color: #8d8ba6; }
.cta .support a { color: #fff; text-decoration: none; }
.cta .support a:hover { text-decoration: underline; }
.cta .scene-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; max-width: none; font-size: 12px; color: #8d8ba6; }
.cta :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- footer extras */
.footer-legal { max-width: 46rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .orbit-grid { grid-template-columns: 1fr; }
  .orbit { height: 460px; }
  .api-grid { grid-template-columns: 1fr; gap: 28px; }
  .why-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-visual { order: 2; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-side { position: static; }
}
@media (max-width: 960px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-title { font-size: min(9.2vw, 4rem); }
  .hero-copy { padding-bottom: 8px; }
  .hero-visual { min-height: 0; }
  .scene--hero { height: 480px; min-height: 0; margin: 0 calc(var(--gutter) * -1); width: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 80%, transparent 100%); }
  .hero-visual .scene-hint { bottom: 14px; right: 0; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .promises { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .board-cols { grid-template-columns: 1fr; }
  .board-cols > ol + ol { border-left: 0; border-top: 1px solid var(--line); }
  .strip { grid-template-columns: 1fr; gap: 18px; padding-bottom: 26px; }
  .scene--rack { height: 380px; }
  .scene--flow { height: 240px; margin-inline: calc(var(--gutter) * -1); }
  .steps { grid-template-columns: 1fr; }
  .term { transform: rotateY(-6deg) rotateX(4deg); }
  .term-body { font-size: 12px; min-height: 330px; padding: 16px; }
  .term-chip.a { right: 4px; top: -2px; }
  .term-chip.b { left: 4px; bottom: -2px; }
  .orbit { height: 430px; margin-inline: calc(var(--gutter) * -1); overflow: hidden; overflow: clip; }
  .compare th, .compare td { padding: 12px 14px; }
  .compare-wrap { margin-top: 64px; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .faq-item .faq-a p { padding-right: 0; }
  .cta-inner { padding: 110px 0 150px; }
}
@media (max-width: 420px) {
  .hero-meta { gap: 10px 18px; }
  .board-row, .board-head { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-title .line > span, .hero [data-hero-in] { animation: none; }
  .accent, .art-bubble, .art-cube, .art-grid i, .orbit-core .core-drop, .orbit-core .core-ring, .term-chip, .fallback-drop .ring { animation: none !important; }
  .orbit-core .core-ring { opacity: .3; }
}
