:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-soft: #101013;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(234, 179, 8, 0.3);
  --text: #f7f7f4;
  --muted: #8e8e95;
  --primary: #facc15;
  --primary-soft: rgba(250, 204, 21, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --container: min(1240px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.05), transparent 24%),
    linear-gradient(180deg, #09090b 0%, #0d0d10 100%);
  color: var(--text);
}

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

button {
  font: inherit;
}

.page-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 80%);
}

.glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
}

.glow-left {
  top: 40px;
  left: -120px;
  background: #facc15;
}

.glow-right {
  top: 160px;
  right: -120px;
  background: #eab308;
}

.container {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transform: rotate(45deg);
  background: var(--primary);
  border-radius: 6px;
  flex: 0 0 auto;
}

.brand-mark {
  transform: rotate(-45deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-copy small,
.eyebrow,
.section-heading small,
.card-heading small,
.feature small,
.trust-item small,
.faq-side small,
.terminal-head small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a,
.footer-links a {
  color: #7a7a82;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.button.primary {
  background: var(--primary);
  color: #111;
  border-color: transparent;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.button.primary:hover {
  background: #ffe04c;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.03);
}

.button.tiny {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

.topbar-cta {
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 90px);
  padding: 56px 0 36px;
}

.hero-copy {
  max-width: 860px;
}

.hero-copy h1,
.section-heading h2,
.faq-side h2 {
  margin: 16px 0 0;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
}

.hero-line {
  display: block;
}

.hero-line-accent {
  color: var(--primary);
  font-style: italic;
}

.hero-text,
.section-heading p,
.feature p,
.trust-item p,
.faq-list p,
.faq-side p,
.footer p,
.terminal-sub {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 620px;
  padding-left: 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  margin-top: 30px;
  font-size: 18px;
}

.hero-actions,
.hero-tags,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.pill,
.hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #b1b1b8;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
}

.pill {
  color: var(--primary);
  border-color: rgba(250, 204, 21, 0.24);
  background: rgba(250, 204, 21, 0.08);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel,
.live-card,
.queue-card,
.timeline-card,
.feature,
.trust-item,
.faq-list .card {
  padding: 28px;
}

.hero-panel {
  overflow: hidden;
}

.panel-terminal {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.14));
}

.terminal-head,
.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-terminal h2,
.card-heading h3 {
  margin: 12px 0 0;
}

.panel-terminal h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.terminal-sub {
  margin: 14px 0 0;
  font-size: 14px;
}

.panel-grid,
.board-grid,
.stats-strip,
.timeline,
.features,
.trust-grid {
  display: grid;
  gap: 16px;
}

.panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.metric,
.stat-card,
.board-grid > div,
.queue-row {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric.highlight {
  border-color: rgba(250, 204, 21, 0.22);
  background: rgba(250, 204, 21, 0.06);
}

.metric span,
.stat-card span,
.board-grid span,
.contract-item span {
  display: block;
  margin-bottom: 10px;
  color: #8f8f95;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric strong,
.stat-card strong,
.board-grid strong,
.contract-item strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.contract-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contract-item {
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.contract-item:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.06);
}

.contract-item strong {
  font-size: 16px;
  font-family: "JetBrains Mono", monospace;
  color: var(--primary);
}

.stats-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.stat-card strong {
  margin: 10px 0 8px;
  font-size: 30px;
}

.stat-card small {
  color: var(--muted);
  line-height: 1.6;
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  margin-top: 22px;
}

.board-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.queue-state {
  margin-top: 16px;
  color: var(--muted);
}

.queue-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.queue-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.queue-row strong {
  font-size: 16px;
  font-family: "JetBrains Mono", monospace;
}

.queue-row p,
.queue-row small {
  margin: 10px 0 0;
  color: var(--muted);
}

.mechanics,
.trust,
.faq {
  padding-top: 92px;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 26px;
}

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

.timeline-card,
.feature,
.trust-item {
  position: relative;
  overflow: hidden;
}

.timeline-card::before,
.feature::before,
.trust-item::before,
.stat-card::before,
.live-card::before,
.queue-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.35), transparent);
}

.timeline-card .step {
  display: inline-block;
  color: rgba(250, 204, 21, 0.68);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.timeline-card h3,
.feature h3,
.trust-item h3 {
  margin: 18px 0 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.feature small,
.trust-item small {
  color: rgba(250, 204, 21, 0.52);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) minmax(0, 0.6fr);
  gap: 24px;
  align-items: start;
}

.faq-side {
  position: sticky;
  top: 110px;
}

.faq-side h2 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 14px;
}

summary {
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  margin-bottom: 14px;
  color: var(--primary);
}

.footer {
  margin-top: 86px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 56px 0 72px;
}

.footer-brand {
  max-width: 520px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.96);
  color: var(--text);
  border: 1px solid rgba(250, 204, 21, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1120px) {
  .hero,
  .live-grid,
  .timeline,
  .features,
  .trust-grid,
  .stats-strip,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-side {
    position: static;
  }
}

@media (max-width: 920px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }
}

@media (max-width: 720px) {
  .board-grid,
  .panel-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    gap: 6px;
    font-size: 48px;
  }

  .panel-terminal h2 {
    font-size: 26px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .hero-panel,
  .live-card,
  .queue-card,
  .timeline-card,
  .feature,
  .trust-item,
  .faq-list .card {
    padding: 22px;
  }

  .button,
  .topbar-cta {
    width: 100%;
  }
}
