/* ===== Design Tokens ===== */
:root {
  --color-primary: #02043E;
  --color-accent: #FFCB1B;
  --color-accent-light: #FFE899;
  --color-bg-off-white: #F4F7FB;
  --color-bg-white: #FFFFFF;
  --color-dim: #383954;
  --color-muted: #A6A7BA;
  --color-inactive: #C8CEDB;
  --color-secondary: #E2E5EC;
  --color-gradient-start: #FFC500;
  --color-gradient-end: #FFF733;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --radius-pill: 100px;
  --radius-card: 16px;
  --radius-phone: 32px;
}

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

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

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

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-dim);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: 0 1px 8px rgba(2, 4, 62, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav__icon {
  border-radius: 10px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-dim);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 4, 62, 0.2);
}

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

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  background: var(--color-accent);
  padding: 120px 0 80px;
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero__content {
  flex: 1;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__app-icon {
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero__app-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--color-dim);
  margin-bottom: 32px;
  max-width: 440px;
  line-height: 1.5;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

.hero__image {
  flex: 0 0 auto;
}

/* ===== Phone Frame ===== */
.phone-frame {
  background: #1a1a2e;
  border-radius: var(--radius-phone);
  padding: 12px;
  box-shadow: 0 24px 48px rgba(2, 4, 62, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
  display: inline-block;
}

.phone-frame img {
  border-radius: 22px;
  width: 280px;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: var(--color-bg-white);
}

.features .section-title {
  margin-bottom: 64px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 80px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature--reverse {
  flex-direction: row-reverse;
}

.feature__content {
  flex: 1;
}

.feature__badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.feature__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.feature__desc {
  font-size: 1.0625rem;
  color: var(--color-dim);
  line-height: 1.7;
  max-width: 420px;
}

.feature__image {
  flex: 0 0 auto;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--color-bg-off-white);
}

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

.step {
  text-align: center;
  padding: 32px 24px;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step__desc {
  font-size: 1rem;
  color: var(--color-dim);
  line-height: 1.6;
}

/* ===== Customization ===== */
.customization {
  padding: 100px 0;
  background: var(--color-bg-white);
}

.pills-group {
  margin-bottom: 32px;
  text-align: center;
}

.pills-group:last-child {
  margin-bottom: 0;
}

.pills-group__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-dim);
  transition: all 0.2s;
  cursor: default;
}

.pill--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
  background: var(--color-bg-off-white);
}

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing__card {
  background: var(--color-bg-white);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(2, 4, 62, 0.08);
}

.pricing__card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(255, 203, 27, 0.2);
}

.pricing__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing__plan {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-dim);
}

.pricing__price {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing__period {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.pricing__savings {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ===== CTA ===== */
.cta {
  background: var(--color-accent);
  padding: 80px 0;
}

.cta__inner {
  text-align: center;
}

.cta__title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 32px;
}

.app-store-badge--large {
  margin: 0 auto;
}

.cta__note {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--color-dim);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary);
  padding: 48px 0;
  color: #fff;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__icon {
  border-radius: 8px;
}

.footer__wordmark {
  font-size: 1.125rem;
  font-weight: 700;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

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

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.75rem;
  }

  .hero__inner {
    gap: 40px;
  }

  .feature {
    gap: 48px;
  }

  .section-title {
    font-size: 2rem;
  }

  .phone-frame img {
    width: 240px;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    box-shadow: 0 8px 24px rgba(2, 4, 62, 0.08);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav__menu.active {
    transform: translateY(0);
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero__badge {
    justify-content: center;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .app-store-badge {
    margin: 0 auto;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .feature,
  .feature--reverse {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    margin-bottom: 64px;
  }

  .feature__desc {
    max-width: 100%;
  }

  .phone-frame img {
    width: 240px;
  }

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

  .pricing__cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .pricing__card--featured {
    order: -1;
  }

  .cta__title {
    font-size: 2rem;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

/* ===== Responsive: Small ===== */
@media (max-width: 480px) {
  .hero__title {
    font-size: 1.875rem;
  }

  .hero__app-icon {
    width: 56px;
    height: 56px;
  }

  .feature__title {
    font-size: 1.5rem;
  }

  .phone-frame img {
    width: 220px;
  }

  .pricing__price {
    font-size: 2.25rem;
  }
}
