:root {
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --card: #0b1220cc;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --brand-a: #38bdf8;
  --brand-b: #22d3ee;
  --ok: #16a34a;
  --err: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 10%, #1d4ed8 0, transparent 40%),
    radial-gradient(circle at 90% 5%, #0ea5e9 0, transparent 35%),
    linear-gradient(140deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.hero-card {
  padding: 30px;
  border-radius: 16px;
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid #1f2a44;
  box-shadow: 0 18px 40px #02061788;
}

.logo-mark {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: white;
}

.logo-mark span {
  color: var(--brand-a);
}

.logo-mark.small {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}

.tagline {
  margin: 10px 0 0;
  color: var(--muted);
}

.hero-action {
  margin-top: 20px;
}

.pilot-note {
  font-size: 0.86rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.panel {
  background: var(--card);
  border: 1px solid #1f2a44;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 16px 30px #02061766;
}

h2 {
  margin: 0 0 12px;
}

.stack-form {
  display: grid;
  gap: 8px;
}

label {
  font-size: 0.88rem;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #020617cc;
  color: var(--ink);
}

.btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #334155;
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  background: #0f172a;
}

.btn.primary {
  background: linear-gradient(120deg, var(--brand-a), var(--brand-b));
  color: #00131f;
  border: none;
}

.btn.secondary {
  background: #0ea5e9;
  color: #00131f;
  border: none;
}

.btn.ghost {
  background: transparent;
}

.btn.oauth {
  width: 100%;
  background: #f8fafc;
  color: #0f172a;
  border: none;
}

.muted {
  color: var(--muted);
  margin: 8px 0 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.link-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #1f2a44;
  padding-bottom: 8px;
}

.link-list a {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 700;
}

.link-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.map-panel {
  padding: 14px;
}

.map-frame {
  margin-top: 10px;
  width: 100%;
  height: 76vh;
  border: 0;
  border-radius: 12px;
  background: #0f172a;
}

.preview-topbar .logo-mark {
  text-decoration: none;
}

.metro-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #bae6fd;
  font-size: 0.82rem;
  font-weight: 700;
}

.metro-picker select {
  width: auto;
  min-width: 160px;
  padding: 9px 34px 9px 11px;
  border: 1px solid #38bdf8;
  border-radius: 10px;
  background: #0f172a;
  color: white;
  font: inherit;
}

.preview-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 28px;
}

.preview-hero h1 {
  max-width: 760px;
  margin: 4px 0 10px;
  font-size: clamp(2.25rem, 6vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.eyebrow {
  margin: 0;
  color: var(--brand-a);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-summary {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.snapshot-card {
  display: grid;
  flex: 0 1 270px;
  gap: 5px;
  padding: 16px;
  border: 1px solid #155e75;
  border-radius: 12px;
  background: #08334499;
  color: #bae6fd;
  font-size: 0.85rem;
}

.snapshot-card strong {
  color: white;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #1f2a44;
  border-radius: 14px;
  background: #0b1220cc;
}

.preview-stats div {
  display: grid;
  gap: 2px;
  padding: 18px 22px;
}

.preview-stats div + div {
  border-left: 1px solid #1f2a44;
}

.preview-stats strong {
  color: white;
  font-size: 1.6rem;
}

.preview-stats span,
.preview-map-heading p {
  color: var(--muted);
}

.preview-map-panel {
  overflow: hidden;
  border: 1px solid #1f2a44;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 16px 30px #02061766;
}

.preview-map-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
}

.preview-map-heading h2 {
  margin-bottom: 5px;
}

.preview-map-heading p {
  max-width: 700px;
  margin: 0;
}

.preview-map-heading p + p {
  margin-top: 8px;
}

.data-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #0e7490;
  border-radius: 999px;
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 700;
}

.preview-map-frame {
  display: block;
  height: min(72vh, 760px);
  margin: 0;
  border-radius: 0;
}

.flash-wrap {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.flash {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}

.flash.error {
  background: #7f1d1d;
  border: 1px solid var(--err);
}

.flash.success {
  background: #14532d;
  border: 1px solid var(--ok);
}

@media (max-width: 700px) {
  .shell {
    padding: 20px 12px 30px;
  }

  .map-frame {
    height: 64vh;
  }

  .preview-hero,
  .preview-map-heading {
    display: grid;
  }

  .preview-topbar {
    flex-wrap: wrap;
  }

  .metro-picker {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .metro-picker select {
    flex: 1;
  }

  .preview-stats {
    grid-template-columns: 1fr;
  }

  .preview-stats div + div {
    border-top: 1px solid #1f2a44;
    border-left: 0;
  }

  .link-list li {
    display: block;
  }
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin: 24px 0;
}

.community-card h2 { margin-top: 0; }
.community-card .data-badge { display: inline-block; }
.community-card .btn { margin-top: 12px; }
