/* The landing page: what Kit is, before anything downloads. The app's colors and orb, bigger. */
:root {
  --bg: #fbfbfd;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --border: #d2d2d7;
  --surface: #f5f5f7;
  --card: #ffffff;
  --accent: #0071e3;
  --accent-2: #8a5cf6;
  --warn: #b25000;
  --orb-hi: #ffffff;
  --orb-mid: #ececf0;
  --orb-lo: #d2d2d7;
  --orb-shadow: rgba(0, 0, 0, 0.14);
  --glow: rgba(0, 113, 227, 0.22);
  --glow-2: rgba(138, 92, 246, 0.16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --border: #38383a;
    --surface: #111113;
    --card: #1c1c1e;
    --accent: #2997ff;
    --accent-2: #a78bfa;
    --warn: #ff9f0a;
    --orb-hi: #4a4a4f;
    --orb-mid: #2c2c2e;
    --orb-lo: #1c1c1e;
    --orb-shadow: rgba(0, 0, 0, 0.6);
    --glow: rgba(41, 151, 255, 0.3);
    --glow-2: rgba(167, 139, 250, 0.2);
  }
}

* { box-sizing: border-box; }
body {
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; margin: 0; }

.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.wordmark { font: 600 19px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; letter-spacing: -0.02em; padding: 6px 8px; }

.pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  padding: 12px 26px;
  border-radius: 980px;
  transition: transform 150ms ease, filter 150ms ease;
}
.pill:hover { filter: brightness(1.08); }
.pill:active { transform: scale(0.97); }
.pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pill.small { font-size: 14px; padding: 7px 16px; }

/* ---------------------------------------------------------------------------
   Hero: the orb, the greeting, one exchange at a time. */

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px 64px;
  overflow-x: clip; /* the glow is wider than a phone */
}
.halo {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%), radial-gradient(closest-side at 65% 40%, var(--glow-2), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateX(-54%) scale(0.95); }
  to { transform: translateX(-46%) scale(1.05); }
}

.orb { --size: clamp(140px, 30vmin, 220px); display: grid; place-items: center; width: var(--size); height: var(--size); margin-bottom: 40px; }
.orb.small { --size: 88px; margin-bottom: 28px; }
.orb-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, var(--orb-hi), var(--orb-mid) 55%, var(--orb-lo));
  box-shadow: 0 24px 60px -16px var(--orb-shadow), 0 0 0 0 var(--glow), inset 0 -6px 18px rgba(0, 0, 0, 0.05);
  animation: breathe 5s ease-in-out infinite;
  transition: box-shadow 400ms ease;
}
@keyframes breathe { 50% { transform: scale(1.03); } }
.orb[data-state="listening"] .orb-core { box-shadow: 0 24px 60px -16px var(--orb-shadow), 0 0 0 10px var(--glow), inset 0 -6px 18px rgba(0, 0, 0, 0.05); }
.orb[data-state="speaking"] .orb-core { animation: speak 0.6s ease-in-out infinite; box-shadow: 0 24px 60px -16px var(--orb-shadow), 0 0 50px 6px var(--glow), inset 0 -6px 18px rgba(0, 0, 0, 0.05); }
@keyframes speak { 50% { transform: scale(1.07); } }

h1 {
  font-size: clamp(48px, 10vw, 104px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.tint {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(19px, 2.6vw, 26px); color: var(--muted); max-width: 34ch; margin: 18px 0 0; line-height: 1.3; letter-spacing: -0.01em; }

.demo { min-height: 5.2em; margin: 36px 0 28px; max-width: 36ch; }
.demo p { margin: 0; transition: opacity 400ms ease, transform 400ms ease; }
.demo .out { opacity: 0; transform: translateY(4px); }
.demo .you { color: var(--muted); font-size: 17px; }
.demo .kit { font-size: 21px; font-weight: 500; margin-top: 6px; letter-spacing: -0.01em; }

.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.note.warn { color: var(--warn); }

/* ---------------------------------------------------------------------------
   Bands: what Kit does, where it runs, what it needs. */

.band { max-width: 1040px; margin: 0 auto; padding: 88px 16px; }
.band h2, .end h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.sub { color: var(--muted); font-size: 19px; max-width: 46ch; margin: 14px 0 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--surface); border-radius: 22px; padding: 26px 26px 28px; }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.card p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; border-top: 1px solid var(--border); }
.facts { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 22px; }
.facts li { color: var(--muted); font-size: 16px; }
.facts strong { color: var(--fg); font-weight: 600; }

.end { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 96px 16px 104px; }
.end h2 { margin-bottom: 28px; }

.foot { border-top: 1px solid var(--border); padding: 22px 16px 32px; text-align: center; }
.foot p { color: var(--muted); font-size: 12px; margin: 0; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .band { padding: 64px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .halo, .orb-core { animation: none; }
}
