@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Crimson+Pro:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #090d08;
  --surface:   #111710;
  --surface2:  #192118;
  --border:    #2a3828;
  --border2:   #3d5238;
  --gold:      #c9a84c;
  --gold-dim:  #7a6430;
  --green:     #4a7c59;
  --green-dim: #2e5038;
  --text:      #ddd8cc;
  --text-dim:  #8a9a82;
  --text-faint:#4a5a44;
  --mono:      'Space Mono', monospace;
  --serif:     'Cormorant', serif;
  --body:      'Crimson Pro', Georgia, serif;
  --radius:    4px;
  --gutter:    clamp(1.5rem, 5vw, 4rem);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ───────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; font-weight: 400; }

p { max-width: 65ch; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }

.mono { font-family: var(--mono); font-size: 0.82em; }
.serif { font-family: var(--serif); }

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--border);
  background: rgba(9,13,8,0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-dim);
  transition: all .3s;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
main { padding-top: 5rem; position: relative; z-index: 1; }

.section {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
}
.section--dark { background: var(--surface); }
.section--mid  { background: var(--surface2); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: var(--gutter);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(74,124,89,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(201,168,76,0.05) 0%, transparent 50%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--green);
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
  margin-bottom: 3rem;
  max-width: 55ch;
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  transition: all .25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: #dab95a;
  color: var(--bg);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  font-size: 0.68rem;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border2);
}

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .3s, transform .3s;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.card-accent {
  border-top: 2px solid var(--gold);
}
.card-green {
  border-top: 2px solid var(--green);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}
.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  margin-bottom: 1.2rem;
}
.section-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 60ch;
  font-weight: 300;
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ── CALLOUT ─────────────────────────────────────────────── */
.callout {
  border-left: 2px solid var(--gold);
  padding: 1.2rem 1.8rem;
  background: rgba(201,168,76,0.05);
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout-green {
  border-color: var(--green);
  background: rgba(74,124,89,0.05);
}

/* ── TAG / BADGE ─────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--text-dim);
}
.tag-gold { border-color: var(--gold-dim); color: var(--gold); }
.tag-green { border-color: var(--green-dim); color: var(--green); }

/* ── STEP LIST ───────────────────────────────────────────── */
.step-list { list-style: none; }
.step-list li {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.step-list li:last-child { border-bottom: none; }

.step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  min-width: 2rem;
  padding-top: 0.2rem;
}
.step-content h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.step-content p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--text-dim); }
.footer-copy {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-faint);
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 4rem; left: 0; right: 0;
    background: var(--surface);
    padding: 2rem var(--gutter);
    border-bottom: 1px solid var(--border);
    gap: 1.5rem;
  }
}

/* ── UTILITY ─────────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.flex { display: flex; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
