:root {
  --bg: #050609;
  --panel: rgba(12, 14, 20, 0.92);
  --panel-soft: rgba(14, 17, 25, 0.78);
  --text: #f7f7fb;
  --muted: #9aa2b2;
  --line: rgba(255,255,255,.12);
  --cyan: #22e6ff;
  --pink: #ff3ea5;
  --purple: #8a5cff;
  --good: #7dffb3;
  --danger: #ff5578;
  --shadow: 0 28px 90px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 15%, rgba(34,230,255,.10), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255,62,165,.10), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(138,92,255,.10), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.page-shell {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.panel {
  background: linear-gradient(180deg, rgba(18,21,31,.97), rgba(8,10,15,.97));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.soft-panel { background: var(--panel-soft); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 5vw, 46px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--purple));
}

.brand-row { display: flex; gap: 14px; align-items: center; }
.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #050609;
  background: linear-gradient(135deg, var(--cyan), var(--pink), var(--purple));
}

.eyebrow, .section-kicker {
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 800;
  color: var(--muted);
}

.dollar-id { margin-top: 5px; font-weight: 800; }
.hero-copy { padding: clamp(38px, 7vw, 72px) 0 26px; }
.found-badge {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(34,230,255,.25);
  background: rgba(34,230,255,.07);
  color: #c8faff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 16px 0 14px;
  max-width: 760px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(38px, 8vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}
h1 span {
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p, .modal-intro {
  color: var(--muted);
  line-height: 1.7;
  max-width: 700px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 22px;
}
.stat-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.stat-number { display: block; font-size: clamp(24px, 6vw, 38px); font-weight: 900; }
.stat-label { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

.primary-btn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 18px 20px;
  color: #050609;
  font-weight: 900;
  letter-spacing: .04em;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--purple));
  box-shadow: 0 12px 40px rgba(138,92,255,.18);
  transition: transform .18s ease, filter .18s ease;
}
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.text-btn {
  width: 100%;
  border: 0;
  margin-top: 10px;
  padding: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.origin {
  margin-top: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.origin h2, .section-heading h2, .modal h2 { margin: 6px 0 0; font-family: "Space Grotesk", sans-serif; }
.origin-details { display: grid; gap: 10px; min-width: 260px; }
.origin-details div { display: flex; justify-content: space-between; gap: 18px; }
.origin-details span { color: var(--muted); }

.journey-section { padding: 54px 4px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.section-heading h2 { font-size: clamp(28px, 6vw, 46px); letter-spacing: -.04em; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.empty { padding: 38px; text-align: center; }
.empty-icon {
  width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 14px;
  border-radius: 50%; border: 1px solid var(--line); font-weight: 900;
}
.empty p { color: var(--muted); }

.journey-list { display: grid; gap: 12px; }
.journey-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.025);
}
.stop-number {
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34,230,255,.16), rgba(255,62,165,.12), rgba(138,92,255,.18));
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 900;
}
.journey-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.journey-name { font-weight: 900; font-size: 18px; }
.journey-location { margin-top: 4px; color: var(--muted); font-size: 14px; }
.journey-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.journey-message { margin: 12px 0 0; color: #d7dbe4; line-height: 1.55; }
.social-link {
  display: inline-flex;
  margin-top: 12px;
  color: #bffaff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 0;
  color: #6f7787;
  font-size: 12px;
}
.footer-dot { opacity: .55; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}
.modal {
  position: fixed;
  z-index: 21;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(620px, calc(100% - 28px));
  max-height: min(88vh, 780px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 28px;
  background: #0b0e14;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.close-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 26px;
}
form { display: grid; gap: 16px; margin-top: 22px; }
label { display: grid; gap: 8px; }
label > span { font-size: 13px; font-weight: 800; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus { border-color: rgba(34,230,255,.55); box-shadow: 0 0 0 3px rgba(34,230,255,.08); }
textarea { resize: vertical; }
small { justify-self: end; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-row { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; }
.check-row span { color: var(--muted); font-weight: 500; line-height: 1.45; }
.success-modal { text-align: center; }
.success-icon {
  width: 66px; height: 66px; margin: 0 auto 18px; display: grid; place-items: center;
  border-radius: 50%; color: #06100a; background: var(--good); font-size: 32px; font-weight: 900;
}
.success-modal p { color: var(--muted); line-height: 1.6; }
.pass-card {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .08em;
}

.dead-state { min-height: 80vh; display: grid; place-items: center; }
.dead-card { width: min(620px, 100%); padding: 40px; text-align: center; }
.dead-icon {
  width: 68px; height: 68px; margin: 30px auto 18px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255,85,120,.25); background: rgba(255,85,120,.08); color: var(--danger); font-size: 28px;
}
.dead-card h1 { font-size: clamp(38px, 7vw, 58px); }
.dead-card p { color: var(--muted); }

.hidden { display: none !important; }

@media (max-width: 640px) {
  .page-shell { width: min(100% - 18px, 920px); padding-top: 9px; }
  .hero, .origin, .modal { border-radius: 22px; }
  .hero { padding: 22px 18px; }
  .stats-grid { gap: 7px; }
  .stat-card { padding: 14px 10px; text-align: center; }
  .origin { display: grid; }
  .origin-details { min-width: 0; }
  .section-heading { align-items: center; }
  .journey-item { grid-template-columns: 46px 1fr; padding: 16px; gap: 12px; }
  .stop-number { width: 46px; height: 46px; border-radius: 14px; }
  .journey-top { display: grid; gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 24px 18px; }
}
