/* ===== Design Tokens ===== */
:root {
  --max-width: 1160px;
  --color-bg: #0a1222;
  --color-bg-alt: #0d1a2e;
  --color-surface: #101d33;
  --color-surface-raised: #142542;
  --color-border: #223151;
  --color-text: #e7edf5;
  --color-text-muted: #9aabc4;
  --color-text-faint: #6b7d9c;
  --color-primary: #1fb8a6;
  --color-primary-bright: #2bd9c4;
  --color-primary-dark: #0e8f7f;
  --color-accent-warm: #f2a93b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-elevated: 0 12px 32px -8px rgba(0, 0, 0, 0.55), 0 2px 8px -2px rgba(31, 184, 166, 0.08);
  --shadow-floating: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 4px 12px -4px rgba(31, 184, 166, 0.12);
  --font-heading: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-primary-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  margin: 0 0 0.6em;
}

h1 { font-size: 2.4rem; letter-spacing: -0.02em; }
h2 { font-size: 1.7rem; letter-spacing: -0.015em; margin-top: 2.4em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }

p { margin: 0 0 1.1em; color: var(--color-text-muted); }
p strong, li strong { color: var(--color-text); }

ul, ol { color: var(--color-text-muted); padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 18, 34, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo__img { height: 32px; width: auto; display: block; }

.site-nav {
  display: none;
}
.site-nav ul { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--color-text); text-decoration: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.header-cta {
  display: none;
}

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

/* Mobile dropdown nav */
@media (max-width: 767px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 1rem; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-bright), var(--color-primary-dark));
  color: #06120f;
  box-shadow: var(--shadow-elevated);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-floating); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--color-surface-raised);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-primary); transform: translateY(-1px); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.footer-brand p { max-width: 420px; font-size: 0.9rem; }
.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: 0.9rem;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--color-text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--color-primary-bright); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ===== Generic page content (secondary pages) ===== */
.page-content {
  padding: 3rem 0 2rem;
}
.page-content h1 { font-size: 2rem; }
.page-content .container { max-width: 760px; }
