:root {
  --bg: #050b08;
  --bg-alt: #081410;
  --panel: #0a1f16;
  --panel-border: #163527;
  --green-deep: #0d3d26;
  --green-mid: #14804f;
  --green-bright: #22e07a;
  --green-glow: #6dffb0;
  --text: #eafff2;
  --text-muted: #7fa08d;
  --text-dim: #4f6b5d;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }
code {
  font-family: var(--font-mono);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--green-glow);
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--green-bright);
}
.eyebrow.center { text-align: center; }

.center { text-align: center; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--green-glow); outline-offset: 2px; }

.btn-primary {
  background: var(--green-bright);
  color: #04150c;
  box-shadow: 0 0 24px rgba(34, 224, 122, 0.35);
}
.btn-primary:hover { background: var(--green-glow); }

.btn-outline {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--green-bright); color: var(--green-bright); }

.btn-ghost {
  background: transparent;
  color: var(--green-bright);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--green-deep);
}
.btn-ghost:hover { border-color: var(--green-bright); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 11, 8, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 32px; height: 32px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.9rem; color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--green-bright); }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, black 45%, transparent 95%);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero .eyebrow { display: block; margin-bottom: 1.2rem; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--green-bright), var(--green-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 1.6rem auto 0;
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-ctas {
  margin-top: 2.2rem;
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.ticker {
  position: relative; z-index: 1;
  width: 100%;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  background: rgba(10, 31, 22, 0.6);
  overflow: hidden;
  margin-top: 3rem;
  padding: 0.7rem 0;
}
.ticker-track {
  display: flex; gap: 2.5rem; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.85rem;
  animation: scroll-ticker 22s linear infinite;
}
@keyframes scroll-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tick { color: var(--text-muted); }
.tick .up { color: var(--green-bright); }
.tick .down { color: #ff6b6b; }

/* SECTIONS */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}
.section.alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}
.section.alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section.alt .launch-grid,
.section.alt .launch-flow,
.section.alt .socials { max-width: 1100px; }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-top: 0.6rem;
  max-width: 700px;
}
.section-sub {
  color: var(--text-muted);
  max-width: 620px;
  margin-top: 1rem;
}
.board-note {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 0.6rem;
}

/* THE EXTRACTOR */
.rig {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) {
  .rig { grid-template-columns: 1fr; }
}
.rig-main { display: flex; flex-direction: column; align-items: center; text-align: center; }

.drill-btn {
  width: 100%; max-width: 340px;
  padding: 2.2rem 1rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.drill-btn:active,
.drill-btn.active {
  box-shadow: 0 0 40px rgba(34, 224, 122, 0.45);
  border-color: var(--green-bright);
  transform: scale(0.99);
}
.drill-btn:focus-visible { outline: 2px solid var(--green-glow); outline-offset: 3px; }

.rig-stats {
  display: flex; gap: 2rem; margin-top: 2rem;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-value {
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; color: var(--text);
}
.stat-label {
  font-size: 0.75rem; color: var(--text-dim); margin-top: 0.2rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.rig-hint {
  margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim);
}

.strata {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
}
.strata-td {
  text-align: right; color: var(--text-dim); font-size: 0.7rem; margin-bottom: 0.5rem;
}
.strata-layer {
  padding: 0.9rem 0.7rem;
  border-top: 1px solid var(--panel-border);
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.strata-layer.passed { color: var(--green-glow); background: rgba(34, 224, 122, 0.06); }
.strata-layer.reserve { color: var(--green-bright); font-weight: 700; }
.drill-indicator {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--green-bright);
  box-shadow: 0 0 12px 2px var(--green-bright);
  top: 2.5rem;
  transition: top 0.1s linear;
}

/* STEPS */
.steps {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.step-num {
  font-family: var(--font-mono);
  color: var(--green-deep);
  font-size: 2rem;
  font-weight: 700;
  -webkit-text-stroke: 1px var(--green-bright);
  color: transparent;
}
.step h3 {
  font-family: var(--font-display);
  margin-top: 0.8rem;
  font-size: 1.2rem;
}
.step p {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* RESERVES BOARD */
.board {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.board-tile {
  background: var(--panel);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.board-tile .sym { color: var(--text); font-weight: 700; }
.board-tile .price { display: block; margin-top: 0.4rem; color: var(--text-muted); }
.board-tile .up { color: var(--green-bright); }
.board-tile .down { color: #ff6b6b; }

/* LAUNCH */
.launch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 800px) {
  .launch-grid { grid-template-columns: 1fr; }
}
.launch-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 2rem;
}
.launch-card h3 {
  font-family: var(--font-display);
  margin-top: 0.6rem;
  font-size: 1.3rem;
}
.launch-card p { color: var(--text-muted); margin-top: 0.8rem; font-size: 0.92rem; }
.launch-warning {
  margin-top: 1rem;
  color: var(--green-glow) !important;
  font-size: 0.85rem !important;
  border-top: 1px solid var(--panel-border);
  padding-top: 1rem;
}
.launch-flow {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.8rem;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted);
}
.flow-arrow { color: var(--green-deep); }
.socials { margin-top: 2.5rem; display: flex; justify-content: center; }

/* CREW */
.crew-grid {
  margin-top: 3rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center;
}
.crew-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  width: 220px;
  text-align: center;
}
.crew-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-deep);
  color: var(--green-bright);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem;
}
.crew-open { border-style: dashed; opacity: 0.7; }
.crew-name { margin-top: 0.9rem; font-weight: 600; }
.crew-role { margin-top: 0.3rem; color: var(--text-dim); font-size: 0.8rem; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--panel-border);
  padding: 3rem 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--green-bright); }

.disclaimers {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--panel-border);
  display: flex; flex-direction: column; gap: 1rem;
}
.disclaimers p { color: var(--text-dim); font-size: 0.78rem; line-height: 1.6; }
.disclaimers strong { color: var(--text-muted); }

.footer-bottom {
  margin-top: 2rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
}
