/* ==========================================================================
   Lattix OS — Landing page styles
   ========================================================================== */

:root {
  --bg: #05070f;
  --bg-alt: #080b16;
  --bg-elevated: #0c101d;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5fc;
  --text-muted: #9aa3c0;
  --text-dim: #6b7391;
  --blue: #5b8dff;
  --purple: #9b6bff;
  --gradient: linear-gradient(105deg, #5b8dff 0%, #9b6bff 100%);
  --gradient-soft: linear-gradient(105deg, rgba(91,141,255,0.16) 0%, rgba(155,107,255,0.16) 100%);
  --danger: #ff6b6b;
  --success: #4ade80;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(91,141,255,0.7);
}

.eyebrow.center { justify-content: center; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  max-width: 780px;
  margin: 0 0 20px;
}

.section-title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-kicker {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
}
.section-kicker .section-title { max-width: none; text-align: center; margin-left: auto; margin-right: auto; }

.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 8px;
}

.section-pad { padding: 128px 0; }
.section-pad-sm { padding: 96px 0; }

@media (max-width: 900px) {
  .section-pad { padding: 88px 0; }
  .section-pad-sm { padding: 64px 0; }
  .container { padding: 0 22px; }
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: none;
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-size: 15.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color .35s var(--ease);
}

.btn-primary {
  background: var(--gradient);
  color: #050710;
  box-shadow: 0 10px 30px -8px rgba(91,141,255,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(91,141,255,0.7); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }

.btn-sm { padding: 12px 22px; font-size: 14px; }
.btn-block { width: 100%; }

.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(5,7,15,0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 60px; width: auto; }

@media (max-width: 560px) {
  .brand img { height: 46px; }
}

.header-cta { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.site-header.scrolled .header-cta { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(91,141,255,0.16), transparent 60%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  background-image: url('../Imagenes/fondo-oscuro-web-2.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 900px auto;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(-18px, 14px) scale(1.03); }
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.1;
  max-width: 920px;
  margin: 0 auto 26px;
}

.hero .lede { font-size: 19px; max-width: 680px; margin: 0 auto 14px; }
.hero .differentiator {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 15.5px;
  color: var(--text-dim);
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
}

.hero .cta-row { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.microcopy { font-size: 13px; color: var(--text-dim); }

.hero-visual {
  margin-top: 76px;
  position: relative;
  width: 100%;
}

.hero-visual .frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.02);
  background: var(--bg-elevated);
}

.hero-visual .frame img { width: 100%; }

.hero-visual .glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(91,141,255,0.22), transparent 70%);
  z-index: -1;
  filter: blur(10px);
}

.hero-tags {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 100px;
  background: rgba(10,13,24,0.9);
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.6);
}
.hero-tags .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.hero-tags.t1 { top: 6%; left: -2%; animation: float1 7s ease-in-out infinite; }
.hero-tags.t2 { bottom: 10%; right: -3%; animation: float2 8s ease-in-out infinite; }

@media (max-width: 900px) {
  .hero-tags { display: none; }
}

@keyframes float1 { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }
@keyframes float2 { 0%,100% { transform: translateY(0);} 50% { transform: translateY(12px);} }

/* ---------- Reveal animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Ceiling of trust (section 2) ---------- */

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

.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; gap: 48px; } }

.trust-copy p { color: var(--text-muted); font-size: 16.5px; margin: 0 0 18px; }

.pull-quote {
  border-left: 2px solid;
  border-image: var(--gradient) 1;
  padding: 4px 0 4px 22px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 0;
}

.visual-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}
.visual-card img { width: 100%; }

/* ---------- Economic pain (section 3) ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .pain-grid { grid-template-columns: 1fr; gap: 40px; } }

.leak-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15.5px;
}
.leak-list li:first-child { padding-top: 0; }
.leak-list li svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--danger); }

.stat-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--card);
}

.stat-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.stat-num { font-size: 52px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 15px; }

.stat-bar-track { height: 10px; border-radius: 100px; background: rgba(255,255,255,0.06); overflow: hidden; margin: 22px 0 10px; }
.stat-bar-fill { height: 100%; border-radius: 100px; background: var(--gradient); width: 0%; transition: width 1.6s var(--ease); }
.stat-bar-fill.in-view { width: 100%; }
.stat-caption { font-size: 13.5px; color: var(--text-dim); }

.conclusion-box {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--gradient-soft);
  border: 1px solid rgba(155,107,255,0.25);
  font-weight: 600;
  font-size: 15.5px;
}

/* ---------- Loss calculator (section 3) ---------- */

.calc-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--card);
}

.calc-panel h3 { font-size: 19px; margin-bottom: 6px; }
.calc-lede { color: var(--text-muted); font-size: 14.5px; margin: 0 0 26px; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 460px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-field span { font-size: 12.5px; color: var(--text-dim); line-height: 1.35; }
.calc-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.calc-field input::placeholder { color: var(--text-dim); }
.calc-field input:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(91,141,255,0.06);
}

.calc-result {
  margin-top: 24px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--gradient-soft);
  border: 1px solid rgba(91,141,255,0.3);
}
.calc-result[hidden] { display: none; }
.calc-result-main { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.calc-result-main .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-detail { font-size: 14.5px; color: var(--text-muted); margin: 0 0 14px; }
.calc-result-year { font-size: 15px; color: var(--text); margin-bottom: 14px; }
.calc-result-year strong { color: var(--text); }
.calc-note { font-size: 12.5px; color: var(--text-dim); margin: 0; border-top: 1px solid var(--border); padding-top: 14px; }

.calc-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--danger);
}
.calc-hint[hidden] { display: none; }

/* ---------- What is Lattix OS (section 4) ---------- */

.what-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .what-grid { grid-template-columns: 1fr; gap: 44px; } }

.feature-list { margin-top: 26px; }
.feature-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  color: var(--text-muted);
  font-size: 15.5px;
  border-top: 1px solid var(--border);
}
.feature-list li:first-child { border-top: none; }
.feature-list li svg { color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }

.key-message {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}
.key-message strong { color: transparent; background: var(--gradient); -webkit-background-clip: text; background-clip: text; }

/* ---------- Operate then grow (section 5) ---------- */

.two-phase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 760px) { .two-phase { grid-template-columns: 1fr; } }

.phase-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
  position: relative;
  overflow: hidden;
}
.phase-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--card-hover); }
.phase-card .num { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 14px; display:block; }
.phase-card h3 { font-size: 22px; margin-bottom: 12px; }
.phase-card p { color: var(--text-muted); font-size: 15.5px; margin: 0; }
.phase-card.accent { border-color: rgba(91,141,255,0.35); background: linear-gradient(160deg, rgba(91,141,255,0.08), rgba(155,107,255,0.05)); }

.two-phase-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.centered-close {
  text-align: center;
  max-width: 620px;
  margin: 48px auto 0;
  font-size: 18px;
  font-weight: 600;
}

/* ---------- Phases (section 6) ---------- */

.phases-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
  position: relative;
}
@media (max-width: 900px) { .phases-track { grid-template-columns: 1fr; } }

.phase-step {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  position: relative;
}
.phase-step .step-index {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient);
  color: #050710;
  font-weight: 800;
  margin-bottom: 20px;
  font-size: 15px;
}
.phase-step h3 { font-size: 18.5px; margin-bottom: 10px; }
.phase-step p { color: var(--text-muted); font-size: 15px; margin: 0; }

.risk-box {
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 15.5px;
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Verbatim architecture (section 7) ---------- */

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

.verbatim-lede { text-align: center; max-width: 760px; margin: 0 auto 20px; color: var(--text-muted); font-size: 17px; }

.verbatim-visual { margin: 56px 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.verbatim-visual img { width: 100%; }

.verbatim-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 40px 0;
  counter-reset: vstep;
}
.verbatim-steps li {
  counter-increment: vstep;
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 14.5px;
  color: var(--text-muted);
  position: relative;
}
.verbatim-steps li h5 {
  font-size: 15.5px;
  color: var(--text);
  font-weight: 700;
  margin: 0 0 6px;
}
.verbatim-steps li p { margin: 0; }
.verbatim-steps li::before {
  content: counter(vstep);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--gradient-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}

.analogy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 900px) { .analogy-row { grid-template-columns: 1fr; } }

.analogy-box, .claim-box {
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.analogy-box { background: var(--bg-elevated); }
.claim-box { background: var(--gradient-soft); border-color: rgba(155,107,255,.3); }
.analogy-box h4, .claim-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 14px; }
.analogy-box p, .claim-box p { font-size: 16px; margin: 0; }
.claim-box p { font-weight: 600; }

.scope-note { text-align: center; max-width: 700px; margin: 32px auto 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- Modules (section 8) ---------- */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 52px;
}
@media (max-width: 1000px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modules-grid { grid-template-columns: 1fr; } }

.module-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.module-card:hover { transform: translateY(-5px); border-color: rgba(91,141,255,0.4); background: var(--card-hover); }
.module-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-soft);
  color: var(--blue);
  margin-bottom: 18px;
}
.module-icon svg { width: 22px; height: 22px; }
.module-card h3 { font-size: 17px; margin-bottom: 8px; }
.module-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

.modules-close {
  text-align: center;
  max-width: 620px;
  margin: 44px auto 0;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* ---------- System in operation (section 9) ---------- */

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

.op-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 52px 0 48px;
  position: relative;
}
@media (max-width: 900px) { .op-steps-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .op-steps-row { grid-template-columns: 1fr; } }

.op-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.op-step .idx {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gradient);
  color: #050710;
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 800; flex-shrink: 0;
}

.dashboard-showcase {
  max-width: 980px;
  margin: 0 auto;
}

.screenshot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 20px 50px -25px rgba(0,0,0,0.6);
  position: relative;
}
.screenshot-frame .chrome {
  display: flex; gap: 6px;
  padding: 10px 12px;
  background: #0a0e1a;
  border-bottom: 1px solid var(--border);
}
.screenshot-frame .chrome span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.14); }

.op-support {
  text-align: center;
  max-width: 680px;
  margin: 40px auto 0;
  color: var(--text-muted);
  font-size: 15.5px;
}
.op-support strong { color: var(--text); }

/* ---------- Case study (section 10) ---------- */

.case-study { position: relative; }

.case-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.case-title {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.1;
  max-width: 820px;
  margin-bottom: 24px;
}

.case-context {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 720px;
  margin-bottom: 48px;
}

.case-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.case-table th, .case-table td {
  padding: 20px 26px;
  text-align: left;
  font-size: 15.5px;
}
.case-table thead th {
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.case-table tbody tr { border-top: 1px solid var(--border); }
.case-table tbody td:first-child { color: var(--text-muted); }
.case-table tbody td:last-child { color: var(--text); font-weight: 600; }
.case-table tbody td:last-child::before { content: "→ "; color: var(--blue); }

.result-highlight {
  padding: 44px;
  border-radius: var(--radius-lg);
  background: var(--gradient-soft);
  border: 1px solid rgba(91,141,255,0.3);
  text-align: center;
  margin-bottom: 32px;
}
.result-highlight .big {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}

.case-meta {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.case-meta div { font-size: 14.5px; color: var(--text-muted); }
.case-meta strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}
@media (max-width: 760px) { .case-gallery { grid-template-columns: 1fr; } }

.case-gallery-caption {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 40px;
}

.credibility-note {
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 680px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-bottom: 40px;
}

/* ---------- Who it's for (section 11) ---------- */

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 20px;
}
@media (max-width: 900px) { .fit-grid { grid-template-columns: 1fr; gap: 40px; } }

.fit-list li {
  display: flex; gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  font-size: 15.5px;
  color: var(--text-muted);
}
.fit-list li:first-child { border-top: none; }
.fit-list li svg { color: var(--success); width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; }

.category-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.category-chips span {
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
  background: var(--card);
}

.condition-box {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: 15.5px;
}

/* ---------- Human control (section 12) ---------- */

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

.limits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .limits-grid { grid-template-columns: 1fr; gap: 40px; } }

.escalate-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.escalate-list span {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.25);
  color: #ffb3b3;
  font-size: 13.5px;
  font-weight: 500;
}

/* ---------- Process (section 13) ---------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr; gap: 32px; } }

.process-step { position: relative; padding: 0 28px; }
.process-step:first-child { padding-left: 0; }
.process-step:last-child { padding-right: 0; }

.process-step .p-num {
  font-size: 46px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.22);
  margin-bottom: 18px;
  line-height: 1;
}
.process-step h3 { font-size: 19px; margin-bottom: 10px; }
.process-step p { font-size: 15px; color: var(--text-muted); margin: 0; }


.process-close {
  text-align: center;
  max-width: 640px;
  margin: 52px auto 36px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
}

.process-cta { text-align: center; }

/* ---------- FAQ (section 14) ---------- */

.faq-list { max-width: 820px; margin: 56px auto 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 600;
  text-align: left;
}
.faq-q .chev {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--text-dim);
  transition: transform .4s var(--ease);
}
.faq-item.open .faq-q .chev { transform: rotate(45deg); color: var(--blue); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), padding .5s var(--ease);
}
.faq-a p { margin: 0 4px 24px; color: var(--text-muted); font-size: 15.5px; max-width: 700px; }
.faq-item.open .faq-a { max-height: 240px; }

/* ---------- Closing (section 15) ---------- */

.closing {
  padding: 150px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(155,107,255,0.14), transparent 65%);
}

.closing h2 {
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 22px;
}
.closing .lede { margin: 0 auto 40px; text-align: center; }
.closing .cta-row { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---------- Footer (section 16) ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  background: var(--bg-alt);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand img { height: 26px; margin-bottom: 10px; }
.footer-brand p { color: var(--text-dim); font-size: 13.5px; margin: 0; }

.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: var(--text-muted); font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- Mobile sticky CTA ---------- */

.mobile-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
  display: none;
  transform: translateY(120%);
  transition: transform .5s var(--ease);
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta .btn { width: 100%; }

@media (max-width: 760px) {
  .mobile-cta { display: block; }
  .header-cta { display: none; }
}

/* ---------- misc ---------- */

::selection { background: rgba(91,141,255,0.35); color: #fff; }

.badge-soft {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
