:root {
  --bg: #050506;
  --bg-2: #0b0d10;
  --panel: rgba(18, 20, 23, 0.72);
  --panel-strong: rgba(24, 26, 31, 0.92);
  --line: rgba(220, 188, 113, 0.24);
  --line-cool: rgba(91, 203, 219, 0.22);
  --text: #f4efe4;
  --muted: #afa794;
  --gold: #d9aa55;
  --gold-2: #ffe0a0;
  --red: #b13b2f;
  --cyan: #74e1ee;
  --ink: #070707;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(177, 59, 47, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 40%, rgba(116, 225, 238, 0.12), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--text);
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-elevated {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(217, 170, 85, 0.18), rgba(116, 225, 238, 0.08));
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: rgba(244, 239, 228, 0.78);
  font-size: 13px;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--gold-2);
}

.header-cta {
  justify-self: end;
  min-width: 84px;
  padding: 11px 18px;
  border: 1px solid rgba(217, 170, 85, 0.42);
  color: var(--gold-2);
  font-size: 13px;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 130px clamp(20px, 6vw, 86px) 82px;
}

.hero-bg,
.hero-overlay,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/dragoncapsulex-hero-custom.jpg");
  background-position: 58% center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.96) 0%, rgba(5, 5, 6, 0.72) 34%, rgba(5, 5, 6, 0.18) 72%, rgba(5, 5, 6, 0.7) 100%),
    linear-gradient(0deg, rgba(5, 5, 6, 1) 0%, rgba(5, 5, 6, 0) 22%);
}

.hero-grid {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(217, 170, 85, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 225, 238, 0.06) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(90deg, black 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-label {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-top: 16px;
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 10vw, 138px);
  font-weight: 500;
  line-height: 0.86;
}

.hero-copy {
  margin-top: 26px;
  max-width: 620px;
  color: rgba(244, 239, 228, 0.86);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 750;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), #f7d48b);
  color: var(--ink);
}

.button.secondary {
  border-color: rgba(116, 225, 238, 0.4);
  background: rgba(8, 15, 18, 0.54);
  color: var(--cyan);
}

.hero-signal {
  position: absolute;
  right: clamp(22px, 5vw, 78px);
  bottom: 42px;
  z-index: 2;
  display: flex;
  gap: 10px;
  color: rgba(244, 239, 228, 0.74);
  font-size: 12px;
}

.hero-signal span {
  border: 1px solid rgba(217, 170, 85, 0.24);
  background: rgba(5, 5, 6, 0.44);
  padding: 10px 12px;
}

.section-pad {
  padding: clamp(70px, 10vw, 130px) clamp(20px, 6vw, 86px);
}

.statement {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.statement-layout,
.flywheel-layout,
.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
}

h2 {
  margin-top: 12px;
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 500;
  line-height: 0.98;
}

.statement-copy,
.section-heading p,
.longterm-panel p,
.event-item p,
.join-inner p,
.faq p,
.node-stage p,
.layer-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.statement-copy {
  display: grid;
  gap: 24px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 840px;
}

.matrix {
  background:
    linear-gradient(180deg, var(--bg-2), #090807),
    radial-gradient(circle at 50% 0%, rgba(217, 170, 85, 0.18), transparent 32rem);
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.layer-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(24, 26, 31, 0.96), rgba(9, 10, 12, 0.96)),
    var(--panel-strong);
}

.layer-index {
  color: rgba(217, 170, 85, 0.55);
  font-size: 13px;
  font-weight: 800;
}

.layer-card h3,
.event-item h3,
.node-stage strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.longterm {
  background:
    linear-gradient(90deg, rgba(177, 59, 47, 0.12), transparent 44%),
    #050506;
}

.longterm-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(217, 170, 85, 0.2);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: rgba(217, 170, 85, 0.18);
}

.timeline-item {
  min-height: 160px;
  padding: 22px;
  background: rgba(12, 13, 15, 0.9);
}

.timeline-item span,
.event-item span,
.node-stage span {
  display: block;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-item strong {
  display: block;
  max-width: 12ch;
  font-size: 24px;
  line-height: 1.12;
}

.flywheel {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 50%, rgba(116, 225, 238, 0.13), transparent 34rem),
    #08090b;
}

.orbit {
  position: relative;
  width: min(460px, 82vw);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(217, 170, 85, 0.22), transparent 24%),
    radial-gradient(circle, transparent 47%, rgba(116, 225, 238, 0.08) 48%, transparent 49%);
  animation: pulse 5s ease-in-out infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(116, 225, 238, 0.18);
  border-radius: 50%;
}

.orbit::after {
  inset: 27%;
  border-color: rgba(217, 170, 85, 0.24);
}

.orbit-core {
  position: absolute;
  inset: 50%;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(217, 170, 85, 0.48);
  background: rgba(5, 5, 6, 0.84);
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.05;
  text-align: center;
}

.orbit-node {
  position: absolute;
  min-width: 110px;
  padding: 12px 14px;
  border: 1px solid rgba(116, 225, 238, 0.28);
  background: rgba(7, 13, 16, 0.9);
  color: var(--text);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.node-a {
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
}

.node-b {
  top: 50%;
  right: -6%;
  transform: translateY(-50%);
}

.node-c {
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
}

.node-d {
  top: 50%;
  left: -6%;
  transform: translateY(-50%);
}

.nodes {
  background:
    linear-gradient(180deg, #08090b, #060505),
    radial-gradient(circle at 20% 80%, rgba(177, 59, 47, 0.13), transparent 30rem);
}

.node-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  border: 1px solid rgba(217, 170, 85, 0.18);
  background: rgba(217, 170, 85, 0.18);
}

.node-stage {
  min-height: 260px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(22, 21, 18, 0.95), rgba(8, 9, 10, 0.96)),
    var(--panel);
}

.events {
  background:
    linear-gradient(90deg, #050506 0%, #090807 100%);
}

.event-list {
  display: grid;
  gap: 18px;
}

.event-item {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(217, 170, 85, 0.1), rgba(116, 225, 238, 0.05)),
    rgba(15, 15, 16, 0.72);
}

.event-item h3 {
  margin-bottom: 14px;
}

.faq {
  background: #060708;
}

.faq-list {
  display: grid;
  max-width: 920px;
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-size: 21px;
  font-weight: 760;
}

details p {
  max-width: 760px;
  margin-top: 16px;
}

.join {
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.72), rgba(5, 5, 6, 0.96)),
    url("assets/dragoncapsulex-hero-custom.jpg") center / cover;
}

.join-inner {
  max-width: 820px;
}

.join-inner h2 {
  margin-bottom: 22px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 86px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #030304;
  color: rgba(244, 239, 228, 0.58);
  font-size: 13px;
}

.footer div {
  display: grid;
  gap: 6px;
}

.footer a {
  color: rgba(244, 239, 228, 0.62);
}

.footer a:hover {
  color: var(--gold-2);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(217, 170, 85, 0);
  }
  50% {
    box-shadow: 0 0 64px rgba(217, 170, 85, 0.12);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .statement-layout,
  .flywheel-layout,
  .events-layout,
  .longterm-panel {
    grid-template-columns: 1fr;
  }

  .matrix-grid,
  .timeline,
  .node-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-signal {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 42px;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    min-width: 70px;
    padding: 9px 12px;
  }

  .hero {
    min-height: 92svh;
    padding: 112px 18px 52px;
  }

  .hero-content {
    max-width: min(100%, 354px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(38px, 10.8vw, 44px);
    line-height: 0.96;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 5, 6, 0.96), rgba(5, 5, 6, 0.54)),
      linear-gradient(0deg, rgba(5, 5, 6, 1) 0%, rgba(5, 5, 6, 0) 26%);
  }

  .hero-copy {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .section-pad {
    padding: 66px 18px;
  }

  .matrix-grid,
  .timeline,
  .node-map {
    grid-template-columns: 1fr;
  }

  .layer-card,
  .node-stage {
    min-height: 220px;
  }

  .statement-copy {
    padding-left: 18px;
  }

  .orbit {
    width: min(340px, 86vw);
    margin-top: 18px;
  }

  .orbit-node {
    min-width: 94px;
    padding: 10px;
  }

  .node-b {
    right: -2%;
  }

  .node-d {
    left: -2%;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
