/* ============================================================
   COGNITIO — Decision Intelligence
   Stylesheet v2 · brand-accurate · mobile-hardened
   Palette: Columbia Blue #c8e6f3 · Blue #3551ef · Black · White
   ============================================================ */

:root {
  --bg:          #080b14;
  --bg-1:        #0a0f1f;
  --surface:     #0e1426;
  --surface-2:   #131b30;
  --surface-3:   #1b2440;

  --line:        rgba(200, 230, 243, 0.10);
  --line-2:      rgba(200, 230, 243, 0.20);
  --line-3:      rgba(200, 230, 243, 0.32);

  --blue:        #3551ef;
  --blue-bright: #5a72ff;
  --blue-deep:   #1f2db2;
  --blue-soft:   rgba(53, 81, 239, 0.12);
  --columbia:    #c8e6f3;

  --text:        #f1f5fb;
  --text-mute:   #97a5c2;
  --text-dim:    #66738f;

  --ff-display:  'Red Hat Display', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-mono:     'Red Hat Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw:        1240px;
  --radius:      4px;
  --radius-lg:   8px;
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--ff-display);
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 104px 0; position: relative; overflow: hidden; }
.section--tight { padding: 72px 0; }
.section-divider { border-top: 1px solid var(--line); }
body > section:nth-of-type(even) { background-color: rgba(200, 230, 243, 0.022); }

.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 80%);
  opacity: 0.5;
}
.glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(110px); opacity: 0.45;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.h-xl  { font-size: clamp(2.15rem, 6vw, 4.4rem); font-weight: 900; line-height: 1.06; }
.h-lg  { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.h-md  { font-size: clamp(1.45rem, 3.4vw, 2.05rem); }
.h-sm  { font-size: clamp(1.1rem, 2.4vw, 1.22rem); font-weight: 700; }
.lead  { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--text-mute); line-height: 1.62; }
.muted { color: var(--text-mute); }
.dim   { color: var(--text-dim); }
.accent { color: var(--columbia); }
p { overflow-wrap: break-word; }
strong { color: var(--text); font-weight: 700; }
em { color: var(--columbia); font-style: normal; }

.eyebrow {
  font-family: var(--ff-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--columbia);
  display: inline-flex; align-items: center; gap: 10px; line-height: 1.5;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--blue-bright); flex: none; }
.eyebrow--plain::before { display: none; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 16px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  padding: 13px 24px; border-radius: var(--radius); text-align: center;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-bright); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--columbia); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 0.98rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 27px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 600; color: var(--text-mute);
  padding: 8px 13px; border-radius: var(--radius);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); background: rgba(200,230,243,0.06); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.lang-switch button {
  font-family: var(--ff-mono); font-size: 0.74rem; font-weight: 500;
  padding: 7px 10px; color: var(--text-dim); transition: color 0.2s, background 0.2s;
}
.lang-switch button.is-active { background: var(--blue); color: #fff; }
.lang-switch button:not(.is-active):hover { color: var(--text); }

.nav-toggle {
  display: none; width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  position: fixed; inset: 72px 0 0; z-index: 99;
  background: var(--bg);
  padding: 26px 28px 48px;
  transform: translateY(-10px); opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.3rem; font-weight: 800; padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a span { font-family: var(--ff-mono); font-size: 0.78rem; color: var(--text-dim); font-weight: 500; }
.mobile-menu .btn { margin-top: 24px; }
.mobile-menu .lang-switch { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 38px;
  padding-bottom: 46px; border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 26px; margin-bottom: 17px; }
.footer-brand p { color: var(--text-mute); font-size: 0.94rem; max-width: 300px; }
.footer-col h4 {
  font-size: 0.72rem; font-family: var(--ff-mono); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px;
}
.footer-col a { display: block; color: var(--text-mute); font-size: 0.94rem; padding: 6px 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--columbia); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; font-size: 0.82rem; color: var(--text-dim);
}
.footer-base .ff-mono { font-family: var(--ff-mono); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
  transition: border-color 0.28s var(--ease), transform 0.28s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card-index { font-family: var(--ff-mono); font-size: 0.76rem; color: var(--text-dim); letter-spacing: 0.08em; }
.card h3 { margin: 13px 0 9px; }
.card p { color: var(--text-mute); font-size: 0.95rem; }

.icon-box {
  width: 50px; height: 50px; border-radius: var(--radius); flex: none;
  background: var(--blue-soft); border: 1px solid rgba(53,81,239,0.34);
  display: flex; align-items: center; justify-content: center; color: var(--columbia);
}
.icon-box svg { width: 23px; height: 23px; }
.icon-box--sm { width: 40px; height: 40px; }
.icon-box--sm svg { width: 19px; height: 19px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--wide-left { grid-template-columns: 1.12fr 0.88fr; }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-num { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.stat-num .accent { color: var(--columbia); }
.stat-label { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-top: 9px; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--text-mute);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--columbia); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Feature list ---------- */
.flist { display: flex; flex-direction: column; }
.flist li { display: flex; gap: 13px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); }
.flist li:last-child { border-bottom: none; }
.flist .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-soft); border: 1px solid rgba(53,81,239,0.4);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.flist .tick svg { width: 12px; height: 12px; color: var(--columbia); }
.flist .ftext strong { display: block; font-size: 0.97rem; }
.flist .ftext span { font-size: 0.89rem; color: var(--text-mute); }

/* ---------- Mini list ---------- */
.mini-list { display: flex; flex-direction: column; gap: 9px; }
.mini-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--text-mute); }
.mini-list li svg { width: 14px; height: 14px; color: var(--columbia); flex: none; margin-top: 4px; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: 70px 0 60px; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; }
.crumb { font-family: var(--ff-mono); font-size: 0.74rem; color: var(--text-dim); letter-spacing: 0.1em; margin-bottom: 20px; }
.crumb a:hover { color: var(--columbia); }
.page-hero h1 { max-width: 920px; margin-bottom: 20px; }
.page-hero .lead { max-width: 620px; }

/* ---------- Figure / diagrams ---------- */
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.figure--pad { padding: 32px; }
.figure > svg, .figure > .scroll-x > svg, .hero-fig > svg { width: 100%; height: auto; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.scroll-x > svg { min-width: 620px; }
.scroll-hint { display: none; font-family: var(--ff-mono); font-size: 0.7rem; color: var(--text-dim); margin-top: 9px; }
.figure-cap {
  display: flex; gap: 9px; align-items: center;
  font-family: var(--ff-mono); font-size: 0.72rem; color: var(--text-dim);
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 16px;
}
.figure-cap::before { content: ""; width: 13px; height: 1px; background: var(--line-3); flex: none; }

/* ---------- Steps ---------- */
.steps { display: grid; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--ff-mono); font-size: 0.9rem; font-weight: 600;
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--columbia);
}
.step h3 { margin-bottom: 7px; }
.step p { color: var(--text-mute); font-size: 0.95rem; }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 60px 48px; text-align: center;
}
.cta-panel h2 { max-width: 640px; margin: 0 auto 14px; }
.cta-panel .lead { max-width: 520px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ---------- Callout ---------- */
.callout { border-left: 2px solid var(--blue-bright); padding: 14px 0 14px 22px; color: var(--text-mute); font-size: 1rem; }
.callout cite { display: block; margin-top: 9px; font-style: normal; font-family: var(--ff-mono); font-size: 0.76rem; color: var(--text-dim); }

/* ---------- Trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 9px; color: var(--text-mute); font-size: 0.86rem; }
.trust-item svg { width: 17px; height: 17px; color: var(--columbia); flex: none; }

/* ---------- Accordion ---------- */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-child { border-top: 1px solid var(--line); }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 21px 2px; cursor: pointer; width: 100%; text-align: left; }
.acc-head strong { font-size: 1.02rem; }
.acc-ico { flex: none; width: 19px; height: 19px; color: var(--text-mute); transition: transform 0.3s var(--ease); }
.acc-item.is-open .acc-ico { transform: rotate(45deg); color: var(--columbia); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.34s var(--ease); }
.acc-item.is-open .acc-body { max-height: 420px; }
.acc-body p { color: var(--text-mute); font-size: 0.96rem; padding: 0 2px 22px; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.field input, .field select, .field textarea {
  font-size: 0.96rem; color: var(--text); width: 100%;
  background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 12px 13px; transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-bright); }
.field textarea { resize: vertical; min-height: 124px; }
.field select { appearance: none; -webkit-appearance: none; }

/* ---------- Entrance animation (CSS only) ---------- */
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeup 0.6s var(--ease) both; }
.reveal[data-delay="1"] { animation-delay: 0.07s; }
.reveal[data-delay="2"] { animation-delay: 0.14s; }
.reveal[data-delay="3"] { animation-delay: 0.21s; }
.reveal[data-delay="4"] { animation-delay: 0.28s; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 40px; }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-actions .lang-switch, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .split, .split--wide-left { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cta-panel { padding: 48px 32px; }
}
@media (max-width: 760px) { .scroll-hint { display: block; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .section--tight { padding: 48px 0; }
  .glow { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .stat-band { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding: 26px 20px; }
  .stat:last-child { border-bottom: none; }
  .card { padding: 24px; }
  .cta-panel { padding: 38px 22px; }
  .figure, .figure--pad { padding: 18px; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; }
  .step-num { width: 38px; height: 38px; font-size: 0.82rem; }
  .section-head { margin-bottom: 36px; }
  .page-hero { padding: 48px 0 44px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .container { padding: 0 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: 12px 18px; font-size: 0.9rem; }
  .btn--lg { padding: 14px 20px; }
}
