:root {
  --bg: #071015;
  --bg-soft: #0d1b20;
  --text: #f7fbff;
  --muted: #aec2c9;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(7, 16, 21, 0.74);
  --green: #70f06f;
  --lime: #c9ff4a;
  --water: #43d7ff;
  --gold: #ffcb4d;
  --red: #ff6a4a;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::selection {
  color: #071015;
  background: var(--green);
}

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

button {
  font: inherit;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(16px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(4, 9, 12, 0.9), rgba(4, 9, 12, 0.24));
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.brand span {
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(247, 251, 255, 0.76);
  font-size: 0.94rem;
  font-weight: 800;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  overflow: hidden;
  padding: 132px clamp(18px, 5vw, 72px) 36px;
}

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

.hero-bg {
  background: url("assets/nextium-hero.png") center / cover no-repeat;
  transform: scale(1.03);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 10, 13, 0.92) 0%, rgba(5, 10, 13, 0.58) 42%, rgba(5, 10, 13, 0.2) 74%),
    linear-gradient(180deg, rgba(5, 10, 13, 0.28) 0%, rgba(5, 10, 13, 0.18) 52%, #071015 100%);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

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

.tag {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1 {
  max-width: 8ch;
  margin-bottom: 20px;
  font-size: clamp(4.6rem, 15vw, 11rem);
  line-height: 0.82;
  font-weight: 950;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.98;
  font-weight: 950;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.lead {
  width: min(640px, 100%);
  margin-bottom: 28px;
  color: #e1eef2;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.server-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(640px, 100%);
  margin-bottom: 18px;
  padding: 16px;
  background: rgba(5, 12, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.server-card span,
.hero-panel span {
  display: block;
  color: rgba(247, 251, 255, 0.64);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.server-card strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.25rem, 3vw, 2.08rem);
  overflow-wrap: anywhere;
}

.server-card button,
.main-button,
.ghost-button,
.footer button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.server-card button,
.main-button {
  color: #061014;
  background: linear-gradient(135deg, var(--green), var(--lime));
  box-shadow: 0 18px 44px rgba(112, 240, 111, 0.24);
}

.ghost-button,
.footer button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line);
}

.small-copy {
  min-height: 40px;
}

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

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(920px, 100%);
  margin-top: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel div {
  min-width: 0;
  padding: 18px;
  background: rgba(7, 16, 21, 0.72);
}

.hero-panel strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.section,
.connect,
.discord {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(58px, 8vw, 108px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.faq-title {
  display: grid;
  min-height: 320px;
  align-items: center;
}

.faq-title h2 {
  margin-bottom: 0;
  text-align: center;
}

.faq-copy > p {
  margin-bottom: 22px;
}

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

.faq-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.faq-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.faq-list dt {
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 950;
}

.faq-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 0;
}

.features article,
.steps article {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.emoji-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(112, 240, 111, 0.16), rgba(67, 215, 255, 0.14)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    0 20px 38px rgba(0, 0, 0, 0.32);
  font-size: 2.35rem;
  line-height: 1;
}

.connect {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  padding: clamp(58px, 8vw, 108px) 0;
}

.steps {
  display: grid;
  gap: 12px;
}

.steps article {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  column-gap: 18px;
}

.steps span {
  grid-row: span 2;
  color: var(--gold);
  font-size: 2.2rem;
  font-weight: 950;
  line-height: 1;
}

.steps h3,
.steps p,
.features p,
.discord p {
  margin-bottom: 0;
}

.steps p strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.discord {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 58px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(112, 240, 111, 0.14), rgba(67, 215, 255, 0.12)),
    rgba(7, 16, 21, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.discord img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.35));
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(18px, 4vw, 54px);
  color: rgba(247, 251, 255, 0.7);
  background: #050a0d;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.footer button {
  min-height: 38px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  transform: translateY(24px);
  opacity: 0;
  padding: 12px 16px;
  color: #061014;
  background: var(--gold);
  border-radius: 8px;
  font-weight: 950;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 10, 13, 0.94), rgba(5, 10, 13, 0.5)),
      linear-gradient(180deg, rgba(5, 10, 13, 0.2), #071015);
  }

  .split,
  .connect,
  .discord {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .discord {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px 16px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .small-copy {
    display: none;
  }

  .hero {
    padding: 104px 16px 28px;
  }

  h1 {
    font-size: clamp(4.2rem, 25vw, 6.8rem);
  }

  h2 {
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

  .server-card {
    align-items: stretch;
    flex-direction: column;
  }

  .server-card button,
  .main-button,
  .ghost-button {
    width: 100%;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .steps article {
    grid-template-columns: 1fr;
  }

  .steps span {
    grid-row: auto;
    margin-bottom: 14px;
  }

  .discord img {
    width: 92px;
    height: 92px;
  }
}
