:root {
  --background: #111110;
  --surface: #1c1c1a;
  --card: #222222;
  --raised: #222220;
  --border: #2a2a28;
  --foreground: #f0ede8;
  --muted: #888880;
  --accent: #6366f1;
  --accent-light: #a5b4fc;
  --accent-dim: rgb(99 102 241 / 0.15);
  --streak: #c6923d;
  --success: #3dd68c;
  --max: 1160px;
  color-scheme: dark;
  font-family:
    Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 22% 0%, rgb(99 102 241 / 0.1), transparent 34rem),
    radial-gradient(circle at 82% 16%, rgb(198 146 61 / 0.08), transparent 32rem),
    var(--background);
  color: var(--foreground);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px);
  background-size: 100% 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header,
.hero,
.section,
.site-footer,
.legal-main {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.site-nav,
.site-footer nav {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.site-nav a,
.site-footer a {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--foreground);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 28px 0 80px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-light);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.9;
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.95;
}

h3 {
  font-size: 20px;
  line-height: 1.1;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: #c9c5bd;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
}

.primary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: #111110;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 24px;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.primary-button:hover {
  background: #f0ede8;
  transform: translateY(-2px);
}

.primary-button.compact {
  margin-top: 16px;
}

.app-store-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 999px;
  background: #3b3b39;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  padding: 0 26px;
  box-shadow: 0 14px 34px rgb(0 0 0 / 0.28);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.app-store-button:hover {
  background: #474745;
  box-shadow: 0 18px 42px rgb(0 0 0 / 0.34);
  transform: translateY(-2px);
}

.app-store-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.app-store-button.compact {
  margin-top: 16px;
}

.secondary-link {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 700;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-proof span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  color: var(--muted);
  font-size: 12px;
  padding: 8px 12px;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  margin-left: auto;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.08), transparent 32%),
    #161615;
  padding: 18px;
  box-shadow: 0 30px 120px rgb(0 0 0 / 0.5);
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.scenario-card {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  padding: 18px;
}

.state-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.92;
}

.card-label {
  margin: 14px 0 8px;
  color: var(--accent-light);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.scenario-card h2 {
  font-size: 25px;
  line-height: 1.05;
}

.scenario-card p:last-child {
  margin-bottom: 0;
  font-size: 14px;
}

.choice-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.choice {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: #b8b4ad;
  font-size: 13px;
  padding: 14px;
}

.choice.active {
  border-color: rgb(165 180 252 / 0.45);
  background: var(--accent-dim);
  color: var(--foreground);
}

.float-shape {
  position: absolute;
  z-index: 1;
  width: 96px;
  opacity: 0.9;
  animation: drift 7s ease-in-out infinite;
}

.shape-one {
  top: 74px;
  left: 0;
}

.shape-two {
  right: 8px;
  bottom: 76px;
  width: 118px;
  animation-delay: -2s;
}

.shape-three {
  bottom: 180px;
  left: 42px;
  width: 74px;
  animation-delay: -4s;
}

.section {
  padding: 96px 0;
}

.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 36px;
}

.section-heading.narrow {
  display: block;
  max-width: 790px;
}

.process-grid,
.skill-grid {
  display: grid;
  gap: 12px;
}

.process-grid {
  grid-template-columns: repeat(3, 1fr);
}

.process-grid article,
.skill-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgb(28 28 26 / 0.72);
  padding: 22px;
}

.process-grid span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--accent-light);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.evidence-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.evidence-copy {
  max-width: 920px;
}

.evidence-copy p {
  max-width: 680px;
}

.evidence-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 44px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.evidence-list div {
  padding: 22px 28px 0 0;
}

.evidence-list div + div {
  border-left: 1px solid var(--border);
  padding-left: 28px;
}

.evidence-list dt {
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1;
}

.evidence-list dd {
  max-width: 220px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1fr 0.9fr;
}

.media-asset img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.copy-panel p {
  max-width: 620px;
}

.quiet-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.quiet-list li {
  border-left: 2px solid var(--accent);
  color: #d7d2ca;
  padding-left: 14px;
}

.skill-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 34px;
}

.skill-card {
  min-height: 230px;
}

.skill-card .tint {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 54px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--border);
  padding: 32px 0 46px;
}

.footer-brand {
  margin-bottom: 10px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  font-size: 14px;
}

.legal-main {
  max-width: 880px;
  padding: 70px 0 96px;
}

.legal-main h1 {
  font-size: clamp(44px, 8vw, 88px);
}

.legal-meta {
  margin: 18px 0 42px;
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgb(28 28 26 / 0.76);
  padding: clamp(22px, 4vw, 42px);
}

.legal-card h2 {
  margin-top: 42px;
  font-size: 30px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin-top: 26px;
}

.legal-card a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgb(165 180 252 / 0.32);
  text-underline-offset: 4px;
}

.legal-card ul {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 20px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(10px, -14px, 0) rotate(4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-visual {
    min-height: auto;
  }

  .phone-shell {
    margin-inline: auto;
  }

  .section-heading,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .evidence-list {
    grid-template-columns: 1fr;
  }

  .evidence-list div,
  .evidence-list div + div {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 18px 0 0;
  }

  .evidence-list div:first-child {
    border-top: 0;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .section,
  .site-footer,
  .legal-main {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    max-width: 210px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
  }

  .hero {
    gap: 40px;
    padding-bottom: 56px;
  }

  h1 {
    font-size: clamp(54px, 18vw, 86px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .app-store-button {
    width: 100%;
  }

  .secondary-link {
    text-align: center;
  }

  .float-shape {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    min-height: auto;
  }

  .skill-card .tint {
    margin-bottom: 32px;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}
