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

:root {
  --color-bg: #0f1117;
  --color-surface: #1a1d2e;
  --color-surface-2: #232640;
  --color-primary: #f7931a;
  --color-primary-dim: rgba(247,147,26,0.12);
  --color-text: #e8eaf0;
  --color-muted: #8a8fa8;
  --color-border: #2a2d3e;
  --color-success: #22c55e;
  --color-white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1160px;
  --shadow-card: 0 4px 24px rgba(247,147,26,0.10);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
}

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

html {
  scroll-behavior: smooth;
}

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

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-white);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.25rem); }

p { margin-bottom: 1rem; color: var(--color-text); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
a:hover { opacity: 0.8; }

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

/* ── Header ── */
.site-header {
  background: rgba(15,17,23,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.site-logo__img {
  height: 40px;
  width: auto;
  display: block;
}

.site-nav {
  display: none;
  gap: 2rem;
}
.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--color-white); }

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

.header-cta {
  display: none;
  padding: 0.45rem 1.1rem;
  background: var(--color-primary);
  color: #000 !important;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.header-cta:hover { opacity: 0.88; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
}
.site-footer__brand p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
  max-width: 300px;
}
.site-footer__links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}
.site-footer__links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer__links ul a {
  font-size: 0.875rem;
  color: var(--color-muted);
}
.site-footer__links ul a:hover { color: var(--color-text); }
.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}
.site-footer__disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ── Mobile nav open state ── */
@media (max-width: 767px) {
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    gap: 1rem;
    z-index: 99;
  }
}

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

  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
