@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ───────── tokens ───────── */
:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #94a3b8;
  --color-border: #e2e8f0;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-primary-lighter: #eff6ff;
  --color-accent: #7c3aed;
  --color-green: #059669;
  --color-green-light: #d1fae5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.10);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --max-w: 1120px;
  --header-h: 64px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ───────── reset ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ───────── utility ───────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 580px;
  line-height: 1.65;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ───────── fade-in on scroll ───────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.header-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.header-nav a:hover {
  color: var(--color-text);
  background: var(--color-bg-muted);
}
.header-cta {
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  background: var(--color-primary) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm) !important;
  transition: background .15s !important;
}
.header-cta:hover {
  background: var(--color-primary-hover) !important;
  color: #fff !important;
}

/* mobile burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  padding: 60px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(124,58,237,.05), transparent);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { max-width: 520px; }
.hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
.hero-title span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 460px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn-lg {
  font-size: 16px;
  padding: 14px 28px;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
}
.btn-outline {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  background: var(--color-bg-muted);
}

/* phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  border-radius: 36px;
  border: 6px solid #1e293b;
  background: var(--color-bg-muted);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1e293b;
  border-radius: 14px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 16px;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: box-shadow .25s, transform .25s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--color-primary-lighter);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   SCREENSHOTS
   ═══════════════════════════════════════ */
.screenshots { background: var(--color-bg-soft); }
.screenshots-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.screenshot-frame {
  border-radius: 28px;
  border: 5px solid #1e293b;
  background: var(--color-bg-muted);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 260px;
  margin: 0 auto;
}
.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.screenshot-placeholder {
  color: var(--color-text-tertiary);
  font-size: 14px;
  font-weight: 500;
}

/* ═══════════════════════════════════════
   PRICING
   ═══════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.price-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.price-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.price-card.popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.price-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.price-amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.price-amount small {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.price-period {
  font-size: 14px;
  color: var(--color-text-tertiary);
  margin-bottom: 20px;
}
.price-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.price-features li {
  font-size: 14px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.price-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: var(--color-green-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.price-card .btn {
  width: 100%;
  font-size: 14px;
  padding: 12px 0;
}

/* ═══════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════ */
.cta-banner {
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(37,99,235,.10), transparent),
    radial-gradient(ellipse 60% 70% at 80% 50%, rgba(124,58,237,.08), transparent),
    var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}
.cta-banner .section-title { margin-bottom: 12px; }
.cta-banner .section-subtitle {
  margin: 0 auto 28px;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 14px;
  color: var(--color-text-tertiary);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color .15s;
}
.footer-links a:hover { color: var(--color-text); }

/* ═══════════════════════════════════════
   DOCUMENT PAGES (privacy, terms)
   ═══════════════════════════════════════ */
.doc-page {
  padding: 48px 0 80px;
}
.doc-content {
  max-width: 720px;
}
.doc-content h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  line-height: 1.15;
}
.doc-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.doc-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
}
.doc-content ol {
  margin-bottom: 14px;
  padding-left: 24px;
  list-style: decimal;
}
.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.doc-content th,
.doc-content td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
}
.doc-content th {
  background: var(--color-primary-lighter);
  font-weight: 600;
  color: var(--color-text);
}
.doc-content tr:nth-child(even) td {
  background: var(--color-bg-soft);
}
.doc-content p {
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
}
.doc-content ul {
  margin-bottom: 14px;
  padding-left: 20px;
}
.doc-content li {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
  list-style: disc;
}
.doc-content code {
  font-size: 13px;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2px 7px;
}
.doc-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc-content a:hover {
  color: var(--color-primary-hover);
}
.doc-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--color-primary-lighter);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.doc-note strong { color: var(--color-text); }
.doc-date {
  margin-top: 24px;
  font-size: 14px;
  color: var(--color-text-tertiary);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  /* header mobile */
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px 16px;
    gap: 4px;
  }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 10px 0; }
  .burger { display: flex; }

  /* hero */
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 220px; height: 440px; }

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

  /* screenshots */
  .screenshots-row { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; }

  /* pricing */
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }

  /* cta */
  .cta-banner { padding: 40px 24px; }

  /* footer */
  .footer .container { flex-direction: column; text-align: center; }
}
