@font-face {
  font-family: "Roboto Condensed";
  src: url("/fonts/roboto-condensed.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #0b0d12;
  --bg-2: #12151d;
  --line: #232835;
  --text: #eef0f4;
  --muted: #9aa2b1;
  --accent: #ff3d2e;
  --accent-2: #ff8a3d;
  --font: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Diagonal speed lines drifting behind the page. */
.track {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgb(255 61 46 / 0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgb(255 138 61 / 0.08), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.track::before {
  content: "";
  position: absolute;
  inset: -50% -50%;
  background: repeating-linear-gradient(
    -62deg,
    transparent 0 46px,
    rgb(255 255 255 / 0.035) 46px 48px,
    transparent 48px 120px,
    rgb(255 61 46 / 0.06) 120px 121px
  );
  animation: drift 14s linear infinite;
}
@keyframes drift {
  to { transform: translate(-240px, 0); }
}

.top, main, .bottom {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 24px;
}

.top { padding-block: 24px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  font-style: italic;
}
.brand img { display: block; }
.brand b, .h1-brand b { color: var(--accent); font-weight: inherit; }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

main { flex: 1; }

.hero { padding-block: clamp(48px, 12vh, 120px) 56px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 6px 14px;
  border: 1px solid rgb(255 61 46 / 0.45);
  border-radius: 999px;
  background: rgb(255 61 46 / 0.08);
  color: #ffb4ad;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgb(255 61 46 / 0.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgb(255 61 46 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(255 61 46 / 0); }
}

h1 { margin: 0; line-height: 0.9; }
.h1-brand {
  display: block;
  font-size: clamp(4.5rem, 19vw, 11rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.01em;
  text-shadow: 0 10px 60px rgb(255 61 46 / 0.25);
}
.h1-logo {
  display: block;
  width: min(820px, 100%);
  height: auto;
  margin-left: -1.5%;
  filter: drop-shadow(0 10px 40px rgb(255 61 46 / 0.22));
}
.h1-sub {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.4rem, 4.2vw, 2.4rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  max-width: 36em;
  margin: 28px 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: #c9ced8;
}
.lead strong { color: var(--text); }

/* Start lights: they light up one by one, like a race start. */
.lights { display: flex; gap: 12px; margin-top: 40px; }
.lights i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2a1614;
  border: 2px solid #3a2220;
  animation: light 5s infinite;
}
.lights i:nth-child(2) { animation-delay: 0.4s; }
.lights i:nth-child(3) { animation-delay: 0.8s; }
.lights i:nth-child(4) { animation-delay: 1.2s; }
.lights i:nth-child(5) { animation-delay: 1.6s; }
@keyframes light {
  0%, 100% { background: #2a1614; box-shadow: none; }
  8%, 60% { background: var(--accent); border-color: #ff6b5f; box-shadow: 0 0 18px rgb(255 61 46 / 0.7); }
  62% { background: #2a1614; box-shadow: none; }
}

.features { padding-block: 24px 72px; }
.features h2 {
  margin: 0 0 20px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.features ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.04), transparent 60%), rgb(18 21 29 / 0.8);
}
.features li::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: skewX(-20deg);
}
.num {
  font-size: 0.9rem;
  font-weight: 800;
  font-style: italic;
  color: var(--accent);
}
.features h3 {
  margin: 6px 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}
.features p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.bottom {
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.bottom p { margin: 0; }
.bottom .fine { margin-top: 4px; font-size: 0.8rem; color: #6f7686; }

/* 404 page */
.notfound { padding-block: clamp(48px, 14vh, 140px); }
.notfound .h1-brand { font-size: clamp(5rem, 22vw, 12rem); }
.notfound a {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.notfound a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 480px) {
  .top, main, .bottom { padding-inline: 16px; }
  .lights { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .track::before, .dot, .lights i { animation: none; }
  .lights i { background: var(--accent); border-color: #ff6b5f; }
}
