/* Homepage only. Other pages keep css/styles.css. */
:root {
  --bg: #0b0b0d;
  --surface: #141417;
  --surface-2: #15151a;
  --line: #24242a;
  --line-2: #2e2e35;
  --ink: #f4f4f5;
  --ink-soft: #a1a1aa;
  --ink-mid: #d4d4d8;
  --accent: #a78bfa;
  --accent-ink: #0b0b0d;
  --accent-soft: #1f1b2e;
  --live-bg: #10301c;
  --live-ink: #86efac;
  --font: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 16px; }
.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;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.svg-icon { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.nav-pill { display: flex; align-items: center; gap: 6px; padding: 6px; border: 1px solid #26262b; border-radius: 999px; background: #131316; font-size: 15px; }
.nav-pill a { padding: 10px 16px; color: #b4b4bb; border-radius: 999px; }
.nav-pill a:hover { color: var(--ink); }
.nav-pill .nav-cta { background: var(--ink); color: var(--bg); font-weight: 600; padding: 10px 18px; }
.nav-pill .nav-cta:hover { color: var(--bg); background: #fff; }

/* Hero */
.hero { padding: 80px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 8px 14px;
  border: 1px solid #2e2a3d; border-radius: 999px; font-size: 14px; color: #c9c2e8; background: #15131c;
}
.badge-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.hero h1 { font-size: 68px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.hero-sub { margin-top: 28px; font-size: 20px; line-height: 1.55; color: var(--ink-soft); max-width: 560px; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); background: #b9a2fc; }
.btn-ghost { border: 1px solid #33333a; font-weight: 600; }
.btn-ghost:hover { border-color: #55555e; }

.icon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.icon-tile {
  aspect-ratio: 1; border-radius: 28px; background: var(--surface-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.icon-tile img { width: 62%; border-radius: 22%; }
.icon-tile.offset { transform: translateY(40px); }
.icon-tile.next { background: transparent; border-style: dashed; border-color: #33333a; color: #8a8a93; font-size: 15px; }

/* Section heads */
.section { padding-bottom: 96px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: 40px; letter-spacing: -0.03em; font-weight: 700; }
.section-head p { font-size: 17px; color: var(--ink-soft); max-width: 420px; }
#products { padding-top: 48px; scroll-margin-top: 16px; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-icon { width: 60px; height: 60px; border-radius: 14px; }
.status { padding: 6px 12px; border-radius: 999px; background: var(--live-bg); color: var(--live-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.card h3 { margin-bottom: 10px; font-size: 26px; letter-spacing: -0.02em; font-weight: 700; }
.card p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; font-size: 13px; color: var(--ink-mid); }
.tags li { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; }
.card-link { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 600; min-height: 44px; }

/* Spotlight: flipping card */
.spot-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #c9b8ff; }
.spot-tabs { display: flex; gap: 6px; padding: 6px; border: 1px solid #26262b; border-radius: 999px; background: #131316; flex-wrap: wrap; }
.spot-tabs button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #b4b4bb;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.spot-tabs button:hover { color: var(--ink); }
.spot-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.flip-stage { perspective: 2200px; height: 600px; min-height: 600px; }
.flip-card {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 64px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.flip-face.back { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) { .flip-card { transition: none; } }

.spot-copy { display: flex; flex-direction: column; gap: 22px; }
.spot-app { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.spot-app img { width: 48px; height: 48px; border-radius: 12px; }
.spot-app-name { font-size: 18px; font-weight: 700; }
.spot-copy h2 { font-size: 44px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.spot-copy > p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.checks { display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 4px 0 0; list-style: none; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.5; color: var(--ink-mid); }
.checks svg { color: var(--accent); }
.spot-cta { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid #33333a; border-radius: 12px; font-weight: 600; font-size: 15px; }
.spot-cta:hover { border-color: #55555e; }
.spot-shots { display: flex; gap: 20px; justify-content: center; align-items: center; height: 100%; }
.spot-shots img { height: auto; width: 44%; max-width: 230px; border-radius: 32px; border: 6px solid #26262c; }
.spot-shots img + img { margin-top: 48px; }
.spot-bigicon {
  width: 78%; max-width: 380px; aspect-ratio: 1; border-radius: 40px; background: #1a1a20; border: 1px solid #2a2a31;
  display: flex; align-items: center; justify-content: center;
}
.spot-bigicon img { width: 58%; border-radius: 22%; }

/* Approach */
.approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.approach div { padding: 32px; border-radius: 20px; border: 1px solid var(--line); }
.approach h3 { margin-bottom: 10px; font-size: 20px; font-weight: 700; }
.approach p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* Contact */
#contact { padding-bottom: 64px; }
.contact-card {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 56px 64px; border-radius: 32px; background: var(--accent); color: var(--accent-ink);
}
.contact-card h2 { margin-bottom: 12px; font-size: 40px; letter-spacing: -0.03em; font-weight: 800; }
.contact-card p { font-size: 18px; line-height: 1.5; color: #2a2340; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.contact-actions a { min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.contact-actions .solid { background: var(--accent-ink); color: var(--ink); }
.contact-actions .solid:hover { color: #fff; }
.contact-actions .outline { border: 1.5px solid var(--accent-ink); color: var(--accent-ink); }
.contact-actions .outline:hover { color: var(--accent-ink); background: rgba(11, 11, 13, 0.08); }
.contact-actions a:focus-visible { outline-color: var(--accent-ink); }

/* Footer */
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; padding-bottom: 48px; font-size: 14px; color: #8a8a93; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--ink-soft); }

/* Tablet */
@media (max-width: 900px) {
  .hero h1 { font-size: 56px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .flip-face { padding: 48px; gap: 32px; }
  .spot-copy h2 { font-size: 36px; }
}

/* Phone */
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav-hide { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero-grid, .approach, .contact-card { grid-template-columns: minmax(0, 1fr); }
  .icon-grid { display: none; }
  .hero h1 { font-size: 44px; }
  .hero-sub { font-size: 18px; }
  .section { padding-bottom: 72px; }
  .section-head h2 { font-size: 32px; }
  .flip-stage { min-height: 0; }
  .flip-face { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; align-content: start; }
  .spot-copy h2 { font-size: 30px; }
  .spot-shots { height: auto; }
  .contact-card { padding: 40px 24px; }
  .contact-card h2 { font-size: 32px; }
}
