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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 75% 12%, #20283a 0, #111318 38rem); color: #f4f5f7; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header, footer { width: min(1160px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.site-header { height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #8b7cf6; color: #101116; }
.header-link { color: #afb4c0; font-size: 14px; }

.hero, .section { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: 670px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 40px; padding: 70px 0 90px; }
.eyebrow { margin: 0 0 16px; color: #9d91ff; font-size: 13px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(48px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 590px; margin: 26px 0 0; color: #b9bdc8; font-size: 20px; line-height: 1.6; }
.hero-controls { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 34px; }
.hero-controls > .button { flex: 0 0 auto; white-space: nowrap; }
.hero-join-form { min-width: 0; display: flex; align-items: center; gap: 8px; flex: 1 1 auto; }
.hero-join-form input { min-width: 0; flex: 1 1 150px; }
.hero-join-form .button { flex: 0 0 auto; }
.control-divider { color: #676d79; font-size: 12px; }
.button { min-height: 48px; padding: 0 20px; border: 1px solid #343945; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; }
.button.primary { border-color: #8b7cf6; background: #8b7cf6; color: #101116; }
.button.secondary { background: #191c23; color: #e2e4e9; }
.button:hover { filter: brightness(1.08); }
.hint { color: #747a87; font-size: 13px; }
.hero-error { margin: 8px 0 -8px; }

.editor-preview { overflow: hidden; border: 1px solid #303641; border-radius: 16px; background: #16191f; box-shadow: 0 30px 90px #0008; transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.preview-bar { height: 46px; padding: 0 16px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #292e37; color: #7f8591; font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #ef6a67; }.dot.yellow { background: #e7b84f; }.dot.green { background: #62c679; }
.preview-title { margin-left: auto; margin-right: auto; }
.preview-body { min-height: 325px; display: grid; grid-template-columns: 142px 1fr; }
.files { padding: 20px 12px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid #292e37; color: #717784; font-size: 12px; }
.files strong { margin: 0 8px 8px; color: #aeb3bd; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.files span { padding: 7px 9px; border-radius: 6px; }.files .active { background: #242833; color: #f1f2f5; }
pre { margin: 0; padding: 28px 24px; overflow: hidden; color: #d6d9df; font: 14px/2 "SFMono-Regular", Consolas, monospace; }
.line-no { display: inline-block; width: 28px; color: #555c68; user-select: none; }.token-key { color: #b5aaff; }.caret { display: inline-block; height: 18px; border-left: 2px solid #62c679; vertical-align: middle; }
.presence { height: 46px; padding: 0 16px; display: flex; align-items: center; border-top: 1px solid #292e37; color: #858b97; font-size: 12px; }
.avatar { width: 24px; height: 24px; margin-right: -5px; display: grid; place-items: center; border: 2px solid #16191f; border-radius: 50%; background: #8b7cf6; color: #111318; font-weight: 800; }.avatar.second { margin-right: 10px; background: #62c679; }

.section { padding: 110px 0; border-top: 1px solid #292d35; }
.section h2 { max-width: 760px; margin: 0 0 42px; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.04em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { padding: 28px; border: 1px solid #2b303a; border-radius: 14px; background: #15181e; }
.steps article > span { color: #776bea; font: 700 13px monospace; }.steps h3 { margin: 48px 0 10px; font-size: 20px; }.steps p, .feature-list span, .faq p { color: #979da9; line-height: 1.6; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.feature-list { margin: 0; padding: 0; list-style: none; }.feature-list li { padding: 24px 0; display: grid; grid-template-columns: 190px 1fr; gap: 22px; border-top: 1px solid #2b303a; }.feature-list strong { font-size: 17px; }
.join { display: grid; grid-template-columns: .9fr 1.1fr; align-items: end; gap: 80px; }.join h2 { margin-bottom: 0; }
form label { display: block; margin-bottom: 10px; color: #aeb3bd; font-size: 13px; }.join-row { display: flex; gap: 10px; }input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #363c48; border-radius: 10px; outline: none; background: #171a20; color: #f4f5f7; }input:focus { border-color: #8b7cf6; box-shadow: 0 0 0 3px #8b7cf622; }.form-error { min-height: 20px; color: #ef8582; font-size: 13px; }
.faq details { max-width: 800px; padding: 22px 0; border-top: 1px solid #2b303a; }.faq summary { cursor: pointer; font-size: 18px; font-weight: 650; }.faq details:last-child { border-bottom: 1px solid #2b303a; }
footer { min-height: 110px; border-top: 1px solid #292d35; color: #7f8591; font-size: 13px; }

@media (max-width: 900px) {
  .hero, .split, .join { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; gap: 50px; }
  .editor-preview { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .feature-list li { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 520px) {
  .site-header, footer, .hero, .section { width: min(100% - 28px, 1160px); }
  .header-link { display: none; }
  h1 { font-size: 46px; }
  .lead { font-size: 17px; }
  .hero-controls { align-items: stretch; flex-direction: column; }
  .control-divider { display: none; }
  .hero-join-form, .join-row { flex-direction: column; }
  .preview-body { grid-template-columns: 1fr; }.files { display: none; }
  .section { padding: 78px 0; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
}
