:root {
  --bg: #f4f8ff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #123a7a;
  --primary-2: #1d4ed8;
  --line: #e2e8f0;
  --soft: #eef4ff;
  --card: #ffffff;
  --ok: #0f766e;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(29, 78, 216, 0.07), transparent 40%),
    radial-gradient(circle at 0% 60%, rgba(18, 58, 122, 0.05), transparent 35%);
  background-attachment: fixed;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(248, 251, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a.active {
  color: var(--primary-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  padding: 8px 10px;
  font: inherit;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-light {
  border-color: var(--line);
  background: #fff;
  color: #0f172a;
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
}

.btn-ghost {
  border-color: #cbd5e1;
  color: var(--primary);
  background: #fff;
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 16px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .col {
  display: grid;
  gap: 10px;
}

.hero {
  padding: 78px 0 56px;
  background:
    radial-gradient(circle at 90% 5%, rgba(29, 78, 216, 0.12), transparent 35%),
    radial-gradient(circle at 0% 25%, rgba(18, 58, 122, 0.08), transparent 30%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
}

.kicker {
  display: inline-block;
  color: var(--primary-2);
  font-weight: 700;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.split-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.panel h4 {
  margin: 0 0 10px;
  color: var(--primary);
}

.panel p {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

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

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

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item {
  padding: 20px;
}

.item h3,
.item h4 {
  margin: 0 0 8px;
}

.item p,
.item li {
  color: #334155;
  line-height: 1.7;
}

.logo-chip {
  text-align: center;
  padding: 18px 10px;
  font-weight: 700;
  color: #334155;
}

.pricing-card {
  padding: 24px;
  position: relative;
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.price {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 8px 0 4px;
}

.muted {
  color: var(--muted);
}

ul.clean {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

ul.clean li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 700;
  margin-right: 8px;
}

.cta-band {
  background: linear-gradient(120deg, #0f2347, #1d4ed8);
  color: #fff;
  padding: 42px;
  border-radius: 20px;
}

.cta-band h3 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.cta-band p {
  margin: 0 0 18px;
  color: #dbeafe;
}

.form-grid {
  display: grid;
  gap: 12px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 13px;
  font: inherit;
}

textarea {
  min-height: 140px;
}

.footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-grid {
  padding: 34px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 22px;
}

.footer h5 {
  margin: 0 0 10px;
}

.footer p,
.footer a {
  color: #334155;
}

.footer a {
  display: block;
  margin: 8px 0;
}

.copy {
  border-top: 1px solid var(--line);
  padding: 12px 0 22px;
  color: #64748b;
  font-size: 0.92rem;
}

.page-hero {
  padding: 56px 0 24px;
}

.page-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.notice {
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 12px;
  padding: 14px;
}

.feature-matrix-card {
  padding: 8px;
  overflow: hidden;
}

.feature-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.feature-matrix th,
.feature-matrix td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: center;
  vertical-align: middle;
}

.feature-matrix thead th {
  background: var(--soft);
  color: #0f172a;
  font-weight: 800;
}

.feature-matrix thead th:first-child,
.feature-matrix tbody th {
  text-align: left;
}

.feature-matrix tbody th {
  font-weight: 700;
  color: #1e293b;
  width: 36%;
}

.feature-matrix tbody tr:last-child th,
.feature-matrix tbody tr:last-child td {
  border-bottom: none;
}

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

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 48px;
  }

  .feature-matrix-card {
    overflow-x: auto;
  }
}

/* =========================================================================
   Visual polish pass — additive enhancements layered on top of the base
   styles above. Nothing here required changing any of the 12 HTML pages:
   every improvement is either a hover/transition state that was simply
   missing before, or a CSS-only accent (counters, ::before, nth-child)
   keyed off structure that was already consistent across every page
   (.card.item inside .grid-2/.grid-3/.grid-4, .logo-chip, etc).
   ========================================================================= */

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(29, 78, 216, 0.18);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Buttons previously had no hover/active feedback at all. */
.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.36);
}

.btn-light:hover,
.btn-ghost:hover {
  border-color: var(--primary-2);
  color: var(--primary-2);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Cards previously had a static shadow with no interaction feedback. Scoped
   to .item/.logo-chip/.pricing-card so the hero's inner demo card and small
   .panel boxes (which aren't meant to feel "clickable") stay static. */
.card.item,
.card.logo-chip,
.card.pricing-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card.item:hover,
.card.logo-chip:hover,
.card.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(29, 78, 216, 0.25);
}

/* Small colored accent bar on every feature/problem/plan card — cheap way to
   break up what was previously a page of visually identical white boxes,
   without needing an icon per card in the HTML. */
.card.item {
  position: relative;
  overflow: hidden;
}

.card.item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.card.item:hover::before {
  opacity: 1;
}

/* Numbered badges on the "problem" cards (.grid-3) — turns three
   interchangeable-looking boxes into a readable 1-2-3 sequence. */
.grid-3 {
  counter-reset: problem-index;
}

.grid-3 > .item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grid-3 > .item h3::before {
  counter-increment: problem-index;
  content: counter(problem-index);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 800;
}

/* Small check-badge icon on the "feature" cards (.grid-2) — reinforces
   "this is a capability you get", visually distinct from the numbered
   problem list above it on the same page. */
.grid-2 > .item h4 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grid-2 > .item h4::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #d1fae5;
  color: var(--ok);
  font-size: 0.85rem;
  font-weight: 800;
}

/* "Trusted by" chips — was four plain bordered boxes with no visual
   distinction from the feature cards above/below them. */
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.logo-chip::before {
  content: "●";
  color: var(--primary-2);
  font-size: 0.6rem;
}

/* Highlight the 3rd plan (Pro) in the four-column "Plan Highlights" grid as
   the recommended tier — pure CSS via nth-child, no HTML change needed.
   If the plan order in index.html ever changes, move this selector rather
   than relying on it matching "Pro" by content. */
.plan-copy-grid > .item:nth-child(3) {
  border-color: var(--primary-2);
  border-width: 2px;
  position: relative;
}

.plan-copy-grid > .item:nth-child(3)::after {
  content: "Most Popular";
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.plan-copy-grid > .item:nth-child(3) h4 {
  padding-right: 90px;
}

/* Feature-comparison table (pricing.html): row hover + checkmark/✕ coloring
   were plain black text before, making it hard to scan at a glance. */
.feature-matrix tbody tr {
  transition: background 0.12s ease;
}

.feature-matrix tbody tr:hover {
  background: var(--soft);
}

.feature-matrix td {
  color: #334155;
}

.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% -10%, rgba(255, 255, 255, 0.16), transparent 45%);
  pointer-events: none;
}

@media (max-width: 980px) {
  .plan-copy-grid > .item:nth-child(3) h4 {
    padding-right: 0;
  }

  .plan-copy-grid > .item:nth-child(3)::after {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
  }
}
