:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg2: #eef2ff;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --primary: #2563eb;
  --primary2: #1d4ed8;
  --accent: #06b6d4;
  --danger: #ef4444;
  --success: #16a34a;
  --ring: rgba(37, 99, 235, 0.3);
  --grad-hero: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.16), transparent 45%), linear-gradient(135deg, #ffffff 0%, #f1f5ff 55%, #ecfeff 100%);
  --grad-cta: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --glass: rgba(255, 255, 255, 0.72);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --type-xs: 0.82rem;
  --type-sm: 0.94rem;
  --type-md: 1rem;
  --type-lg: clamp(1.2rem, 1.6vw, 1.4rem);
  --type-xl: clamp(1.8rem, 3vw, 2.5rem);
  --type-hero: clamp(2.15rem, 5vw, 3.7rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #070a12;
    --bg2: #0b1221;
    --surface: rgba(255, 255, 255, 0.06);
    --surface2: rgba(148, 163, 184, 0.12);
    --text: #e5e7eb;
    --muted: #a3adc2;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 45px rgba(2, 6, 23, 0.52);
    --primary: #60a5fa;
    --primary2: #3b82f6;
    --accent: #22d3ee;
    --ring: rgba(96, 165, 250, 0.36);
    --grad-hero: radial-gradient(circle at 10% 20%, rgba(96, 165, 250, 0.2), transparent 45%), linear-gradient(135deg, #0b1221 0%, #091224 50%, #06222a 100%);
    --grad-cta: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --glass: rgba(15, 23, 42, 0.62);
  }
}

:root[data-theme='light'] {
  color-scheme: light;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #070a12;
  --bg2: #0b1221;
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(148, 163, 184, 0.12);
  --text: #e5e7eb;
  --muted: #a3adc2;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 45px rgba(2, 6, 23, 0.52);
  --primary: #60a5fa;
  --primary2: #3b82f6;
  --accent: #22d3ee;
  --ring: rgba(96, 165, 250, 0.36);
  --grad-hero: radial-gradient(circle at 10% 20%, rgba(96, 165, 250, 0.2), transparent 45%), linear-gradient(135deg, #0b1221 0%, #091224 50%, #06222a 100%);
  --grad-cta: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  --glass: rgba(15, 23, 42, 0.62);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--primary); }

a:hover { color: var(--primary2); }

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

.site-banner {
  max-height: 280px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  max-width: 1160px;
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.navbar-brand {
  color: var(--text) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-navbar .nav-link {
  color: var(--muted);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}

.site-navbar .nav-link.active,
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus-visible {
  color: var(--text);
  background: var(--surface2);
}

.main-content { padding: 0 0 2rem; }
.main-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.section {
  padding: clamp(44px, 8vw, 96px) 0;
}

.section-header {
  max-width: 650px;
  margin-bottom: 2.2rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: var(--type-xs);
  letter-spacing: 0.02em;
}

h1, h2, h3, h4 { color: var(--text); line-height: 1.18; letter-spacing: -0.02em; }
h1 { font-size: var(--type-hero); font-weight: 800; }
h2 { font-size: var(--type-xl); font-weight: 750; }
p { color: var(--muted); }

.btn-saas {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  min-height: 46px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn-saas:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn-primary-saas {
  color: #fff;
  background: var(--grad-cta);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 36%, transparent);
}

.btn-primary-saas:hover { transform: translateY(-1px); color: #fff; }

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

.btn-ghost-saas {
  color: var(--muted);
  background: transparent;
  border-color: var(--border);
}

.hero {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero .hero-inner {
  padding: clamp(34px, 7vw, 72px);
}

.hero-copy {
  max-width: 620px;
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-proof {
  margin-top: 1.2rem;
  font-size: var(--type-sm);
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: var(--type-xs);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.card-saas {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  height: 100%;
}

.icon-chip {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.how-step {
  position: relative;
  padding-left: 3rem;
}

.how-step .step-no {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--grad-cta);
  font-weight: 700;
}

.template-card img {
  border-radius: 14px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.pricing-grid { align-items: stretch; }

.pricing-card {
  position: relative;
  padding: 1.6rem;
}

.pricing-card.popular {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  transform: translateY(-4px);
}

.pricing-badge {
  position: absolute;
  right: 1rem;
  top: -0.7rem;
}

.price {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text);
  font-weight: 800;
}

.price small { font-size: 0.92rem; color: var(--muted); font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: 1rem 0 1.2rem; }
.check-list li { margin: 0.45rem 0; color: var(--muted); }

.testimonial-card blockquote {
  font-size: var(--type-sm);
  color: var(--text);
  margin-bottom: 0.8rem;
}

.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.input-row .form-control {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding-inline: 1rem;
  flex: 1 1 250px;
}

.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  background: var(--grad-cta);
  color: #fff;
  padding: clamp(30px, 5vw, 54px);
}

.cta-band h2,
.cta-band p { color: #fff; }

footer.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}

footer.site-footer a { color: var(--muted); text-decoration: none; }
footer.site-footer a:hover { color: var(--text); }

.footer-copyright {
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: transparent !important;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 991px) {
  .site-navbar .navbar-collapse {
    margin-top: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
