:root {
  color-scheme: dark;
  --bg: #020402;
  --bg-soft: #07100b;
  --panel: #0a100d;
  --panel-strong: #0f1712;
  --text: #f4f8f4;
  --muted: #a7b5aa;
  --line: #1b3326;
  --green: #00e676;
  --green-dark: #087f4f;
  --gold: #ffd54a;
  --gold-dark: #9a7400;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 230, 118, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(255, 213, 74, 0.08), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 230, 118, 0.16);
  background: rgba(2, 4, 2, 0.88);
  backdrop-filter: blur(14px);
  padding: 0.9rem clamp(1rem, 4vw, 4rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(0, 230, 118, 0.48);
  border-radius: 8px;
  background: #000000;
  color: var(--green);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.58rem 0.72rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(0, 230, 118, 0.08);
}

.site-nav .nav-cta {
  border: 1px solid rgba(0, 230, 118, 0.45);
  color: var(--green);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(0, 230, 118, 0.5);
  border-radius: 8px;
  background: #000000;
  box-shadow: inset 0 0 0 1px rgba(0, 230, 118, 0.08);
  padding: 0.55rem;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.24rem;
  background: var(--green);
  box-shadow: 0 0 0.65rem rgba(0, 230, 118, 0.45);
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: calc(100dvh - 5rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.8rem);
  line-height: 0.96;
}

h1 span {
  display: block;
  color: var(--green);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.2rem;
}

.lead {
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions,
.feature-card .button,
.final-cta .button {
  margin-top: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid rgba(0, 230, 118, 0.42);
  border-radius: 8px;
  color: var(--text);
  font-weight: 850;
  padding: 0.78rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #001c0d;
  border-color: var(--green);
}

.button.secondary {
  background: rgba(255, 213, 74, 0.08);
  border-color: rgba(255, 213, 74, 0.38);
  color: var(--gold);
}

.button.small {
  min-height: 2.45rem;
  padding: 0.62rem 0.8rem;
  font-size: 0.92rem;
}

.disabled-button {
  cursor: default;
  opacity: 0.72;
}

.terminal-card {
  overflow: hidden;
  border: 1px solid rgba(0, 230, 118, 0.36);
  border-radius: 8px;
  background: linear-gradient(180deg, #000000, #030603);
  box-shadow: 0 2rem 5rem var(--shadow), inset 0 0 0 1px rgba(255, 213, 74, 0.05);
}

.terminal-bar {
  display: flex;
  gap: 0.45rem;
  border-bottom: 1px solid #162319;
  background: #050805;
  padding: 0.85rem;
}

.terminal-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
  background: #ff5252;
}

.terminal-bar span:nth-child(2) {
  background: var(--gold);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.terminal-card pre {
  margin: 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  color: var(--text);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.65;
  white-space: pre-wrap;
}

.terminal-command {
  color: var(--green);
  font-weight: 800;
}

.terminal-output {
  color: var(--muted);
}

.terminal-cursor {
  display: inline-block;
  width: 0.55rem;
  height: 1rem;
  margin-left: 0.18rem;
  background: var(--gold);
  vertical-align: -0.15rem;
  animation: cursorBlink 1.2s steps(2, start) infinite;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
  gap: 1rem;
}

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.path-card,
.info-card,
.community-card,
.about-panel,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 23, 18, 0.98), rgba(7, 12, 8, 0.98));
  box-shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, 0.24);
}

.feature-card,
.path-card,
.info-card,
.community-card,
.about-panel {
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.feature-card.highlight {
  border-color: rgba(0, 230, 118, 0.68);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 230, 118, 0.12), 0 0 2.5rem rgba(0, 230, 118, 0.08);
}

.feature-card.highlight h3 {
  color: var(--green);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.feature-card.highlight .button.primary {
  box-shadow: 0 0.85rem 2rem rgba(0, 230, 118, 0.16);
}

.side-note {
  align-self: stretch;
}

.feature-card p,
.path-card p,
.info-card p,
.community-card p,
.about-panel p,
.final-cta p {
  color: var(--muted);
  line-height: 1.65;
}

.safety-note {
  color: var(--green) !important;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  border: 1px solid rgba(0, 230, 118, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  padding: 0.65rem 0.75rem;
}

.status {
  display: inline-flex;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 213, 74, 0.38);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.3rem 0.62rem;
  text-transform: uppercase;
}

.status.available {
  border-color: rgba(0, 230, 118, 0.38);
  color: var(--green);
}

.path-card {
  display: flex;
  min-height: 17rem;
  flex-direction: column;
  align-items: flex-start;
}

.path-card .button {
  margin-top: auto;
}

.path-card.disabled {
  opacity: 0.8;
}

.community-card a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.community-card a:hover {
  text-decoration: underline;
}

.community-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-panel {
  max-width: 58rem;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 2rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1rem, 4vw, 4rem);
  background: #000000;
}

.site-footer p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  max-width: 42rem;
}

.site-footer nav a {
  border: 1px solid rgba(0, 230, 118, 0.12);
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.04);
  color: var(--muted);
  padding: 0.42rem 0.65rem;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--green);
}

@media (max-width: 62rem) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #050805;
    padding: 0.6rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-radius: 8px;
  }

  .hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .card-grid,
  .community-grid,
  .card-grid.four {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 40rem) {
  .site-header {
    padding-inline: 0.75rem;
  }

  .section {
    width: min(100% - 1rem, 1180px);
  }

  .card-grid,
  .community-grid,
  .card-grid.four,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .final-cta,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .terminal-cursor {
    animation: none;
  }
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}
