/* =========================================================
   STRATA — AI analytics. Shared design system.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Surfaces — warm off-white canvas, near-black ink */
  --bg:        #F7F6F1;
  --surface:   #FFFFFF;
  --ink:       #16181C;   /* near-black warm */
  --ink-panel: #111317;   /* dark section bg */
  --ink-panel-2:#181B20;

  /* Text */
  --text:      #16181C;
  --text-soft: #5B5E66;
  --text-mute: #8A8D95;
  --text-onink:#EDEDE7;
  --text-onink-soft:#9A9DA3;

  /* Lines */
  --line:      #E2E0D8;
  --line-2:    #D6D4CA;
  --line-ink:  #2A2D33;

  /* Accent — electric chartreuse */
  --accent:    #C8F24E;
  --accent-2:  #B6E63B;
  --accent-ink:#1A2206;  /* readable text on accent */

  /* Secondary accent for charts only */
  --cobalt:    #5B7FFF;
  --coral:     #FF7A59;

  /* Type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}
.eyebrow.on-ink { color: var(--text-onink-soft); }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.h-hero { font-size: clamp(44px, 6.6vw, 88px); line-height: 0.98; letter-spacing: -0.035em; }
.h1 { font-size: clamp(38px, 4.6vw, 60px); }
.h2 { font-size: clamp(30px, 3.4vw, 44px); }
.h3 { font-size: clamp(21px, 2vw, 26px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--text-soft); line-height: 1.55; }
.measure { max-width: 620px; }
.measure-sm { max-width: 480px; }

.mono-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--text-onink); }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-onink { background: var(--accent); color: var(--accent-ink); }
.btn-onink-ghost { background: transparent; color: var(--text-onink); border-color: var(--line-ink); }
.btn-onink-ghost:hover { border-color: var(--text-onink); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--ink);
  position: relative; flex: none;
  display: grid; place-items: center;
}
.brand-mark::before, .brand-mark::after {
  content:""; position:absolute; background: var(--accent); border-radius: 1.5px;
}
.brand-mark::before { width: 4px; height: 9px; left: 7px; bottom: 7px; }
.brand-mark::after  { width: 4px; height: 13px; right: 7px; bottom: 7px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text-soft);
  padding: 8px 14px; border-radius: 100px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-panel); color: var(--text-onink); padding: 78px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h5 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-onink-soft); margin: 0 0 18px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--text-onink-soft); font-size: 15px; transition: color .15s; }
.footer ul a:hover { color: var(--text-onink); }
.footer .brand { color: var(--text-onink); margin-bottom: 18px; }
.footer .brand-mark { background: var(--accent); }
.footer .brand-mark::before, .footer .brand-mark::after { background: var(--ink-panel); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line-ink); color: var(--text-onink-soft); font-size: 13.5px; font-family: var(--mono); }
.footer-note { max-width: 300px; color: var(--text-onink-soft); font-size: 14.5px; line-height: 1.55; }

/* ---------- Cards / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--text-soft); background: var(--surface);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Dark section ---------- */
.ink-section { background: var(--ink-panel); color: var(--text-onink); }
.ink-section .lead { color: var(--text-onink-soft); }
.ink-section .h2, .ink-section .h1, .ink-section .h3 { color: var(--text-onink); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 76px 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 70px 0 auto 0; z-index: 99;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 18px 28px 26px;
  display: none; flex-direction: column; gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 6px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }
