/* ---------- Tokens ---------- */
:root {
  --bg: #0b0c0f;
  --bg-elevated: #131418;
  --bg-card: #17181d;
  --border: #24262c;
  --text: #f2f2f0;
  --text-muted: #9a9ba3;
  --accent: #ffd60a;
  --accent-hover: #ffe14d;
  --accent-soft: rgba(255, 214, 10, 0.12);
  --radius: 14px;
  --font-heading: 'Manrope', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed WebGL starfield — the whole page scrolls as if flying through it */
#space-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
  pointer-events: none;
}

main { perspective: 1400px; }

/* Sections fly in from the depth as they scroll into view */
.reveal {
  opacity: 0;
  transform: translateZ(-280px) rotateX(6deg);
  transition: opacity 1s ease, transform 1s ease;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  overflow: hidden;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateZ(0) rotateX(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

p { margin: 0 0 16px; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

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

.text-accent { color: var(--accent); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow.center { text-align: center; }
.hero-note.center { text-align: center; }

.section { padding: 96px 0; }
.section-title { font-size: clamp(28px, 4vw, 40px); }
.section-title.center { text-align: center; }
.section-sub { max-width: 620px; font-size: 17px; }
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 24px; min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > * { min-width: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #0b0c0f;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.logo-dot { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

.nav a.header-cta,
.nav a.header-cta:hover {
  color: #0b0c0f;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 80px;
  background: radial-gradient(600px 300px at 15% 0%, var(--accent-soft), transparent 60%);
}

.hero-inner {
  max-width: 780px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.hero-inner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 { font-size: clamp(36px, 6vw, 60px); }

.hero-sub { font-size: 18px; max-width: 620px; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  color: var(--accent);
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 0;
  opacity: 0.7;
}

/* ---------- Problem cards ---------- */
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.problem-card h3 { font-size: 19px; margin-bottom: 10px; }
.problem-card p { margin-bottom: 0; font-size: 15px; }

/* ---------- Services ---------- */
.services { background: rgba(19, 20, 24, 0.55); }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.service-icon {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 16px;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 15px; margin-bottom: 0; }

/* ---------- Sectors ---------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tag {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Academy ---------- */
.academy-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}

.check-list { margin-bottom: 32px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.academy-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}
.visual-card {
  aspect-ratio: 1;
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}
.visual-card-1 { background: var(--accent-soft); border-color: var(--accent); }
.visual-card-2 { background: var(--bg-card); margin-top: 24px; }
.visual-card-3 { background: var(--bg-card); margin-bottom: 24px; }
.visual-card-4 { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- Results ---------- */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.result-card h3 { font-size: 18px; margin-bottom: 14px; }
.result-stat { font-size: 16px; color: var(--text); margin-bottom: 4px; }
.result-stat strong { color: var(--accent); }
.result-roas { font-size: 14px; margin-bottom: 0; }
.result-roas strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.contact-link {
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s ease;
}
.contact-link:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--text-muted); }

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  font-size: 14px;
  min-height: 20px;
  margin: 0;
  color: var(--accent);
}

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-size: 21px;
  margin-top: 40px;
}
.legal-list { margin-bottom: 16px; }
.legal-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.legal-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--text-muted); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-muted); margin: 0; width: 100%; order: 3; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .academy-inner, .contact-inner { grid-template-columns: 1fr; }
  .academy-visual { order: -1; max-width: 360px; }
}

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

  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
  }
  .site-header.nav-open .header-cta {
    margin-top: 4px;
  }

  .section { padding: 64px 0; }
  .hero { padding: 72px 0 56px; }
  .hero-stats { gap: 28px; }
}
