/* Nova AI — the shared design system.
 *
 * Every value here is lifted from the iOS app's own `Theme.swift` and
 * `DayPeriod.swift` rather than re-invented for the web, so the site and
 * the product are visibly the same thing. The orb (see nova.js) uses the
 * exact four-bloom construction `AmbientGradientBackground` uses in-app:
 * a near-black ground with four heavily blurred colour blooms orbiting at
 * different speeds, so the mix never repeats.
 */

:root {
  /* Theme.ink — the app's own backdrop. */
  --ink: #0b0d0c;
  /* Theme.slate — every card, sheet and field. */
  --slate: #1d211f;
  /* Theme.track — one step up from slate. */
  --track: #282c2a;
  --hairline: rgba(255, 255, 255, 0.09);

  /* Theme.bone / accent — primary text, a hair warm against the cool ground. */
  --bone: #e6e4e0;
  --bone-2: #a8aca9;
  --bone-3: #6f7573;

  /* The four DayPeriod colours — the app's real accent set. */
  --morning: #61c799;
  --afternoon: #6ba8f2;
  --evening: #f5c259;
  --night: #546bc7;
  /* Theme.sage — only ever means "this is done". */
  --sage: #53cb75;

  --radius-card: 24px;
  --radius-pill: 999px;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0;
  font-weight: 600;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.16rem; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-3);
}

.wrap {
  width: min(1120px, calc(100% - 44px));
  margin-inline: auto;
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  color: var(--bone-2);
  max-width: var(--measure);
}

/* ---- Navigation ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px) saturate(150%);
  background: rgba(11, 13, 12, 0.72);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--bone-2);
}

.nav-links a:hover { color: var(--bone); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(230, 228, 224, 0.14);
}

.btn-primary:hover { box-shadow: 0 14px 40px rgba(230, 228, 224, 0.22); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--bone);
  border: 1px solid var(--hairline);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ---- The orb ---- */

.orb {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 30px 90px -20px rgba(97, 199, 153, 0.28),
    0 20px 70px -30px rgba(107, 168, 242, 0.3);
}

.orb canvas { display: block; width: 100%; height: 100%; }

/* A specular highlight so it reads as a sphere, not a disc — the same
   "light falling across a curved surface" cue SpaceIcon3D uses in-app. */
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(58% 48% at 32% 26%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 62%),
    radial-gradient(90% 90% at 50% 118%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

/* ---- Cards ---- */

.card {
  background: var(--slate);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bone-2);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

section { padding: clamp(64px, 10vw, 132px) 0; }

.section-head { margin-bottom: 40px; display: grid; gap: 14px; }

footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 60px;
  color: var(--bone-3);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
}

.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.footer-inner a:hover { color: var(--bone); }

/* Motion, only where it serves the subject, and never against the
   viewer's stated preference. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb canvas { display: none; }
}
