:root {
  --bg: #fafbff;
  --bg-dark: #0f1729;
  --text: #0f1729;
  --text-muted: #5c6478;
  --text-light: #8892a6;
  --border: #e4e8f1;
  --brand: #4f46e5;
  --brand-light: #6366f1;
  --brand-dark: #4338ca;
  --surface: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 251, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.logo-icon {
  font-size: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

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

.nav-link-muted {
  color: var(--text-muted) !important;
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
  color: var(--brand-dark);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-white {
  background: #fff;
  color: var(--brand);
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.phone-mockup {
  width: 280px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.phone-screen {
  background: linear-gradient(180deg, #1e1e32 0%, #16162a 100%);
  border-radius: 32px;
  padding: 24px 16px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mock-header {
  text-align: center;
}

.mock-progress {
  height: 6px;
  background: #2a2a4a;
  border-radius: 3px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.mock-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 37.5%;
  background: linear-gradient(90deg, var(--brand) 0%, #a855f7 100%);
  border-radius: 3px;
}

.mock-step {
  color: #8888aa;
  font-size: 13px;
  font-weight: 500;
}

.mock-stop-card {
  background: #252540;
  border-radius: 16px;
  padding: 20px;
  flex: 1;
}

.mock-stop-name {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.mock-stop-detail {
  color: #8888aa;
  font-size: 14px;
}

.mock-actions {
  display: flex;
  gap: 10px;
}

.mock-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.mock-btn-nav {
  background: #2a2a4a;
  color: #fff;
}

.mock-btn-complete {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.08);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

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

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

/* CTA Section */
.cta-section {
  padding: 80px 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--brand) 0%, #7c3aed 100%);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
}

.cta-card h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 14px;
  color: #64748b;
}

/* Legal Pages */
.legal-page {
  padding: 100px 0 60px;
  min-height: 100vh;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-section p,
.legal-section li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-section ul {
  margin-top: 12px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section a {
  color: var(--brand);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 20px;
  }

  .phone-mockup {
    transform: none;
    width: 260px;
  }

  .phone-screen {
    min-height: 340px;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    height: 56px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 14px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .features {
    padding: 60px 0;
  }

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

  .cta-card {
    padding: 40px 24px;
  }

  .legal-content {
    padding: 32px 24px;
  }
}
