:root {
  --bg: #0b1120;
  --bg-elev: #0f172a;
  --bg-soft: #1e293b;
  --border: #1f2937;
  --border-strong: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.14);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elev: #ffffff;
  --bg-soft: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #334155;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.1);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.1);
  --shadow: 0 18px 36px -18px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar & Header */
.topbar {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.45rem 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-elev) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.48rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-emerald {
  background: var(--emerald);
  color: #ffffff;
}

.btn-emerald:hover {
  filter: brightness(0.95);
}

.btn-outline {
  background: var(--bg-soft);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-icon {
  padding: 0.55rem 0.7rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  border-radius: 9px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Sections & Hero */
main {
  flex: 1;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.13), transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(16, 185, 129, 0.09), transparent 40%);
}

.page-hero {
  padding: 3.2rem 0 2.4rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 75% 15%, rgba(59, 130, 246, 0.11), transparent 45%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-bottom: 1.1rem;
}

.badge-emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 660px;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: color-mix(in srgb, var(--bg-elev) 55%, var(--bg));
}

.section-header {
  max-width: 740px;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 850;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-featured {
  border: 2px solid var(--primary);
  position: relative;
}

.card h3 {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

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

.price-box {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
}

.price-amount {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}

.price-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.feature-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.91rem;
  color: var(--text-soft);
}

.check {
  color: var(--emerald);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 0.5rem;
  width: fit-content;
}

.client-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.client-logo-box {
  height: 52px;
  max-width: 175px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-logo-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.client-monogram {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--primary);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elev);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--bg-soft);
  font-weight: 800;
  color: var(--text);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

details.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
}

details.faq-item summary {
  font-weight: 750;
  cursor: pointer;
  font-size: 1rem;
}

details.faq-item p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Legal prose */
.prose {
  max-width: 860px;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.65rem;
}

.prose p,
.prose li {
  color: var(--text-soft);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.prose ul {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--bg-elev);
  padding: 3.2rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
}

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  background: #10b981;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
