:root {
  --green: #2dd4bf;
  --green-dark: #14b8a6;
  --mint: #5eead4;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #262626;
  --muted: #8e8e8e;
  --border: #dbdbdb;
  --dark: #0a1520;
  --dark-surface: #0f2430;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 219, 219, 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-accent { color: var(--green); }

.hero-brand-logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin-bottom: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-dark {
  background: var(--text);
  color: #fff;
}

/* ── Hero ── */
.hero {
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1520 0%, #0d2430 62%, var(--bg) 100%);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mint);
  margin-bottom: 20px;
}

.hero-badge span {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-stat span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-glow {
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.28) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* GIF phone frames */
.phone-gif-device {
  overflow: hidden;
}

.phone-gif-screen {
  background: #000;
  border-radius: 28px;
  overflow: hidden;
  line-height: 0;
}

.phone-gif-screen img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

.phone-lg.phone-gif-device {
  width: 300px;
}

.phone-lg .phone-gif-screen img {
  min-height: 580px;
}

.phone-gallery {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.phone-gallery .phone-gif-screen img {
  min-height: 420px;
}

.showcase-visual .phone-gif-device {
  width: 280px;
}

.showcase-visual .phone-gif-screen img {
  min-height: 540px;
}

/* ── Phone frame ── */
.phone {
  width: 280px;
  background: #111;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.08) inset;
  position: relative;
}

.phone-lg { width: 300px; }

.phone-notch {
  width: 100px; height: 24px;
  background: #111;
  border-radius: 0 0 16px 16px;
  margin: -4px auto 8px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  font-size: 11px;
  position: relative;
}

.phone-screen.dark { background: var(--dark); color: #fff; }

/* App UI components inside phone */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
}

.app-bar .logo-sm { width: 24px; height: 24px; border-radius: 6px; }

.app-bar .title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.app-bar .icons { display: flex; gap: 8px; color: var(--text); font-size: 14px; }

.stats-strip {
  display: flex;
  justify-content: space-around;
  padding: 10px 8px;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
}

.stat-item { text-align: center; }
.stat-item .val { font-weight: 700; font-size: 12px; }
.stat-item .lbl { font-size: 9px; color: var(--muted); }

.tab-bar {
  display: flex;
  border-bottom: 0.5px solid var(--border);
  background: var(--surface);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px 0 8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}

.tab.active { font-weight: 700; color: var(--text); }
.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 1.5px;
  background: var(--text);
}

.stop-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--border);
}

.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
  flex-shrink: 0;
}

.avatar.done {
  background: linear-gradient(135deg, var(--green), var(--mint));
  border-color: var(--green);
  color: #fff;
  font-size: 12px;
}

.stop-info { flex: 1; min-width: 0; }
.stop-info .name { font-weight: 600; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-info .sub { font-size: 9px; color: var(--muted); }

.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  padding: 8px 0 12px;
}

.bottom-nav span {
  flex: 1;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

.bottom-nav span.active { color: var(--green); }

.action-bar {
  position: absolute;
  bottom: 44px; left: 0; right: 0;
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: var(--surface);
  border-top: 0.5px solid var(--border);
}

.btn-sm {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
}

.btn-sm.outline { border: 1px solid var(--border); }
.btn-sm.filled { background: var(--text); color: #fff; }

/* Onboarding screen mock */
.onboard-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  min-height: 460px;
}

.onboard-logo {
  width: 80px; height: 80px;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 12px 40px rgba(34,197,94,0.3);
}

.onboard-content h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.onboard-content p { font-size: 10px; color: var(--muted); line-height: 1.5; }

.dots { display: flex; gap: 4px; margin-top: 24px; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--border); }
.dots span.on { width: 20px; background: var(--green); }

.accent-btn {
  margin-top: 20px;
  width: calc(100% - 32px);
  padding: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 11px;
  text-align: center;
}

/* Verify screen */
.verify-card {
  margin: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.verify-card h4 { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.verify-card p { font-size: 9px; color: var(--muted); }

.arrival-banner {
  margin: 12px;
  padding: 12px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.arrival-banner .icon { color: var(--green); font-size: 16px; }
.arrival-banner strong { font-size: 11px; display: block; }
.arrival-banner span { font-size: 9px; color: var(--muted); }

.photo-preview {
  margin: 12px;
  height: 100px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.photo-preview::after {
  content: 'RasidGO · GPS Verified';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 8px;
  background: rgba(0,0,0,0.75);
  font-size: 7px;
  color: var(--mint);
  border-top: 2px solid var(--green);
}

.nav-chips {
  display: flex;
  gap: 4px;
  padding: 0 12px;
  margin-top: 8px;
}

.chip {
  flex: 1;
  padding: 8px 4px;
  border-radius: 6px;
  text-align: center;
  font-size: 8px;
  font-weight: 600;
  color: #fff;
}

.chip.apple { background: #000; }
.chip.google { background: #34a853; }
.chip.waze { background: #33ccff; color: #000; }

/* Settings mock */
.settings-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.settings-profile img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); padding: 4px; }
.settings-profile strong { font-size: 12px; display: block; }
.settings-profile span { font-size: 9px; color: var(--muted); }

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-top: 0.5px solid var(--border);
  font-size: 11px;
}

.settings-row .val { color: var(--muted); font-size: 10px; }

.toggle {
  width: 36px; height: 20px;
  background: var(--green);
  border-radius: 10px;
  position: relative;
}

.toggle::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 2px; right: 2px;
}

/* Map mock */
.map-area {
  height: 200px;
  background: linear-gradient(160deg, #e8f4ea 0%, #d4e8d8 40%, #c5ddd0 100%);
  position: relative;
  overflow: hidden;
}

.map-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.4) 49%, rgba(255,255,255,0.4) 51%, transparent 51%) 0 0 / 30px 30px,
    linear-gradient(transparent 49%, rgba(255,255,255,0.3) 49%, rgba(255,255,255,0.3) 51%, transparent 51%) 0 0 / 30px 30px;
}

.route-line {
  position: absolute;
  top: 30%; left: 15%;
  width: 70%; height: 50%;
  border: 3px solid var(--green);
  border-radius: 40% 60% 50% 40%;
  opacity: 0.8;
}

.map-pin {
  position: absolute;
  width: 22px; height: 22px;
  background: var(--green);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.map-pin:nth-child(2) { top: 25%; left: 20%; }
.map-pin:nth-child(3) { top: 45%; left: 55%; background: var(--green-dark); }
.map-pin:nth-child(4) { top: 65%; left: 75%; background: var(--mint); color: var(--text); }

/* ── Sections ── */
section { padding: 100px 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 48px; height: 48px;
  background: rgba(34,197,94,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* Showcase rows */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}

.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }

.showcase-text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.showcase-text p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}

.showcase-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: rgba(34,197,94,0.12);
  color: var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-item {
  text-align: center;
}

.gallery-item .phone { width: 100%; max-width: 220px; margin: 0 auto; }
.gallery-item .phone-screen { min-height: 380px; font-size: 9px; }
.gallery-item h4 {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 700;
}

.gallery-item p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(34,197,94,0.15);
  display: block;
  margin-bottom: 12px;
}

.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--dark) 0%, #0d2a35 100%);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
}

.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta .btn-primary { font-size: 1rem; padding: 14px 32px; }

/* Footer sitelinks — helps users & search engines understand site structure */
.sitelinks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.sitelinks-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 14px;
}

.sitelinks-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.2s;
}

.sitelinks-col a:hover { color: var(--green-dark); }

.sitelinks-muted {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p { font-size: 0.85rem; color: var(--muted); }

.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dark section */
.dark-section {
  background: var(--dark);
  color: #fff;
}

.dark-section .section-title,
.dark-section .showcase-text h3,
.dark-section .showcase-list li,
.dark-section .gallery-item h4 {
  color: #fff;
}

.dark-section .section-desc,
.dark-section .showcase-text p {
  color: rgba(255, 255, 255, 0.72);
}

.dark-section .section-label {
  color: var(--mint);
}

.dark-section .showcase-list li::before {
  background: rgba(45, 212, 191, 0.2);
  color: var(--mint);
}

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 960px) {
  .hero-grid, .showcase, .features-grid, .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sitelinks { grid-template-columns: repeat(2, 1fr); }
  .showcase.reverse { direction: ltr; }
  .hero-visual { order: -1; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--surface);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .cta { padding: 40px 24px; margin: 0; border-radius: 0; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .sitelinks { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
