:root {
  --bg: #0a0c0f;
  --bg-soft: #12151a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #f0f4f8;
  --text-secondary: #8b9cb3;
  --muted: #5a6b7d;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #6dd86b;
  --brand-deep: #4bc249;
  --brand-glow: rgba(109, 216, 107, 0.4);
  --accent: #f5a623;
  --accent-glow: rgba(245, 166, 35, 0.3);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Noto Sans SC', sans-serif;
  --display: 'Space Grotesk', sans-serif;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Background Effects */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black, transparent);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.5;
}

.bg-glow-1 {
  top: -20%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: var(--brand-glow);
}

.bg-glow-2 {
  top: 30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--accent-glow);
}

/* Container */
.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 12, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.85;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Section Base */
.section {
  padding: 100px 0;
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
}

.section-head.center p {
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, #a8e063 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

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

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-mockup {
  position: relative;
  transform: rotateY(-5deg) rotateX(5deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotateY(-5deg) rotateX(5deg) translateY(0); }
  50% { transform: rotateY(-5deg) rotateX(5deg) translateY(-20px); }
}

.phone-frame {
  width: 260px;
  height: 540px;
  background: linear-gradient(145deg, #2a2d35 0%, #1a1c22 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a1d24 0%, #0d0f12 100%);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.app-logo {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-radius: 8px;
}

.app-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.app-content {
  flex: 1;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-card span {
  font-size: 11px;
  color: var(--muted);
}

.app-card strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.card-icon.routes { background: linear-gradient(135deg, #6dd86b, #4bc249); }
.card-icon.sessions { background: linear-gradient(135deg, #f5a623, #e09100); }
.card-icon.attempts { background: linear-gradient(135deg, #7c8aff, #5a6aff); }
.card-icon.betas { background: linear-gradient(135deg, #ff7eb3, #ff5a8a); }

.phone-shadow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5), transparent);
  filter: blur(20px);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #0a0c0f;
  box-shadow: 0 4px 20px var(--brand-glow);
}

.btn-primary:hover:not(.btn-disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--brand-glow);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-download {
  width: 100%;
  padding: 16px;
  background: var(--surface-strong);
  color: var(--muted);
}

/* Features Section */
.features-section {
  position: relative;
  z-index: 1;
}

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

.feature-card {
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(109, 216, 107, 0.15), rgba(109, 216, 107, 0.05));
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--brand);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* Stats Section */
.stats-section {
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.stats-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-block {
  text-align: center;
  padding: 32px;
}

.stat-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.stat-block h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-block p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Download Section */
.download-section {
  position: relative;
  z-index: 1;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.download-card {
  padding: 32px;
  text-align: center;
}

.download-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  margin: 0 auto 20px;
}

.download-icon.android {
  background: linear-gradient(135deg, #3ddc84, #2ca05a);
  color: white;
}

.download-icon.ios {
  background: linear-gradient(135deg, #555, #333);
  color: white;
}

.download-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.download-info p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Contact Section */
.contact-section {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
}

.contact-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-links a:hover {
  color: var(--brand);
}

.contact-divider {
  color: var(--line);
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.foot-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.foot-wrap p {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--brand);
}

.tagline {
  font-family: var(--display);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    transform: rotateY(0) rotateX(0);
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .feature-grid,
  .download-cards,
  .stats-content {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-content {
    gap: 0;
  }

  .stat-block {
    padding: 20px;
  }
}

/* Legal Pages */
.list-card {
  padding: 40px;
  max-width: 720px;
  margin: 120px auto 60px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.list-card .list {
  margin-top: 20px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.list-card .list li {
  margin: 12px 0;
  line-height: 1.8;
}

.list-card .tip {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}