:root {
  color-scheme: dark;
  --bg: #080a0f;
  --bg-elevated: #111620;
  --surface: rgba(18, 24, 36, 0.78);
  --surface-strong: rgba(26, 34, 49, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(112, 225, 255, 0.38);
  --text: #f6f8fb;
  --muted: #aab5c4;
  --soft: #718096;
  --cyan: #64e8ff;
  --green: #8dff9c;
  --red: #ff4f6d;
  --yellow: #ffd166;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(100, 232, 255, 0.18), transparent 27rem),
    radial-gradient(circle at 90% 8%, rgba(255, 79, 109, 0.14), transparent 23rem),
    linear-gradient(180deg, #080a0f 0%, #10131a 46%, #080a0f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 15, 0.76);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand,
.nav-links,
.nav-actions,
.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, transparent 0 40%, var(--cyan) 40% 53%, transparent 53%),
    linear-gradient(45deg, var(--red), var(--yellow));
  box-shadow: 0 0 26px rgba(100, 232, 255, 0.42);
  transform: skew(-12deg);
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.nav-actions,
.hero-actions,
.cta-actions {
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #071014;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 16px 36px rgba(100, 232, 255, 0.18);
}

.button-secondary,
.button-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: var(--line-strong);
}

.button-large {
  min-height: 50px;
  padding: 0 22px;
  font-size: 0.96rem;
}

.hero {
  padding: 86px 0 72px;
}

.hero-grid,
.section,
.workflow-section,
.cta-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  margin: 38px 0 0;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  padding: 22px 18px 0 0;
}

.hero-stats dt {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.25rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 0.9rem;
}

.telemetry-panel {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 32%),
    rgba(12, 17, 26, 0.84);
  box-shadow: var(--shadow);
}

.telemetry-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(100, 232, 255, 0.1) 48% 50%, transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.035) 18px 19px);
  opacity: 0.65;
  pointer-events: none;
}

.panel-header,
.metric-grid,
.track-visual {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.panel-label,
.metric-card span,
.lap-card span {
  display: block;
  color: var(--soft);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.panel-header strong {
  display: block;
  margin-top: 8px;
  font-size: 1.24rem;
}

.status-pill {
  padding: 8px 11px;
  border: 1px solid rgba(141, 255, 156, 0.36);
  border-radius: 999px;
  color: var(--green);
  background: rgba(141, 255, 156, 0.08);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.track-visual {
  display: grid;
  place-items: center;
  min-height: 338px;
  margin-bottom: 20px;
}

.track-corner {
  position: relative;
  width: min(100%, 380px);
  height: 280px;
  transform: rotate(-8deg);
}

.corner-line {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.corner-line path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.corner-mask-path {
  stroke: url("#corner-fade");
  stroke-width: 72;
}

.corner-glow {
  stroke: rgba(100, 232, 255, 0.16);
  stroke-width: 54;
  filter: drop-shadow(0 0 30px rgba(100, 232, 255, 0.32));
}

.corner-main {
  stroke: rgba(100, 232, 255, 0.42);
  stroke-width: 28;
}

.corner-racing-line {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
  stroke-dasharray: 10 12;
}

.track-node {
  position: absolute;
  top: 34%;
  left: 56%;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 24px var(--red);
}

.lap-card {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 154px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 10, 15, 0.74);
}

.lap-card strong {
  display: block;
  margin-top: 6px;
  color: var(--cyan);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.6rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-card,
.feature-card,
.workflow article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-card {
  min-width: 0;
  padding: 15px;
}

.metric-card strong {
  display: block;
  margin: 8px 0 13px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.32rem;
}

.meter {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.section,
.workflow-section,
.cta-section {
  padding: 82px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading h2 {
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 230px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(100, 232, 255, 0.08), transparent 42%),
    var(--surface);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  margin-bottom: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--cyan);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.feature-card p,
.workflow p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.workflow-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workflow article {
  min-height: 214px;
  padding: 22px;
  background: var(--surface-strong);
}

.workflow span {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--yellow);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cta-section {
  padding-bottom: 94px;
}

.cta-content {
  padding: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(100, 232, 255, 0.14), transparent 48%),
    linear-gradient(315deg, rgba(255, 79, 109, 0.14), transparent 44%),
    rgba(12, 17, 26, 0.92);
  box-shadow: var(--shadow);
}

.cta-content h2 {
  max-width: 870px;
  margin-bottom: 28px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 0.9rem;
}

.site-footer span {
  color: var(--text);
  font-weight: 800;
}

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

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

  .telemetry-panel {
    min-height: 540px;
  }

  .feature-grid,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav-shell {
    width: min(100% - 24px, 1180px);
    min-height: 66px;
  }

  .brand {
    font-size: 0.94rem;
  }

  .nav-actions .button-ghost {
    display: none;
  }

  .button {
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero {
    padding: 54px 0 44px;
  }

  .hero-grid,
  .section,
  .workflow-section,
  .cta-section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(2.68rem, 15vw, 4.25rem);
  }

  h2 {
    font-size: clamp(1.95rem, 10vw, 2.8rem);
  }

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

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

  .hero-stats,
  .metric-grid,
  .feature-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .telemetry-panel {
    min-height: 500px;
    padding: 18px;
  }

  .track-visual {
    min-height: 285px;
  }

  .track-corner {
    width: min(100%, 310px);
    height: 250px;
  }

  .lap-card {
    right: 8px;
    bottom: 0;
  }

  .section,
  .workflow-section,
  .cta-section {
    padding: 58px 0;
  }

  .feature-card,
  .workflow article {
    min-height: auto;
  }

  .cta-content {
    padding: 28px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
