:root {
  --ink: #0f1b2d;
  --ink-soft: #4a5670;
  --paper: #f6f7fb;
  --white: #ffffff;
  --line: #e3e7f0;
  --brand: #1f6feb;
  --brand-deep: #1550b5;
  --accent: #ffb020;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(15, 27, 45, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 251, 0.85);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: var(--white);
}

.status-badge {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a00;
  background: rgba(255, 176, 32, 0.18);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(31, 111, 235, 0.4); outline-offset: 2px; }

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(31, 111, 235, 0.8);
}
.btn-primary:hover { background: var(--brand-deep); }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(31, 111, 235, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.accent {
  background: linear-gradient(120deg, var(--brand), #53a8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34em;
}

/* ---------- Signup card ---------- */
.signup-card {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.signup-card label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.signup-row { display: flex; gap: 12px; }

input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.15);
}
input.invalid { border-color: #e5484d; }

.form-message { min-height: 1.2em; font-size: 0.92rem; font-weight: 600; color: #1b8a4b; }
.form-message.error { color: #e5484d; }

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.trust li::before { content: "✓"; color: #1b8a4b; font-weight: 800; margin-right: 6px; }
.trust strong { color: var(--ink); }

/* ---------- Hero visual ---------- */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }

.ticket {
  width: min(360px, 100%);
  background: var(--white);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transform: rotate(-2deg);
}

.ticket-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.ticket-label { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }

.status-pill {
  background: rgba(255, 176, 32, 0.18);
  color: #8a5a00;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
}

.route { display: grid; gap: 4px; margin-bottom: 20px; }
.stop { display: flex; gap: 12px; align-items: center; }
.stop small, .ticket-meta small, .float-card small { display: block; color: var(--ink-soft); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stop strong { font-size: 1rem; }

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--brand);
  background: var(--white);
  flex-shrink: 0;
  margin-left: 4px;
}
.dot-end { background: var(--brand); }
.route-line {
  width: 2px;
  height: 22px;
  margin-left: 9px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 8px);
}

.ticket-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.ticket-meta strong { font-size: 0.98rem; }

.float-card {
  position: absolute;
  right: 0;
  bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.float-card small { color: rgba(255, 255, 255, 0.65); }

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(255, 176, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 32px 20px 48px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
}

@media (max-width: 600px) {
  .signup-row { flex-direction: column; }
  .ticket-meta { grid-template-columns: 1fr 1fr; }
  .float-card { position: static; margin-top: 16px; }
  .hero-visual { display: block; }
  .ticket { transform: none; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
