/* Graviti Shift — crisp blueprint light, electric blue, signal orange */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --paper: #F3F6FB;
  --surface: #FFFFFF;
  --surface-2: #E8EEF7;
  --line: #D5DEEB;
  --ink: #0F1B2D;
  --body: #2D3B50;
  --muted: #5E6C82;
  --blue: #2783DE;
  --blue-deep: #1858A8;
  --signal: #FF6A3D;
  --mint: #22B8A0;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    linear-gradient(rgba(39, 131, 222, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(39, 131, 222, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(900px 500px at 85% -10%, rgba(39, 131, 222, 0.12) 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--blue-deep); }
a:hover { color: var(--blue); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 16px 32px;
  background: rgba(243, 246, 251, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -0.2px; }
.logo:hover { color: var(--ink); }
.logo img { display: block; }
.top nav { display: flex; gap: 24px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--blue); }

/* Home */
.hero { text-align: center; padding: 88px 24px 40px; max-width: 760px; margin: 0 auto; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--blue-deep); border: 1px solid rgba(39, 131, 222, 0.35); background: rgba(39, 131, 222, 0.08); padding: 4px 12px; border-radius: 100px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(44px, 8vw, 80px); font-weight: 800; letter-spacing: -2px; line-height: 1.02; margin-bottom: 20px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 55%, var(--signal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: 12px 26px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
a.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(15, 27, 45, 0.18); }
.btn.primary[aria-disabled="true"] { cursor: default; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn.ghost:hover { color: var(--ink); border-color: var(--blue); }

/* Gravity preview */
.shift-stage { position: relative; width: 100%; max-width: 680px; aspect-ratio: 16/9; margin: 56px auto 0; border-radius: 22px; overflow: hidden; border: 1px solid #1C3354;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(160deg, #0F2340 0%, #143A6B 60%, #1B4E8C 100%);
  box-shadow: 0 24px 60px rgba(15, 27, 45, 0.18); }
.shift-stage .rail { position: absolute; left: 8%; right: 8%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); }
.shift-stage .rail.ceil { top: 18%; }
.shift-stage .rail.floor { bottom: 18%; }
.shift-stage .block { position: absolute; width: 26px; border-radius: 4px; background: var(--signal); }
.shift-stage .b1 { left: 34%; bottom: calc(18% + 8px); height: 34px; }
.shift-stage .b2 { left: 60%; top: calc(18% + 8px); height: 42px; }
.shift-stage .b3 { left: 80%; bottom: calc(18% + 8px); height: 22px; background: var(--mint); }
.runner { position: absolute; left: 18%; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(39, 131, 222, 0.45), 0 0 26px rgba(120, 190, 255, 0.8);
  bottom: calc(18% + 8px); animation: flip 3.6s cubic-bezier(.6, 0, .4, 1) infinite; }
.hud { position: absolute; top: 5%; left: 6%; text-align: left; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: #CFE4FF; }
.hud b { color: #fff; font-variant-numeric: tabular-nums; }
.tag-g { position: absolute; top: 5%; right: 6%; font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--signal); }
@keyframes flip {
  0%, 30% { bottom: calc(18% + 8px); }
  45%, 80% { bottom: calc(82% - 34px); }
  95%, 100% { bottom: calc(18% + 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .runner { animation: none; }
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 960px; margin: 80px auto; padding: 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 1px 2px rgba(15, 27, 45, 0.04); }
.card h2 { font-size: 16px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card .icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; background: rgba(39, 131, 222, 0.1); }
.card .icon svg { width: 22px; height: 22px; stroke: var(--blue); }
.card:nth-child(2) .icon { background: rgba(255, 106, 61, 0.12); }
.card:nth-child(2) .icon svg { stroke: var(--signal); }
.card:nth-child(3) .icon { background: rgba(34, 184, 160, 0.12); }
.card:nth-child(3) .icon svg { stroke: var(--mint); }

/* Document pages */
.doc { max-width: 720px; margin: 56px auto 0; padding: 0 24px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 10px; }
.doc h1 { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; }
.meta { font-size: 14px; color: var(--muted); padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.meta p { margin: 0; color: var(--muted); font-size: 14px; }
.intro { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; padding: 20px 24px; color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: 19px; margin: 40px 0 12px; }
.doc h3 { font-size: 16px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 15px; color: var(--body); }
.doc p { margin-bottom: 14px; }
.doc .intro { color: var(--muted); }
.doc ul { margin: 8px 0 16px 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }

.contact { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 40px; }
.contact .ico { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(39, 131, 222, 0.1); }
.contact .ico svg { width: 22px; height: 22px; stroke: var(--blue); }
.contact h3 { margin: 0 0 6px; }
.contact p { color: var(--muted); margin-bottom: 8px; }
.contact > div { min-width: 0; }
.contact a { font-weight: 600; overflow-wrap: anywhere; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details.faq[open] summary { margin-bottom: 10px; }
details.faq p { color: var(--muted); margin: 0; }

.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; background: rgba(255, 255, 255, 0.5); }
.foot p { font-size: 13px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { font-size: 13px; color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .top { padding: 14px 20px; }
  .top nav { gap: 16px; }
  .hero { padding-top: 56px; }
  .features { grid-template-columns: 1fr; margin: 56px auto; }
  .doc h1 { font-size: 30px; }
  .foot { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .runner { width: 20px; height: 20px; }
  .hud, .tag-g { font-size: 11px; }
}
