/* ============ Theme tokens ============ */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --ink: #0b1f3a;          /* deep navy */
  --ink-soft: #3a4a63;
  --muted: #65758c;
  --line: #e2e8f1;
  --primary: #0b1f3a;      /* navy */
  --accent: #0fb5a6;       /* teal */
  --accent-ink: #053b37;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .08);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, .08);
  --shadow-lg: 0 30px 60px rgba(11, 31, 58, .16);
  --container: 1120px;
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Sora', var(--font-sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; border-radius: 999px; padding: 11px 20px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #042b28; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #0ca093; box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #c8d3e2; background: #fbfcfe; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { color: var(--accent-ink); }
.btn-invert { background: #fff; color: var(--ink); }
.btn-invert:hover { background: var(--surface-2); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 251, .8);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.85); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: var(--accent);
}
.brand-accent { color: var(--accent); }
.main-nav { display: none; gap: 28px; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: none; gap: 10px; align-items: center; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: flex; flex-direction: column; gap: 6px; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mobile-nav a { padding: 10px 4px; color: var(--ink-soft); font-weight: 500; }
.mobile-nav .btn { margin-top: 8px; }

/* ============ Hero ============ */
.hero { padding: 56px 0 20px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1;
  background:
    radial-gradient(1000px 380px at 50% -120px, rgba(15,181,166,.16), transparent 70%),
    radial-gradient(700px 300px at 80% 0, rgba(11,31,58,.06), transparent 70%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 7px;
  font-size: 14px; color: var(--ink-soft); box-shadow: var(--shadow-sm); font-weight: 500;
}
.pill-badge { background: var(--accent); color: #042b28; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.pill:hover { border-color: #c8d3e2; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; margin-top: 24px; max-width: 16ch; }
.grad { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin-top: 20px; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 16px; font-weight: 500; }

.hero-media {
  margin: 44px 0 0; width: 100%; max-width: 1000px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface);
}
.hero-media img { width: 100%; height: auto; }

.logos { margin-top: 48px; width: 100%; }
.logos-label { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.logos-row { display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: center; margin-top: 18px; }
.logos-row span { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #97a5b8; }

/* ============ Sections ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow { display: inline-block; color: var(--accent-ink); background: rgba(15,181,166,.12); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-top: 16px; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }

.grid { display: grid; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Features */
.features-grid { grid-template-columns: 1fr; }
.feature { padding: 26px; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d4deeb; }
.feature-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(11,31,58,.06); color: var(--ink); margin-bottom: 16px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--muted); }

/* Steps */
.steps-grid { grid-template-columns: 1fr; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { padding: 28px; }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--accent); font-family: var(--font-display); font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Pricing */
.pricing-wrap { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: stretch; margin: 0 auto; }
.price-card { padding: 0; overflow: hidden; border-color: var(--ink); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.price-top { padding: 32px 32px 28px; background: var(--ink); color: #fff; }
.price-tag { display: inline-block; background: var(--accent); color: #042b28; font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 999px; }
.price-name { font-size: 1.5rem; margin-top: 14px; color: #fff; }
.price-desc { color: #aebbcd; margin-top: 6px; }
.price-amount { display: flex; align-items: flex-start; gap: 4px; margin: 20px 0 4px; }
.price-currency { font-family: var(--font-display); font-weight: 700; font-size: 2rem; margin-top: 6px; }
.price-value { font-family: var(--font-display); font-weight: 800; font-size: 4rem; line-height: 1; color: #fff; }
.price-period { color: #aebbcd; align-self: flex-end; margin-bottom: 8px; font-weight: 600; }
.price-fine { color: #93a2b8; font-size: 13px; margin-bottom: 20px; }
.price-list { list-style: none; padding: 26px 32px 32px; margin: 0; display: grid; gap: 12px; flex: 1; }
.price-list li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(15,181,166,.16);
  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='%230fb5a6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.price-side { padding: 28px; }
.price-side h3 { font-size: 1.25rem; margin-bottom: 16px; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230fb5a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding: 0 0 18px; margin: 0; }

/* CTA */
.cta { padding: 20px 0 90px; }
.cta-inner {
  background: var(--ink); color: #fff; border-radius: 24px; padding: 56px 32px; text-align: center;
  box-shadow: var(--shadow-lg);
  background-image: radial-gradient(600px 240px at 80% -40px, rgba(15,181,166,.28), transparent 70%);
}
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
.cta-inner p { color: #b6c3d4; margin: 14px auto 28px; max-width: 52ch; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 36ch; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-cols h4 { font-family: var(--font-sans); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--muted); padding: 5px 0; }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (min-width: 720px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 940px) {
  .main-nav { display: flex; }
  .header-actions { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-wrap { grid-template-columns: repeat(2, 1fr); }
}
