/* Standard Deviation — dark site shell (2026-09-15 rebuild from the Claude Design handoff).
   Tokens, reset, keyframes, starfield, nav, footer, focus rings. Pages inline their own
   layout styles (the handoff is inline-styled by design) and add page-scoped classes for
   hover/responsive states. */
@import url("https://fonts.googleapis.com/css2?family=Workbench&display=swap");

:root {
  --ground: #050507; /* 2026-10-06: near-black, matches the app */
  --purple: #A855F7; --pink: #EC4899; --lavender: #C4B5FD; --pink-light: #F9A8D4;
  --orange: #F97316; --amber: #FF8C42; --yellow: #FFB84D; --violet: #7C3AED; --blue-lav: #93A4E8;
  --success: #34D399; --success-text: #6EE7B7; --warn: #FB923C;
  --ink: #0D0A14; --ink-amber: #1A1004;
  --grad-hero: linear-gradient(108deg,#EC4899,#A855F7,#F97316);
  --grad-os: linear-gradient(108deg,#A855F7,#7C3AED,#93A4E8,#A855F7);
  --grad-launch: linear-gradient(108deg,#FFB84D,#F97316,#FF8C42,#FFB84D);
  --grad-signup: linear-gradient(108deg,#A855F7,#7C3AED,#EC4899,#A855F7);
  --ease-out: cubic-bezier(0.16,1,0.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: #FFFFFF; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.5; }
a { color: #C4B5FD; text-decoration: none; }
a:hover { color: #EC4899; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; }
::selection { background: rgba(168,85,247,0.3); color: #FFFFFF; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ruby-mark, .dev-ext { font-family: "Workbench", ui-monospace, Menlo, monospace; }
.ruby-mark { text-transform: uppercase; letter-spacing: 0.03em; }

/* Focus rings (the prototype has none) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #A855F7; outline-offset: 2px; border-radius: 6px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; box-shadow: 0 0 0 3px rgba(168,85,247,0.28); }

/* Keyframes */
@keyframes sd-spin { to { transform: rotate(360deg); } }
@keyframes sd-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes sd-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(52,211,153,0.25); } 50% { box-shadow: 0 0 0 7px rgba(52,211,153,0.04); } }
@keyframes sd-flow { to { stroke-dashoffset: -18; } }
@keyframes sd-travel { to { stroke-dashoffset: -440; } }
@keyframes sd-sheen { to { background-position: 280% 50%; } }
@keyframes sd-blink { to { opacity: 0; } }
@keyframes sd-twinkle { 0%,100% { opacity: 0.28; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes sd-drift-a { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(60px,44px,0) scale(1.1); } }
@keyframes sd-drift-b { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-80px,36px,0) scale(1.12); } }

/* Gradient fills run a slow sheen */
/* Looping 4-stop gradients declare their own sheen inline; the class must not
   force a 280% slide onto a 3-stop gradient (it wraps and shows a hard seam). */
.sheen { background-repeat: no-repeat; }
/* Gradient pills lift on hover */
.lift { transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background-color 0.22s ease, color 0.22s ease; }
.lift:hover { transform: translateY(-2px); }
.lift-3:hover { transform: translateY(-3px); }

/* Page root */
.sd-root { position: relative; width: 100%; overflow-x: clip; background: var(--ground); }

/* Starfield */
.sd-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--ground); }
.sd-grid { position: absolute; inset: -14%; background-image: radial-gradient(circle, rgba(226,215,255,0.24) 1px, transparent 1px); background-size: 19px 19px; }
.sd-grid i { position: absolute; border-radius: 50%; opacity: 0.7; animation: sd-twinkle var(--t, 5s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.sd-orb { position: absolute; border-radius: 50%; filter: blur(130px); }
/* 2026-10-06: colour orbs off, stars and grid only (same as the app). Delete this line to bring them back. */
.sd-orb { display: none !important; }
.sd-orb-a { width: 72vw; height: 72vw; max-width: 900px; max-height: 900px; top: -18%; left: -14%; background: radial-gradient(circle, rgba(168,85,247,0.26), transparent 66%); animation: sd-drift-a 30s ease-in-out infinite; }
.sd-orb-b { width: 70vw; height: 70vw; max-width: 880px; max-height: 880px; top: 34%; right: -22%; background: radial-gradient(circle, rgba(236,72,153,0.2), transparent 66%); animation: sd-drift-b 36s ease-in-out infinite; }

/* Staging: initial states (the runtime lifts them). Reduced motion renders final state. */
.js-stage [data-enter] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out), filter 0.95s var(--ease-out); }
.js-stage [data-enter].is-in { opacity: 1; transform: none; filter: none; }
.js-stage [data-rise], .js-stage [data-rise-group] > * { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js-stage [data-rise].is-in, .js-stage [data-rise-group] > .is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js-stage [data-enter], .js-stage [data-rise], .js-stage [data-rise-group] > * { opacity: 1; transform: none; filter: none; }
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
/* The glass sits on ::before so the nav is not a backdrop root and the dropdown panels can blur the page too.
   transform keeps the nav as the containing block for the fixed mobile menu. */
.sd-nav { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 32px; border-bottom: 1px solid rgba(255,255,255,0.08); transform: translateZ(0); }
.sd-nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5,5,7,0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.sd-brand { font-size: 19px; font-weight: 700; letter-spacing: -0.025em; color: #FFFFFF; }
.sd-brand span { font-weight: 300; }
.sd-brand:hover { color: #FFFFFF; }
.sd-menu { display: flex; align-items: center; gap: 6px; }
.sd-item { position: relative; }
.sd-trigger { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; font-size: 14px; color: rgba(255,255,255,0.7); padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: background 0.18s ease, color 0.18s ease; }
.sd-trigger:hover, .sd-item.open > .sd-trigger { background: rgba(255,255,255,0.07); color: #FFFFFF; }
.sd-trigger svg { transition: transform 0.18s ease; }
.sd-item.open > .sd-trigger svg { transform: rotate(180deg); }
.sd-panel { position: absolute; right: 0; top: calc(100% + 8px); transform: translateY(-6px); z-index: 70; opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; }
.sd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sd-item.open > .sd-panel { opacity: 1; pointer-events: auto; transform: translateY(0); }
/* Same transparent black glass as .sd-nav */
.sd-panel-inner { padding: 22px; border-radius: 18px; background: rgba(5,5,7,0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 40px 90px -24px rgba(0,0,0,0.85); }
.sd-panel-inner.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 620px; }
.sd-panel-inner.one { display: flex; flex-direction: column; gap: 1px; width: 320px; }
.sd-col { display: flex; flex-direction: column; gap: 1px; }
.sd-panel a { display: block; padding: 7px 12px; border-radius: 10px; font-size: 13.5px; color: rgba(255,255,255,0.9); transition: background 0.14s ease; }
.sd-panel a:hover { background: rgba(255,255,255,0.07); color: #FFFFFF; }
.sd-panel a em { display: block; font-style: normal; font-size: 11.5px; color: rgba(255,255,255,0.45); }
.sd-panel a.lead { padding: 10px 12px; color: #FFFFFF; }
.sd-panel a.lead strong { display: block; font-size: 14px; font-weight: 700; }
.sd-panel a.lead em { margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.6); }
.mark-grad { font-weight: 300; background: linear-gradient(90deg,#EC4899,#A855F7,#F97316); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sd-cta { padding: 9px 17px; border-radius: 999px; background: #FFFFFF; color: #0D0A14; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; transition: background 0.18s ease; }
.sd-cta:hover { background: #EDE9F6; color: #0D0A14; }
.sd-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: #FFFFFF; cursor: pointer; align-items: center; justify-content: center; }
.sd-burger i { display: block; width: 17px; height: 1.5px; background: currentColor; border-radius: 2px; margin: 3.5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }
.sd-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.sd-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.sd-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 900px) {
  .sd-nav { padding: 12px 18px; }
  .sd-burger { display: inline-flex; }
  .sd-menu { position: fixed; top: 100%; left: 0; right: 0; height: calc(100dvh - 62px); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 28px; overflow-y: auto; background: var(--ground); }
  .sd-menu.open { display: flex; }
  .sd-item { display: block; }
  .sd-trigger { width: 100%; justify-content: space-between; font-size: 16px; font-weight: 700; color: #FFFFFF; padding: 14px 10px; }
  .sd-panel { position: static; transform: none; opacity: 1; pointer-events: auto; display: none; }
  .sd-item.open > .sd-panel { display: block; transform: none; }
  .sd-panel-inner, .sd-panel-inner.two, .sd-panel-inner.one { width: auto; grid-template-columns: 1fr; padding: 4px 0 12px 8px; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
  .sd-cta { display: block; text-align: center; margin-top: 12px; padding: 13px 18px; font-size: 14px; }
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.sd-footer { position: relative; z-index: 1; padding: 68px 28px 36px; background: rgba(12,9,20,0.6); color: rgba(255,255,255,0.7); font-size: 13px; border-top: 1px solid rgba(255,255,255,0.08); }
.sd-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#EC4899,#A855F7,#F97316); }
.sd-footer .cols { position: relative; max-width: 1200px; margin: 0 auto; display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sd-footer .cols > div:first-child { min-width: 220px; }
.sd-footer p { margin: 14px 0 0; max-width: 30ch; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.5); }
.sd-footer h4 { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #FFFFFF; }
.sd-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sd-footer ul a { color: rgba(255,255,255,0.65); }
.sd-footer ul a:hover { color: #FFFFFF; }
.sd-footer .bottom { position: relative; max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: rgba(255,255,255,0.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
