/* ─── Global ─────────────────────────────────────────────────────────────── */

:root {
  --color-bg: #ffffff;
  --color-bg-secondary: #f5f5f7;
  --color-text: #1d1d1f;
  --color-muted: #6e6e73;
  --color-border: #d2d2d7;
  --color-accent: #007aff;
  --color-accent-hover: #0055cc;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--color-text);
  color: #ffffff;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: var(--color-text);
}

/* ─── Landing navbar overrides ───────────────────────────────────────────── */

.landing-page .mv-navbar__btn-primary {
  background: var(--color-accent);
}

.landing-page .mv-navbar__btn-primary:hover {
  background: var(--color-accent-hover);
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 48rem;
}

.section {
  padding: 5rem 0;
}

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

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section__subtitle {
  margin: 0;
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 36rem;
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

@media (min-width: 640px) {
  .grid--cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6.5rem 0;
  }

  .section__header {
    margin-bottom: 4.5rem;
  }

  .grid--cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), transform 0.15s ease, box-shadow var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn--lg {
  padding: 0.9375rem 2.25rem;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(0, 85, 204, 0.4);
}

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

.btn--secondary:hover {
  background: #ebebed;
}

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

.btn--light:hover {
  background: #f5f5f7;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 0 5rem;
  background: linear-gradient(145deg, #0a0a0f 0%, #1a1a2e 40%, #16213e 100%);
  color: #fff;
  text-align: center;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 122, 255, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(88, 86, 214, 0.2), transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero__title {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__tagline {
  margin: 1.25rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.hero__description {
  margin: 1rem auto 2.5rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.65);
  max-width: 28rem;
  line-height: 1.6;
}

/* ─── Feature cards ──────────────────────────────────────────────────────── */

.card {
  background: var(--color-bg);
  border: 1px solid rgba(210, 210, 215, 0.6);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 122, 255, 0.2);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__title {
  margin: 0 0 0.625rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card__text {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ─── Pricing ────────────────────────────────────────────────────────────── */

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.pricing-card--basic {
  background: var(--color-bg-secondary);
  border: 1px solid rgba(210, 210, 215, 0.5);
}

.pricing-card--featured {
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  box-shadow: 0 8px 32px rgba(0, 122, 255, 0.12);
}

.pricing-card--dark {
  background: linear-gradient(160deg, #1d1d1f 0%, #2d2d30 100%);
  color: #fff;
}

.pricing-card--dark .pricing-card__desc,
.pricing-card--dark .pricing-card__period,
.pricing-card--dark .pricing-card__list {
  color: rgba(255, 255, 255, 0.65);
}

.pricing-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card__name {
  margin: 0 0 0.375rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-card__desc {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.pricing-card__price {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-card__period {
  margin: 0.25rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.pricing-card__list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  flex-grow: 1;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.pricing-card__list li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.pricing-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.pricing-card--dark .pricing-card__list li::before {
  background: #fff;
}

/* ─── Steps ──────────────────────────────────────────────────────────────── */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step__number {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.1);
  color: var(--color-accent);
  flex-shrink: 0;
}

.step__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.step__title {
  margin: 0 0 0.375rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step__text {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
}

@media (max-width: 639px) {
  .step {
    grid-template-columns: auto 1fr;
  }

  .step__icon {
    display: none;
  }
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid rgba(210, 210, 215, 0.6);
  padding: 2.5rem 0;
  background: var(--color-bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__brand {
  margin: 0;
  font-weight: 700;
  color: var(--color-text);
}

.footer__link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__copy {
  margin: 0;
}

/* ─── Scroll animations ──────────────────────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .pricing-card:hover {
    transform: none;
  }
}
