:root {
  --bg: #030308;
  --bg-2: #080812;
  --fg: #eef1f8;
  --fg-2: #a9b1c6;
  --fg-3: #8089a3;
  --line: rgba(255, 255, 255, 0.09);
  --hot: #ffb35c;
  --hot-2: #ff6a3d;
  --violet: #b84dff;
  --cyan: #86a9d6; /* Molecule's primary accent in its default theme, Prism */
  --radius: 20px;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 14px; border-radius: 10px; background: var(--fg); color: var(--bg);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) max(48px, calc(env(safe-area-inset-bottom) + 32px));
  overflow: hidden;
  isolation: isolate;
}

#sky {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; display: block; touch-action: pan-y;
  /* The pointer is the canvas's pulsing star (landing.js); mouse and pen only. */
  cursor: none;
}

.hero::after {
  /* Darkens the bottom so the copy always reads over a bright disk. */
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(3, 3, 8, 0.92), rgba(3, 3, 8, 0.55) 45%, transparent);
}

.hero-copy { max-width: 40rem; position: relative; }

.eyebrow {
  margin: 0 0 10px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 11vw, 112px);
  /* background-clip:text paints only inside the box, so the box must hold the
     descender of the g and the overhang of the last letter. */
  line-height: 1.12;
  letter-spacing: -0.045em;
  padding: 0 0.08em 0.06em 0;
  margin-bottom: -0.06em;
  font-weight: 750;
  background: linear-gradient(100deg, #fff 0%, #ffe6bd 38%, var(--hot) 62%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tagline {
  margin: 14px 0 0; font-size: clamp(20px, 3.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; color: var(--fg);
}

.lede { margin: 12px 0 0; max-width: 34rem; color: var(--fg-2); font-size: clamp(15px, 1.6vw, 17px); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(100deg, #ffe0a6, var(--hot) 55%, var(--hot-2));
  color: #1a0d02;
  box-shadow: 0 0 0 1px rgba(255, 179, 92, 0.4), 0 10px 40px -10px rgba(255, 120, 60, 0.7);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 179, 92, 0.7), 0 14px 50px -8px rgba(255, 120, 60, 0.9); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

.hint {
  position: absolute; right: var(--gutter); bottom: max(20px, env(safe-area-inset-bottom));
  margin: 0; font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  animation: fadeHint 1.2s 2.5s both;
}
@keyframes fadeHint { from { opacity: 0; } to { opacity: 0.8; } }
@media (max-width: 640px) { .hint { display: none; } }

/* The product that orbits the singularity. Positioned by landing.js. */
.orbiter {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; text-decoration: none;
  will-change: transform; opacity: 0;
  transition: opacity 600ms ease;
}
.orbiter.ready { opacity: 1; }
.orbiter-label {
  position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%);
  white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--cyan); text-shadow: 0 0 12px rgba(134, 169, 214, 0.7);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Hidden until the icon is hovered or focused. */
  opacity: 0; pointer-events: none;
  transition: opacity 250ms ease;
}
.orbiter:hover .orbiter-label, .orbiter:focus-visible .orbiter-label { opacity: 1; }
.orbiter.behind { pointer-events: none; }

/* ---------- Sections ---------- */

main { position: relative; }

section { padding: clamp(64px, 10vw, 128px) var(--gutter); max-width: 1180px; margin: 0 auto; }

h2 {
  margin: 0 0 32px; font-size: clamp(28px, 4.5vw, 44px); letter-spacing: -0.03em; font-weight: 700;
  display: flex; align-items: baseline; gap: 14px;
}
.kicker {
  font-size: 13px; font-weight: 500; color: var(--hot); letter-spacing: 0.1em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.card {
  position: relative; border-radius: var(--radius); padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.card h3 { margin: 18px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--fg-2); font-size: 15px; }
.card-live {
  border-color: rgba(134, 169, 214, 0.3);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(134, 169, 214, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.card-forming { border-style: dashed; }
.card-forming h3 { color: var(--fg-2); }
.card-forming p { color: var(--fg-3); }

.card-top { display: flex; align-items: center; justify-content: space-between; }

.app-icon { width: 76px; height: 76px; margin: -16px 0 -16px -16px; }

@keyframes spin { to { transform: rotate(360deg); } }

.dust {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px) 0 0 / 11px 11px;
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%);
  opacity: 0.6;
}
.dust-2 { background-size: 9px 9px; opacity: 0.4; }
@media (prefers-reduced-motion: no-preference) {
  .dust { animation: spin 40s linear infinite; }
  .dust-2 { animation-duration: 70s; animation-direction: reverse; }
}

.status {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.status-live { color: var(--cyan); border-color: rgba(134, 169, 214, 0.4); }
.status-live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 8px var(--cyan);
}

.card-link {
  margin-top: 22px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--cyan); font-weight: 600; text-decoration: none;
}
.card-link:hover span { transform: translateX(3px); }
.card-link span { transition: transform 160ms ease; }

.law-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: law; }
@media (min-width: 760px) { .law-list { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.law-list li { padding: 22px 0; border-top: 1px solid var(--line); counter-increment: law; }
.law-list h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.law-list h3::before {
  content: "∞ " counter(law); display: block; margin-bottom: 8px;
  font-size: 12px; font-weight: 500; color: var(--violet); letter-spacing: 0.1em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.law-list p { margin: 0; color: var(--fg-2); font-size: 15px; }

.foot {
  max-width: 1180px; margin: 0 auto;
  padding: 32px var(--gutter) max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 13px; color: var(--fg-2);
}
.foot p { margin: 0; }
.quiet { color: var(--fg-3); }
