/* CityCore landing — Linear/Stripe-style navy
   Tokens + components. No framework. */

:root {
  /* Brand navy */
  --navy-950: #0A1736;
  --navy-900: #0F1F4C;
  --navy-800: #152A66;
  --navy-700: #1E3A8A;
  --navy-600: #2B4CB0;
  --navy-500: #3B63D6;
  --navy-400: #6A89E8;
  --navy-300: #A3B5F0;
  --navy-200: #D3DCF7;
  --navy-100: #EAF0FD;
  --navy-50:  #F5F8FF;

  /* Neutrals */
  --ink-900: #0B1020;
  --ink-800: #16203A;
  --ink-700: #2B3553;
  --ink-600: #4A5578;
  --ink-500: #697391;
  --ink-400: #9AA3BE;
  --ink-300: #C8CEDE;
  --ink-200: #E4E7F1;
  --ink-150: #EEF1F8;
  --ink-100: #F4F6FB;
  --ink-50:  #FAFBFE;
  --white: #FFFFFF;

  /* Accent (configurable via Tweaks) */
  --accent: #1E3A8A;
  --accent-soft: #EAF0FD;
  --accent-ink: #0A1736;

  /* Semantic */
  --success: #0F8A5F;
  --warn: #C77800;
  --danger: #C4314B;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(10,23,54,.06);
  --sh-sm: 0 1px 2px rgba(10,23,54,.06), 0 2px 6px rgba(10,23,54,.04);
  --sh-md: 0 2px 4px rgba(10,23,54,.06), 0 8px 24px rgba(10,23,54,.08);
  --sh-lg: 0 8px 32px rgba(10,23,54,.12), 0 2px 8px rgba(10,23,54,.06);

  /* Type */
  --ff-sans: 'Manrope', 'Geist', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --lh-tight: 1.08;
  --lh-snug: 1.18;
  --lh-body: 1.55;

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px;
  --s-11: 80px; --s-12: 96px; --s-13: 128px;

  /* Layout */
  --content-max: 1200px;
  --wide-max: 1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--ink-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.h1 {
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-600);
  max-width: 68ch;
  text-wrap: pretty;
}
.body { color: var(--ink-600); }
.mono { font-family: var(--ff-mono); }

/* ---------- Layout ---------- */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--s-6); }
.container--wide { max-width: var(--wide-max); }
section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: var(--s-10); }
.section-head .eyebrow { margin-bottom: var(--s-3); display: inline-block; }
.section-head .h2 { margin-bottom: var(--s-4); }
.section-head .lede { color: var(--ink-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 1px 2px rgba(10,23,54,.2);
}
.btn-primary:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-secondary {
  background: var(--white);
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
}
.btn-secondary:hover { border-color: var(--ink-300); box-shadow: var(--sh-sm); }
.btn-ghost {
  background: transparent;
  color: var(--ink-800);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(10,23,54,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-900); font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-500));
  display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(10,23,54,.2), inset 0 1px 0 rgba(255,255,255,.2);
}
.brand-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink-900); background: var(--ink-100); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Language pills */
.lang-toggle {
  display: inline-flex;
  background: var(--ink-100);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.lang-pill {
  font-size: 12px; font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  color: var(--ink-500);
  letter-spacing: 0.04em;
  transition: background .15s, color .15s;
}
.lang-pill:hover { color: var(--ink-800); }
.lang-pill.active {
  background: var(--white);
  color: var(--ink-900);
  box-shadow: var(--sh-xs);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(60px, 7vw, 88px);
  padding-bottom: clamp(60px, 7vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,23,54,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,23,54,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, black 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; left: 50%; top: -40%;
  width: 1000px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(59,99,214,.14), transparent 60%);
  pointer-events: none;
  filter: blur(10px);
}
.hero-inner { position: relative; }

/* Hero A — Linear/Stripe centered */
.hero-a { text-align: center; }
.hero-a .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  box-shadow: var(--sh-xs);
  margin-bottom: var(--s-7);
}
.hero-a .hero-eyebrow .tag {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--accent); color: var(--white);
  padding: 3px 8px; border-radius: var(--r-pill);
}
.hero-a h1 { margin-bottom: var(--s-6); }
.hero-a .lede { margin: 0 auto var(--s-8); }
.hero-a .hero-ctas {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: var(--s-11);
}
.hero-a .trust {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-500);
  margin-bottom: var(--s-10);
}
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(15,138,95,.15); }

/* Hero B — Editorial split */
.hero-b {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-b h1 { font-size: clamp(44px, 6vw, 88px); }
.hero-b .lede { margin-top: var(--s-6); margin-bottom: var(--s-8); }
.hero-b .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-b .trust { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-500); margin-top: var(--s-8); }
.hero-b-visual {
  position: relative;
  aspect-ratio: 5/6;
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, var(--navy-900), var(--navy-700) 60%, var(--navy-500));
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.hero-b-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 20%, black, transparent 75%);
}
@media (max-width: 900px) {
  .hero-b { grid-template-columns: 1fr; }
  .hero-b-visual { aspect-ratio: 5/4; }
}

/* Hero C — Data-forward */
.hero-c {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.hero-c h1 { font-size: clamp(36px, 4.4vw, 60px); }
.hero-c .lede { margin: var(--s-6) 0 var(--s-7); }
.hero-c .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-c .dashboard-preview {
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--ink-200);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .hero-c { grid-template-columns: 1fr; } }

/* Hero stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  padding: var(--s-8) 0;
  max-width: 980px;
  margin: 0 auto;
}
.hero-stat { text-align: center; padding: 0 var(--s-5); border-left: 1px solid var(--ink-200); }
.hero-stat:first-child { border-left: 0; }
.hero-stat .v { font-size: clamp(28px, 3vw, 36px); font-weight: 700; color: var(--ink-900); letter-spacing: -0.02em; line-height: 1; }
.hero-stat .l { font-size: 13px; color: var(--ink-500); margin-top: 6px; }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .hero-stat { border-left: 0; }
}

/* ---------- Problem ---------- */
.problem { background: var(--ink-50); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: var(--s-7);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.problem-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--ink-300); }
.problem-card .num {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-400);
  margin-bottom: var(--s-4);
  letter-spacing: .02em;
}
.problem-card .h3 { margin-bottom: var(--s-3); font-size: 18px; }
.problem-card .body { color: var(--ink-600); font-size: 15px; line-height: 1.55; }
.problem-result {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--r-md);
  padding: var(--s-7) var(--s-8);
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.problem-result-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
}

/* ---------- Solution / modules ---------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .modules-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .modules-grid { grid-template-columns: 1fr; } }
.module-card {
  padding: var(--s-7);
  border-radius: var(--r-md);
  border: 1px solid var(--ink-200);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.module-card:hover { border-color: var(--navy-400); box-shadow: var(--sh-md); transform: translateY(-2px); }
.module-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: var(--s-5);
}
.module-card h3 { margin-bottom: var(--s-3); font-size: 18px; }
.module-card .body { font-size: 15px; line-height: 1.55; color: var(--ink-600); }

/* ---------- Product tabs ---------- */
.product { background: linear-gradient(180deg, var(--navy-50), var(--white) 60%); }
.product-tabs {
  display: flex;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  padding: 4px;
  margin-bottom: var(--s-7);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: fit-content;
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-600);
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.product-tab:hover { color: var(--ink-800); }
.product-tab.active { background: var(--navy-900); color: var(--white); }
.product-frame {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9.5;
}
.product-frame-body { position: absolute; inset: 0; }
.product-tab-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-8);
}
.product-tab-meta .pt-meta {
  padding: var(--s-5);
  border-left: 2px solid var(--ink-200);
  transition: border-color .2s, transform .2s;
  cursor: pointer;
}
.product-tab-meta .pt-meta.active { border-left-color: var(--accent); }
.product-tab-meta .pt-meta:hover { transform: translateX(2px); }
.product-tab-meta h4 { font-size: 14px; font-weight: 600; color: var(--ink-900); margin: 0 0 4px; }
.product-tab-meta p { font-size: 13px; color: var(--ink-500); margin: 0; line-height: 1.45; }
@media (max-width: 900px) { .product-tab-meta { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .product-tab-meta { grid-template-columns: 1fr; } }

/* ---------- Market ---------- */
.market-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  margin-bottom: var(--s-8);
}
.market-stat {
  padding: var(--s-8) var(--s-7);
  border-left: 1px solid var(--ink-200);
  position: relative;
}
.market-stat:first-child { border-left: 0; }
.market-stat .v {
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.market-stat .l { font-size: 14px; color: var(--ink-600); line-height: 1.45; }
@media (max-width: 900px) {
  .market-stats { grid-template-columns: 1fr 1fr; }
  .market-stat { border-left: 0; border-top: 1px solid var(--ink-200); }
  .market-stat:nth-child(-n+2) { border-top: 0; }
  .market-stat:nth-child(2n) { border-left: 1px solid var(--ink-200); }
}
@media (max-width: 560px) {
  .market-stats { grid-template-columns: 1fr; }
  .market-stat { border-left: 0 !important; border-top: 1px solid var(--ink-200); }
  .market-stat:first-child { border-top: 0; }
}
.market-tam {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 720px) { .market-tam { grid-template-columns: 1fr; } }
.tam-card {
  padding: var(--s-7);
  border-radius: var(--r-md);
  background: var(--navy-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.tam-card.soft { background: var(--navy-100); color: var(--ink-900); }
.tam-card .tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .8;
  margin-bottom: var(--s-3);
}
.tam-card .value {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---------- Pricing ---------- */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-wrap { grid-template-columns: 1fr; } }
.price-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s-9);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute; inset: -2px;
  background: radial-gradient(600px 300px at 20% 10%, rgba(106,137,232,.25), transparent 50%);
  pointer-events: none;
}
.price-card .tag {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  opacity: .8; margin-bottom: var(--s-5);
  font-weight: 600;
}
.price-card .price {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.price-card .unit { font-size: 15px; opacity: .7; margin-top: var(--s-3); }
.price-card .example {
  margin-top: var(--s-7);
  padding: var(--s-5);
  background: rgba(255,255,255,.06);
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.5;
  border-left: 2px solid var(--navy-400);
}
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 600px) { .extras-grid { grid-template-columns: 1fr; } }
.extra-card {
  padding: var(--s-6);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.extra-card:hover { border-color: var(--navy-300); box-shadow: var(--sh-sm); }
.extra-card h4 { margin: 0 0 6px; font-size: 15px; color: var(--ink-900); }
.extra-card p { margin: 0; font-size: 13px; color: var(--ink-600); line-height: 1.5; }
.extras-title { font-size: 13px; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s-5); }

/* ---------- Traction ---------- */
.traction { background: var(--navy-950); color: var(--white); }
.traction .eyebrow { color: var(--navy-300); }
.traction .h2 { color: var(--white); }
.traction .lede { color: rgba(255,255,255,.7); }
.traction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
@media (max-width: 900px) { .traction-grid { grid-template-columns: 1fr 1fr; } }
.traction-card {
  padding: var(--s-7);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  transition: background .2s, border-color .2s;
}
.traction-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.traction-card .v {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--white);
}
.traction-card .l { font-size: 14px; font-weight: 600; margin-top: var(--s-3); color: var(--white); }
.traction-card .s { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; line-height: 1.5; }
.traction-signal {
  padding: var(--s-6);
  border-left: 3px solid var(--navy-400);
  background: rgba(106,137,232,.08);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 15px;
  color: rgba(255,255,255,.85);
}

/* ---------- Competitive table ---------- */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-sm);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.compare-table th, .compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--ink-150);
  font-size: 14px;
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-500);
  background: var(--ink-50);
  white-space: nowrap;
}
.compare-table thead th.us {
  background: var(--navy-900);
  color: var(--white);
}
.compare-table tbody td.us { background: var(--navy-50); font-weight: 600; color: var(--ink-900); }
.compare-table tbody td:first-child { font-weight: 600; color: var(--ink-900); }
.cmp-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.cmp-yes { background: rgba(15,138,95,.1); color: var(--success); }
.cmp-full { background: rgba(15,138,95,.12); color: var(--success); }
.cmp-advanced { background: rgba(15,138,95,.12); color: var(--success); }
.cmp-partial { background: rgba(199,120,0,.1); color: var(--warn); }
.cmp-basic { background: rgba(199,120,0,.1); color: var(--warn); }
.cmp-no { background: rgba(196,49,75,.08); color: var(--danger); }
.cmp-none { background: rgba(196,49,75,.08); color: var(--danger); }

/* ---------- Security ---------- */
.security-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
}
@media (max-width: 900px) { .security-wrap { grid-template-columns: 1fr; } }
.security-list { display: grid; gap: 12px; margin: var(--s-6) 0; }
.security-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-800);
}
.security-item .check {
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(15,138,95,.12); color: var(--success);
  display: grid; place-items: center;
  margin-top: 1px;
}
.security-side {
  padding: var(--s-8);
  background: var(--navy-50);
  border: 1px solid var(--navy-200);
  border-radius: var(--r-lg);
}
.security-side h3 { font-size: 18px; margin-bottom: var(--s-4); color: var(--ink-900); }
.security-side p { color: var(--ink-700); font-size: 15px; line-height: 1.6; margin: 0 0 var(--s-5); }
.security-next {
  margin-top: var(--s-5);
  padding: var(--s-5);
  background: var(--white);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.55;
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  padding: var(--s-7);
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.team-card:hover { border-color: var(--navy-300); box-shadow: var(--sh-md); transform: translateY(-2px); }
.team-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-400));
  color: var(--white);
  font-weight: 700; font-size: 20px;
  display: grid; place-items: center;
  letter-spacing: -.01em;
  margin-bottom: var(--s-5);
}
.team-card .name { font-size: 17px; font-weight: 600; color: var(--ink-900); margin-bottom: 2px; }
.team-card .role { font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: var(--s-4); }
.team-card .body { font-size: 14px; color: var(--ink-600); line-height: 1.55; }

/* ---------- Why now ---------- */
.whynow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 700px) { .whynow-grid { grid-template-columns: 1fr; } }
.whynow-card {
  padding: var(--s-7);
  border-radius: var(--r-md);
  background: var(--navy-50);
  border: 1px solid var(--navy-200);
  position: relative;
  overflow: hidden;
}
.whynow-card .num {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--ff-mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--navy-300);
  opacity: .5;
  line-height: 1;
}
.whynow-card h3 { font-size: 18px; margin-bottom: var(--s-3); color: var(--ink-900); }
.whynow-card p { font-size: 15px; color: var(--ink-700); line-height: 1.55; margin: 0; }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(165deg, var(--navy-950), var(--navy-800) 80%);
  color: var(--white);
}
.contact .eyebrow { color: var(--navy-300); }
.contact .h2 { color: var(--white); }
.contact .lede { color: rgba(255,255,255,.75); }
.contact-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-9); align-items: start; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-form {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  color: var(--ink-900);
  box-shadow: var(--sh-lg);
  display: grid; gap: var(--s-4);
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-700); }
.field input, .field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-900);
  padding: 11px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 90px; }
.contact-form button { margin-top: var(--s-3); }
.contact-form .success {
  padding: var(--s-5);
  background: rgba(15,138,95,.08);
  border: 1px solid rgba(15,138,95,.25);
  color: var(--success);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
}
.contact-alt { color: rgba(255,255,255,.85); padding-top: var(--s-5); }
.contact-alt h3 { color: var(--white); font-size: 18px; margin-bottom: var(--s-5); }
.contact-alt-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; }
.contact-alt-item:first-of-type { border-top: 0; }
.contact-alt-item .icon { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: var(--s-10) 0 var(--s-8); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-8);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer .brand { color: var(--white); font-size: 20px; }
.footer-tag { font-size: 14px; margin-top: var(--s-4); max-width: 34ch; line-height: 1.55; }
.footer h5 { color: var(--white); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 var(--s-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .15s; }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  padding-top: var(--s-6);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-5);
  font-size: 13px; flex-wrap: wrap;
}
.footer-bottom .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(15,138,95,.2); }

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 300px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  z-index: 100;
  overflow: hidden;
}
.tweaks-head { padding: 14px 18px; border-bottom: 1px solid var(--ink-150); display: flex; align-items: center; justify-content: space-between; }
.tweaks-head h4 { font-size: 14px; font-weight: 600; margin: 0; color: var(--ink-900); }
.tweaks-head .dot-bg { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tweaks-body { padding: 16px 18px; display: grid; gap: 16px; }
.tweaks-row { display: grid; gap: 6px; }
.tweaks-row label { font-size: 12px; font-weight: 500; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.tweaks-seg {
  display: flex; background: var(--ink-100); border-radius: var(--r-sm); padding: 3px; gap: 2px;
}
.tweaks-seg button {
  flex: 1;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-600);
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.tweaks-seg button.active { background: var(--white); color: var(--ink-900); box-shadow: var(--sh-xs); }
.tweaks-swatches { display: flex; gap: 8px; }
.tweaks-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, transform .12s;
}
.tweaks-swatch:hover { transform: scale(1.08); }
.tweaks-swatch.active { border-color: var(--ink-900); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.on { animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) forwards; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .nav-inner { height: 58px; }
  .nav-cta-text { display: none; }
}
