:root {
  color-scheme: dark;
  --bg: #061004;
  --ink: #f6ffe7;
  --muted: #a7b69c;
  --green: #c6f006;
  --deep: rgba(4, 12, 4, 0.82);
  --panel: rgba(8, 18, 7, 0.78);
  --line: rgba(198, 240, 6, 0.26);
  --orange: #ff9f43;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
.hidden { display: none; }

.intro,
.intro video,
.introWash,
.bgVideo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro {
  z-index: 20;
  overflow: hidden;
  background: #020402;
}

.intro video,
.bgVideo { object-fit: cover; }

.introWash {
  background:
    radial-gradient(circle at 50% 50%, rgba(198, 240, 6, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(1, 4, 1, 0.06), rgba(1, 4, 1, 0.82));
}

.bgVideo {
  z-index: -3;
  opacity: 0.18;
  filter: contrast(1.25) saturate(0.9);
}

.introPanel {
  position: absolute;
  left: clamp(20px, 5vw, 70px);
  bottom: clamp(76px, 12vh, 150px);
  display: grid;
  gap: 12px;
}

.introPanel img {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  border: 1px solid var(--green);
  object-fit: cover;
}

.introPanel span,
.kicker,
.sectionHead p {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.introPanel strong {
  max-width: 830px;
  font-size: clamp(40px, 8vw, 108px);
  line-height: 0.86;
  letter-spacing: 0;
}

.skip,
.enter,
.xButton,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.skip {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 76px;
  height: 42px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--ink);
}

.enter {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: clamp(28px, 6vh, 68px);
  min-width: 176px;
  height: 52px;
  background: var(--green);
  color: #081006;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.35s ease;
}

.enter.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 18px clamp(14px, 3vw, 44px) 80px;
}

.site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(198, 240, 6, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(198, 240, 6, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 18%, rgba(198, 240, 6, 0.15), transparent 34%),
    #061004;
  background-size: 52px 52px, 52px 52px, auto, auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3, 9, 3, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 950;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
}

nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

nav a:hover {
  background: rgba(198, 240, 6, 0.1);
  color: var(--ink);
}

.xButton {
  justify-self: end;
  min-width: 56px;
  min-height: 42px;
  background: var(--green);
  color: #081006;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  min-height: calc(100vh - 98px);
  margin: 0 auto;
  padding: 68px 0 42px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(54px, 8.4vw, 116px);
  line-height: 0.86;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: #d7e1cc;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.52;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary,
.secondary {
  min-height: 52px;
  padding: 0 22px;
}

.primary { background: var(--green); color: #081006; }
.secondary { background: rgba(0, 0, 0, 0.26); }

.latticeCard,
.rails,
.terminal,
.docs {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.latticeCard {
  border-radius: 28px;
  padding: 22px;
}

.cardTop,
.terminalTop,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cardTop,
.terminalTop {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cardTop b,
.terminalTop b { color: var(--green); }

.nodeGrid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.nodeGrid::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(198, 240, 6, 0.35);
  transform: rotate(45deg);
  pointer-events: none;
}

.node {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 110px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(2, 7, 2, 0.74);
}

.node span {
  font-weight: 950;
}

.node small {
  margin-top: 8px;
  color: var(--muted);
}

.node.hot { border-color: rgba(198, 240, 6, 0.5); }
.node.grow { border-color: rgba(255, 159, 67, 0.52); }

.node.core {
  place-items: center;
  border-color: var(--green);
  background: rgba(198, 240, 6, 0.08);
  animation: corePulse 3s ease-in-out infinite;
}

.node.core img {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
}

.rails,
.terminal,
.docs {
  max-width: 1180px;
  margin: 0 auto 24px;
  border-radius: 28px;
  padding: clamp(20px, 3vw, 34px);
}

.sectionHead h2,
.docs h2 {
  max-width: 790px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 0.96;
}

.railGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.railGrid article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.railGrid span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.railGrid h3 {
  margin: 42px 0 10px;
  font-size: 32px;
}

.railGrid p,
.docText p {
  color: #c8d1bf;
  line-height: 1.65;
}

.row {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.1fr 0.55fr;
  min-height: 58px;
  padding: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.row.head {
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.row b {
  justify-self: end;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(198, 240, 6, 0.13);
  color: var(--green);
}

.docs {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 26px;
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(198, 240, 6, 0); }
  50% { box-shadow: 0 0 42px rgba(198, 240, 6, 0.28); }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero, .docs { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 54px; }
  .railGrid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site { padding-inline: 12px; }
  h1 { font-size: 54px; }
  .nodeGrid { grid-template-columns: 1fr; }
  .nodeGrid::before { display: none; }
  .row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    padding: 14px 0;
  }
  .row.head { display: none; }
  .row b { justify-self: start; }
}
