/* ==========================================================================
   ORBIT — base: tokens, type, layout, nav, buttons, shared micro-interactions
   ========================================================================== */

@font-face { font-family: "Geist"; src: url("../assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --blue: #5b6cff;
  --blue-2: #8fa2ff;
  --cyan: #3fd0ff;
  --ember: #ff8a4c;
  --green: #2fd39a;
  --red: #ff5c72;
  --amber: #ffc25a;
  --grad: linear-gradient(120deg, #a9b6ff 0%, #6b7bff 45%, #3fd0ff 100%);

  --gut: clamp(20px, 4vw, 40px);
  --nav-h: 64px;
  --r: 14px;
}

/* Surface themes: sections opt in with .dark / .light */
.dark {
  --bg: #06070a; --bg-2: #0b0d12; --surface: #0f1218; --surface-2: #141822; --raised: #191e2a;
  --fg: #eef0f6; --mut: #8d93a6; --dim: #5d6376;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14);
  --glow: rgba(91, 108, 255, 0.35);
  background: var(--bg); color: var(--fg);
}
.light {
  --bg: #fafafb; --bg-2: #f3f4f7; --surface: #ffffff; --surface-2: #f6f7fa; --raised: #ffffff;
  --fg: #0b0c10; --mut: #5a6070; --dim: #8b91a1;
  --line: rgba(11, 12, 16, 0.09); --line-2: rgba(11, 12, 16, 0.16);
  --glow: rgba(91, 108, 255, 0.18);
  background: var(--bg); color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; background: #06070a; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-width: 320px; font-family: var(--sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; background: #06070a; color: #eef0f6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--blue); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 500; padding: 10px 16px; background: #fff; color: #000; border-radius: 8px; font-size: 0.9rem; transition: top 0.2s; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }

/* Type */
.mono { font-family: var(--mono); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.h2 .soft { color: var(--mut); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--mut); text-wrap: pretty; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sec { position: relative; padding-block: clamp(5rem, 11vw, 9.5rem); }
.sec-head { display: grid; gap: 1.2rem; max-width: 46rem; margin-bottom: clamp(2.6rem, 6vw, 4.5rem); }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; overflow: hidden;
  min-height: 46px; padding: 0.7rem 1.25rem; border-radius: 12px; border: 1px solid transparent;
  font-size: 0.95rem; font-weight: 550; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg.arr { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: #fff; color: #06070a; box-shadow: 0 0 0 1px rgba(255,255,255,0.4) inset, 0 8px 30px -8px rgba(143,162,255,0.55); }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(91,108,255,0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.8s var(--ease); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,0.5) inset, 0 12px 40px -6px rgba(143,162,255,0.75); transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--fg); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255,255,255,0.28); }
.light .btn--ghost { background: #fff; }
.light .btn--ghost:hover { background: var(--bg-2); border-color: var(--line-2); }
.btn--ink { background: #0b0c10; color: #fff; }
.btn--ink:hover { background: #1b1e29; transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(11,12,16,0.5); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 26px -8px rgba(91,108,255,0.7); }
.btn--blue:hover { background: #6d7dff; transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(91,108,255,0.85); }
.btn--lg { min-height: 54px; padding-inline: 1.6rem; font-size: 1rem; border-radius: 14px; }
.btn--block { width: 100%; }

/* Spotlight border/glow that follows the pointer */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--spot, rgba(91,108,255,0.14)), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.spot:hover::before { opacity: 1; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent; color: #eef0f6; }
.nav.is-solid { background: rgba(6, 7, 10, 0.86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: rgba(255,255,255,0.08); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 650; font-size: 1.05rem; letter-spacing: 0.22em; }
.logo svg { width: 26px; height: 26px; }
.logo__dot { transform-origin: 13px 13px; animation: orbit 9s linear infinite; }
.logo:hover .logo__dot { animation-duration: 2.2s; }
@keyframes orbit { to { transform: rotate(360deg); } }

.nav__links { display: none; align-items: center; gap: 0.25rem; }
.nav__links a { position: relative; padding: 0.5rem 0.85rem; border-radius: 8px; font-size: 0.9rem; color: #9aa0b3; transition: color 0.25s, background-color 0.25s; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; background: rgba(255,255,255,0.06); }
.nav__right { display: none; align-items: center; gap: 0.6rem; }
.nav__login { padding: 0.5rem 0.85rem; font-size: 0.9rem; color: #9aa0b3; border-radius: 8px; transition: color 0.25s; }
.nav__login:hover { color: #fff; }
.kbd-pill { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 36px; padding: 0 0.6rem 0 0.75rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; background: rgba(255,255,255,0.03); font-size: 0.82rem; color: #8d93a6; transition: border-color 0.25s, background-color 0.25s, color 0.25s; }
.kbd-pill:hover { border-color: rgba(255,255,255,0.22); color: #fff; }
.kbd-pill svg { width: 14px; height: 14px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border: 1px solid var(--line-2, rgba(255,255,255,0.14)); border-bottom-width: 2px; border-radius: 6px; font-family: var(--mono); font-size: 0.7rem; color: inherit; background: rgba(255,255,255,0.04); }
.nav .btn { min-height: 38px; padding: 0.4rem 1rem; font-size: 0.88rem; border-radius: 10px; }

.burger { position: relative; width: 44px; height: 44px; margin-right: -10px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mmenu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; gap: 2rem; padding: calc(var(--nav-h) + 20px) var(--gut) calc(28px + env(safe-area-inset-bottom)); background: rgba(6,7,10,0.97); backdrop-filter: blur(20px); color: #fff; visibility: hidden; opacity: 0; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s; overflow-y: auto; }
.menu-open .mmenu { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease), visibility 0s; }
.menu-open { overflow: hidden; }
.mmenu nav { display: grid; }
.mmenu nav a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1.7rem; font-weight: 550; letter-spacing: -0.03em; transform: translateY(12px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.menu-open .mmenu nav a { transform: none; opacity: 1; transition-delay: calc(var(--i) * 45ms + 120ms); }
.mmenu nav a svg { width: 18px; height: 18px; color: var(--dim); }
.mmenu__cta { display: grid; gap: 0.7rem; margin-top: auto; }

@media (min-width: 960px) {
  .nav__links, .nav__right { display: flex; }
  .burger, .mmenu { display: none; }
}
