/* Confidential landing (home.html, home-explained.html). Scale, greys and timing follow linear.app; see docs/landing/NOTES.md.
   The coral lives only in the ring mark. Everything else is neutral, so the page never reads as a Helius property. */
:root {
  color-scheme: dark;
  --ground: #08090a;
  --ink: #f7f8f8;
  --ink-2: #d0d6e0;
  --ink-3: #8a8f98;
  --ink-4: #62666d;
  --hair: rgba(255, 255, 255, 0.08);
  --invert: #e5e5e6;
  --coral: #ff664d;
  --glass: #5a1f14;
  --sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(16px, 4.4vw, 80px);
  --col: min(1344px, 100% - 2 * var(--gutter));
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font: 400 15px/1.6 var(--sans);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 255, 255, 0.18); }

/* The first screen: header, hero and facts fill the window exactly on desktop. */
.screen { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }

/* ---------- header ---------- */
.bar { width: var(--col); margin-inline: auto; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wm { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 500; letter-spacing: -0.035em; }
.wm svg { display: block; }
.quiet { font-size: 13px; letter-spacing: -0.01em; color: var(--ink-3); padding: 6px 2px; transition: color 0.1s var(--ease-out-quad); }
.quiet:hover { color: var(--ink); }

/* ---------- first screen ---------- */
.hero { width: var(--col); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; column-gap: 48px; min-height: 0; }
h1 { margin: 0; font-weight: 500; font-size: clamp(38px, min(5.2vw, 9.4svh), 76px); line-height: 1; letter-spacing: -0.032em; }
h1 .ln { display: block; padding-bottom: 0.07em; }
.lede { margin: 22px 0 0; max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--ink-3); }
.lede b { font-weight: 500; color: var(--ink); }
.act { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.go { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 20px 0 22px; border-radius: 999px; background: var(--invert); color: #08090a; font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -0.011em; white-space: nowrap; transition: background-color 0.16s var(--ease-out-quad); }
.go:hover { background: #fff; }
.go:focus-visible { border-radius: 999px; outline-offset: 4px; }
.go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.16s var(--ease-out-quad); }
.go:hover svg { transform: translateX(2px); }
.proof { margin: 18px 0 0; font: 400 12px/1.5 var(--mono); letter-spacing: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* On wide screens the copy is centred against the mark, so the line sits outside the flow: it can arrive late without moving the headline. */
@media (min-width: 960px) {
  .copy { position: relative; }
  .proof { position: absolute; left: 0; top: 100%; }
}

/* ---------- the eclipse: the ring mark on the limb of a hidden light ---------- */
/* Geometry in the SVGs' user units: viewBox is 312 wide, the ring's radius is 100, so the moon is 64% of the box. */
.eclipse { --a: 0deg; position: relative; justify-self: end; width: min(100%, 64svh); aspect-ratio: 1; }
.eclipse > * { position: absolute; inset: 0; }
.corona, .orbits, .limb { width: 100%; height: 100%; }
.corona {
  border-radius: 50%;
  rotate: var(--a);
  /* The light from behind the moon: neutral, brightest at the limb, a little stronger on the lit side. */
  background:
    radial-gradient(closest-side at 45% 50%, rgba(255, 246, 242, 0.1) 64%, rgba(255, 246, 242, 0.03) 74%, transparent 92%),
    radial-gradient(closest-side, rgba(255, 246, 242, 0.2) 63%, rgba(255, 246, 242, 0.1) 66%, rgba(255, 246, 242, 0.045) 71%, rgba(255, 246, 242, 0.018) 81%, rgba(255, 246, 242, 0.006) 92%, transparent 100%);
}
.orbits { overflow: visible; }
.orbits circle { fill: none; stroke: rgba(255, 255, 255, 0.075); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.orbits circle:nth-child(2) { stroke: rgba(255, 255, 255, 0.055); }
.orbits circle:nth-child(3) { stroke: rgba(255, 255, 255, 0.038); }
/* Linear's edge shine, moved onto the Privacy Rings: the rings brighten only near the pointer. */
.orbits.lit { opacity: var(--lit, 0); transition: opacity 0.4s var(--ease-out-quad); -webkit-mask-image: radial-gradient(170px circle at var(--mx, -999px) var(--my, -999px), #000, transparent); mask-image: radial-gradient(170px circle at var(--mx, -999px) var(--my, -999px), #000, transparent); }
.orbits.lit circle { stroke: rgba(255, 255, 255, 0.34); }
.moon { inset: 17.95%; border-radius: 50%; background: #000; }
.limb { overflow: visible; }
/* A display cut of the mark: same arcs and gaps, a thinner limb, like the red rim of the sun at totality. */
.limb circle { fill: none; stroke-width: 3.4; }
.limb .turn { transform: rotate(var(--a)); }
/* The mark's own arcs, in degrees of the ring (pathLength 360): the glass covers 105deg centred at 3 o'clock, the lit arc the other 240 less two gaps. */
.limb .glass { stroke: var(--glass); stroke-dasharray: 105.04 254.96; stroke-dashoffset: 52.52; }
.limb .arc { stroke: var(--coral); stroke-dasharray: 239.68 120.32; stroke-dashoffset: -60.16; }

/* ---------- the facts ---------- */
.facts { width: var(--col); margin: 0 auto; padding: 22px 0 34px; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--hair); }
.facts b { display: block; font-size: 14px; font-weight: 500; letter-spacing: -0.013em; color: var(--ink); }
.facts span { display: block; margin-top: 4px; max-width: 32ch; font-size: 13px; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink-3); }

/* ---------- entry: Linear's line-by-line blur-in, then the mark ---------- */
@keyframes rise { from { opacity: 0; filter: blur(10px); transform: translateY(20%); } }
@keyframes lift { from { opacity: 0; filter: blur(6px); transform: translateY(8px); } }
@keyframes swell { from { opacity: 0; scale: 0.94; } }
@keyframes sharpen { from { opacity: 0; filter: blur(14px); } }
@keyframes settle { from { opacity: 0; rotate: -28deg; } }
@keyframes appear { from { opacity: 0; } }
.ln, .lede, .act { animation: rise 1s var(--ease-out-quint) both; }
.ln:nth-child(1) { animation-delay: 0.08s; }
.ln:nth-child(2) { animation-delay: 0.19s; }
.lede { animation-delay: 0.3s; }
.act { animation-delay: 0.4s; }
.proof { animation: lift 0.8s var(--ease-out-quint) 0.5s both; }
.facts li { animation: lift 0.9s var(--ease-out-quint) both; }
.facts li:nth-child(1) { animation-delay: 0.55s; }
.facts li:nth-child(2) { animation-delay: 0.62s; }
.facts li:nth-child(3) { animation-delay: 0.69s; }
.facts li:nth-child(4) { animation-delay: 0.76s; }
.corona { animation: swell 1.8s var(--ease-out-cubic) both; }
.orbits:not(.lit) { animation: appear 1.6s var(--ease-out-quad) 0.6s both; }
.limb { animation: sharpen 1.3s var(--ease-out-quint) 0.25s both; }
.limb .glass { animation: settle 1.2s var(--ease-out-quint) 0.75s both; }

/* ---------- narrower screens: one column, the mark first ---------- */
@media (max-width: 959px) {
  .screen { display: block; min-height: 0; }
  .bar { height: 64px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 4px; }
  .eclipse { order: -1; justify-self: center; width: min(76vw, 420px); margin-bottom: 12px; }
  h1 { font-size: clamp(32px, 10vw, 64px); }
  .facts { grid-template-columns: minmax(0, 1fr); margin-top: 52px; padding: 0 0 40px; border-top: 0; }
  .facts li { padding: 15px 0 16px; border-top: 1px solid var(--hair); }
  .facts span { max-width: 44ch; }
}
@media (max-width: 959px) and (min-width: 600px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .orbits.lit { display: none; }
}
