:root {
  --bg: #08111c;
  --bg-soft: #0d1726;
  --bg-card: rgba(14, 24, 40, 0.78);
  --bg-card-strong: #0f1b2e;
  --text: #eaf2ff;
  --muted: #a4b1c7;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #4aff9a;
  --primary-dark: #19cf74;
  --secondary: #79bfff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(74, 255, 154, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(121, 191, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #07101a 0%, #08111c 35%, #0a1320 100%);
  color: var(--text);
}

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

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 17, 28, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand img {
  width: clamp(180px, 22vw, 290px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav > a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-link {
  padding: 12px 18px;
  border-radius: 999px;
}

.nav-link.ghost {
  border: 1px solid var(--line);
}

.nav-link.solid {
  background: linear-gradient(135deg, var(--primary), #9dffde);
  color: #032112;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(74, 255, 154, 0.24);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 20px;
}

.hero-section {
  position: relative;
  padding: 72px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(74, 255, 154, 0.12), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(121, 191, 255, 0.14), transparent 32%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--primary);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.hero-copy h1,
.section-heading h2,
.split-copy h2,
.cta-panel h2 {
  margin: 18px 0 16px;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.9rem);
  max-width: 11ch;
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-text,
.section-heading p,
.split-copy p,
.cta-panel p,
.contact-section p,
.feature-card p,
.info-card p,
.flow-step p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #a6ffe0);
  color: #052214;
  box-shadow: 0 18px 40px rgba(74, 255, 154, 0.22);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-full {
  width: 100%;
}

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

.point-card,
.feature-card,
.info-card,
.contact-card,
.cta-panel,
.panel-window {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.point-card {
  padding: 18px;
}

.point-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.point-card span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-panel {
  position: relative;
}

.panel-window {
  padding: 18px;
  background: linear-gradient(180deg, rgba(17, 31, 51, 0.96), rgba(11, 21, 35, 0.96));
}

.panel-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.panel-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
}

.race-display {
  padding: 10px;
}

.race-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.mini-label {
  margin: 0 0 8px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 800;
}

.race-header h2 {
  margin: 0;
  font-size: 2rem;
}

.race-header small {
  color: var(--muted);
  font-size: 0.95rem;
}

.status-badge,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(74, 255, 154, 0.12);
  color: var(--primary);
  border: 1px solid rgba(74, 255, 154, 0.22);
  font-size: 0.85rem;
  font-weight: 800;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.stat-strip > div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.stat-strip strong {
  font-size: 1.2rem;
}

.results-table {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-row {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 2fr 0.9fr 1fr;
  gap: 12px;
  padding: 16px 18px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.result-row:last-child {
  border-bottom: 0;
}

.result-head {
  background: rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.result-row.current {
  background: linear-gradient(90deg, rgba(74, 255, 154, 0.12), rgba(121, 191, 255, 0.08));
}

.logo-strip {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.logo-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
}

.logo-strip-inner span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.logo-strip-inner p {
  margin: 0;
  font-weight: 700;
  text-align: center;
}

.section {
  padding: 96px 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0));
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.split-copy h2,
.cta-panel h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.left-align {
  text-align: left;
  margin: 0;
}

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

.feature-card,
.info-card,
.contact-card,
.cta-panel {
  padding: 28px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 18px;
  background: rgba(74, 255, 154, 0.1);
  color: var(--primary);
  border: 1px solid rgba(74, 255, 154, 0.16);
  font-weight: 900;
}

.feature-card h3,
.info-card h3,
.flow-step h4 {
  margin: 0 0 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.split-layout.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.feature-list li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 28px;
  color: var(--text);
  font-weight: 500;
}

.feature-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(74, 255, 154, 0.12);
  position: absolute;
  left: 0;
  top: 8px;
}

.info-card.tall,
.api-card {
  height: 100%;
}

.info-top h3 {
  font-size: 1.8rem;
  margin-top: 18px;
}

.flow-steps {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

.flow-step strong {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(74,255,154,0.14);
  color: var(--primary);
  font-weight: 900;
}

.code-panel {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.code-panel code {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: #08111c;
  border: 1px solid rgba(121,191,255,0.16);
  color: #b9d9ff;
  font-family: Consolas, Monaco, monospace;
}

.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(circle at top right, rgba(74,255,154,0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 27, 46, 0.98), rgba(10, 19, 32, 0.98));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #8390a5;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(74,255,154,0.2);
  border-color: rgba(74,255,154,0.35);
}

.site-footer {
  padding: 30px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-logo {
  width: 190px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-weight: 600;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom p {
  margin: 0;
  color: #7e8aa0;
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-layout,
  .split-layout.reverse,
  .contact-grid,
  .feature-grid,
  .hero-points {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .cta-panel,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 84px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: rgba(10, 19, 32, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav > a {
    width: 100%;
  }

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

  .hero-section,
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .nav-wrap {
    min-height: 76px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .section-heading h2,
  .split-copy h2,
  .cta-panel h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .race-header {
    flex-direction: column;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .result-row {
    grid-template-columns: 0.8fr 0.9fr 1.7fr 0.9fr 1fr;
    font-size: 0.92rem;
    padding: 14px;
  }

  .feature-card,
  .info-card,
  .contact-card,
  .cta-panel,
  .panel-window {
    padding: 22px;
  }
}

/* Contact-form validation and anti-spam UX */
.contact-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.form-feedback {
  padding: 15px 17px;
  border: 1px solid;
  border-radius: 15px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.feedback-success {
  background: rgba(74, 255, 154, 0.10);
  border-color: rgba(74, 255, 154, 0.30);
  color: #abffd1;
}
.feedback-error {
  background: rgba(255, 105, 105, 0.10);
  border-color: rgba(255, 105, 105, 0.32);
  color: #ffd2d2;
}
