:root {
  --bg: #08080a;
  --bg-elevated: #1c1c1f;
  --panel: rgba(51, 51, 53, 0.92);
  --panel-strong: rgba(38, 38, 40, 0.96);
  --line: rgba(255, 255, 255, 0.22);
  --line-strong: rgba(242, 56, 69, 0.42);
  --text: #f2f2ed;
  --muted: rgba(242, 242, 237, 0.68);
  --accent: #f23845;
  --accent-warm: #bd1929;
  --accent-cold: #4d171f;
  --accent-soft: rgba(242, 56, 69, 0.12);
  --off-white: #e0e0db;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(242, 56, 69, 0.18), transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  background-size: auto, 22px 22px, 22px 22px, auto, auto;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

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

p,
li {
  line-height: 1.65;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(242, 56, 69, 0.08), transparent 55%),
    rgba(12, 12, 14, 0.92);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.72;
}

.brand,
.eyebrow,
h1,
h2,
.button,
.feature-index,
.footer-title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: clamp(108px, 12vw, 154px);
  height: auto;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.topbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topnav-utility {
  color: rgba(242, 242, 237, 0.46) !important;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switcher a.is-active {
  background: var(--accent);
  color: var(--off-white);
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--off-white);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 24px;
  margin-top: 24px;
}

.hero-copy,
.hero-panel,
.cta-strip,
.legal-card,
.legal-note,
.footer {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, transparent, rgba(77, 23, 31, 0.78));
  transform: rotate(18deg);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  line-height: 0.94;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
}

.lead {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: var(--off-white);
  border-color: var(--accent);
}

.button-secondary {
  background: transparent;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(242, 56, 69, 0.16), transparent 40%),
    var(--panel-strong);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(242, 56, 69, 0.75);
}

.hero-demo {
  position: relative;
  margin-top: 22px;
  margin-bottom: 22px;
}

.demo-shell {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(242, 56, 69, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    rgba(10, 10, 12, 0.72);
}

.demo-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-130%);
  animation: demoSweep 4.8s linear infinite;
  pointer-events: none;
}

.reset-card {
  max-width: 720px;
  margin: 0 auto;
}

.reset-state-hidden {
  display: none;
}

.reset-copy {
  margin: 0 0 22px;
  color: var(--muted);
}

.reset-form {
  display: grid;
  gap: 18px;
}

.reset-field {
  display: grid;
  gap: 8px;
}

.reset-field span {
  color: var(--off-white);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reset-field input {
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.88);
  color: var(--text);
  font: inherit;
}

.reset-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(242, 56, 69, 0.32);
}

.reset-error {
  margin: 0;
  color: #ff858f;
}

.reset-submit[disabled] {
  opacity: 0.68;
  cursor: progress;
}

.demo-bar,
.demo-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-caption,
.demo-counter-label,
.demo-service-kicker,
.demo-service-badge,
.demo-sync {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.demo-caption,
.demo-counter-label,
.demo-service-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.demo-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
}

.demo-sync-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(242, 56, 69, 0.7);
  animation: demoPulse 1.8s ease-in-out infinite;
}

.demo-counter {
  margin-top: 18px;
}

.demo-counter-window {
  height: 68px;
  margin-top: 8px;
  overflow: hidden;
}

.demo-counter-track {
  display: flex;
  flex-direction: column;
  animation: counterRoll 7.2s ease-in-out infinite;
}

.demo-counter-track span {
  display: flex;
  align-items: center;
  height: 68px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.demo-progress {
  height: 6px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.demo-progress span {
  display: block;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent));
  animation: progressGrow 7.2s ease-in-out infinite;
}

.demo-service-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(242, 56, 69, 0.28);
  background:
    linear-gradient(180deg, rgba(242, 56, 69, 0.12), transparent 55%),
    rgba(18, 18, 20, 0.92);
  animation: serviceNudge 3.8s ease-in-out infinite;
}

.demo-service-window {
  height: 166px;
  margin-top: 14px;
  overflow: hidden;
}

.demo-service-track {
  display: flex;
  flex-direction: column;
  animation: serviceQueueRoll 12s ease-in-out infinite;
}

.demo-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-service-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.demo-service-badge {
  padding: 4px 7px;
  border: 1px solid rgba(242, 56, 69, 0.35);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(242, 56, 69, 0.14);
}

.demo-service-title {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.demo-service-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

.tires-showcase {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.faq-section {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.faq-intro {
  max-width: 52rem;
  margin-bottom: 20px;
}

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

.faq-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(242, 56, 69, 0.08), transparent 58%),
    rgba(14, 14, 16, 0.78);
}

.faq-card h3 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.showcase-intro {
  display: block;
  margin-bottom: 20px;
}

.showcase-heading {
  max-width: 52rem;
}

.showcase-lead {
  max-width: 52ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.showcase-board {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.tires-board {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(77, 23, 31, 0.56), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--panel-strong);
}

.tires-context,
.tires-filter-row,
.tire-card-head,
.tire-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tires-context {
  flex-wrap: wrap;
}

.tires-context-bike,
.tires-context-wheel,
.tires-filter,
.tire-rank,
.tire-fit,
.tire-metrics span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tires-context-bike {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.tires-context-wheel,
.tire-fit,
.tire-metrics span {
  color: var(--muted);
  font-size: 0.74rem;
}

.tires-filter-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 14px;
}

.tires-filter {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.tires-filter-active {
  color: var(--text);
  border-color: rgba(242, 56, 69, 0.4);
  background: rgba(242, 56, 69, 0.12);
}

.tires-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.tire-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 16, 0.78);
}

.tire-card-primary {
  border-color: rgba(242, 56, 69, 0.34);
  background:
    linear-gradient(180deg, rgba(242, 56, 69, 0.12), transparent 56%),
    rgba(16, 16, 18, 0.92);
}

.tire-rank {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.tire-name {
  margin: 12px 0 8px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tire-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tire-metrics {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.cta-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 28px;
  border-color: var(--line-strong);
  background:
    linear-gradient(90deg, rgba(77, 23, 31, 0.72), transparent 38%),
    var(--panel);
}

.cta-copy {
  margin: 16px 0 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 26px;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-copy {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
}

.legal-page {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.legal-hero,
.legal-card,
.legal-note {
  padding: 28px;
}

.legal-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.legal-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-card a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.legal-note {
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
}

@keyframes counterRoll {
  0%,
  18% {
    transform: translateY(0);
  }

  26%,
  43% {
    transform: translateY(-68px);
  }

  51%,
  68% {
    transform: translateY(-136px);
  }

  76%,
  100% {
    transform: translateY(-204px);
  }
}

@keyframes progressGrow {
  0%,
  18% {
    width: 34%;
  }

  26%,
  43% {
    width: 48%;
  }

  51%,
  68% {
    width: 72%;
  }

  76%,
  100% {
    width: 86%;
  }
}

@keyframes demoPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes serviceNudge {
  0%,
  100% {
    transform: translateY(0);
    border-color: rgba(242, 56, 69, 0.28);
  }

  50% {
    transform: translateY(-3px);
    border-color: rgba(242, 56, 69, 0.45);
  }
}

@keyframes demoSweep {
  0% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

@keyframes serviceQueueRoll {
  0%,
  14% {
    transform: translateY(0);
  }

  20%,
  32% {
    transform: translateY(-54px);
  }

  38%,
  50% {
    transform: translateY(-108px);
  }

  56%,
  68% {
    transform: translateY(-162px);
  }

  74%,
  86% {
    transform: translateY(-216px);
  }

  92%,
  100% {
    transform: translateY(-270px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-shell::after,
  .demo-sync-dot,
  .demo-counter-track,
  .demo-progress span,
  .demo-service-card,
  .demo-service-track {
    animation: none;
  }
}

@media (max-width: 920px) {
  .hero,
  .cta-strip,
  .footer {
    grid-template-columns: 1fr;
  }

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

  .footer {
    flex-direction: column;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .topbar,
  .hero-copy,
  .hero-panel,
  .tires-showcase,
  .faq-section,
  .tires-board,
  .cta-strip,
  .legal-hero,
  .legal-card,
  .legal-note,
  .footer {
    padding: 18px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.55rem, 13vw, 3.85rem);
  }

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

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .topbar-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .topnav,
  .topbar-cta,
  .lang-switcher {
    width: 100%;
  }

  .topnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    font-size: 0.92rem;
  }

  .topnav a {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
  }

  .topnav-utility {
    color: var(--muted) !important;
  }

  .lang-switcher {
    justify-content: stretch;
  }

  .lang-switcher a {
    flex: 1;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .hero-demo,
  .demo-service-card,
  .tires-stack {
    margin-top: 16px;
  }

  .demo-shell {
    padding: 14px;
  }

  .demo-counter-window {
    height: 58px;
  }

  .demo-counter-track span {
    height: 58px;
    font-size: 2.55rem;
  }

  .demo-service-window {
    height: 144px;
  }

  .demo-service-item {
    min-height: 48px;
    padding: 8px 0;
  }

  .tires-stack::-webkit-scrollbar {
    display: none;
  }

  .tires-filter-row {
    margin-top: 12px;
  }

  .showcase-heading {
    max-width: none;
  }

  .tires-filter {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .tires-stack {
    display: grid;
    gap: 8px;
    padding-bottom: 0;
  }

  .tire-card {
    min-width: 0;
    padding: 12px;
  }

  .tire-name {
    font-size: 1.18rem;
  }

  .tire-note {
    font-size: 0.88rem;
  }

  .cta-actions {
    flex-direction: column;
  }
}
