/* ─────────────────────────────────────────────
   base.css — shared foundation for every page
   ───────────────────────────────────────────── */

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

/* ── Design tokens ── */
:root {
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-50: #f5f5f7;
  --gray-100: #ebebef;
  --gray-200: #d4d4d8;
  --gray-300: #a1a1aa;
  --gray-400: #71717a;
  --gray-500: #52525b;
  --gray-600: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;
  --black: #171821;

  --accent: #4a4aff;
  --accent-muted: rgba(74, 74, 255, 0.08);

  --max-w: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Typography ── */
h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
p {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Eyebrow label ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--gray-500);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo img {
  height: 30px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gray-900);
}
.btn-sm {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-sm:hover {
  background: #3d3dd9;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--gray-500);
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ── Footer ── */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--gray-100);
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer .footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
footer .logo img {
  height: 56px;
  width: auto;
}
footer .footer-certs {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 24px;
  border-left: 1px solid var(--gray-100);
}
footer .footer-certs a {
  display: block;
}
footer .footer-certs img {
  height: 128px;
  width: auto;
}
footer .footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
footer p {
  font-size: 0.68rem;
  color: var(--gray-300);
  margin: 0;
}
footer a {
  color: var(--gray-400);
  text-decoration: none;
}
footer a:hover {
  color: var(--gray-500);
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-50);
    width: 100%;
    font-size: 0.95rem;
  }
  .nav-link:last-of-type {
    border-bottom: none;
  }
  .nav-links .btn-sm {
    margin-top: 8px;
    text-align: center;
    display: block;
    padding: 14px 20px;
  }
}

/* ── Mobile footer ── */
@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }
  footer {
    padding: 32px 0;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  footer .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  footer .footer-certs {
    padding-left: 0;
    border-left: none;
  }
  footer .footer-certs img {
    height: 80px;
  }
  footer .footer-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  footer .logo img {
    height: 40px;
  }
}
