/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-navy:      #0f172a;
  --color-slate:     #1e293b;
  --color-blue:      #2563eb;
  --color-blue-dark: #1d4ed8;
  --color-blue-light:#dbeafe;
  --color-muted:     #475569;
  --color-gray:      #64748b;
  --color-light:     #94a3b8;
  --color-border:    #e2e8f0;
  --color-bg:        #f8fafc;
  --color-surface:   #ffffff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-max: 1100px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm:   0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-card: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);

  --transition:      150ms ease;
  --transition-slow: 300ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-navy);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.section { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-gray);
  font-size: 1.125rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--color-blue);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition);
  border: 2px solid transparent;
}

.btn-primary:hover { background: var(--color-blue-dark); }

.btn-secondary {
  display: inline-block;
  background: var(--color-surface);
  color: var(--color-navy);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.btn-secondary:hover {
  border-color: var(--color-light);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  display: inline-block;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.3);
  transition: background var(--transition), border-color var(--transition);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
}

.btn-login {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: border-color var(--transition), color var(--transition);
}

.btn-login:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.badge-blue  { background: var(--color-blue-light); color: var(--color-blue-dark); }
.badge-green { background: #dcfce7; color: #166534; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  flex-shrink: 0;
  transition: color var(--transition);
  line-height: 1;
}

.logo:hover { color: var(--color-blue); }

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--color-blue); }
.nav-menu a.active { font-weight: 600; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-close {
  display: none;
  align-self: flex-end;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.nav-close svg { width: 20px; height: 20px; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-surface);
    z-index: 300;
    padding: 20px 24px;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
  }

  .nav-close { display: flex; }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 32px;
  }

  .nav-menu ul li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu ul li:last-child { border-bottom: none; }

  .nav-menu a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .nav-menu a.btn-login {
    margin-top: 12px;
    display: inline-block;
    padding: 10px 20px;
  }

  body.nav-open .nav-menu  { transform: translateX(0); }
  body.nav-open .nav-overlay { display: block; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-navy);
  color: var(--color-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--color-light);
  max-width: 200px;
  line-height: 1.7;
}

.footer-col h4 {
  color: #f1f5f9;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  color: var(--color-light);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-gray);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-slate) 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 14px;
}

.page-hero p {
  color: #cbd5e1;
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--color-slate);
  color: white;
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-band p {
  color: #94a3b8;
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 32px;
}

.cta-band-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
