:root {
  --bg: #07080c;
  --panel: rgba(18, 20, 29, 0.82);
  --panel-strong: #11131b;
  --panel-soft: #151823;
  --text: #f7f8ff;
  --muted: #a7aec1;
  --line: rgba(255, 255, 255, 0.09);
  --purple: #7c5cff;
  --purple-light: #a58cff;
  --blue: #4d8dff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(124, 92, 255, 0.10), transparent 30%),
    radial-gradient(circle at 90% 28%, rgba(77, 141, 255, 0.08), transparent 28%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

button, a { -webkit-tap-highlight-color: transparent; }

.bg-orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .16;
  pointer-events: none;
  z-index: -1;
}

.bg-orb-one { background: var(--purple); left: -160px; top: 180px; }
.bg-orb-two { background: var(--blue); right: -200px; top: 420px; }

.section-shell,
.site-header {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 9, 14, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-weight: 900;
  background: linear-gradient(145deg, var(--purple-light), #5837d9);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15), 0 7px 18px rgba(124,92,255,.28);
}

.brand-mark-large {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 30px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.nav-cta {
  color: white !important;
  padding: 10px 15px;
  border-radius: 11px;
  background: rgba(124,92,255,.16);
  border: 1px solid rgba(165,140,255,.25);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  background: var(--panel-soft);
  padding: 10px;
}

.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: white;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.hero {
  min-height: 760px;
  padding: 110px 0 90px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid rgba(165,140,255,.22);
  background: rgba(124,92,255,.10);
  color: #c8bbff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(58px, 7vw, 94px);
  line-height: .95;
  letter-spacing: -.065em;
}

h1 span {
  color: transparent;
  background: linear-gradient(110deg, #fff 8%, #b49fff 45%, #72a7ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

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

.button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, #8b6dff, #5b3be0);
  box-shadow: 0 16px 38px rgba(89,55,222,.30);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
}

.button-large { min-height: 54px; padding-inline: 28px; }

.hero-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #8e96aa;
  font-size: 12px;
}

.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
}

.app-preview {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 25px;
  background: #0a0b10;
  box-shadow: var(--shadow), 0 0 0 1px rgba(124,92,255,.07);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.app-preview::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 24%);
}

.preview-topbar {
  height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8991a5;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #343845; }

.preview-layout {
  min-height: 485px;
  display: grid;
  grid-template-columns: 58px 170px 1fr;
}

.server-rail {
  padding: 12px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #08090d;
  border-right: 1px solid var(--line);
}

.server {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #20232e;
  font-weight: 850;
}

.server.active {
  background: linear-gradient(145deg, #8e72ff, #5635cf);
  box-shadow: 0 8px 20px rgba(124,92,255,.32);
}

.server.muted { color: #8f97aa; }

.channel-panel {
  position: relative;
  padding: 14px 10px 70px;
  background: #0f1118;
  border-right: 1px solid var(--line);
}

.server-name {
  padding: 2px 8px 14px;
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.channel-label {
  margin: 16px 8px 6px;
  font-size: 8px;
  color: #777f92;
  letter-spacing: .07em;
}

.channel {
  padding: 7px 9px;
  margin: 2px 0;
  border-radius: 7px;
  color: #9199aa;
  font-size: 10px;
}

.channel.active {
  color: white;
  background: #20232d;
}

.user-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b0d12;
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.user-panel small { display: block; color: #7e8799; margin-top: 2px; }

.mini-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #6042dc;
}

.chat-panel {
  min-width: 0;
  position: relative;
  padding-bottom: 58px;
  background: #11131a;
}

.chat-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.chat-header span { color: #777f91; }

.messages {
  padding: 18px 14px;
  display: grid;
  gap: 18px;
}

.message {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  font-size: 10px;
}

.message p { color: #cbd0dc; line-height: 1.45; }

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-weight: 850;
}

.avatar.purple { background: #6344dd; }
.avatar.blue { background: #3174d9; }
.avatar.pink { background: #bd4c8d; }

.message-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.message-head span { color: #6f7789; font-size: 8px; }

.reaction {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 7px;
  border: 1px solid rgba(124,92,255,.34);
  background: rgba(124,92,255,.10);
  color: #c8bbff;
  font-size: 9px;
}

.media-card {
  width: min(190px, 100%);
  height: 86px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #d9d4ff;
  background:
    radial-gradient(circle at 70% 30%, rgba(77,141,255,.28), transparent 34%),
    linear-gradient(145deg, #221b3d, #131722);
  border: 1px solid rgba(165,140,255,.18);
}

.media-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #6849e6;
  font-weight: 900;
}

.composer {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  color: #7e8799;
  background: #1b1e28;
  font-size: 9px;
}

.features { padding: 90px 0; }

.section-heading {
  max-width: 690px;
  margin-bottom: 38px;
}

.section-heading h2,
.download h2,
.about h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.section-heading p,
.download p,
.about p {
  color: var(--muted);
  line-height: 1.7;
}

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

.feature-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(22,24,34,.80), rgba(12,13,19,.88));
  transition: transform .2s ease, border-color .2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(165,140,255,.25);
}

.feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(124,92,255,.12);
  color: #b7a7ff;
  font-weight: 900;
}

.feature-card h3 { margin-bottom: 10px; font-size: 18px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }

.download { padding: 80px 0; }

.download-card {
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  border: 1px solid rgba(165,140,255,.20);
  border-radius: 26px;
  background:
    radial-gradient(circle at 85% 25%, rgba(124,92,255,.22), transparent 26%),
    linear-gradient(145deg, rgba(25,25,39,.95), rgba(12,13,19,.98));
  box-shadow: var(--shadow);
}

.download-card h2 { font-size: clamp(34px, 4vw, 50px); }

.requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.requirements span {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: #9da5b8;
  font-size: 11px;
}

.download-actions {
  min-width: 230px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.download-actions small { color: #7f8799; }

.about { padding: 80px 0 120px; }

.about-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-card p { max-width: 760px; margin-bottom: 0; }

.site-footer {
  padding: 28px 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: #8e96a8;
  font-size: 12px;
}

.site-footer p { margin: 0; }
.footer-links { justify-self: end; display: flex; gap: 18px; }
.footer-links a:hover { color: white; }

@media (max-width: 980px) {
  .hero {
    padding-top: 80px;
    grid-template-columns: 1fr;
  }

  .hero-copy { max-width: 760px; }
  .app-preview { transform: none; }

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

  .download-card {
    grid-template-columns: 1fr;
  }

  .download-actions {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .section-shell,
  .site-header { width: min(100% - 24px, 1180px); }

  .site-header { top: 8px; margin-top: 8px; }

  .menu-button { display: block; }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0d0f15;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 10px; }

  .hero {
    min-height: auto;
    padding: 72px 0 60px;
  }

  h1 { font-size: clamp(50px, 15vw, 74px); }

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

  .preview-layout { grid-template-columns: 48px 130px 1fr; }
  .channel-panel { padding-inline: 7px; }
  .server-name { font-size: 10px; }
  .channel { font-size: 9px; }
  .message { grid-template-columns: 28px 1fr; }
  .avatar { width: 28px; height: 28px; }
  .message-head { align-items: flex-start; flex-direction: column; gap: 2px; }

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

  .download-card { padding: 28px; }
  .about-card { padding: 28px 0; }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-links { justify-self: center; }
}

@media (max-width: 520px) {
  .preview-layout { grid-template-columns: 48px 1fr; }
  .channel-panel { display: none; }
  .hero-actions .button { width: 100%; }
  .hero-meta { display: grid; }
  .about-card { flex-direction: column; }
}
