/* ═══ RESET & VARIABLES ═══ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --brand: #1A3A6B;
  --brand-light: #234d8a;
  --brand-dark: #0f2847;
  --accent: #007AFF;
  --accent-hover: #0062d6;
  --white: #ffffff;
  --gray-50: #f8f9fc;
  --gray-100: #f0f2f7;
  --gray-200: #e2e5ec;
  --gray-400: #9ca3b4;
  --gray-600: #5a6275;
  --gray-800: #2d3142;
  --gray-900: #1a1d2b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══ TYPOGRAPHY ═══ */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.12; color: inherit; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; color: var(--gray-900); letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--gray-900); }

/* ═══ LAYOUT ═══ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt { background: var(--gray-50); }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}
.section-header p {
  margin-top: 0.75rem;
  color: var(--gray-600);
  font-size: 1.0625rem;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; min-height: 36px; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(0,122,255,.25); }

.btn-white { background: var(--white); color: var(--brand); }
.btn-white:hover { background: var(--gray-50); box-shadow: 0 4px 12px rgba(255,255,255,.25); }

.btn-ghost { background: transparent; color: rgba(255,255,255,.9); border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }

.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--accent); background: rgba(0,122,255,.04); }

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

/* ═══ NAV ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.nav.scrolled .nav-logo span { color: var(--gray-900); }
.nav.scrolled .nav-links a:not(.btn) { color: var(--gray-800); }

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  z-index: 10;
}
.nav-logo span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  transition: color .3s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.nav-links a:not(.btn):hover { color: var(--white); }
.nav.scrolled .nav-links a:not(.btn):hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
}
.nav.scrolled .nav-toggle span { background: var(--gray-800); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══ HERO ═══ */
.hero {
  background: var(--brand);
  color: var(--white);
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 50%, rgba(0,122,255,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  position: relative;
}
.hero-sub {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255,255,255,.8);
  max-width: 480px;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ═══ APP MOCKUP ═══ */
.app-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.1);
  background: var(--white);
  font-size: 0;
}
.app-frame-bar {
  height: 32px;
  background: #f2f2f7;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.app-frame-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #999;
  font-weight: 500;
  padding-right: 30px;
}
.app-frame-body {
  display: flex;
  min-height: 200px;
}

/* Mock sidebar */
.mock-sidebar {
  width: 120px;
  background: #f2f2f7;
  border-right: 1px solid #e5e5ea;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-sidebar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
}
.mock-sidebar-item.active { background: rgba(0,122,255,.12); }
.mock-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #c7c7cc;
  flex-shrink: 0;
}
.mock-sidebar-item.active .mock-icon { background: var(--accent); }
.mock-text-sm {
  height: 8px;
  width: 50px;
  background: #c7c7cc;
  border-radius: 4px;
}
.mock-sidebar-item.active .mock-text-sm { background: var(--accent); opacity: .5; }

/* Mock content area */
.mock-content {
  flex: 1;
  padding: 14px 16px;
}
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.mock-text-lg {
  height: 12px;
  width: 100px;
  background: var(--gray-200);
  border-radius: 6px;
}
.mock-btn {
  height: 22px;
  width: 70px;
  background: var(--accent);
  border-radius: 5px;
  opacity: .8;
}
.mock-table { display: flex; flex-direction: column; gap: 6px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.mock-row-head { border-bottom: 1px solid var(--gray-200); padding-bottom: 8px; }
.mock-cell {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
}
.mock-row-head .mock-cell { background: var(--gray-400); opacity: .5; height: 7px; }
.w1 { width: 40px; }
.w2 { width: 70px; }
.w3 { width: 90px; }
.mock-badge {
  height: 16px;
  width: 52px;
  border-radius: 8px;
}
.badge-green { background: #34C75944; border: 1px solid #34C75966; }
.badge-orange { background: #FF950044; border: 1px solid #FF950066; }
.badge-blue { background: #007AFF33; border: 1px solid #007AFF55; }

/* ═══ TRUST BAR ═══ */
.trust-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
  font-weight: 500;
  flex-wrap: wrap;
}
.trust-sep {
  width: 4px; height: 4px;
  background: var(--gray-400);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══ FEATURES ═══ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
}
/* Center the last 2 cards in a 5-item 3-col grid */
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .features-grid .feature-card:nth-child(1) { grid-column: 1 / 3; }
  .features-grid .feature-card:nth-child(2) { grid-column: 3 / 5; }
  .features-grid .feature-card:nth-child(3) { grid-column: 5 / 7; }
  .features-grid .feature-card:nth-child(4) { grid-column: 2 / 4; }
  .features-grid .feature-card:nth-child(5) { grid-column: 4 / 6; }
}
.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,58,107,.07);
}
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(0,122,255,.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; }

/* ═══ STEPS ═══ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 23px;
  left: calc(12.5% + 23px);
  right: calc(12.5% + 23px);
  height: 2px;
  background: var(--gray-200);
}
.step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}
.step-number {
  width: 46px; height: 46px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}
.step h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.step p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.55; }

/* ═══ PRICING ═══ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.pricing-card {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  position: relative;
}
.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 28px rgba(0,122,255,.1);
}
.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pricing-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 0.5rem;
}
.price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}
.price-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0.25rem 0 1.5rem;
}
.pricing-features {
  list-style: none;
  margin-bottom: 1.75rem;
}
.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.pricing-features li::before {
  content: '';
  width: 18px; height: 18px;
  background: rgba(0,122,255,.1);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007AFF' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 12 10 16 18 8'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ═══ FAQ ═══ */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
}
.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform .3s;
  color: var(--gray-400);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ═══ FINAL CTA ═══ */
.final-cta {
  background: var(--brand);
  color: var(--white);
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 2rem;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(0,122,255,.1) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta h2 { color: var(--white); position: relative; }
.final-cta p {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: rgba(255,255,255,.75);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.final-cta-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.download-alt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
}
.download-alt .trust-sep { background: rgba(255,255,255,.3); }
.download-link {
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.download-link:hover { color: var(--white); }

/* ═══ FOOTER ═══ */
.footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.5);
  padding: 1.75rem 0;
  font-size: 0.8125rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.625rem;
}
.footer-inner .trust-sep { background: rgba(255,255,255,.25); }
.footer a { color: rgba(255,255,255,.65); }
.footer a:hover { color: var(--white); }
.footer-legal {
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(255,255,255,.3);
}

/* ═══ ANIMATIONS ═══ */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ RESPONSIVE ═══ */

/* ── Mobile ── */
@media (max-width: 639px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) {
    color: var(--gray-800) !important;
    padding: 0.875rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links .btn { margin-top: 0.75rem; width: 100%; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 7rem; overflow: hidden; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); word-break: break-word; }
  .hero-sub { max-width: none; margin-left: auto; margin-right: auto; font-size: 0.9375rem; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 320px; margin: 0 auto; }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 340px;
  }
  .steps::before { display: none; }
  .step { text-align: left; display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; gap: 0 1rem; padding: 0; }
  .step .step-number { margin: 0; grid-row: 1 / 3; align-self: start; }
  .step h3 { align-self: end; }
  .step p { align-self: start; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}

/* ── Tablet ── */
@media (min-width: 640px) and (max-width: 1023px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) {
    color: var(--gray-800) !important;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links .btn { margin-top: 0.75rem; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid .feature-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .hero-visual { margin-right: -2rem; }
  .features-grid .feature-card:nth-child(4),
  .features-grid .feature-card:nth-child(5) {
    /* Center the last two cards */
  }
}

/* ═══ STAGGER ANIMATION DELAYS ═══ */
.features-grid .animate-in:nth-child(2) { transition-delay: .08s; }
.features-grid .animate-in:nth-child(3) { transition-delay: .16s; }
.features-grid .animate-in:nth-child(4) { transition-delay: .24s; }
.features-grid .animate-in:nth-child(5) { transition-delay: .32s; }
.steps .animate-in:nth-child(2) { transition-delay: .1s; }
.steps .animate-in:nth-child(3) { transition-delay: .2s; }
.steps .animate-in:nth-child(4) { transition-delay: .3s; }
