/* ==========================================================================
   MotionScale — motion-scale.com
   Static, no JS. Mobile-first refinements throughout.
   ========================================================================== */

:root {
  --bg:         #06080c;
  --bg-soft:    #0b0e14;
  --surface:    #0f131b;
  --surface-2:  #141924;
  --surface-3:  #1a2130;
  --border:     #1b2230;
  --border-lit: #29334480;
  --border-hi:  #35415a;

  --text:      #eef1f7;
  --text-dim:  #a2acbe;
  --text-mute: #6e788b;

  --accent:     #4cc2ff;
  --accent-2:   #a78bfa;
  --accent-soft:#4cc2ff1a;
  --green:      #4ade80;
  --red:        #ff7a7a;
  --amber:      #ffb454;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI Variable Text",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --pad: 22px;
  --r: 14px;
  --r-sm: 9px;

  --sec-y: 108px;
}

@media (max-width: 720px) { :root { --sec-y: 68px; --pad: 18px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (max-width: 720px) { body { font-size: 16px; line-height: 1.6; } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -0.032em; font-weight: 680; }
h2 { font-size: clamp(1.85rem, 4.4vw, 2.85rem); }
h3 { font-size: 1.1rem; font-weight: 640; letter-spacing: -0.018em; line-height: 1.35; }
p { margin: 0 0 1em; }

::selection { background: var(--accent); color: #04121c; }

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

code, .mono { font-family: var(--mono); font-size: 0.88em; }
code {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 0.12em 0.42em; color: #b9dcf5;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #04121c; padding: 12px 18px;
  border-radius: 0 0 10px 0; font-weight: 620;
}
.skip:focus { left: 0; }

/* ==========================================================================
   Nav
   ========================================================================== */
header.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  height: 64px; display: flex; align-items: center; gap: 30px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 650; letter-spacing: -0.03em; color: var(--text); font-size: 1.07rem;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; flex: none; }

.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; letter-spacing: -0.008em; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: 4px; }

/* pure-CSS mobile menu */
.nav-cb { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-burger {
  display: none; margin-left: auto; cursor: pointer;
  width: 42px; height: 42px; border: 1px solid var(--border-hi); border-radius: 9px;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-burger span { display: block; width: 17px; height: 1.7px; background: var(--text); border-radius: 2px; transition: transform .22s, opacity .18s; }
.nav-cb:focus-visible + .nav-burger { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav-cb:checked ~ .nav-burger span:nth-child(1) { transform: translateY(5.7px) rotate(45deg); }
.nav-cb:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-cb:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-5.7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-soft); border-bottom: 0 solid var(--border);
    padding: 0 var(--pad);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s ease, opacity .22s ease, padding .3s ease, border-width .3s ease;
  }
  .nav-cb:checked ~ .nav-links {
    max-height: 420px; opacity: 1; pointer-events: auto;
    padding: 6px var(--pad) 18px; border-bottom-width: 1px;
  }
  .nav-links a { padding: 13px 2px; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta.btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 10px;
  font-size: 0.945rem; font-weight: 580; letter-spacing: -0.012em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, #5fcaff, #35b4f5);
  color: #041520; box-shadow: 0 8px 26px -12px rgba(76,194,255,.75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(76,194,255,.9); }
.btn-ghost { border-color: var(--border-hi); color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn-ghost:hover { border-color: #47566f; background: var(--surface-2); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(64px, 11vw, 124px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; top: -320px; left: 50%; transform: translateX(-58%);
  width: 1100px; height: 760px;
  background: radial-gradient(48% 46% at 50% 50%, rgba(76,194,255,.16), transparent 70%),
              radial-gradient(38% 40% at 72% 44%, rgba(167,139,250,.13), transparent 70%);
  filter: blur(8px);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(78% 62% at 50% 22%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(78% 62% at 50% 22%, #000 20%, transparent 78%);
}
.hero-inner { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.745rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(76,194,255,.3); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 26px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 9px var(--accent);
}

.hero h1 {
  font-size: clamp(2.55rem, 7.4vw, 4.6rem);
  font-weight: 700; letter-spacing: -0.042em; max-width: 16ch; margin-bottom: 24px;
}
.hero h1 .grad {
  background: linear-gradient(96deg, #4cc2ff 8%, #a78bfa 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .lede {
  font-size: clamp(1.06rem, 2.1vw, 1.31rem); color: var(--text-dim);
  max-width: 62ch; margin-bottom: 34px; line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note {
  font-size: 0.86rem; color: var(--text-mute); margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { color: var(--green); flex: none; }

@media (max-width: 620px) {
  .hero h1 { max-width: 100%; }
  .hero-cta .btn { width: 100%; }
}

/* hero capacity visual */
.hero-vis { margin-top: clamp(44px, 6vw, 72px); position: relative; }
.hero-vis svg { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: var(--sec-y) 0; border-top: 1px solid var(--border); position: relative; }
.sec-head { max-width: 68ch; margin-bottom: clamp(34px, 5vw, 52px); }
.kicker {
  font-family: var(--mono); font-size: 0.745rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5; }
.sec-head p { color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.09rem); margin: 16px 0 0; }

/* ==========================================================================
   Cards
   ========================================================================== */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px 24px; position: relative;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.card:hover {
  border-color: var(--border-hi); transform: translateY(-3px);
  box-shadow: 0 18px 44px -26px rgba(0,0,0,.9);
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--text-dim); font-size: 0.955rem; margin-bottom: 0; line-height: 1.58; }
.card p b, .card h3 b { color: var(--text); font-weight: 600; }
.card .num-badge {
  font-family: var(--mono); font-size: 0.73rem; color: var(--accent);
  border: 1px solid rgba(76,194,255,.28); background: var(--accent-soft);
  width: 26px; height: 26px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 15px;
}

/* ==========================================================================
   Versus
   ========================================================================== */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs-col { border: 1px solid var(--border); border-radius: var(--r); padding: 28px 26px; background: var(--surface); }
.vs-col.new {
  border-color: rgba(76,194,255,.32);
  background: linear-gradient(180deg, rgba(76,194,255,.055), var(--surface) 60%);
}
.vs-tag {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 20px; display: block;
}
.vs-col.old .vs-tag { color: var(--text-mute); }
.vs-col.new .vs-tag { color: var(--accent); }
.vs-col ul { list-style: none; padding: 0; margin: 0; }
.vs-col li {
  position: relative; padding-left: 28px; margin-bottom: 15px;
  color: var(--text-dim); font-size: 0.955rem; line-height: 1.55;
}
.vs-col li:last-child { margin-bottom: 0; }
.vs-col li::before {
  position: absolute; left: 0; top: 1px; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-family: var(--mono);
}
.vs-col.old li::before { content: "\00d7"; color: var(--red); background: rgba(255,122,122,.11); }
.vs-col.new li::before { content: "\2713"; color: var(--green); background: rgba(74,222,128,.11); }
.vs-col li b { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Diagram
   ========================================================================== */
.diagram {
  background: radial-gradient(120% 90% at 50% 0%, #10151f, var(--bg-soft) 70%);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: clamp(18px, 3vw, 34px);
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .d-wide { display: block; }
.diagram .d-narrow { display: none; }
@media (max-width: 780px) {
  .diagram .d-wide { display: none; }
  .diagram .d-narrow { display: block; }
}
.diagram-cap {
  color: var(--text-mute); font-size: 0.87rem; margin: 20px auto 0;
  max-width: 74ch; text-align: center; line-height: 1.55;
}

/* ==========================================================================
   Table
   ========================================================================== */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 0.95rem; }
th, td { text-align: left; padding: 15px 22px; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-2); color: var(--text); font-weight: 620; font-size: 0.84rem; letter-spacing: 0.02em; }
tbody tr { transition: background .16s; }
tbody tr:hover { background: var(--surface); }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--text-dim); }
td.num { font-family: var(--mono); color: var(--accent); font-size: 0.89rem; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  border: 1px solid var(--border); border-radius: var(--r); padding: 26px 24px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color .22s, transform .22s;
}
.stat:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.stat .v {
  font-family: var(--mono); font-size: clamp(1.6rem, 3.4vw, 2rem);
  letter-spacing: -0.04em; line-height: 1.05;
  background: linear-gradient(180deg, #7ad4ff, #3aa9e8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat .k { color: var(--text-mute); font-size: 0.85rem; margin-top: 9px; line-height: 1.45; }

/* ==========================================================================
   Editions
   ========================================================================== */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.tier {
  border: 1px solid var(--border); border-radius: var(--r); padding: 28px 24px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  display: flex; flex-direction: column; position: relative;
  transition: border-color .22s, transform .22s;
}
.tier:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.tier.feature {
  border-color: rgba(76,194,255,.5);
  background: linear-gradient(180deg, rgba(76,194,255,.08), var(--surface) 62%);
  box-shadow: 0 22px 60px -34px rgba(76,194,255,.7);
}
.tier .flag {
  position: absolute; top: -11px; left: 24px;
  font-family: var(--mono); font-size: 0.665rem; letter-spacing: 0.11em; text-transform: uppercase;
  background: linear-gradient(180deg, #5fcaff, #35b4f5); color: #041520;
  padding: 4px 11px; border-radius: 100px; font-weight: 700;
}
.tier .name { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tier .price { font-size: 1.35rem; font-weight: 660; margin: 12px 0 4px; letter-spacing: -0.03em; }
.tier .sub { color: var(--text-mute); font-size: 0.86rem; margin-bottom: 22px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.tier li { padding-left: 24px; position: relative; margin-bottom: 12px; color: var(--text-dim); font-size: 0.915rem; line-height: 1.5; }
.tier li b { color: var(--text); font-weight: 600; }
.tier li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-family: var(--mono); font-size: 0.82rem; }
.tier .btn { width: 100%; }

/* ==========================================================================
   Callout
   ========================================================================== */
.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--amber);
  background: linear-gradient(90deg, rgba(255,180,84,.045), var(--surface) 42%);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 24px 28px; color: var(--text-dim); font-size: 0.955rem; line-height: 1.6;
}
.callout b { color: var(--text); font-weight: 600; }
.callout p:last-child { margin-bottom: 0; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { text-align: center; padding: clamp(72px, 10vw, 120px) 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 900px; height: 460px; pointer-events: none;
  background: radial-gradient(46% 50% at 50% 40%, rgba(76,194,255,.13), transparent 72%);
}
.cta .wrap { position: relative; }
.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--text-dim); max-width: 56ch; margin: 0 auto 32px; font-size: clamp(1rem, 1.7vw, 1.09rem); }
.cta .hero-cta { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer { border-top: 1px solid var(--border); padding: 44px 0 56px; color: var(--text-mute); font-size: 0.885rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 9px; color: var(--text-dim); }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--text); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .g3, .stats, .tiers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .versus, .g2 { grid-template-columns: 1fr; }
  .vs-col, .card, .stat, .tier { padding: 22px 20px; }
  .callout { padding: 20px 22px; border-radius: 0 10px 10px 0; }
  th, td { padding: 13px 16px; }
}
@media (max-width: 560px) {
  .g3, .stats, .tiers, .g2 { grid-template-columns: 1fr; }
  .cta .hero-cta .btn { width: 100%; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ==========================================================================
   Scroll reveal — progressive enhancement, no JS.
   Degrades to fully visible where unsupported.
   ========================================================================== */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 2% cover 22%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .card:hover, .stat:hover, .tier:hover, .btn:hover { transform: none; }
}
