:root {
  color-scheme: dark;
  --bg: #080a12;
  --panel: rgba(18, 24, 40, 0.78);
  --panel-strong: rgba(26, 35, 58, 0.92);
  --text: #f8fbff;
  --muted: #a7b4cf;
  --accent: #8cff9b;
  --accent-2: #74d7ff;
  --warning: #ffd166;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(116, 215, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(140, 255, 155, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  padding: 28px 0 80px;
}

.nav,
.hero-grid,
.section,
.setup,
.demo {
  display: grid;
  gap: 28px;
}

.nav {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 72px;
}

.nav-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.brand,
.nav-link,
.button {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.nav-link,
.button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover,
.button:hover {
  border-color: rgba(140, 255, 155, 0.55);
  transform: translateY(-1px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero-text,
.section p,
footer p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-text {
  max-width: 690px;
}

.actions {
  margin-top: 34px;
}

.button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #071018;
  box-shadow: 0 16px 40px rgba(116, 215, 255, 0.22);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.stat-strip li {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.stat-strip strong,
dd {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
}

.stat-strip span,
dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.signal-card,
.section {
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.signal-card {
  padding: 28px;
  transform: rotate(1.5deg);
}

.card-header {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--accent);
  font-weight: 800;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(140, 255, 155, 0.1);
}

.signal-card h2 {
  margin: 28px 0;
}

.metrics,
.embed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.metrics {
  margin: 0 0 22px;
}

.metrics div,
.feature-grid article,
.embed-grid p,
.command-preview {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.055);
}

.metrics div {
  padding: 16px;
  border-radius: 18px;
}

dd {
  margin: 6px 0 0;
}

.card-note {
  margin-bottom: 0;
}

.section {
  margin: 0 0 28px;
  padding: 44px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.feature-grid article {
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  background: var(--panel-strong);
}

.feature-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 16px;
  background: rgba(140, 255, 155, 0.12);
  font-size: 1.35rem;
}

.feature-grid h3 {
  font-size: 1.3rem;
}

.demo,
.setup {
  grid-template-columns: 1fr minmax(300px, 0.9fr);
  align-items: center;
}

.demo-copy p {
  max-width: 620px;
}

.discord-window {
  overflow: hidden;
  border: 1px solid rgba(116, 215, 255, 0.25);
  border-radius: 26px;
  background: #101522;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.window-bar span:nth-child(2) {
  background: var(--warning);
}

.window-bar span:nth-child(3) {
  background: var(--accent);
}

.window-bar p {
  margin: 0 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
}

.message-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 22px;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(140, 255, 155, 0.24), rgba(116, 215, 255, 0.22));
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 10px;
}

.message-meta span {
  color: var(--muted);
  font-size: 0.85rem;
}

.embed-preview {
  display: grid;
  grid-template-columns: 5px 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #151b2b;
}

.embed-accent {
  background: linear-gradient(var(--accent), var(--accent-2));
}

.embed-body {
  padding: 18px;
}

.embed-body h3 {
  margin-bottom: 12px;
}

.embed-body code {
  display: block;
  overflow-wrap: anywhere;
  margin-bottom: 14px;
  color: var(--accent-2);
}

.embed-grid p {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  line-height: 1.35;
}

.embed-grid span,
.embed-grid strong {
  display: block;
}

.embed-grid span {
  color: var(--muted);
  font-size: 0.8rem;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.checks span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(140, 255, 155, 0.1);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.quick-links {
  margin-bottom: 0;
  color: var(--accent-2) !important;
  font-size: 0.9rem !important;
}

.command-preview {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  color: var(--muted);
}

.command-preview span {
  color: var(--accent);
  font-weight: 800;
}

pre {
  overflow: auto;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #060912;
  color: var(--accent);
  font-size: 0.98rem;
  line-height: 1.8;
}

footer {
  padding: 26px 0 40px;
  text-align: center;
}

@media (max-width: 860px) {
  .hero-grid,
  .demo,
  .setup,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: start;
    margin-bottom: 42px;
  }

  .nav-actions {
    justify-content: flex-end;
  }

  .signal-card {
    transform: none;
  }
}

@media (max-width: 560px) {
  main,
  footer {
    width: min(100% - 24px, 1120px);
  }

  .nav,
  .stat-strip,
  .metrics,
  .embed-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .signal-card,
  .message-row {
    padding: 22px;
  }
}
