:root {
  --primary: #4A90D9;
  --primary-dark: #3A7BC8;
  --primary-light: #E8F2FC;
  --secondary: #6C63FF;
  --success: #34C759;
  --warning: #FF9500;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(74, 144, 217, 0.12);
  --radius: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(74, 144, 217, 0.45);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 14px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 4vw 20px;
  border-top: 1px solid var(--border);
  background: white;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 12px 8px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(108, 99, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(74, 144, 217, 0.18), transparent),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  position: relative;
}

.phone-mockup {
  background: linear-gradient(145deg, #1A1A2E 0%, #2D2D44 100%);
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 32px 64px rgba(26, 26, 46, 0.25);
  max-width: 320px;
  margin: 0 auto;
}

.phone-screen {
  background: white;
  border-radius: 26px;
  overflow: hidden;
  min-height: 520px;
}

.mock-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 20px 16px 16px;
  text-align: center;
}

.mock-header h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.mock-header p {
  font-size: 0.75rem;
  opacity: 0.9;
}

.mock-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px 8px;
  background: var(--bg);
  font-size: 0.65rem;
  text-align: center;
  color: var(--text-muted);
}

.mock-tabs .active {
  color: var(--primary);
  font-weight: 600;
}

.mock-content {
  padding: 12px;
}

.mock-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.mock-card-icon.blue { background: #E8F2FC; }
.mock-card-icon.green { background: #E8FAEF; }
.mock-card-icon.orange { background: #FFF4E5; }
.mock-card-icon.purple { background: #F0EEFF; }

.mock-card-text strong {
  display: block;
  font-size: 0.8rem;
}

.mock-card-text small {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.mock-status {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.mock-status.ok { background: #E8FAEF; color: #1B8A3E; }
.mock-status.pending { background: #FFF4E5; color: #C67600; }

.floating-badge {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
}

.floating-badge.top {
  top: 20px;
  right: -20px;
}

.floating-badge.bottom {
  bottom: 40px;
  left: -30px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Sections */
section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-icon.blue { background: var(--primary-light); }
.feature-icon.green { background: #E8FAEF; }
.feature-icon.orange { background: #FFF4E5; }
.feature-icon.purple { background: #F0EEFF; }
.feature-icon.red { background: #FFECEB; }
.feature-icon.teal { background: #E6FAF8; }

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-section {
  background: linear-gradient(180deg, var(--bg) 0%, #fff 50%, var(--bg) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}

.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  opacity: 0.6;
}

.pricing-features li.disabled::before {
  content: '—';
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.cta-band p {
  opacity: 0.92;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-band .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
.site-footer {
  background: #1A1A2E;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand {
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

/* Legal pages */
.legal-page {
  padding: 100px 0 80px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead,
  .section-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta,
  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .floating-badge.top { right: 0; }
  .floating-badge.bottom { left: 0; }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-desktop,
  .nav-actions .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 40px 24px;
  }
}
