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

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --blue:       oklch(37% 0.13 256);
  --blue-dark:  oklch(27% 0.11 256);
  --blue-50:    oklch(96.5% 0.018 256);
  --blue-100:   oklch(90% 0.040 256);
  --teal:       oklch(58% 0.11 193);
  --teal-light: oklch(93% 0.040 193);
  --accent:     oklch(53% 0.16 30);
  --accent-dk:  oklch(45% 0.15 30);
  --bg:         oklch(98.5% 0.003 240);
  --surface:    #fff;
  --fg:         oklch(18% 0.011 250);
  --muted:      oklch(50% 0.011 250);
  --border:     oklch(91% 0.006 250);
  --success:    oklch(50% 0.15 145);
  --warn:       oklch(72% 0.17 80);
  --font:       'Inter', -apple-system, system-ui, sans-serif;
  --mono:       ui-monospace, 'JetBrains Mono', monospace;
  --nav-h:      64px;
  --max-w:      1200px;
  --r:          8px;
}

/* ─── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── LAYOUT ──────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--alt  { background: var(--blue-50); }
.section--dark { background: var(--blue); color: #fff; }

/* ─── TYPOGRAPHY ──────────────────────────────────────────────── */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; display: block; }
.h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.lead { font-size: clamp(16px, 1.8vw, 18px); color: var(--muted); line-height: 1.7; }

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-radius: var(--r); cursor: pointer; font-family: var(--font); font-size: 15px; line-height: 1; transition: background .15s; }
.btn-primary   { background: var(--accent); color: #fff; padding: 13px 24px; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-secondary { background: transparent; color: var(--blue); border: 2px solid var(--blue); padding: 11px 22px; }
.btn-secondary:hover { background: var(--blue-50); }
.btn-white { background: #fff; color: var(--blue); padding: 13px 24px; }
.btn-white:hover { background: var(--blue-50); }
.btn-lg { font-size: 16px; padding: 15px 28px; }

/* ─── NAVIGATION ──────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); height: var(--nav-h); }
.nav-inner { display: flex; align-items: center; height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav-logo-mark { width: 32px; height: 32px; background: var(--blue); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.nav-logo-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.nav-logo-sub  { font-size: 11px; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { font-size: 14px; font-weight: 500; padding: 8px 11px; border-radius: 6px; transition: background .12s, color .12s; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.nav-link:hover { background: var(--bg); color: var(--blue); }

.nav-group { position: relative; }
.chevron { font-size: 9px; transition: transform .15s; display: inline-block; }
.nav-group:hover .chevron,
.nav-group:focus-within .chevron { transform: rotate(180deg); }

.mega { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px;
  min-width: 500px; opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s;
  box-shadow: 0 8px 32px oklch(18% .011 250 / .12); z-index: 200; }
.nav-group:hover .mega,
.nav-group:focus-within .mega { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.mega-lbl  { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 0 10px 12px; display: block; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 8px; transition: background .1s; }
.mega-item:hover { background: var(--blue-50); }
.mega-icon { width: 30px; height: 30px; background: var(--blue-100); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; }
.mega-name { font-size: 13px; font-weight: 600; color: var(--fg); display: block; }
.mega-desc { font-size: 11px; color: var(--muted); margin-top: 1px; line-height: 1.35; }
.mega-item:hover .mega-name { color: var(--blue); }
.mega--sm  { min-width: 320px; }

.nav-cta { background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: var(--r); margin-left: 8px; transition: background .15s; }
.nav-cta:hover { background: var(--accent-dk); color: #fff; }

.nav-hamburger { display: none; align-items: center; justify-content: center; padding: 8px; border-radius: 6px; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
footer { background: var(--fg); color: oklch(80% .008 250); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: oklch(62% .01 250); line-height: 1.7; margin: 12px 0 16px; }
.footer-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 15px; }
.footer-logo-mark { width: 28px; height: 28px; background: var(--blue); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.footer-contact a { color: oklch(75% .10 30); font-weight: 600; font-size: 14px; }
.footer-contact a:hover { color: oklch(85% .10 30); }
.footer-h   { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: oklch(55% .01 250); margin-bottom: 12px; }
.footer-lnk { display: block; font-size: 14px; color: oklch(70% .008 250); padding: 3px 0; transition: color .12s; }
.footer-lnk:hover { color: #fff; }
.footer-btm { border-top: 1px solid oklch(28% .01 250); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: oklch(50% .01 250); }
.ms-badge { display: flex; align-items: center; gap: 6px; }
.ms-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* ─── MOBILE ──────────────────────────────────────────────────── */
.mob-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: #fff; border-top: 1px solid var(--border); z-index: 90; }
.mob-cta .btn { width: 100%; justify-content: center; }

.skip { position: absolute; top: -50px; left: 8px; background: var(--blue); color: #fff; padding: 8px 16px; border-radius: 0 0 6px 6px; z-index: 9999; transition: top .1s; font-size: 14px; font-weight: 600; }
.skip:focus { top: 0; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 16px; overflow-y: auto; z-index: 999; gap: 2px;
  }
  .mega { position: static; opacity: 1 !important; pointer-events: all !important;
    transform: none !important; box-shadow: none; border: none; min-width: 0;
    padding: 0 0 8px 20px; border-radius: 0; }
  .mega-grid { grid-template-columns: 1fr; }
  .nav-group { display: flex; flex-direction: column; }
  .nav-group > .nav-link { width: 100%; justify-content: space-between; }
  .nav-cta { margin: 8px 0 0; justify-content: center; padding: 14px; }
  .mob-cta { display: block; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}
