/* site.css — Kraken public marketing site. Enterprise-grade dark SaaS. */

:root {
  --bg:       #080c14;
  --bg-soft:  #0c1120;
  --panel:    #101828;
  --panel2:   #141f30;
  --border:   #1a2540;
  --border2:  #24334f;
  --fg:       #e8eff8;
  --muted:    #7a8eaa;
  --muted2:   #4a5a74;
  --accent:   #4f8eff;
  --accent2:  #7c5cff;
  --green:    #22d3a0;
  --orange:   #f59e0b;
  --red:      #ef4444;
  --radius:   12px;
  --radius-lg:18px;
  --maxw:     1100px;
  --shadow:   0 4px 24px rgba(0,0,0,.4);
}

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

body.site {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--panel2); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; font-size: 12px; color: #a8c4e8; font-family: "SF Mono", Menlo, monospace; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,12,20,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 28px; height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; color: var(--fg);
  flex-shrink: 0;
}
.brand img { height: 26px; width: auto; }
.brand:hover { text-decoration: none; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; transition: .15s;
}
.site-nav a:hover { color: var(--fg); background: rgba(255,255,255,.06); text-decoration: none; }

.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.mobile-menu-btn { display: none; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  border: 1px solid transparent; transition: all .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(79,142,255,.35);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(79,142,255,.5); transform: translateY(-1px) scale(1.01); }
.btn-ghost { background: transparent; border-color: var(--border2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

/* ── Eyebrow labels ──────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.eyebrow { color: var(--accent); }
.eyebrow-muted { color: var(--muted); }
.eyebrow-accent { color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 80px; text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,142,255,.12) 0%, transparent 70%);
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,92,255,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { letter-spacing: -.02em;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08; margin: 16px auto 24px;
  max-width: 18ch; font-weight: 800;
  background: linear-gradient(145deg, #fff 30%, #9ab8e8 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 19px; color: var(--muted); max-width: 58ch;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted2); }

/* ── Stats bar ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-bar .container {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 48px; text-align: center;
}
.stat-num {
  font-size: 36px; font-weight: 800; color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat-prefix, .stat-suffix { font-size: 24px; font-weight: 700; color: var(--accent); }
.stat-prefix { margin-right: 2px; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.stat-divider { width: 1px; height: 48px; background: var(--border2); }

/* ── Sections ────────────────────────────────────────────────── */
section.block { padding: 80px 0; }
section.block.block-alt { background: var(--bg-soft); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; margin-bottom: 14px; }
.section-header .sub { color: var(--muted); max-width: 56ch; margin: 0 auto; font-size: 16px; }

section.block h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 12px; }
section.block .sub { color: var(--muted); max-width: 64ch; margin-bottom: 36px; font-size: 15px; }

/* ── Problem/Solution split ──────────────────────────────────── */
.split-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
.check-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.check-icon { color: var(--green); font-weight: 700; }
.x-icon { color: var(--red); font-weight: 700; }

/* ── Feature grid ────────────────────────────────────────────── */
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.feat-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.feat-card h3 { font-size: 16px; font-weight: 700; margin: 14px 0 8px; }
.feat-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.feat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.feat-icon-blue   { background: rgba(79,142,255,.15); color: var(--accent); }
.feat-icon-purple { background: rgba(124,92,255,.15); color: #a78bfa; }
.feat-icon-green  { background: rgba(34,211,160,.15); color: var(--green); }
.feat-icon-orange { background: rgba(245,158,11,.15); color: var(--orange); }

/* ── How it works ────────────────────────────────────────────── */
.steps {
  display: flex; align-items: flex-start; gap: 0;
  flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 180px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.step-num {
  font-size: 32px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 14px;
}
.step-content h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-content p  { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.step-arrow { align-self: center; font-size: 22px; color: var(--muted2); padding: 0 12px; flex-shrink: 0; }

/* ── ROI Calculator ──────────────────────────────────────────── */
.roi-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.roi-field { margin-bottom: 28px; }
.roi-field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; letter-spacing: .04em; text-transform: uppercase; }
.roi-slider-wrap { display: flex; align-items: center; gap: 14px; }
.roi-slider-wrap input[type=range] {
  flex: 1; appearance: none; height: 4px;
  background: var(--border2); border-radius: 4px; outline: none; cursor: pointer;
}
.roi-slider-wrap input[type=range]::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 8px rgba(79,142,255,.5); cursor: pointer;
}
.roi-val { font-size: 15px; font-weight: 700; color: var(--accent); min-width: 52px; text-align: right; }
.roi-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.roi-result-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.roi-result-highlight { border-color: var(--border2); background: var(--panel2); }
.roi-result-green { border-color: rgba(34,211,160,.3); background: rgba(34,211,160,.05); }
.roi-result-big { grid-column: span 2; border-color: var(--accent); background: rgba(79,142,255,.08); }
.roi-result-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.roi-result-val { font-size: 28px; font-weight: 800; color: var(--fg); }
.roi-savings { color: var(--green); }
.roi-result-sublabel { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Trust grid ──────────────────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.trust-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.trust-icon { font-size: 26px; margin-bottom: 14px; display: block; }
.trust-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.trust-card p  { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-bottom: 12px; }
.trust-link { font-size: 13px; font-weight: 600; color: var(--accent); }
.trust-link:hover { text-decoration: underline; }

/* ── Pricing preview (home) ──────────────────────────────────── */
.pricing-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  position: relative; display: flex; flex-direction: column;
}
.price-card-featured {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(79,142,255,.08), rgba(124,92,255,.08));
  box-shadow: 0 0 40px rgba(79,142,255,.15);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px;
  border-radius: 20px; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.price-tier { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.price-amount { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.price-period { font-size: 16px; font-weight: 400; color: var(--muted); }
.price-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; min-height: 40px; }
.price-features { list-style: none; margin-bottom: 28px; flex: 1; }
.price-features li { font-size: 13.5px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--border); }
.price-features li:last-child { border-bottom: none; }
.price-card .btn { margin-top: auto; justify-content: center; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px; cursor: pointer; font-weight: 600;
  font-size: 15px; list-style: none; display: flex;
  justify-content: space-between; align-items: center; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 300; color: var(--accent);
  line-height: 1; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--border2); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── CTA section ──────────────────────────────────────────────── */
.cta-section { background: var(--bg-soft); }
.cta-inner {
  text-align: center;
  background: linear-gradient(135deg, rgba(79,142,255,.08), rgba(124,92,255,.08));
  border: 1px solid var(--border2);
  border-radius: 20px; padding: 64px 40px;
}
.cta-inner h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; margin-bottom: 12px; }
.cta-inner p { color: var(--muted); font-size: 16px; margin-bottom: 0; }

/* ── Page hero (non-home pages) ──────────────────────────────── */
.page-hero { padding: 72px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; margin-bottom: 18px; }
.page-hero .lead { color: var(--muted); font-size: 17px; max-width: 60ch; margin: 0 auto; }

/* ── Prose (security, privacy, terms) ───────────────────────── */
.prose { max-width: 800px; margin: 0 auto; padding: 40px 0 80px; }
.prose h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.prose h2 { font-size: 22px; font-weight: 700; margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.prose p, .prose li { color: #c0cfe0; margin-bottom: 14px; line-height: 1.75; font-size: 15px; }
.prose ul { padding-left: 22px; margin-bottom: 16px; }
.prose a { color: var(--accent); }

/* ── Security page ───────────────────────────────────────────── */
.security-prose { max-width: 860px; margin: 0 auto; }
.security-prose h2 { font-size: 21px; font-weight: 700; margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.security-prose p, .security-prose li { color: #b8cbdf; line-height: 1.75; margin-bottom: 12px; }
.security-prose ul { padding-left: 22px; margin-bottom: 16px; }

.sec-toc {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-bottom: 48px;
}
.sec-toc-title { width: 100%; font-size: 11px; font-weight: 700; color: var(--muted2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.sec-toc a { font-size: 13px; color: var(--accent); }

.sec-table { overflow-x: auto; margin: 16px 0 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.sec-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sec-table thead tr { background: var(--panel2); }
.sec-table th { padding: 12px 16px; text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.sec-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: #c0cfe0; vertical-align: top; line-height: 1.6; }
.sec-table tr:last-child td { border-bottom: none; }

.sec-checklist { display: flex; flex-direction: column; gap: 16px; margin: 16px 0 24px; }
.sec-check-item { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.sec-check { color: var(--green); font-size: 16px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.sec-check-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.sec-check-item p { color: var(--muted); font-size: 13.5px; margin: 0; }

.badge-safe { background: rgba(34,211,160,.15); color: var(--green); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-sensitive { background: rgba(245,158,11,.15); color: var(--orange); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-partial { background: rgba(245,158,11,.15); color: var(--orange); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-planned { background: rgba(79,142,255,.15); color: var(--accent); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-na { background: rgba(255,255,255,.06); color: var(--muted); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* ── Pricing (full page) ─────────────────────────────────────── */
.pricing-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 64px; }
.price-feat-list { list-style: none; margin-bottom: 0; }
.price-feat-list li { font-size: 13.5px; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.price-feat-list li:last-child { border-bottom: none; }
.pf-check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.pf-muted  { color: var(--muted2); flex-shrink: 0; }

.compare-section { margin: 0 0 64px; }
.compare-section h2 { font-size: 26px; font-weight: 800; margin-bottom: 24px; }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 600px; }
.compare-table thead tr { background: var(--panel2); }
.compare-table th { padding: 14px 16px; text-align: left; font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.compare-table th.compare-featured { background: rgba(79,142,255,.1); color: var(--accent); }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: #c0cfe0; }
.compare-table td.compare-featured { background: rgba(79,142,255,.05); font-weight: 600; color: var(--fg); }
.compare-table tr.compare-group td {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted2); background: var(--panel); padding: 10px 16px;
  border-bottom: 1px solid var(--border2);
}

.roi-standalone { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; margin-bottom: 64px; }
.roi-comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: start; margin-top: 32px; }
.roi-col { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.roi-col-bad { border-color: rgba(239,68,68,.3); }
.roi-col-good { border-color: rgba(34,211,160,.3); }
.roi-col-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.roi-line { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.roi-line:last-of-type { border-bottom: none; }
.roi-line-total { font-weight: 700; color: var(--fg) !important; }
.roi-line-total .roi-line { border-bottom: none; }
.roi-amt { font-weight: 600; }
.roi-amt-red { color: var(--red); }
.roi-amt-green { color: var(--green); }
.roi-col-note { font-size: 12px; color: var(--muted2); margin-top: 12px; line-height: 1.5; }
.roi-vs { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--muted2); padding-top: 80px; }
.roi-callout { text-align: center; margin-top: 40px; }
.roi-callout-num {
  font-size: 72px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--green), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.roi-callout-text { font-size: 18px; color: var(--muted); margin-top: 8px; }

.prose-section { max-width: 720px; margin: 0 auto 64px; }
.prose-section h2 { font-size: 24px; font-weight: 800; margin-bottom: 28px; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0; color: var(--muted); font-size: 13px;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.footer-brand img { height: 22px; }
.footer-tagline { font-size: 13px; color: var(--muted2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 32px; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: var(--muted2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--fg); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--muted); }

/* ── Mobile ──────────────────────────────────────────────────── */
.mobile-menu-btn {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; cursor: pointer; flex-direction: column; gap: 4px;
}
.mobile-menu-btn span { display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; }

@media (max-width: 900px) {
  .pricing-preview, .pricing-full { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .split-layout { grid-template-columns: 1fr; }
  .roi-layout { grid-template-columns: 1fr; }
  .roi-comparison { grid-template-columns: 1fr; }
  .roi-vs { padding-top: 0; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
  .compare-section { overflow-x: auto; }
}

@media (max-width: 640px) {
  .mobile-menu-btn { display: flex; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 12px 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 24px; border-radius: 0; }
  .header-cta .btn-ghost { display: none; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { letter-spacing: -.02em; font-size: 32px; }
  .stats-bar .container { gap: 24px; }
  .stat-item { padding: 0 16px; }
  .stat-divider { display: none; }
  .roi-results { grid-template-columns: 1fr; }
  .roi-result-big { grid-column: span 1; }
  .footer-links { flex-direction: column; gap: 16px; }
}

/* ── Dashboard preview (home page) ──────────────────────────────── */
.dashboard-preview { display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: start; }
.dp-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.dp-card-main { padding: 0; }
.dp-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted2); padding: 12px 16px 8px; border-bottom: 1px solid var(--border); }
.dp-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.dp-col { padding: 12px; border-right: 1px solid var(--border); }
.dp-col:last-child { border-right: none; }
.dp-col-head { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.dp-col-yellow { color: var(--orange); }
.dp-col-green { color: var(--green); }
.dp-ticket { background: var(--bg-soft); border: 1px solid var(--border2); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.dp-ticket-warn { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.04); }
.dp-ticket-done { opacity: .7; }
.dp-ticket-key { font-size: 10px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.dp-ticket-sum { font-size: 12px; color: var(--fg); line-height: 1.4; margin-bottom: 6px; }
.dp-ticket-cat { font-size: 10px; color: var(--muted2); font-weight: 600; letter-spacing: .04em; }
.dp-ticket-actions { display: flex; gap: 6px; margin-top: 8px; }
.dp-ticket-badge { font-size: 10px; font-weight: 700; color: var(--green); }
.dp-btn { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; cursor: default; }
.dp-btn-green { background: rgba(34,211,160,.15); color: var(--green); }
.dp-btn-red { background: rgba(240,81,105,.12); color: var(--red); }
.dp-side { display: flex; flex-direction: column; gap: 12px; }
.dp-card-stat { padding: 20px; text-align: center; }
.dp-stat-num { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.dp-stat-lbl { font-size: 12px; color: var(--fg); font-weight: 600; margin-bottom: 2px; }
.dp-stat-sub { font-size: 11px; color: var(--muted2); }
@media (max-width: 800px) {
  .dashboard-preview { grid-template-columns: 1fr; }
  .dp-cols { grid-template-columns: 1fr; }
  .dp-col { border-right: none; border-bottom: 1px solid var(--border); }
  .dp-col:last-child { border-bottom: none; }
}

/* ── Home pricing preview table ──────────────────────────────── */
.home-pricing-preview { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 8px; }
.hpp-row { display: grid; grid-template-columns: 1fr 120px 180px 130px; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.hpp-row:last-child, .hpp-row-last { border-bottom: none; }
.hpp-row-head { background: var(--panel2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted2); }
.hpp-row-pop { background: rgba(79,142,255,.05); border-left: 3px solid var(--accent); }
.hpp-price { font-size: 20px; font-weight: 800; }
.hpp-mo { font-size: 13px; font-weight: 400; color: var(--muted); }
.hpp-save { font-size: 12px; color: var(--muted); }
.hpp-badge { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 8px; }
@media (max-width: 700px) {
  .hpp-row { grid-template-columns: 1fr 1fr; }
  .hpp-row-head { display: none; }
  .hpp-save { display: none; }
}

/* ── Use cases grid ─────────────────────────────────────────────── */
.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.use-case-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.use-case-ticket { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.uc-key { font-size: 11px; font-weight: 700; color: var(--accent); }
.uc-tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
.uc-green { background: rgba(34,211,160,.12); color: var(--green); }
.uc-yellow { background: rgba(245,158,11,.12); color: var(--orange); }
.use-case-summary { font-size: 13px; color: var(--fg); line-height: 1.5; margin-bottom: 10px; font-style: italic; }
.use-case-result { font-size: 12px; color: var(--muted); line-height: 1.5; padding-top: 10px; border-top: 1px solid var(--border); }

/* ── Competitive comparison table ───────────────────────────── */
.compare-table td:nth-child(2) { font-weight: 600; }
.compare-table td:nth-child(3) { color: var(--muted); }

/* ── Active nav link ────────────────────────────────────────── */
.site-nav a[aria-current="page"],
.site-nav a.active { color: var(--fg) !important; font-weight: 700; }

/* ── Better section transitions ─────────────────────────────── */
section.block { transition: none; }
.feat-card { transition: border-color .2s, transform .18s, box-shadow .18s; }
.feat-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.4); }

/* ── Smooth scroll for anchor links ─────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Better step arrows on mobile ───────────────────────────── */
@media (max-width: 760px) {
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; padding: 8px 0; }
}

/* ── Price toggle active state ───────────────────────────────── */
.price-toggle-item { transition: all .15s; user-select: none; }
.price-toggle-item:hover { cursor: pointer; opacity: .9; }

/* ── Trust bar (for future logos section) ──────────────────── */
.trust-bar { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.trust-bar .container { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-bar-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted2); }

/* ── Better link underlines ─────────────────────────────────── */
a { text-underline-offset: 3px; }

/* ── Code blocks on site ────────────────────────────────────── */
.prose code, .security-prose code {
  background: var(--panel2); border: 1px solid var(--border2);
  padding: 2px 6px; border-radius: 5px; font-size: 12px;
  color: #a8c4e8; font-family: "SF Mono", Menlo, "Cascadia Code", monospace;
}

/* ── Better security table ──────────────────────────────────── */
.sec-table table { font-size: 13px; }
.sec-table td code { font-size: 11px; }

.site-main { min-height: 60vh; }

/* ── Back to top ─────────────────────────────────────────── */
.back-to-top { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 32px; }
.back-to-top:hover { color: var(--accent); text-decoration: none; }

/* ── Prose page improvements ─────────────────────────────── */
.prose h1 { letter-spacing: -.02em; }
.prose .updated { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; display: inline-block; margin-bottom: 32px; }
.prose ul li::marker { color: var(--accent); }
.prose strong { color: var(--fg); }

/* ── Improve the split layout on mobile ─────────────────── */
@media (max-width: 820px) {
  .split-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Hero logo glow animation ──────────────────────────── */
.hero-logo { filter: drop-shadow(0 0 20px rgba(79,142,255,.3)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-logo { animation: logoBreath 4s ease-in-out infinite; }
  @keyframes logoBreath {
    0%,100% { filter: drop-shadow(0 0 20px rgba(79,142,255,.3)); }
    50%      { filter: drop-shadow(0 0 35px rgba(124,92,255,.5)); }
  }
}



/* ── Visibility safety net — never hide these elements ──────── */
.feat-card, .trust-card, .step, .use-case-card,
.roi-result-card, .price-card, .hpp-row,
.faq-item, .sec-check-item, .about-stat, .tech-card, .use-case-card, .about-stat-stack > * {
  opacity: 1 !important;
  visibility: visible !important;
}
