:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #101312;
  color: #fff7ec;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.34), transparent 30%),
    linear-gradient(28deg, rgba(245, 158, 76, 0.16), transparent 38%),
    linear-gradient(322deg, rgba(37, 99, 235, 0.24), transparent 35%),
    #101312;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 247, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 247, 236, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
  pointer-events: none;
  position: fixed;
}

a,
button,
select {
  font: inherit;
}

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

button {
  background: none;
  border: 0;
  color: inherit;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1220px;
  padding: 14px 24px 6px;
  position: relative;
  z-index: 2;
}

.brand,
nav,
.actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand {
  font-size: 18px;
  font-weight: 900;
}

.brand img {
  border-radius: 8px;
  height: 36px;
  width: 36px;
}

nav {
  color: #eadfce;
  font-size: 14px;
  font-weight: 800;
}

main {
  margin: 0 auto;
  max-width: 1220px;
  padding: 0 24px 14px;
  position: relative;
  z-index: 1;
}

.hero {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.93fr) minmax(430px, 1.07fr);
  min-height: calc(100svh - 56px);
  padding: 6px 0 10px;
}

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

.wordmark {
  background: rgba(255, 247, 236, 0.9);
  border-radius: 8px;
  display: block;
  height: auto;
  margin-bottom: 12px;
  max-width: 340px;
  padding: 8px 12px;
  width: min(100%, 340px);
}

.eyebrow {
  color: #9ee4d0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(50px, 7vw, 88px);
  line-height: 0.9;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.96;
  margin-bottom: 0;
}

.hero-copy > p:not(.eyebrow) {
  color: #f0e3d3;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.3;
  max-width: 610px;
}

.button {
  border: 1px solid rgba(255, 247, 236, 0.2);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-width: 170px;
  padding: 12px 18px;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.button.primary {
  background: #fff7ec;
  color: #101312;
}

.button:not(.primary) {
  background: rgba(255, 247, 236, 0.08);
}

.button:hover,
.download-toggle:hover {
  border-color: rgba(255, 247, 236, 0.58);
}

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

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

.feature-band article,
.app-demo {
  border: 1px solid rgba(255, 247, 236, 0.14);
  border-radius: 8px;
}

.download-menu {
  align-items: stretch;
  display: inline-flex;
  position: relative;
}

.download-menu .download-main {
  border-radius: 8px 0 0 8px;
  min-width: 210px;
}

.download-toggle {
  align-items: center;
  background: #fff7ec;
  border: 1px solid rgba(255, 247, 236, 0.2);
  border-left-color: rgba(16, 19, 18, 0.18);
  border-radius: 0 8px 8px 0;
  color: #101312;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-width: 48px;
  padding: 0 14px;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.download-options {
  background: rgba(16, 19, 18, 0.96);
  border: 1px solid rgba(255, 247, 236, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  display: none;
  gap: 4px;
  left: 0;
  min-width: 258px;
  padding: 7px;
  position: absolute;
  top: calc(100% + 8px);
  z-index: 5;
}

.download-menu.open .download-options {
  display: grid;
}

.download-options a {
  border-radius: 8px;
  color: #f0e3d3;
  font-weight: 800;
  padding: 11px 12px;
}

.download-options a:hover,
.download-options a:focus {
  background: rgba(158, 228, 208, 0.14);
  color: #fff7ec;
  outline: none;
}

.feature-band article {
  background: rgba(16, 19, 18, 0.52);
  min-height: 104px;
  padding: 14px;
}

.feature-band span {
  color: #9ee4d0;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.feature-band p {
  color: #d2c5b4;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 0;
}

.app-demo {
  background:
    linear-gradient(180deg, rgba(255, 247, 236, 0.12), transparent 34%),
    rgba(14, 17, 18, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: 66px 176px minmax(0, 1fr);
  min-height: 498px;
  overflow: hidden;
}

.space-rail {
  align-items: center;
  background: rgba(255, 247, 236, 0.06);
  border-right: 1px solid rgba(255, 247, 236, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 10px;
}

.space-rail img,
.rail-dot {
  border-radius: 8px;
  height: 42px;
  width: 42px;
}

.rail-dot {
  align-items: center;
  background: rgba(255, 247, 236, 0.1);
  color: #fff7ec;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
}

.rail-dot.active {
  background: #fff7ec;
  color: #101312;
}

.channel-list {
  background: rgba(255, 247, 236, 0.045);
  border-right: 1px solid rgba(255, 247, 236, 0.1);
  display: grid;
  gap: 8px;
  grid-auto-rows: max-content;
  padding: 18px 14px;
}

.channel-list strong {
  margin-bottom: 10px;
}

.channel-list button {
  border-radius: 8px;
  color: #d7c9b9;
  padding: 9px 10px;
  text-align: left;
}

.channel-list button.selected {
  background: rgba(158, 228, 208, 0.14);
  color: #fff7ec;
}

.voice-room {
  align-items: center;
  background: rgba(255, 247, 236, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  grid-template-columns: 12px 1fr;
  margin-top: 14px;
  padding: 11px;
}

.voice-room small {
  color: #9ee4d0;
  grid-column: 2;
}

.live-dot {
  background: #34d399;
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.message-pane {
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto auto 1fr auto;
  padding: 18px;
}

.demo-topbar {
  align-items: center;
  border-bottom: 1px solid rgba(255, 247, 236, 0.1);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.demo-topbar span,
.demo-message span,
.screen-tile small,
.composer {
  color: #cfc1b1;
}

.demo-message {
  background: rgba(255, 247, 236, 0.07);
  border-radius: 8px;
  max-width: 82%;
  padding: 13px;
}

.demo-message.me {
  justify-self: end;
}

.demo-message p {
  margin: 5px 0 0;
}

.screen-tile {
  align-self: stretch;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.22), transparent),
    linear-gradient(315deg, rgba(37, 99, 235, 0.2), transparent),
    rgba(255, 247, 236, 0.08);
  border: 1px solid rgba(255, 247, 236, 0.13);
  border-radius: 8px;
  display: flex;
  min-height: 136px;
  padding: 14px;
}

.screen-tile div {
  align-self: end;
  display: grid;
  gap: 4px;
}

.composer {
  background: rgba(255, 247, 236, 0.08);
  border-radius: 8px;
  padding: 13px;
}

@media (max-width: 980px) {
  .site-header,
  main {
    padding-left: 18px;
    padding-right: 18px;
  }

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

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

  .app-demo {
    grid-template-columns: 58px minmax(128px, 150px) minmax(0, 1fr);
    min-height: 500px;
  }

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

  .download-menu {
    display: flex;
    width: 100%;
  }

  .download-menu .download-main {
    flex: 1;
    min-width: 0;
  }

  .download-options {
    min-width: 100%;
  }
}

@media (max-width: 620px) {
  nav {
    gap: 10px;
  }

  .wordmark {
    max-width: 280px;
  }

  .app-demo {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .message-pane {
    grid-column: 1 / -1;
  }

  .space-rail {
    min-height: 220px;
  }
}
