:root {
  --ink: #111214;
  --ink-soft: #2a2d31;
  --paper: #f7f7f4;
  --paper-muted: #e7e2d8;
  --track: #17191d;
  --track-2: #24282e;
  --line: rgba(255, 255, 255, 0.15);
  --red: #d6332f;
  --red-dark: #a72422;
  --cyan: #37cad2;
  --amber: #f1b74d;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::selection {
  color: var(--white);
  background: var(--red);
}

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

img,
canvas {
  display: block;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  color: var(--white);
  background: rgba(17, 18, 20, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand span {
  overflow-wrap: anywhere;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  color: var(--white);
  background: var(--track);
}

#race-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 17, 19, 0.95) 0%, rgba(16, 17, 19, 0.78) 44%, rgba(16, 17, 19, 0.22) 100%),
    linear-gradient(0deg, rgba(16, 17, 19, 0.46), rgba(16, 17, 19, 0.04));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 2rem;
  width: min(1180px, calc(100% - 2rem));
  min-height: 78svh;
  margin: 0 auto;
  padding: 6.25rem 0 2.25rem;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1rem;
  font-size: 5.4rem;
  line-height: 0.91;
  letter-spacing: 0;
}

.hero-text {
  max-width: 40rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.22rem;
  line-height: 1.55;
}

.hero-actions,
.cta-layout {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.86rem 1.08rem;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button span {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0.78;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--red);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 42px rgba(214, 51, 47, 0.36);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 560px;
  margin: 1.45rem 0 0;
}

.hero-facts div {
  min-width: 0;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.hero-facts dt {
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 950;
}

.phone-stage {
  display: grid;
  justify-items: end;
  perspective: 1100px;
}

.phone-shell {
  position: relative;
  width: min(100%, 335px);
  aspect-ratio: 9 / 16;
  padding: 0.7rem;
  border-radius: 28px;
  background: #090a0c;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  transform: rotateY(-11deg) rotateZ(2deg);
}

.phone-shell::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 50%;
  width: 5.8rem;
  height: 0.34rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.25rem;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 55% 24%, rgba(55, 202, 210, 0.2), transparent 32%),
    linear-gradient(180deg, #23272d 0%, #101215 58%, #07080a 100%);
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(255, 255, 255, 0.18) 45% 55%, transparent 56% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 32px);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  opacity: 0.58;
}

.phone-screen img {
  position: relative;
  z-index: 1;
  width: min(58%, 192px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

.screen-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(76%, 230px);
  padding: 0.8rem 0;
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.screen-caption span,
.screen-caption strong {
  overflow-wrap: anywhere;
}

.section {
  padding: 5rem 0;
}

.section-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.cta-layout h2 {
  margin-bottom: 0.8rem;
  font-size: 2.75rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p,
.cta-layout p,
.feature-card p {
  color: rgba(17, 18, 20, 0.68);
  font-size: 1.04rem;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 18, 20, 0.08);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1.1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 950;
}

.feature-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.feature-card p {
  margin-bottom: 0;
}

.section-dark {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(55, 202, 210, 0.1) 0 1px, transparent 1px 100%),
    var(--ink);
  background-size: 54px 54px;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.7);
}

.build-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.spec-list {
  display: grid;
  gap: 0.75rem;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.spec-row span {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.spec-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.cta-section {
  background: var(--paper-muted);
}

.cta-layout {
  justify-content: space-between;
  gap: 2rem;
}

.cta-layout > div {
  max-width: 720px;
}

.button-large {
  min-width: 220px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 3.5rem);
  color: rgba(255, 255, 255, 0.7);
  background: #090a0c;
  font-size: 0.92rem;
}

.site-footer span {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .hero-inner,
  .build-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 1.2rem;
    padding-top: 5.6rem;
  }

  h1 {
    max-width: 9ch;
    font-size: 4rem;
  }

  .phone-stage {
    justify-items: start;
  }

  .phone-shell {
    width: min(100%, 260px);
    transform: rotateY(-7deg) rotateZ(1deg);
  }

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

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 0.7rem 1rem;
  }

  .brand span {
    max-width: 10rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-inner {
    min-height: 82svh;
    width: min(100% - 1rem, 560px);
    padding: 5rem 0 1rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(16, 17, 19, 0.96) 0%, rgba(16, 17, 19, 0.74) 60%, rgba(16, 17, 19, 0.28) 100%),
      linear-gradient(0deg, rgba(16, 17, 19, 0.58), rgba(16, 17, 19, 0.02));
  }

  h1 {
    font-size: 3.15rem;
  }

  .hero-text {
    margin-bottom: 1rem;
    font-size: 1.02rem;
  }

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

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.8rem;
  }

  .hero-facts div {
    padding: 0.65rem 0.55rem;
  }

  .hero-facts dd {
    font-size: 0.92rem;
  }

  .phone-stage {
    display: none;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-heading h2,
  .cta-layout h2 {
    font-size: 2.1rem;
  }

  .spec-row,
  .site-footer,
  .cta-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .spec-row strong {
    text-align: left;
  }
}

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