:root {
  --bg: #071017;
  --panel: rgba(8, 16, 22, 0.9);
  --line: rgba(120, 154, 170, 0.18);
  --text: #f3f7fa;
  --muted: #b6c3cc;
  --teal: #1db5bb;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
  --max: 1640px;
  --content-narrow: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(13, 89, 108, 0.24), transparent 28%),
    linear-gradient(180deg, #071017 0%, #050c12 100%);
  color: var(--text);
  font-family: "Barlow", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

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

.page-shell {
  width: min(calc(100% - 20px), var(--max));
  margin: 0 auto;
  padding: 10px;
  position: relative;
}

.brand-mark {
  width: 58px;
  height: auto;
}

.hero-topline {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: 108px 1fr 108px;
  align-items: center;
  gap: 20px;
}

.hero-brand {
  display: flex;
  align-items: center;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: #f4f7fa;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: transparent;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  background: linear-gradient(90deg, transparent 0%, var(--teal) 20%, var(--teal) 80%, transparent 100%);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.layout {
  position: relative;
  margin-top: 0;
}

.hero-panel,
.summary-card,
.feature-card,
.faq-card,
.cta-panel,
.site-footer {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.edge-frame {
  position: sticky;
  top: 94px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 1;
}

.edge-frame img {
  width: 100%;
  height: calc(100vh - 118px);
  min-height: 760px;
  object-fit: cover;
  object-position: 26% center;
  filter: saturate(0.88) contrast(0.96) brightness(0.56);
  border-radius: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.94) 8%, rgba(0, 0, 0, 0.94) 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.94) 8%, rgba(0, 0, 0, 0.94) 92%, transparent 100%);
  opacity: 0.68;
}

.edge {
  position: absolute;
  top: 0;
  width: 182px;
  pointer-events: none;
  z-index: 0;
}

.edge-left {
  left: 0;
}

.edge-right {
  right: 0;
}

.edge-frame-back {
  position: absolute;
  top: calc(100vh - 118px + 82px);
  left: 0;
  right: 0;
  z-index: 0;
  opacity: 0.58;
  transform: none;
  pointer-events: none;
}

.edge-frame-back img {
  width: 100%;
  height: calc(100vh - 118px);
  min-height: 760px;
  object-fit: cover;
  object-position: 20% center;
  filter: saturate(0.82) contrast(0.94) brightness(0.42);
  opacity: 0.72;
}

.main-column {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  min-height: 540px;
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.hero-scene {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(7, 16, 23, 0.88) 0%, rgba(7, 16, 23, 0.44) 27%, rgba(7, 16, 23, 0.24) 56%, rgba(7, 16, 23, 0.7) 100%),
    linear-gradient(180deg, rgba(7, 16, 23, 0.18) 0%, rgba(7, 16, 23, 0.18) 42%, rgba(7, 16, 23, 0.84) 100%),
    url("./images/hero-banner-v2.png");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-blend-mode: normal, normal, normal;
  filter: saturate(1.1) contrast(1.09) brightness(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(6, 15, 22, 0.03), rgba(6, 15, 22, 0.24) 42%, rgba(6, 15, 22, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 540px;
  padding: 50px 34px 56px;
  text-align: center;
}

.hero-wordmark {
  width: min(390px, 74%);
}

.hero-kicker,
.section-title h2,
.summary-card h3,
.feature-copy h2,
.faq-card h3,
.cta-copy h2,
.trust-row li {
  font-family: "Orbitron", sans-serif;
}

.hero-kicker {
  margin: 0;
  color: var(--teal);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 720px;
  margin: 2px 0 0;
  color: #edf3f6;
  font-size: 18px;
  line-height: 1.4;
}

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

.discord-button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 288px;
  min-height: 72px;
  padding: 14px 24px;
  border: 1px solid rgba(45, 201, 201, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 105, 115, 0.92), rgba(10, 74, 83, 0.94));
  color: #f6fbfc;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discord-button span {
  color: #cae5e8;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.discord-button-top {
  min-width: 128px;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.discord-button-top span {
  display: none;
}

.hero-note {
  margin: 6px 0 0;
  color: #c6d4da;
  font-size: 15px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.trust-row-hero {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  margin: 0;
}

.trust-row li {
  color: #dce6eb;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wide-section {
  display: grid;
  gap: 18px;
  margin-top: 0;
  position: relative;
  z-index: 3;
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 0;
  max-width: var(--content-narrow);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 22px;
}

.section-title::before {
  content: "";
  grid-column: 1 / -1;
  width: 180px;
  height: 3px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--teal) 25%, var(--teal) 75%, transparent 100%);
}

.section-title span {
  height: 1px;
  background: rgba(120, 154, 170, 0.22);
}

.section-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: var(--content-narrow);
  width: 100%;
  margin: 0 auto;
}

.summary-card,
.faq-card {
  border-radius: 6px;
  padding: 20px 18px;
}

.summary-card h3,
.faq-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-card p,
.faq-card p,
.feature-copy p,
.cta-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.cards-section {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.feature-card {
  overflow: hidden;
  border-radius: 6px;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 1 / 0.76;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.03) brightness(0.97);
}

.feature-card-bright img {
  filter: saturate(1.08) contrast(1.02) brightness(1.08);
}

.feature-copy {
  padding: 14px 14px 16px;
}

.feature-copy h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.faq-section {
  display: grid;
  gap: 16px;
  max-width: var(--content-narrow);
  width: 100%;
  margin: 12px auto 0;
  padding-top: 10px;
  position: relative;
}

.section-title-faq {
  margin-top: 0;
  padding-top: 0;
}

.section-title-faq::before {
  display: none;
}

.faq-section::before {
  content: "";
  width: 180px;
  height: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--teal) 25%, var(--teal) 75%, transparent 100%);
}

.cta-panel {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-radius: 6px;
  max-width: var(--content-narrow);
  width: 100%;
  margin: 0 auto;
}

.cta-brand img {
  width: 62px;
}

.cta-copy h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 14px 18px;
  border-radius: 6px;
  color: #95a5af;
  font-size: 13px;
  letter-spacing: 0.03em;
  max-width: var(--content-narrow);
  width: 100%;
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1320px) {
  .edge {
    width: 160px;
  }

  .cards-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1080px) {
  .edge {
    display: none;
  }

  .summary-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(120, 154, 170, 0.18);
    border-radius: 12px;
    background: rgba(6, 13, 18, 0.96);
  }

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

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

  .hero-content {
    padding: 34px 18px 14px;
  }

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

  .cards-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 12px), var(--max));
    padding: 6px;
  }

  .cards-section {
    grid-template-columns: 1fr;
  }

  .discord-button {
    min-width: 100%;
  }

  .trust-row {
    gap: 10px 14px;
  }

  .trust-row li {
    font-size: 13px;
  }
}
