/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --surface: #ffffff;
  --border: #e7e9ee;
  --border-strong: #d8dce3;
  --text: #0d1117;
  --text-muted: #5b6473;
  --text-soft: #808996;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --accent-strong: #3730a3;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --ok: #047857;
  --ok-soft: #d1fae5;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.18),
    0 12px 24px -12px rgba(15, 23, 42, 0.1);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 6px 20px -8px rgba(79, 70, 229, 0.55);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

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

.btn-lg {
  padding: 14px 22px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #3730a3 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 4px 12px -4px rgba(79, 70, 229, 0.45);
  position: relative;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  background: #fff;
  clip-path: polygon(0 60%, 35% 0, 100% 0, 100% 40%, 65% 100%, 0 100%);
  opacity: 0.92;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.93rem;
  color: var(--text-muted);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 9px 7px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(79, 70, 229, 0.08), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(99, 102, 241, 0.06), transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 22px;
}

.grad {
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 22px;
  font-size: 1.13rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-meta li {
  position: relative;
  padding-left: 22px;
}

.hero-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}

/* Hero visual / mock */
.hero-visual {
  position: relative;
}

.mock {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 2;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.mock-bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e3e6ec;
}

.mock-bar > span:nth-child(1) { background: #ff5f57; }
.mock-bar > span:nth-child(2) { background: #ffbd2e; }
.mock-bar > span:nth-child(3) { background: #28c840; }

.mock-url {
  margin-left: 14px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mock-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 380px;
}

.mock-side {
  background: #fafbfc;
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-logo {
  width: 70%;
  height: 14px;
  background: linear-gradient(90deg, #4f46e5, #a78bfa);
  border-radius: 4px;
  margin-bottom: 18px;
}

.mock-nav-item {
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-radius: 6px;
}

.mock-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 500;
}

.mock-main {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-stat-label {
  font-size: 0.72rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.mock-stat-trend {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mock-stat-trend.up {
  color: var(--ok);
}

.mock-stat-trend.warn {
  color: var(--warn);
}

.mock-stat.highlight {
  background: linear-gradient(180deg, #fffaf2 0%, #fff 100%);
  border-color: #f5d9a5;
}

.mock-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.mock-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 10px 14px;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  align-items: center;
}

.mock-row:first-child {
  border-top: none;
}

.mock-row.head {
  background: #fafbfc;
  font-size: 0.72rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.pill {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  width: max-content;
}

.pill.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.pill.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 1;
}

.blob-a {
  width: 260px;
  height: 260px;
  background: #c7d2fe;
  top: -40px;
  right: -40px;
}

.blob-b {
  width: 220px;
  height: 220px;
  background: #ddd6fe;
  bottom: -50px;
  left: -30px;
}

/* ---------- Trust ---------- */
.trust {
  padding: 28px 0 40px;
  border-bottom: 1px solid var(--border);
}

.trust-label {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

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

.section-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.steps li {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}

.step-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 12px 40px -16px rgba(79, 70, 229, 0.35);
  transform: translateY(-6px);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.plan-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-head p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 24px 0 20px;
}

.plan-price .amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-price .per {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 0.95rem;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.plan-features li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

/* ---------- FAQ ---------- */
.faq-container {
  max-width: 760px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 0.18s ease;
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  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(--text-soft);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: '–';
}

.faq p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- CTA ---------- */
.cta {
  padding: 100px 0;
}

.cta-inner {
  position: relative;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
  color: #fff;
  text-align: center;
  padding: 70px 32px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.82);
  margin: 14px auto 30px;
  max-width: 520px;
  font-size: 1.05rem;
}

.cta-inner .btn-primary {
  background: #fff;
  color: var(--accent-strong);
}

.cta-inner .btn-primary:hover {
  background: #f3f4ff;
}

/* ---------- Footer ---------- */
.footer {
  background: #0d1117;
  color: #c7cad1;
  padding: 60px 0 30px;
}

.footer .brand {
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  margin-top: 14px;
  color: #8089a0;
  font-size: 0.92rem;
  max-width: 280px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-cols h4 {
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-cols a {
  display: block;
  font-size: 0.92rem;
  color: #8089a0;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.footer-cols a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6c7388;
  padding-top: 24px;
}

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 80px 0 100px;
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.legal .legal-meta {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 36px 0 12px;
}

.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  padding-left: 22px;
  margin: 12px 0;
}

.legal ul li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal address {
  font-style: normal;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 12px 0 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    padding: 60px 0 70px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .feature-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 22px;
    gap: 12px;
  }

  .section {
    padding: 70px 0;
  }

  .feature-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .plan.featured {
    transform: none;
  }

  .mock-body {
    grid-template-columns: 1fr;
  }

  .mock-side {
    display: none;
  }

  .mock-stats {
    grid-template-columns: 1fr 1fr;
  }

  .mock-stats .mock-stat:nth-child(3) {
    grid-column: span 2;
  }

  .cta-inner {
    padding: 50px 24px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}
