:root {
  --brand-50: #eef1fd;
  --brand-200: #bac7f6;
  --brand-300: #8ea2ee;
  --brand-400: #6b86f0;
  --brand-500: #011d8a;
  --brand-700: #01135c;
  --ink-950: #070b1f;
  --accent: #ffb547;
  --text: #eef1fd;
  --muted: #a3afd6;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(107, 134, 240, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 181, 71, 0.12), transparent 60%),
    linear-gradient(160deg, var(--brand-700) 0%, var(--ink-950) 70%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.top,
.hero,
.foot {
  position: relative;
  z-index: 1;
  width: min(1100px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 20px rgba(107, 134, 240, 0.45);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-50);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.7);
  animation: pulse 2s infinite;
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0 48px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.rotator {
  background: linear-gradient(90deg, var(--brand-300), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.caret {
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.06em;
  vertical-align: -0.05em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Route animation ---------- */
.journey {
  margin: 44px 0 64px;
  height: clamp(90px, 14vw, 160px);
}
.journey svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.journey-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.journey-labels .road {
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-950);
  background: var(--accent);
}
#route {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 3;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
#route-progress {
  fill: none;
  stroke: var(--brand-400);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(107, 134, 240, 0.8));
}
.stop {
  fill: var(--ink-950);
  stroke: var(--brand-300);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.stop.end {
  stroke: var(--accent);
}
#car rect:first-child {
  fill: #fff;
}
#car .glass {
  fill: var(--brand-500);
}
#car .light {
  fill: var(--accent);
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pillars article {
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s ease forwards;
}
.pillars article:nth-child(2) {
  animation-delay: 0.12s;
}
.pillars article:nth-child(3) {
  animation-delay: 0.24s;
}
.pillars article:nth-child(4) {
  animation-delay: 0.36s;
}
.pillars article:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 162, 238, 0.45);
  background: rgba(255, 255, 255, 0.07);
}
.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(107, 134, 240, 0.16);
  margin-bottom: 14px;
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand-200);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillars h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 700;
}
.pillars p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.foot {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 24px 0 32px;
  font-size: 0.85rem;
  color: rgba(163, 175, 214, 0.7);
}
.foot a {
  color: var(--brand-200);
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}

/* ---------- Animations ---------- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 181, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0); }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pillars {
    grid-template-columns: 1fr;
  }
  .badge {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .pillars article {
    opacity: 1;
    transform: none;
  }
}
