/* ClearStack — Shared Styles */
/* Palette: Navy #1B2A4A · Slate #3D5A80 · Ice #E8F1F8 · White #FAFCFF · Green #2ECC8A · Amber #F4A623 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1B2A4A;
  --slate:  #3D5A80;
  --ice:    #E8F1F8;
  --white:  #FAFCFF;
  --green:  #2ECC8A;
  --amber:  #F4A623;
  --red:    #D93025;
  --text:   #1B2A4A;
  --muted:  #5A7399;
  --border: #D0DFF0;
  --radius: 8px;
  --max-w:  1120px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--white); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ─── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
p  { color: #2C3E5A; line-height: 1.7; }
a  { color: var(--slate); text-decoration: none; }
a:hover { color: var(--navy); }
code, .mono { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; background: var(--ice); padding: 2px 7px; border-radius: 4px; color: var(--navy); }

/* ─── Layout ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.section--ice { background: var(--ice); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.8); }
.section--navy h2 { color: var(--white); }

/* ─── Navigation ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 32px;
}
.nav__logo {
  font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.nav__logo span { color: var(--slate); }
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  padding: 6px 14px; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav__links a:hover, .nav__links a.active { background: var(--ice); color: var(--navy); }
.nav__cta {
  background: var(--slate); color: var(--white) !important;
  padding: 8px 18px !important; border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}
.nav__cta:hover { background: var(--navy) !important; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all 0.15s; }
.btn--primary { background: var(--slate); color: var(--white); }
.btn--primary:hover { background: var(--navy); color: var(--white); }
.btn--outline { background: transparent; color: var(--slate); border: 1.5px solid var(--border); }
.btn--outline:hover { border-color: var(--slate); background: var(--ice); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--sm { padding: 8px 16px; font-size: 0.875rem; }

/* ─── Badge / Tag ─────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 12px; border-radius: 100px; }
.badge--green  { background: rgba(46,204,138,0.12); color: #1a9966; }
.badge--slate  { background: rgba(61,90,128,0.10); color: var(--slate); }
.badge--amber  { background: rgba(244,166,35,0.12); color: #b07610; }
.badge--navy   { background: rgba(27,42,74,0.08); color: var(--navy); }

/* ─── Cards ───────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 28px 28px 24px; }
.card:hover { border-color: var(--slate); box-shadow: 0 4px 20px rgba(27,42,74,0.08); }
.card--flat { box-shadow: none; transition: border-color 0.15s, box-shadow 0.15s; }

/* ─── Grid helpers ────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ─── Hero utilities ──────────────────────────────────────── */
.eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); margin-bottom: 16px; display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.section-header { max-width: 640px; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }

/* ─── Divider ─────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── Footer ──────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 40px 24px; font-size: 0.875rem; }
.footer__inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__logo { font-size: 1rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.footer__logo span { color: rgba(255,255,255,0.5); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer__links a:hover { color: var(--white); }
