:root {
  --red: #b91421;
  --red-dark: #7d1018;
  --cream: #f3e6c6;
  --paper: #fff4d5;
  --ink: #161719;
  --coal: #202026;
  --gold: #d9a441;
  --muted: #6f6254;
  --line: rgba(22, 23, 25, 0.18);
  --shadow: 0 24px 80px rgba(53, 22, 18, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(125, 16, 24, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(125, 16, 24, 0.05) 1px, transparent 1px),
    var(--cream);
  background-size: 42px 42px;
  color: var(--ink);
}

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

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(243, 230, 198, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #3e342d;
  font-weight: 700;
}

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

.top-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 2px solid var(--ink);
}

.top-cta,
.button.primary {
  color: var(--paper);
  background: var(--red);
  box-shadow: 5px 5px 0 var(--ink);
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 132px clamp(20px, 5vw, 72px) 70px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 230, 198, 0.98), rgba(243, 230, 198, 0.88) 36%, rgba(243, 230, 198, 0.2) 68%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 580px;
  color: #4e4137;
  font-size: 21px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.command-room,
.features,
.split,
.platforms,
.faq,
.legal-page {
  padding: 82px clamp(20px, 5vw, 72px);
}

.theme-switcher {
  max-width: 1180px;
  margin: 0 auto;
}

.theme-switcher input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-switcher label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 8px 18px 0;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  font-weight: 900;
}

#preview-dark:checked ~ label[for="preview-dark"],
#preview-light:checked ~ label[for="preview-light"] {
  color: var(--paper);
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
}

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 72px 230px minmax(0, 1fr) 230px;
  min-height: 560px;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #221d1d;
  box-shadow: var(--shadow);
}

.preview-shell {
  margin: 0;
}

.rail,
.channels,
.chat,
.members,
.call-panel {
  padding: 18px;
}

.rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #151518;
}

.orb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3b3330;
  color: var(--paper);
  font-weight: 900;
}

.orb.active {
  background: var(--red);
}

.channels {
  background: #2d2928;
  color: var(--paper);
}

.channels p,
.members p {
  margin: 12px 0;
  color: #cdbfa5;
}

.voice {
  color: var(--gold) !important;
}

.chat {
  background: #f8ecd0;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
  font-weight: 900;
}

.message {
  margin: 18px 0;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
}

.message p {
  margin-bottom: 0;
  color: #4a3d34;
}

.message.accent {
  border-color: rgba(185, 20, 33, 0.35);
  background: rgba(185, 20, 33, 0.08);
}

.composer {
  margin-top: 32px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #e8d9b7;
  color: #6b5b4b;
  font-weight: 800;
}

.members {
  background: #231f20;
  color: var(--paper);
}

.call-panel {
  display: grid;
  gap: 16px;
  background: #18191b;
  color: var(--paper);
}

.call-card,
.orbit-card {
  border-radius: 8px;
  border: 1px solid rgba(217, 164, 65, 0.32);
  background: #2a2020;
}

.call-card {
  padding: 18px;
}

.signal {
  color: var(--paper);
  font-weight: 900;
}

.avatars {
  display: flex;
  gap: 12px;
  margin: 22px 0;
}

.avatars span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
}

.avatars span:nth-child(2) {
  background: var(--red);
}

.avatars span:nth-child(3) {
  background: var(--gold);
}

.avatars span:nth-child(4) {
  background: #77766c;
}

.call-actions {
  display: flex;
  gap: 10px;
}

.call-actions button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #2f3136;
  color: var(--paper);
}

.call-actions .hang {
  background: var(--red);
}

.orbit-card {
  min-height: 190px;
  background:
    radial-gradient(circle at 25% 70%, rgba(255, 244, 213, 0.9) 0 10px, transparent 11px),
    radial-gradient(circle at 48% 38%, rgba(217, 164, 65, 0.95) 0 4px, transparent 5px),
    radial-gradient(ellipse at 48% 82%, rgba(243, 230, 198, 0.9) 0 12%, rgba(185, 20, 33, 0.58) 13%, transparent 28%),
    linear-gradient(145deg, #0f1115, #251a18);
}

#preview-dark:checked ~ .preview-shell .chat {
  background: #161719;
  color: var(--paper);
}

#preview-dark:checked ~ .preview-shell .message {
  border-color: rgba(243, 230, 198, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

#preview-dark:checked ~ .preview-shell .message p {
  color: #aaa49a;
}

#preview-dark:checked ~ .preview-shell .composer {
  background: #242428;
  color: #aaa49a;
}

#preview-light:checked ~ .preview-shell {
  background: #f8ecd0;
}

#preview-light:checked ~ .preview-shell .rail,
#preview-light:checked ~ .preview-shell .channels,
#preview-light:checked ~ .preview-shell .members,
#preview-light:checked ~ .preview-shell .call-panel {
  background: #f0dfb9;
  color: var(--ink);
}

#preview-light:checked ~ .preview-shell .channels p,
#preview-light:checked ~ .preview-shell .members p,
#preview-light:checked ~ .preview-shell .message p {
  color: #5f5347;
}

#preview-light:checked ~ .preview-shell .chat {
  background: #fff4d5;
}

#preview-light:checked ~ .preview-shell .composer {
  background: #e7d4a7;
}

.section-title {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.feature-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-grid article,
.quality-card,
.poster-card,
.platform-grid a,
.faq details {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(22, 23, 25, 0.9);
}

.feature-grid article {
  min-height: 250px;
  padding: 26px;
}

.feature-grid p,
.split p,
.faq p {
  color: var(--muted);
  line-height: 1.55;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-size: 22px;
}

.split {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
}

.reverse {
  padding-top: 20px;
}

.quality-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: var(--red);
}

.quality-card span {
  padding: 16px;
  border-radius: 8px;
  background: var(--paper);
  font-weight: 1000;
  text-align: center;
}

.poster-card {
  padding: 34px;
  background: var(--ink);
  color: var(--paper);
}

.poster-card p {
  color: #f1dcae;
  font-size: 22px;
}

.big-star {
  display: block;
  color: var(--gold);
  font-size: 96px;
  line-height: 1;
}

.platform-grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.platform-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 96px;
  padding: 26px;
}

.platform-grid span {
  color: var(--red);
  font-weight: 900;
}

.faq {
  max-width: 920px;
  margin: 0 auto;
}

.faq details {
  margin-bottom: 16px;
  padding: 20px 24px;
}

.faq summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--red);
  font-weight: 900;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 132px;
}

.legal-page article {
  padding: 34px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(22, 23, 25, 0.9);
}

.legal-page li {
  margin-bottom: 10px;
  line-height: 1.55;
}

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

.support-grid div {
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: var(--paper);
}

footer p {
  margin: 0;
  color: #d6c6a5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #f1dcae;
  font-weight: 800;
}

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

  .hero {
    min-height: 820px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(243, 230, 198, 0.98), rgba(243, 230, 198, 0.9) 50%, rgba(243, 230, 198, 0.45));
  }

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

  .channels,
  .members,
  .call-panel {
    display: none;
  }

  .feature-grid,
  .split,
  .platform-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

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

  .top-cta {
    display: none;
  }

  .hero {
    padding: 112px 18px 46px;
  }

  .button {
    width: 100%;
  }

  .command-room,
  .features,
  .split,
  .platforms,
  .faq {
    padding-left: 18px;
    padding-right: 18px;
  }

  .app-shell {
    min-height: 500px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
