/* ============================================================
   global.css — Reset, Typography, Header, Footer, Layout
   ============================================================ */

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

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --color-primary:   #2563EB;
  --color-primary-d: #1D4ED8;
  --color-accent:    #00DC82;
  --color-accent-d:  #00B96A;
  --color-dark:      #0D1B3E;
  --color-dark-2:    #162040;
  --color-surface:   #F5F7FA;
  --color-border:    #E2E8F0;
  --color-text:      #1A1A2E;
  --color-muted:     #64748B;
  --color-white:     #FFFFFF;

  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --max-width: 1160px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.375rem, 3vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
p  { color: var(--color-muted); line-height: 1.75; }
strong { color: var(--color-text); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.625rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9375rem;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--color-primary-d);
  box-shadow: 0 6px 20px rgba(37,99,235,.45);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-dark);
  box-shadow: 0 4px 14px rgba(0,220,130,.30);
}
.btn-accent:hover {
  background: var(--color-accent-d);
  box-shadow: 0 6px 20px rgba(0,220,130,.40);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline:hover { border-color: var(--color-white); background: rgba(255,255,255,.08); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__img  { height: 36px; width: auto; display: block; }
.site-logo__text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.site-logo__text span { color: var(--color-primary); }

/* Nav */
.site-nav {
  display: none;
  flex: 1;
}
.site-nav__list {
  display: flex;
  gap: .25rem;
  align-items: center;
}
.site-nav__list a {
  padding: .5rem .75rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--color-muted);
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.site-nav__list a:hover,
.site-nav__list a.active {
  color: var(--color-primary);
  background: rgba(37,99,235,.06);
}

/* Header CTA */
.site-header__cta {
  margin-left: auto;
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav open state */
@media (max-width: 767px) {
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: .75rem 1.25rem 1rem;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: .125rem;
  }
  .site-nav.is-open .site-nav__list a {
    display: block;
    width: 100%;
    padding: .625rem .875rem;
  }
  .site-header__cta { display: none; }
}

@media (min-width: 768px) {
  .site-nav   { display: flex; }
  .nav-toggle { display: none; }
  .site-header__cta { display: inline-flex; }
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 2rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.site-footer__brand p {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  margin-top: .75rem;
  line-height: 1.6;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer-logo__text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -.02em;
}
.footer-logo__text span { color: var(--color-accent); }

.site-footer__col h4 {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.site-footer__col ul { display: flex; flex-direction: column; gap: .5rem; }
.site-footer__col ul a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}
.site-footer__col ul a:hover { color: var(--color-accent); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.site-footer__bottom p,
.site-footer__bottom a {
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
}
.site-footer__bottom a:hover { color: rgba(255,255,255,.7); }

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  align-items: center;
}
.footer-badge {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}
.footer-badge svg { opacity: .6; flex-shrink: 0; }

/* ── Section Utilities ────────────────────────────────────── */
.section { padding: 4rem 0; }
.section--surface { background: var(--color-surface); }
@media (min-width: 768px) {
  .section { padding: 5.5rem 0; }
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section__header p {
  margin-top: .75rem;
  font-size: 1.0625rem;
}

/* ── Eyebrow Label ────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .75rem;
}

/* ── Badge / Pill ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.badge--green  { background: rgba(0,220,130,.12); color: #059669; }
.badge--blue   { background: rgba(37,99,235,.10); color: var(--color-primary); }
.badge--orange { background: rgba(249,115,22,.10); color: #ea580c; }
.badge--gray   { background: var(--color-surface); color: var(--color-muted); }
