:root {
  color-scheme: dark;
  --bg: #080b0d;
  --panel: #11181c;
  --panel-soft: #172126;
  --text: #f6f8f7;
  --muted: #aab5b1;
  --line: rgba(255, 255, 255, 0.12);
  --green: #c8ff19;
  --green-soft: rgba(200, 255, 25, 0.18);
  --blue: #45c8ff;
  --blue-soft: rgba(69, 200, 255, 0.18);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(8, 11, 13, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

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

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 42px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

.header-action,
.button,
.signup-form button,
.track-button {
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.header-action {
  padding: 10px 16px;
  background: var(--text);
  color: #071012;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  overflow: hidden;
  padding: 116px clamp(20px, 6vw, 84px) 58px;
  background:
    radial-gradient(circle at 78% 30%, rgba(200, 255, 25, 0.22), transparent 28%),
    radial-gradient(circle at 16% 68%, rgba(69, 200, 255, 0.18), transparent 30%),
    linear-gradient(145deg, #090d0f 0%, #12191c 48%, #07090b 100%);
}

.route-field {
  position: absolute;
  inset: 0;
  opacity: 0.56;
  pointer-events: none;
}

.grid-line,
.route-path {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.grid-line {
  height: 2px;
  width: 62vw;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.line-a {
  top: 24%;
  left: -8%;
  transform: rotate(-12deg);
}

.line-b {
  right: -14%;
  top: 54%;
  transform: rotate(17deg);
}

.line-c {
  left: 20%;
  bottom: 11%;
  transform: rotate(-5deg);
}

.route-path {
  left: 18%;
  top: 38%;
  width: 58vw;
  height: 26vw;
  border: 6px solid transparent;
  border-top-color: var(--green);
  border-right-color: rgba(200, 255, 25, 0.72);
  transform: rotate(-18deg);
  filter: drop-shadow(0 0 22px rgba(200, 255, 25, 0.48));
}

.route-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 26px var(--green);
}

.node-a {
  left: 16%;
  top: 51%;
}

.node-b {
  left: 53%;
  top: 28%;
}

.node-c {
  right: 16%;
  bottom: 28%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-logo {
  width: clamp(86px, 12vw, 138px);
  height: clamp(86px, 12vw, 138px);
  border-radius: 18px;
  margin-bottom: 22px;
  box-shadow: 0 0 38px rgba(200, 255, 25, 0.24);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.4rem, 14vw, 10rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.05rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero-lead,
.section-heading p,
.split-copy p,
.cealum-band p,
.signup-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.65;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.button.primary {
  background: var(--green);
  color: #111603;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.phone-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  justify-self: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background: linear-gradient(180deg, #151d20, #080b0d);
  box-shadow: var(--shadow), inset 0 0 0 8px rgba(255, 255, 255, 0.035);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.app-card {
  border-radius: 24px;
  background: var(--panel);
  overflow: hidden;
}

.map-card {
  position: relative;
  min-height: 330px;
}

.mini-map {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 68% 28%, rgba(200, 255, 25, 0.2), transparent 30%),
    #172025;
  background-size: 46px 46px, 46px 46px, auto, auto;
}

.street,
.live-route {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.street {
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
}

.street-one {
  left: -18px;
  top: 88px;
  width: 310px;
  transform: rotate(19deg);
}

.street-two {
  right: -36px;
  top: 202px;
  width: 280px;
  transform: rotate(-26deg);
}

.street-three {
  left: 22px;
  bottom: 62px;
  width: 230px;
  transform: rotate(7deg);
}

.live-route {
  left: 56px;
  top: 76px;
  width: 230px;
  height: 170px;
  border: 7px solid transparent;
  border-left-color: var(--green);
  border-bottom-color: var(--green);
  transform: rotate(-10deg);
  filter: drop-shadow(0 0 18px rgba(200, 255, 25, 0.54));
}

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 4px solid #0a0d0f;
}

.start-pin {
  left: 68px;
  top: 202px;
  background: var(--green);
}

.end-pin {
  right: 70px;
  top: 78px;
  background: var(--blue);
}

.ride-pill {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(8, 11, 13, 0.76);
  backdrop-filter: blur(16px);
}

.ride-pill span {
  color: var(--muted);
  font-size: 0.88rem;
}

.ride-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 0;
}

.ride-stats article {
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.ride-stats span,
.ride-stats small,
.metric-row span,
.route-list strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.ride-stats strong {
  display: block;
  margin-top: 5px;
  font-size: 1.55rem;
}

.track-button {
  width: 100%;
  min-height: 50px;
  background: var(--green);
  color: #111603;
}

.feature-band,
.split-section,
.cealum-band,
.signup-section {
  padding: clamp(70px, 10vw, 130px) clamp(20px, 6vw, 84px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 44px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-item,
.dashboard-preview,
.signup-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.feature-item {
  padding: 26px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.feature-item p,
.check-list,
.route-list p {
  color: var(--muted);
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
}

.dashboard-preview {
  padding: clamp(18px, 4vw, 32px);
  box-shadow: var(--shadow);
}

.panel-header,
.metric-row,
.route-list div,
.cealum-band,
.signup-section {
  display: flex;
  align-items: center;
}

.panel-header {
  justify-content: space-between;
  margin-bottom: 26px;
}

.panel-header span {
  color: var(--muted);
}

.metric-row {
  gap: 12px;
  margin-bottom: 16px;
}

.metric-row article {
  flex: 1;
  min-width: 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--panel-soft);
}

.metric-row strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.route-list {
  display: grid;
  gap: 10px;
}

.route-list div {
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.route-list p {
  flex: 1;
  margin: 0;
}

.leaderboard-list div {
  min-height: 58px;
}

.leaderboard-list .you-row {
  border: 1px solid rgba(200, 255, 25, 0.42);
  background: linear-gradient(90deg, rgba(200, 255, 25, 0.14), rgba(69, 200, 255, 0.08));
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
}

.you-row .rank-badge {
  background: var(--green);
  color: #111603;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.green {
  background: var(--green);
}

.dot.blue {
  background: var(--blue);
}

.dot.white {
  background: var(--text);
}

.split-copy {
  max-width: 700px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(200, 255, 25, 0.58);
}

.cealum-band {
  justify-content: space-between;
  gap: 42px;
  background:
    radial-gradient(circle at 82% 50%, rgba(69, 200, 255, 0.18), transparent 25%),
    #0b1013;
}

.cealum-band div {
  max-width: 650px;
}

.cealum-band img {
  width: min(42vw, 430px);
  border-radius: 8px;
  filter: drop-shadow(0 0 32px rgba(69, 200, 255, 0.28));
}

.signup-section {
  justify-content: space-between;
  gap: 32px;
  margin: clamp(30px, 6vw, 72px) clamp(20px, 6vw, 84px);
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle at 18% 20%, rgba(200, 255, 25, 0.15), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.signup-copy {
  max-width: 560px;
}

.signup-form {
  width: min(100%, 480px);
}

.signup-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.signup-form div {
  display: flex;
  gap: 10px;
}

.signup-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font: inherit;
  padding: 0 14px;
  outline: none;
}

.signup-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(200, 255, 25, 0.12);
}

.signup-form button {
  min-height: 52px;
  padding: 0 18px;
  background: var(--blue);
  color: #041116;
  white-space: nowrap;
}

.signup-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-note {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--green);
  font-size: 0.9rem;
}

.form-note[data-type="error"] {
  color: #ff8f8f;
}

.form-note[data-type="info"] {
  color: var(--blue);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 18%, rgba(200, 255, 25, 0.16), transparent 26%),
    radial-gradient(circle at 16% 72%, rgba(69, 200, 255, 0.16), transparent 26%),
    var(--bg);
}

.admin-main {
  padding: 116px clamp(16px, 5vw, 72px) 56px;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-intro {
  grid-column: 1 / -1;
  max-width: 780px;
}

.admin-intro h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.admin-intro p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.login-card,
.mailing-card {
  padding: clamp(20px, 4vw, 32px);
}

.admin-card h2 {
  margin-bottom: 22px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.admin-card label {
  display: block;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-card input,
.admin-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font: inherit;
  outline: none;
}

.admin-card input {
  min-height: 50px;
  padding: 0 14px;
}

.admin-card textarea {
  min-height: 230px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

.admin-card input:focus,
.admin-card textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(200, 255, 25, 0.12);
}

.admin-card button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #111603;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 0 18px;
}

.admin-card button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.login-card button {
  width: 100%;
  margin-top: 22px;
}

.mailing-header,
.mail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mailing-header {
  margin-bottom: 8px;
}

.mailing-header p,
.admin-note {
  color: var(--muted);
}

.mail-actions {
  flex-wrap: wrap;
  margin-top: 20px;
}

.admin-card .ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.admin-note {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.admin-note[data-type="success"] {
  color: var(--green);
}

.admin-note[data-type="error"] {
  color: #ff8f8f;
}

.preview-card {
  min-height: 620px;
  overflow: hidden;
}

.preview-card iframe {
  width: 100%;
  min-height: 620px;
  border: 0;
  background: #080b0d;
}

.is-hidden {
  display: none;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .phone-shell {
    justify-self: start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cealum-band,
  .signup-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .cealum-band img {
    width: min(100%, 390px);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-mark span {
    display: none;
  }

  .header-action {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 96px 16px 46px;
  }

  h1 {
    font-size: clamp(3.7rem, 22vw, 5.6rem);
  }

  .hero-actions,
  .signup-form div {
    flex-direction: column;
  }

  .button,
  .signup-form button {
    width: 100%;
  }

  .phone-shell {
    border-radius: 26px;
    padding: 12px;
  }

  .map-card {
    min-height: 270px;
  }

  .ride-pill {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-band,
  .split-section,
  .cealum-band,
  .signup-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .signup-section {
    margin-left: 16px;
    margin-right: 16px;
  }

  .metric-row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mailing-header,
  .mail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mail-actions button,
  .mailing-header button {
    width: 100%;
  }
}
