/* ── Ghost Trax — shared styles ─────────────────────────────────────────────
   All pages link to this file. Page-specific styles live in a <style> block
   on each page. Do not put page-specific rules here.
──────────────────────────────────────────────────────────────────────────── */

/* ── Design tokens ── */
:root {
  --text:         rgba(255, 255, 255, 0.92);
  --text-soft:    rgba(255, 255, 255, 0.62);
  --text-muted:   rgba(255, 255, 255, 0.38);
  --green:        #a0dc98;
  --green-dim:    rgba(160, 220, 152, 0.12);
  --green-border: rgba(160, 220, 152, 0.25);
  --stroke:       rgba(255, 255, 255, 0.10);
  --card:         rgba(0,   0,   0,   0.22);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; padding: 0; }

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #080c08;
  overflow-x: hidden;
}

/* ── Forest background ── */
.bg {
  position: fixed;
  inset: 0;
  background-image: url("forest.png");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
  z-index: 0;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 12, 8, 0.50) 0%,
    rgba(8, 12, 8, 0.72) 40%,
    rgba(8, 12, 8, 0.95) 100%
  );
}

/* ── Nav bar ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand em {
  font-style: normal;
  color: var(--green);
}

/* Burger button */
.nav-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-menu-btn:hover { background: rgba(255, 255, 255, 0.08); }
.nav-menu-btn span {
  display: block;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer */
.nav-drawer {
  position: fixed;
  top: 52px; left: 0; right: 0;
  z-index: 99;
  background: rgba(6, 10, 6, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-drawer.open { max-height: 320px; }

.nav-drawer a {
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.15s, background 0.15s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-drawer a.active { color: var(--green); }

/* ── Page layout ── */
main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 72px 24px 80px;
}

/* ── Glass card ── */
.card {
  width: min(680px, 100%);
  align-self: flex-start;
  border-radius: 18px;
  padding: 32px 36px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
  .card { padding: 24px 20px; }
}

/* ── Shared typography ── */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 12px;
}

h1 {
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 8px;
  letter-spacing: -0.01em;
}
h2:first-of-type { margin-top: 0; }

p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 10px;
}

ul, ol {
  margin: 0 0 12px;
  padding-left: 20px;
}
li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0 0 6px;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.divider {
  width: 100%;
  height: 1px;
  background: var(--stroke);
  margin: 4px 0 24px;
}

.updated {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--stroke);
  transition: transform 0.1s ease, background 0.15s ease;
  -webkit-appearance: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--green-dim);
  border-color: var(--green-border);
  color: var(--green);
}
.btn-primary:hover { background: rgba(160, 220, 152, 0.20); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-soft);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

/* ── Contact / info box ── */
.contact-box {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── Scroll-reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}
