/* ---------- Tokens ---------- */
:root {
  --bg: #0b1220;
  --bg-soft: #0f1a2e;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --ink: #0b1220;
  --ink-soft: #3a4961;
  --muted: #6b7a91;
  --line: #e3e8f0;
  --accent: #1f6feb;
  --accent-strong: #0a4fc4;
  --accent-soft: #e8f0ff;
  --teal: #14b8a6;
  --warn: #d97706;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 160ms ease;
}
a:hover { color: var(--accent-strong); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  position: relative;
  box-shadow: var(--shadow-sm);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
}
.brand-name { font-size: 1.05rem; }
.brand-name span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-alt); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }

.nav-cta {
  margin-left: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease,
    color 160ms ease, border-color 160ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 111, 235, 0.28);
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 10px 0;
}
.btn-ghost:hover { color: var(--accent-strong); }
.btn-arrow::after {
  content: "→";
  transition: transform 160ms ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(900px 500px at 80% -20%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(31, 111, 235, 0.15), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0f1a2e 100%);
  color: #e8eef9;
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero p { color: #b9c4d8; font-size: 1.18rem; max-width: 56ch; }
.hero .eyebrow { color: #7ec5ff; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(31, 111, 235, 0.18), rgba(20, 184, 166, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 70% 0%, rgba(126, 197, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.dashboard {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dashboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.dashboard-row .pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
  background: rgba(20, 184, 166, 0.18);
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.4);
}
.dashboard-row .pill.warn {
  background: rgba(217, 119, 6, 0.14);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}
.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  flex: 1;
}
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1f6feb, #14b8a6);
  border-radius: inherit;
}
.dashboard-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #fff;
}
.dashboard-stat strong { font-size: 1.6rem; font-weight: 700; }
.dashboard-stat span { color: #94a3b8; font-size: 0.85rem; }

/* ---------- Sections ---------- */
section {
  padding: clamp(56px, 8vw, 104px) 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

/* ---------- Pillar / Card grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfd8e6;
}
.card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 18px; flex: 1; }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card .icon svg { width: 22px; height: 22px; }

/* ---------- Featured Solution ---------- */
.featured {
  background: linear-gradient(135deg, #0b1220 0%, #122347 100%);
  color: #e8eef9;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(20, 184, 166, 0.2), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(31, 111, 235, 0.18), transparent 60%);
  pointer-events: none;
}
.featured h2, .featured h3 { color: #fff; }
.featured p { color: #b9c4d8; }
.featured .eyebrow { color: #7ec5ff; }
.featured-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.featured-list li {
  position: relative;
  padding-left: 30px;
  color: #cbd5e1;
}
.featured-list li strong { color: #fff; font-weight: 600; }
.featured-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.22);
  border: 1px solid rgba(20, 184, 166, 0.6);
}
.featured-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 12px;
  width: 8px; height: 4px;
  border-left: 2px solid #5eead4;
  border-bottom: 2px solid #5eead4;
  transform: rotate(-45deg);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.55;
}
.step h3 { margin-top: 6px; padding-right: 50px; }

/* ---------- Tiers / Pricing ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier.featured-tier {
  background: linear-gradient(160deg, #0f1a2e, #15264b);
  color: #e8eef9;
  border-color: transparent;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.tier.featured-tier h3,
.tier.featured-tier .tier-name { color: #fff; }
.tier.featured-tier p { color: #b9c4d8; }
.tier.featured-tier .tier-feature { color: #cbd5e1; border-color: rgba(255,255,255,0.08); }
.tier.featured-tier .tier-feature::before { color: #5eead4; }
.tier-badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--teal);
  color: #052b27;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tier-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.tier.featured-tier .tier-tag { color: #7ec5ff; }
.tier-name { font-size: 1.6rem; margin-bottom: 6px; font-weight: 700; }
.tier-focus { font-size: 0.95rem; margin-bottom: 24px; }
.tier-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.tier-feature {
  position: relative;
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.tier-feature:first-child { border-top: 0; }
.tier-feature::before {
  content: "✓";
  position: absolute;
  left: 0; top: 14px;
  color: var(--teal);
  font-weight: 700;
}

/* ---------- Benefit table ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.benefit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.benefit .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.benefit .icon svg { width: 22px; height: 22px; }
.benefit h3 { margin-bottom: 8px; font-size: 1.05rem; }
.benefit p { margin: 0; font-size: 0.95rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(20, 184, 166, 0.18), transparent 60%),
    linear-gradient(135deg, #0b1220, #122347);
  color: #e8eef9;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: #b9c4d8; max-width: 56ch; margin: 0 auto 28px; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.cta-banner .btn-primary:hover { background: #f3f6fc; color: var(--accent-strong); }

/* ---------- Page header (subpages) ---------- */
.page-header {
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 50%, rgba(31, 111, 235, 0.16), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0f1a2e 100%);
  color: #e8eef9;
  padding: clamp(80px, 10vw, 130px) 0 clamp(48px, 6vw, 80px);
}
.page-header h1 { color: #fff; max-width: 22ch; }
.page-header p { color: #b9c4d8; max-width: 60ch; font-size: 1.15rem; }
.page-header .eyebrow { color: #7ec5ff; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.contact-info { display: grid; gap: 18px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 200ms ease, transform 200ms ease;
}
.contact-card:hover { border-color: #cfd8e6; transform: translateY(-2px); }
.contact-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: 0.95rem; }

form.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
form.contact-form h2 { margin-bottom: 6px; font-size: 1.4rem; }
form.contact-form > p { margin-bottom: 22px; color: var(--muted); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
}
.form-success {
  display: none;
  margin-top: 14px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.4);
  color: #0f766e;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.form-success.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1220;
  color: #b9c4d8;
  padding: 56px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #b9c4d8; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand:hover { color: #fff; }
.site-footer .footer-tag { font-size: 0.95rem; max-width: 36ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  color: #6b7a91;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .grid-3, .steps, .tiers { grid-template-columns: 1fr; }
  .grid-2, .benefits, .form-row, .featured, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid { gap: 24px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 4px;
    padding: 12px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; width: 100%; }
  .nav-cta { margin-left: 0; width: 100%; }
  .nav-toggle { display: block; }
}
