/* K2A Solutions — new site
   Palette locked from logo bg: #253344 (ink). Warm off-white canvas.
   Accent: warm signal amber. Monospace for data/UI chrome; serif display for editorial feel. */

:root {
  --ink: #1a2a3f;
  --ink-2: #0f1a2b;
  --ink-soft: #3a4a5e;
  --navy: #1e3a6e;
  --navy-2: #2a4d8c;
  --line: #e4e7ed;
  --line-2: #cdd3dd;
  --paper: #f6f7f9;
  --paper-2: #edeff3;
  --white: #ffffff;
  --muted: #6b7688;
  --muted-2: #8a93a3;
  --accent: #2a4d8c;
  --accent-soft: #bfd0ea;
  --good: #2f7a5a;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: #ededed; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: url('assets/web-bg.jpg') center / cover fixed, #ededed;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.tour, .pricing { background: transparent; }
.tour .tour-panel, .pricing .tier { background: rgba(255,255,255,0.72); backdrop-filter: blur(8px); }
.industries .industry, .case, .how-step, .card { background: rgba(255,255,255,0.72); backdrop-filter: blur(6px); }
.nav { background: transparent; backdrop-filter: none; }
.nav.scrolled { background: rgba(237, 237, 237, 0.75); backdrop-filter: saturate(140%) blur(10px); }
.logo-bar { background: transparent; }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Type scale */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.eyebrow-dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.0;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, h4 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}

.display-xl { font-size: clamp(52px, 7.8vw, 120px); line-height: 0.94; letter-spacing: -0.04em; font-weight: 500; }
.display-lg { font-size: clamp(42px, 5.6vw, 84px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 500; }
.display-md { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; }
.display-sm { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }

.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 58ch;
  text-wrap: pretty;
}

.italic { font-style: italic; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 180ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(37,51,68,0.04); }
.btn-arrow { font-size: 16px; transition: transform 180ms ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1440px;
  margin: 0 auto;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { color: var(--ink); }
.logo-mark img {
  height: 32px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
footer .logo-mark { color: var(--paper); }
footer .logo-mark img { mix-blend-mode: screen; filter: none; height: 44px; }
footer .logo-mark img.footer-logo-img {
  mix-blend-mode: normal;
  height: 48px;
  width: auto;
  border-radius: 0;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Section scaffolding */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head .eyebrow { margin-bottom: 0; }

/* Hair rules */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-heavy { background: var(--ink); height: 1px; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: all 200ms ease;
}

/* HERO — product-led. Big serif headline above a live-looking OS window. */
.hero {
  padding-top: 72px;
  padding-bottom: 48px;
  overflow: hidden;
  position: relative;
}
.hero-head {
  max-width: 1100px;
  margin: 0 auto 56px;
  text-align: center;
  padding: 0 28px;
}
.hero-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--white);
  margin-bottom: 28px;
}
.hero-eyebrow-row .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(61,122,90,0.15);
}
.hero-headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5.8vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero-headline em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.015em;
  opacity: 1;
}
.hero-sub {
  margin: 28px auto 0;
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.hero-trust {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* OS preview frame in hero */
.os-preview-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}
.os-preview-wrap::after {
  content: "";
  position: absolute;
  left: 28px; right: 28px; bottom: -40px; height: 80px;
  background: radial-gradient(ellipse at center, rgba(37,51,68,0.18), transparent 70%);
  z-index: -1;
}

/* Logo bar */
.logo-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 80px;
}
.logo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.logo-bar-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.logo-bar-items {
  display: flex;
  gap: 44px;
  align-items: center;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 20px;
  flex-wrap: wrap;
}
.logo-bar-items span { opacity: 0.75; }

/* What is an AI OS — explainer */
.explainer {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0 140px;
  position: relative;
  overflow: hidden;
}
.explainer h2 { color: var(--paper); }
.explainer .eyebrow { color: var(--accent-soft); }
.explainer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.explainer-body {
  font-family: var(--serif);
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.28;
  color: var(--paper);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.explainer-body span.accent { color: var(--accent-soft); font-style: italic; }
.explainer-list {
  border-top: 1px solid rgba(245,242,236,0.18);
}
.explainer-list-item {
  padding: 22px 0;
  border-bottom: 1px solid rgba(245,242,236,0.18);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: baseline;
}
.explainer-list-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-soft);
}
.explainer-list-title {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.explainer-list-desc {
  font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}

/* How it works */
.how {
  padding: 140px 0;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.how-step {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.how-step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 48px;
}
.how-step-title {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.how-step-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: auto;
}
.how-step-glyph {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}

/* Product tour */
.tour {
  background: var(--paper-2);
  padding: 140px 0;
}
.tour-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}
.tour-tabs {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tour-tab {
  text-align: left;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-2);
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: center;
  transition: all 160ms ease;
}
.tour-tab:last-child { border-bottom: 1px solid var(--line-2); }
.tour-tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--white);
  padding-left: 24px;
}
.tour-tab-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}
.tour-tab-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.tour-tab[aria-selected="true"] .tour-tab-name { color: var(--ink); }
.tour-tab-arrow { opacity: 0; transition: opacity 160ms; color: var(--accent); }
.tour-tab[aria-selected="true"] .tour-tab-arrow { opacity: 1; }

.tour-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  min-height: 520px;
  position: relative;
}

/* Industries */
.industries {
  padding: 140px 0;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.industry {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: background 180ms ease;
  cursor: default;
}
.industry:hover { background: var(--paper-2); }
.industry-title {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.industry-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: auto;
}
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 4px;
}

/* Comparison */
.compare {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0;
}
.compare h2 { color: var(--paper); }
.compare .eyebrow { color: var(--accent-soft); }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.compare-col {
  border: 1px solid rgba(245,242,236,0.18);
  border-radius: 18px;
  padding: 36px;
  background: rgba(255,255,255,0.02);
}
.compare-col.win {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.compare-col.win h3 { color: var(--ink); }
.compare-col.win .compare-item { color: var(--ink-soft); border-color: var(--line); }
.compare-col.win .compare-check { color: var(--good); }
.compare-col h3 {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--paper);
}
.compare-col .compare-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 28px;
}
.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(245,242,236,0.12);
  font-size: 15px;
  line-height: 1.45;
  color: rgba(245,242,236,0.82);
  align-items: baseline;
}
.compare-item:last-child { border-bottom: 1px solid rgba(245,242,236,0.12); }
.compare-check { color: var(--accent-soft); font-family: var(--mono); font-size: 14px; }

/* Case studies */
.cases {
  padding: 140px 0;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-img {
  aspect-ratio: 4 / 1.6;
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--paper);
  position: relative;
}
.case-img::before {
  content: "phase";
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(245,242,236,0.5);
  text-transform: uppercase;
}
.case-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.case-industry {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.case-title {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.case-metric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.case-metric-big {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.case-metric-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}

/* Pricing */
.pricing {
  background: var(--paper-2);
  padding: 140px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.tier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.tier.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.tier.featured .tier-price, .tier.featured .tier-name { color: var(--paper); }
.tier.featured .tier-desc { color: rgba(245,242,236,0.7); }
.tier.featured .tier-features li { color: rgba(255,255,255,0.85); border-color: rgba(245,242,236,0.14); }
.tier.featured .tier-check { color: var(--accent-soft); }
.tier-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  white-space: nowrap;
}
.tier-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.tier-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.45;
}
.tier-price-row {
  margin: 24px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.tier-price-suffix { white-space: nowrap; }
.tier-price {
  font-family: var(--display);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tier-price-suffix {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.tier .btn { margin-top: 20px; justify-content: center; }
.tier-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  flex-grow: 1;
}
.tier-features li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.tier-features li:first-child { border-top: 0; padding-top: 0; }
.tier-check { color: var(--accent); font-family: var(--mono); }
.pricing-note {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

/* Promises (trust band) */
.promises {
  padding: 100px 0 60px;
  background: transparent;
}

/* FAQ */
.faq {
  padding: 80px 0 120px;
}
.faq-list {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  background: transparent;
  border: 0;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 20px;
  align-items: baseline;
  cursor: pointer;
  color: var(--ink);
}
.faq-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
.faq-text {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.faq-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--ink);
  transition: all 180ms ease;
  justify-self: end;
}
.faq-item.open .faq-toggle { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq-item.open .faq-toggle span { transform: rotate(45deg); }
.faq-toggle span { display: inline-block; transition: transform 180ms ease; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
  padding: 0 60px 0 60px;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding-bottom: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 72ch;
}

/* About */
.about {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0;
}
.about h2 { color: var(--paper); }
.about .eyebrow { color: var(--accent-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.2;
  color: var(--paper);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.about-quote em { color: var(--accent-soft); font-style: italic; }
.about-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-stat-dot,
.about-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
}
.about-name { font-weight: 500; font-size: 15px; }
.about-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(245,242,236,0.18);
  border: 1px solid rgba(245,242,236,0.18);
  border-radius: 16px;
  overflow: hidden;
}
.about-stat {
  background: var(--ink);
  padding: 32px 28px;
}
.about-stat-num {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--paper);
}
.about-stat-lbl {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* Final CTA */
.final-cta {
  padding: 160px 0 140px;
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  max-width: 18ch;
  margin: 0 auto;
}
.final-cta h2 em { font-style: italic; opacity: 0.85; }
.final-cta .lede {
  margin: 28px auto 36px;
  text-align: center;
}
.final-cta-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Footer */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245,242,236,0.15);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.55);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li {
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.footer-col a:hover { color: var(--accent-soft); }

.footer-tagline {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--paper);
  line-height: 1.3;
  margin-top: 22px;
  max-width: 28ch;
  letter-spacing: -0.01em;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  width: 260px;
  box-shadow: 0 20px 60px rgba(37,51,68,0.2);
  font-family: var(--sans);
  font-size: 13px;
  display: none;
}
.tweaks-panel.active { display: block; }
.tweaks-panel h5 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}
.tweaks-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.tweaks-row:first-of-type { border-top: 0; }
.tweaks-swatches { display: flex; gap: 6px; }
.tweaks-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  cursor: pointer;
  padding: 0;
}
.tweaks-swatch.active { outline: 2px solid var(--ink); outline-offset: 2px; }
.tweaks-select {
  font-family: var(--sans);
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

/* Dark vibe tweak */
body.vibe-dark { background: #0a1426; color: #ffffff; }
body.vibe-dark { --paper: #0a1426; --paper-2: #0f1c33; --white: #162544; --line: #1f3050; --line-2: #2d4168; --ink: #ffffff; --ink-2: #ffffff; --ink-soft: #bac7de; --muted-2: #8a95ad; --accent: #bfd0ea; --accent-soft: #dde7f5; }

/* Responsive */
@media (max-width: 1040px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .tour-layout { grid-template-columns: 1fr; }
  .tour-tabs { position: static; }
  .industries-grid, .cases-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .explainer-grid, .compare-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
}
@media (max-width: 680px) {
  .section-pad, .explainer, .how, .tour, .industries, .compare, .cases, .pricing, .faq, .about, .final-cta {
    padding: 80px 0;
  }
  .how-steps, .industries-grid, .cases-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-ctas, .final-cta-ctas { flex-direction: column; align-items: stretch; }
}

/* Tightened mobile pass */
@media (max-width: 680px) {
  /* Kill horizontal scroll caused by overflowing children */
  html, body { overflow-x: hidden; max-width: 100vw; }
  /* Promises and Pricing grids — were inline-styled to 2-col / 1.1fr 0.9fr */
  .promises-cards { grid-template-columns: 1fr !important; gap: 12px !important; }
  .pricing-layout { grid-template-columns: 1fr !important; gap: 24px !important; }
  /* Hero + final CTAs: center buttons, don't stretch */
  .hero-ctas, .final-cta-ctas {
    flex-direction: column; align-items: center !important;
    width: 100%;
  }
  .hero-ctas .btn, .final-cta-ctas .btn {
    width: auto; max-width: 280px; padding: 12px 22px !important;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .container, .container-wide { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; gap: 8px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-ghost { display: none; }  /* Hide Client Sign In on mobile */
  .nav-cta .btn { padding: 8px 14px !important; font-size: 13px; white-space: nowrap; }
  .logo-mark img { height: 26px !important; }
  /* Hero */
  .hero { padding-top: 24px; padding-bottom: 16px; }
  .hero-head { margin-bottom: 28px; padding: 0 20px; max-width: 100%; }
  .hero-eyebrow-row { padding: 6px 12px; margin-bottom: 18px; }
  .hero-eyebrow-row .eyebrow { font-size: 13px !important; }
  .hero-headline { font-size: 34px !important; line-height: 1.08; letter-spacing: -0.02em; }
  .hero-headline br { display: none; }
  .hero-sub { margin-top: 18px; font-size: 15px; line-height: 1.5; }
  .hero-sub br { display: none; }
  .hero-ctas { margin-top: 22px; gap: 10px; }
  .hero-trust { margin-top: 14px; font-size: 10px; }
  /* Demo iframe — extend nearly edge-to-edge */
  .os-preview-wrap { padding: 0 8px !important; margin-top: 24px !important; }
  .os-preview-wrap::after { left: 8px !important; right: 8px !important; }
  /* Logo bar (Built for...) */
  .logo-bar { padding: 24px 0; margin-top: 48px !important; }
  .logo-bar-inner { gap: 14px; flex-direction: column; align-items: center; text-align: center; }
  .logo-bar-items { gap: 12px 20px; font-size: 15px; justify-content: center; }
  .logo-bar-label { font-size: 10px; }
  /* Section padding */
  .section-pad, .explainer, .how, .tour, .industries, .compare, .cases, .pricing, .faq, .about, .final-cta {
    padding: 56px 0 !important;
  }
  .promises { padding: 56px 0 32px !important; }
  /* Display headlines */
  .display-lg { font-size: clamp(28px, 8.5vw, 36px) !important; line-height: 1.08; }
  .display-md { font-size: clamp(24px, 7vw, 30px) !important; line-height: 1.1; }
  .section-head { margin-bottom: 32px !important; }
  /* Tour panel — stays readable */
  .tour-panel { min-height: auto !important; padding: 0 !important; }
  .tour-tab { padding: 16px 14px !important; }
  /* Pricing tier cards on mobile */
  .tier { padding: 28px 22px !important; border-radius: 16px !important; }
  .tier .tier-name { font-size: 26px !important; }
  .tier .tier-price { font-size: 56px !important; letter-spacing: -0.03em !important; }
  .tier .tier-desc { font-size: 14px !important; }
  .tier .tier-features li { font-size: 14px !important; }
  .tier .btn { width: auto !important; align-self: center !important; }
  /* Footer mobile improvements */
  footer { padding: 56px 0 32px !important; }
  .footer-grid { gap: 28px !important; grid-template-columns: 1fr 1fr !important; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .footer-col h4 { font-size: 12px !important; margin-bottom: 12px !important; }
  .footer-col ul li { margin-bottom: 6px !important; font-size: 14px !important; }
  .footer-bottom { flex-direction: column; gap: 8px !important; align-items: flex-start !important; padding-top: 28px !important; font-size: 11px !important; }
  /* Hide tweaks panel on mobile (was floating + overlapping content) */
  .tweaks-panel { display: none !important; }
  /* Marquee — less aggressive on small screens */
  .marquee-track { animation-duration: 50s !important; }
}

@media (max-width: 400px) {
  .container, .container-wide { padding: 0 16px; }
  .nav-inner { padding: 12px 14px; }
  .nav-cta .btn { padding: 7px 12px !important; font-size: 12px; }
  .logo-mark img { height: 24px !important; }
  .hero-head { padding: 0 14px; }
  .hero-headline { font-size: 30px !important; }
  .os-preview-wrap { padding: 0 6px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-grid .footer-brand { grid-column: auto; }
}

/* ============================================================
   ANIMATIONS — transform/opacity only for 60fps
   ============================================================ */

/* Respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 1. Scroll reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
/* Safety: if JS fails to load, nothing gets .reveal and content stays visible. */
/* If JS runs but observer never fires (tall viewport, above-fold), force reveal on load. */
html.no-js .reveal { opacity: 1; transform: none; }
/* Stagger children within a grid parent */
.how-steps .reveal:nth-child(1) { transition-delay: 0ms; }
.how-steps .reveal:nth-child(2) { transition-delay: 80ms; }
.how-steps .reveal:nth-child(3) { transition-delay: 160ms; }
.how-steps .reveal:nth-child(4) { transition-delay: 240ms; }
.industries-grid .reveal:nth-child(odd) { transition-delay: 0ms; }
.industries-grid .reveal:nth-child(even) { transition-delay: 80ms; }
.cases-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.cases-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.cases-grid .reveal:nth-child(3) { transition-delay: 200ms; }
.pricing-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.pricing-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.pricing-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.footer-col.reveal:nth-child(1) { transition-delay: 0ms; }
.footer-col.reveal:nth-child(2) { transition-delay: 60ms; }
.footer-col.reveal:nth-child(3) { transition-delay: 120ms; }
.footer-col.reveal:nth-child(4) { transition-delay: 180ms; }

/* 2. Hero headline word stagger + entrance fades
   Uses @keyframes (not CSS transitions) because keyframes play on class add
   without needing a prior paint of the "from" state. Hero is visible by
   default; `body.hero-animated` just runs the entrance animation ONCE. */
.hero-headline .word { display: inline-block; }

@keyframes heroWordIn {
  from { opacity: 0; transform: translate3d(0, 0.5em, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

body.hero-animated .hero-headline .word {
  animation: heroWordIn 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 60ms + 300ms);
}
body.hero-animated .hero-eyebrow-row { animation: heroFadeUp 600ms ease-out 100ms both; }
body.hero-animated .hero-sub         { animation: heroFadeUp 600ms ease-out 700ms both; }
body.hero-animated .hero-ctas        { animation: heroFadeUp 600ms ease-out 820ms both; }
body.hero-animated .hero-trust       { animation: heroFadeUp 600ms ease-out 940ms both; }

/* 3. Navbar shrink polish */
.nav {
  transition: background 260ms ease, backdrop-filter 260ms ease,
              padding 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 260ms ease;
}
.nav.scrolled {
  box-shadow: 0 1px 0 rgba(30, 44, 68, 0.06);
}

/* 4. Button hover lift + arrow slide */
.btn {
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 220ms ease,
              background 220ms ease,
              border-color 220ms ease,
              color 220ms ease;
  will-change: transform;
}
.btn:hover {
  transform: translate3d(0, -2px, 0);
}
.btn-primary:hover {
  box-shadow: 0 10px 24px -8px rgba(20, 32, 54, 0.35);
}
.btn-arrow {
  display: inline-block;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.btn:hover .btn-arrow {
  transform: translate3d(4px, 0, 0);
}

/* 5. Marquee logo bar */
.marquee-viewport {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}
.marquee-track .logo-bar-items {
  flex: 0 0 auto;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* 6. OS mockup breathing — subtle pulse on active elements */
body.os-breathe .os-preview-wrap .agent-avatar,
body.os-breathe .os-preview-wrap .hero-eyebrow-row .dot {
  /* leave avatars static */
}
/* A gentle "live" dot pulse inside the mockup header (if present) and nav eyebrow */
.hero-eyebrow-row .dot {
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47, 122, 90, 0.15); }
  50%      { box-shadow: 0 0 0 6px rgba(47, 122, 90, 0.06); }
}
/* Cursor blink anywhere we render the ▍ glyph */
.os-preview-wrap .blink,
.os-cursor { animation: cursor-blink 1.1s steps(2, start) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
/* Breathing scale on the whole OS preview card */
.os-preview-wrap > div {
  animation: os-breathe 7s ease-in-out infinite;
  transform-origin: center top;
  will-change: transform;
}
@keyframes os-breathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -2px, 0) scale(1.004); }
}

/* 7. Number count-up doesn't need CSS (JS writes textContent) */

/* 8. FAQ toggle icon polish */
.faq-toggle {
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease,
              transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-item:hover .faq-toggle {
  border-color: var(--ink);
}
.faq-item.open .faq-toggle {
  transform: rotate(0deg) scale(1.04);
}
.faq-toggle span {
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-q {
  transition: color 200ms ease;
}
.faq-q:hover .faq-text {
  color: var(--accent);
}

/* 9. Compare row accent sweep */
.compare-item {
  position: relative;
  overflow: hidden;
  transition: background 240ms ease;
}
.compare-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(191, 208, 234, 0.10), transparent);
  opacity: 0;
  transform: translate3d(-60%, 0, 0);
  transition: opacity 320ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.compare-item:hover::before {
  opacity: 1;
  transform: translate3d(60%, 0, 0);
}
.compare-col.win .compare-item::before {
  background: linear-gradient(90deg, transparent, rgba(30, 58, 110, 0.08), transparent);
}
.compare-item > * { position: relative; z-index: 1; }

