/* ── Reset & Base ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-bg-card: #ffffff;
  --color-text: #1a2332;
  --color-text-secondary: #5a6a7e;
  --color-text-muted: #8896a6;
  --color-primary: #4f6ef7;
  --color-primary-hover: #3b5ce4;
  --color-primary-light: #eef1fe;
  --color-accent: #f74f8b;
  --color-border: #e2e8f0;
  --color-border-light: #f0f3f7;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 2px 12px rgba(79, 110, 247, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Layout ──────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

/* ── Navigation ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.nav__logo img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav__cta:hover {
  background: var(--color-primary-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Mobile Nav ──────────────────────────────────────────────────── */
.nav__mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
  z-index: 99;
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile a {
  display: block;
  padding: 12px 0;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border-light);
}

.nav__mobile a:last-child {
  border-bottom: none;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  min-height: 32px;
  transition: opacity 0.4s ease;
}

.hero__badge.is-fading {
  opacity: 0;
}

.nav__links a svg {
  vertical-align: -3px;
  margin-right: 2px;
}

.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.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);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79, 110, 247, 0.3);
}

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

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ── How it Works ─────────────────────────────────────────────────── */
.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
}

.section__header p {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step__desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── Features ─────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 16px;
  font-size: 22px;
}

.feature__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ── Screenshots ──────────────────────────────────────────────────── */
.screenshots {
  display: grid;
  gap: 32px;
}

.screenshots__row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.screenshots__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

.screenshots__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.screenshots__item--desktop {
  max-width: 680px;
}

.screenshots__item--phone {
  max-width: 220px;
}

.screenshots__item--wide {
  max-width: 100%;
}

.screenshots__item img {
  width: 100%;
  height: auto;
}

.screenshots__caption {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* ── Pricing ──────────────────────────────────────────────────────── */
.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--color-primary);
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}

.pricing-card__name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-card__amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pricing-card__period {
  font-size: 16px;
  color: var(--color-text-muted);
}

.pricing-card__billing {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-card__features li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card__features li::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--color-primary-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234f6ef7'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

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

.pricing__note {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.6;
}

.footer__col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── Legal Pages ─────────────────────────────────────────────────── */
.legal {
  padding: 48px 0 80px;
}

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

.legal__updated {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.legal ul, .legal ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal li {
  margin-bottom: 8px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .highlight-box {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.legal .highlight-box p {
  color: var(--color-text);
  margin-bottom: 0;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    padding: 48px 0;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .section {
    padding: 56px 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .screenshots__row {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    max-width: 100%;
    padding: 32px 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer__brand {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 28px;
  }

  .section__header h2 {
    font-size: 24px;
  }

  .pricing-card__amount {
    font-size: 40px;
  }
}
