/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --color-bg:          #0B1120;
  --color-surface:     #141E33;
  --color-surface-2:   #1C2A45;
  --color-border:      #263352;
  --color-accent:      #22C55E;
  --color-accent-dim:  #16A34A;
  --color-gold:        #F59E0B;
  --color-text:        #E2E8F0;
  --color-text-muted:  #94A3B8;
  --color-text-dim:    #64748B;
  --color-danger:      #EF4444;
  --radius:            8px;
  --radius-lg:         12px;
  --max-width:         1160px;
  --shadow-card:       0 4px 24px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

main {
  min-height: 60vh;
  padding-bottom: 4rem;
}

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); font-weight: 600; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); font-weight: 600; margin-top: 1.75rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--color-accent-dim); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

strong { font-weight: 600; color: var(--color-text); }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo__img { height: 44px; width: 240px; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--color-text);
  background: var(--color-surface);
  text-decoration: none;
}
.site-nav a.active {
  color: var(--color-accent);
  background: rgba(34, 197, 94, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-toggle:hover { color: var(--color-text); background: var(--color-surface); }
.nav-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ── Mobile Nav ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.65rem 1rem; }
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 0;
  margin-top: 4rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.site-footer__logo { margin-bottom: 1rem; }
.site-footer__logo img { opacity: 0.85; }

.site-footer__tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.site-footer__disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  line-height: 1.6;
  max-width: 520px;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}
.site-footer__nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.site-footer__nav a:hover { color: var(--color-accent); text-decoration: none; }

.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}
.site-footer__bottom p {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin: 0;
}

/* ── Static Pages ──────────────────────────────────────────────────────────── */
.page-content {
  padding: 3rem 0 4rem;
  max-width: 780px;
}

.page-content h1 { margin-bottom: 1.5rem; }
.page-content h2 { margin-top: 2.25rem; }

.contact-email {
  font-size: 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: inline-block;
  margin: 1rem 0;
}

/* ── Responsive footer ─────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
