:root {
  --blue: #0A84FF;
  --blue-light: #4DA3FF;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --border: #e5e5ea;
  --radius: 16px;
  --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { opacity: 0.85; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.lang-switch select {
  font: inherit;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #4DA3FF 0%, #0A84FF 100%);
  color: white;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero img.icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero p.tagline {
  font-size: 22px;
  opacity: 0.92;
  max-width: 540px;
  margin: 0 0 32px;
}
.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-device {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

/* iPhone device frame */
.device {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: #0a0a0a;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.35),
    0 0 0 2px rgba(255,255,255,0.08) inset;
}
.device .screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}
.device .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Device stack (2 side-by-side slightly overlapping iPhones) */
.device-stack {
  position: relative;
  width: 480px;
  height: 540px;
  max-width: 100%;
}
.device-stack .device {
  position: absolute;
  width: 280px;
  top: 50%;
}
.device-stack .device-back {
  left: 0;
  transform: translateY(-50%) rotate(-5deg);
  z-index: 1;
}
.device-stack .device-front {
  right: 0;
  transform: translateY(-50%) rotate(4deg);
  z-index: 2;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: white;
  color: var(--blue);
}
.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn:hover { transform: translateY(-1px); opacity: 0.95; }
.btn.disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* Sections */
section { padding: 96px 0; }
section h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 48px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.feature .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.feature h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature p { color: var(--text-muted); font-size: 15px; }

/* Pricing */
.pricing { background: var(--bg-soft); }
.pricing-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin: -32px auto 40px;
  max-width: 560px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 16px 48px rgba(10,132,255,0.18);
}
.pricing-card .featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pricing-card .plan-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.pricing-card .plan-price-row {
  margin-bottom: 16px;
}
.pricing-card .trial-badge {
  display: inline-block;
  background: rgba(10,132,255,0.12);
  color: var(--blue);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}
.pricing-card .price {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pricing-card .price-period {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 400;
  margin-left: 4px;
}
.pricing-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 8px 0 28px;
  text-align: left;
  flex: 1;
}
.pricing-card .plan-features li {
  color: var(--text);
  font-size: 15px;
  padding: 8px 0 8px 28px;
  position: relative;
}
.pricing-card .plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
}
.pricing-card p.after-trial {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 14px;
  margin-bottom: 0;
}
.btn-outline {
  background: white;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; }

/* Privacy page */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
}
.legal h1 { font-size: 40px; margin-bottom: 24px; letter-spacing: -0.01em; }
.legal h2 { font-size: 22px; margin: 32px 0 12px; }
.legal p { color: var(--text-muted); margin-bottom: 12px; }
.legal .placeholder {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-copy { text-align: center; }
  .hero-copy .tagline { margin-left: auto; margin-right: auto; }
  .cta-group { justify-content: center; }
  .hero-device { margin-top: 16px; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero p.tagline { font-size: 17px; }
  .hero img.icon { width: 72px; height: 72px; margin-bottom: 20px; }
  section { padding: 56px 0; }
  section h2 { font-size: 28px; margin-bottom: 28px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; max-width: 440px; }
  .pricing-subtitle { margin: -16px auto 28px; font-size: 15px; }
  .pricing-card { padding: 28px 22px; }
  .pricing-card .price { font-size: 40px; }
  .hero-device { margin: 0; max-width: none; display: flex; justify-content: center; }
  .device-stack { width: min(340px, calc(100vw - 72px)); height: auto; max-width: none; display: flex; flex-direction: column; align-items: center; }
  .device-stack .device { padding: 7px; border-radius: 34px; background: #0a0a0a; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
  .device-stack .device .screen { border-radius: 27px; }
  .device-stack .device { position: static; width: 100%; top: auto; left: auto; right: auto; }
  .device-stack .device-back { transform: none; margin-bottom: 32px; }
  .device-stack .device-front { transform: none; }
  .btn { padding: 12px 20px; font-size: 15px; }
  .cta-group { gap: 10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; }
  .legal { padding: 40px 20px; }
  .legal h1 { font-size: 30px; }
  .legal h2 { font-size: 19px; margin: 24px 0 10px; }
  .legal table { font-size: 13px; display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .hero-device { margin: 0 -18px; }
  .device-stack { width: min(288px, calc(100vw - 64px)); }
  .device-stack .device { padding: 5px; border-radius: 30px; }
  .device-stack .device .screen { border-radius: 25px; }
  .device-stack .device-back { margin-bottom: 24px; }
  .container { padding: 0 18px; }
}
