:root {
  color-scheme: dark;
  --brand: #0330ef;
  --bg: #0b0b0b;
  --surface: #0f0f0f;
  --fg: #f4f5fb;
  --muted: #8e92a6;
  --line: rgb(255 255 255 / 0.1);
  --ring: rgb(255 255 255 / 0.16);
  --outline: rgb(255 255 255 / 0.34);
  --neutral: #34343a;
  --font-title: "Figtree", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sidebar: 92px;
  --topbar: 68px;
  --gutter: 5vw;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f2f7;
  --surface: #ffffff;
  --fg: #0b0b0b;
  --muted: #5f637a;
  --line: rgb(11 11 11 / 0.12);
  --ring: rgb(3 48 239 / 0.3);
  --outline: rgb(11 11 11 / 0.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 800;
}

h2 {
  font-size: clamp(36px, 5.4vw, 84px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  z-index: 9;
}

.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

.wordmark {
  display: block;
  width: var(--size, 60px);
  height: auto;
}

:root[data-theme="light"] .wordmark {
  filter: invert(1);
}

.avatar {
  display: block;
  flex: none;
  align-self: flex-start;
  width: var(--size, 40px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 60px;
}

.section-head__num {
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s;
}

.btn .icon {
  transition: transform 0.4s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(5px);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn:hover::before {
  transform: none;
}

.btn--fill {
  background: var(--brand);
  color: #fff;
}

.btn--fill::before {
  background: var(--fg);
}

.btn--fill:hover {
  color: var(--bg);
}

.btn--line {
  border: 1px solid var(--line);
}

.btn--line::before {
  background: var(--fg);
}

.btn--line:hover {
  color: var(--bg);
  border-color: var(--fg);
}

.btn--white {
  background: #fff;
  color: var(--brand);
}

.btn--white::before {
  background: #0b0b0b;
}

.btn--white:hover {
  color: #fff;
}

.btn--outline {
  border: 1px solid rgb(255 255 255 / 0.5);
  color: #fff;
}

.btn--outline::before {
  background: #fff;
}

.btn--outline:hover {
  color: var(--brand);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.pill:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.pill b {
  color: var(--brand);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--brand);
  transform: rotate(90deg);
}

.theme-toggle .icon--sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon--sun {
  display: block;
}

:root[data-theme="light"] .theme-toggle .icon--moon {
  display: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: var(--sidebar);
  padding-block: 26px;
  background: var(--bg);
  border-right: 1px solid var(--line);
}

.sidebar__logo {
  --size: 60px;
  display: block;
  transition: transform 0.5s var(--ease);
}

.sidebar__logo:hover {
  transform: scale(1.08) rotate(-4deg);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar__link {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.4s var(--ease), color 0.4s;
}

.sidebar__link:hover {
  color: var(--fg);
}

.sidebar__link.is-active {
  background: var(--brand);
  color: #fff;
}

.sidebar__link span {
  position: absolute;
  left: 50px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.sidebar__link:hover span {
  opacity: 1;
  transform: none;
}

.topbar {
  display: none;
}

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 96px 8vw 40px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
}

.menu__close {
  position: absolute;
  top: 14px;
  right: 5vw;
}

.menu__nav {
  display: grid;
  gap: 6px;
}

.menu__link {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-title);
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.menu__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.page,
.footer {
  margin-left: var(--sidebar);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-inline: var(--gutter);
  overflow: hidden;
}

.hero__text {
  position: relative;
  z-index: 3;
  max-width: 62vw;
  padding-block: 120px;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 1s 0.1s var(--ease) forwards;
}

.hero__kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero__title {
  font-size: clamp(50px, 8.2vw, 138px);
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.hero__line {
  display: block;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  overflow: hidden;
}

.hero__line span {
  display: inline-block;
  transform: translateY(108%);
  animation: rise 1.2s var(--ease) forwards;
}

.hero__line:nth-child(2) span {
  color: var(--brand);
  animation-delay: 0.12s;
}

.hero__lead {
  max-width: 460px;
  margin-block: 38px 40px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  opacity: 0;
  animation: fade-up 1s 0.6s var(--ease) forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fade-up 1s 0.8s var(--ease) forwards;
}

.hero__oss {
  margin-top: 28px;
  opacity: 0;
  animation: fade-up 1s 1s var(--ease) forwards;
}

@keyframes rise {
  to { transform: none; }
}

@keyframes fade-up {
  from { transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.globe {
  --globe-size: min(46vw, 700px);
  position: absolute;
  top: 50%;
  right: 3vw;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--globe-size);
  height: var(--globe-size);
  margin-top: calc(var(--globe-size) / -2);
  perspective: 1400px;
  animation: globe-in 1.6s 0.2s var(--ease) both;
}

.globe__tilt {
  position: relative;
  width: 400px;
  height: 400px;
  scale: calc(var(--globe-size) / 560px);
  transform-style: preserve-3d;
}

.globe__core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #3a58ff 0%, #0330ef 38%, #020d5c 78%, #0b0b0b 100%);
  box-shadow: 0 0 120px -10px rgb(3 48 239 / 0.7);
}

:root[data-theme="light"] .globe__core {
  background: radial-gradient(circle at 34% 28%, #7a91ff 0%, #0330ef 45%, #021a9c 100%);
}

.globe__spin {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: globe-spin 52s linear infinite;
}

.globe__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  margin: -200px 0 0 -200px;
  border: 1px solid var(--ring);
  border-radius: 50%;
}

.globe__tag {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.5);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  backface-visibility: hidden;
}

.globe__tag--official {
  background: #fff;
  border-color: #fff;
  color: #0330ef;
}

@keyframes globe-in {
  from { opacity: 0; transform: scale(0.7); }
}

@keyframes globe-spin {
  to { transform: rotateY(360deg); }
}

.features {
  padding: 160px var(--gutter) 100px;
  border-top: 1px solid var(--line);
}

.features__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5vw;
  align-items: start;
}

.features__preview {
  position: sticky;
  top: 17vh;
  perspective: 1500px;
}

.feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
}

.feature__num {
  margin-bottom: 20px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.feature__title {
  color: transparent;
  font-size: clamp(44px, 8.4vw, 132px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  -webkit-text-stroke: 1.5px var(--outline);
  transition: color 0.6s var(--ease), -webkit-text-stroke-color 0.6s;
}

.feature__text {
  max-width: 420px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s 0.1s, transform 0.8s 0.1s var(--ease);
}

.feature.is-active .feature__title {
  color: var(--fg);
  -webkit-text-stroke-color: var(--fg);
}

.feature.is-active .feature__text {
  opacity: 1;
  transform: none;
}

.window {
  position: relative;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 16px;
  background: #0f0f0f;
  color: #f4f5fb;
  overflow: hidden;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  color: #9a9eb2;
  font-size: 14px;
}

.window__bar b {
  color: #fff;
}

.window__bar i {
  color: #5d6178;
  font-style: normal;
}

.preview {
  max-width: 520px;
  height: 480px;
  box-shadow: 0 70px 110px -40px rgb(3 48 239 / 0.6);
  transform: rotateY(-14deg) rotateX(5deg);
  transition: transform 0.8s var(--ease);
}

.features__preview:hover .preview {
  transform: rotateY(-4deg) rotateX(1deg);
}

.preview__stack {
  position: relative;
  height: calc(100% - 50px);
}

.preview__item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.5s, transform 0.7s var(--ease);
  pointer-events: none;
}

.preview__item.is-active {
  opacity: 1;
  transform: none;
}

.message {
  animation: message-in 0.6s var(--ease) both;
}

.message__row {
  display: flex;
  gap: 14px;
}

.message__body {
  min-width: 0;
}

.message__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.message__meta strong {
  font-size: 15px;
}

.message__meta small {
  color: #747a92;
  font-size: 11px;
}

.message__bot-name {
  color: #3d5bff;
}

.message__badge {
  padding: 2px 6px;
  border-radius: 5px;
  background: #0330ef;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.message__text {
  color: #dfe2f2;
  font-size: 15px;
  line-height: 1.45;
}

.message__mention {
  display: inline-block;
  margin-bottom: 6px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgb(3 48 239 / 0.3);
  color: #b5c1ff;
  font-size: 14px;
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
}

.initial {
  display: grid;
  place-items: center;
  width: var(--size, 22px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tint);
  color: #fff;
  font-size: calc(var(--size, 22px) * 0.5);
  font-weight: 700;
  flex: none;
  align-self: flex-start;
}

.reply {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-bottom: 3px;
  padding-left: 20px;
  color: #a7abbd;
  font-size: 13px;
}

.reply__curve {
  flex: none;
  width: 22px;
  height: 11px;
  margin-top: 9px;
  border-top: 2px solid #4a4c58;
  border-left: 2px solid #4a4c58;
  border-top-left-radius: 8px;
}

.reply__author {
  font-weight: 700;
  white-space: nowrap;
}

.reply__author--bot {
  color: #cfd3e8;
}

.reply__author--member {
  color: #8fa1ff;
}

.reply__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply__text--muted {
  font-style: italic;
}

.embed {
  max-width: 420px;
  margin-top: 4px;
  padding: 12px 16px 12px 14px;
  border-left: 4px solid var(--accent, var(--neutral));
  border-radius: 6px;
  background: #080808;
}

.embed__author {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.embed__author span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed__text {
  margin-bottom: 9px;
  color: #dfe2f2;
  font-size: 14px;
  line-height: 1.4;
}

.embed__footer {
  color: #cfd3e8;
  font-size: 12px;
  font-weight: 700;
}

.sticker {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-bottom: 9px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--from), var(--to));
  font-size: 56px;
}

.typing {
  display: flex;
  gap: 5px;
  height: 14px;
  padding-left: 54px;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5d6178;
  animation: typing-dot 1s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-dot {
  40% { transform: translateY(-6px); background: #0330ef; }
}

.demo {
  padding: 140px var(--gutter) 120px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.demo__intro {
  max-width: 560px;
  margin-top: -20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.demo__stage {
  margin-top: 56px;
  padding-block: 30px 50px;
  perspective: 1900px;
}

.demo__scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(280px, 380px);
  gap: clamp(24px, 5vw, 72px);
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  transform-style: preserve-3d;
}

.demo__scene::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.08) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.08) 0 1px, transparent 1px 44px),
    linear-gradient(160deg, #0330ef, #021a8a 70%, #0b0b0b);
  box-shadow: 0 80px 140px -50px rgb(3 48 239 / 0.6);
  transform: translateZ(-140px);
}

.chat {
  transform: translateZ(40px);
  box-shadow: 0 70px 110px -40px rgb(0 0 0 / 0.8);
  animation: float 8s ease-in-out infinite;
}

.chat__feed {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  height: 500px;
  padding: 20px;
  overflow: hidden;
}

.server-card {
  transform: translateZ(130px);
  background: #0b0b0b;
  box-shadow: 0 70px 110px -40px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(3 48 239 / 0.4);
  animation: float 7s 1s ease-in-out infinite reverse;
}

.server-card__banner {
  height: 100px;
  background: radial-gradient(circle at 30% 130%, #0330ef, transparent 70%), #0f0f0f;
}

.server-card__body {
  padding: 0 22px 22px;
}

.server-card__icon {
  --size: 78px;
  margin-top: -39px;
  border: 5px solid #0b0b0b;
  box-sizing: content-box;
}

.server-card__name {
  margin-block: 14px 12px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.server-card__stats {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  color: #b8bdd4;
  font-size: 14px;
}

.server-card__stats span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.server-card__stats i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #23c55e;
}

.server-card__stats span + span i {
  background: #747a92;
}

.server-card__join {
  display: block;
  padding: 13px;
  border-radius: 10px;
  background: #0330ef;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.server-card__join:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -8px #0330ef;
}

@keyframes float {
  50% { translate: 0 -14px; }
}

.vanish .message {
  animation: vanish 5s ease-in-out infinite;
}

@keyframes vanish {
  0%, 45% { opacity: 1; transform: none; filter: none; }
  60% { opacity: 0; transform: translateX(50px) scale(0.94); filter: blur(8px); }
  92% { opacity: 0; transform: translateX(-30px); filter: none; }
  100% { opacity: 1; transform: none; }
}

.sync {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.sync div {
  display: flex;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 8px;
  color: #b9bdd0;
  font-size: 13px;
}

.sync div::after {
  content: "mensagem removida";
  color: #23c55e;
  font-size: 12px;
  opacity: 0;
  animation: sync-ok 5s infinite;
  animation-delay: var(--delay);
}

@keyframes sync-ok {
  0%, 50% { opacity: 0; }
  62%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

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

.sticker-grid .sticker {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  font-size: 54px;
  animation: wobble 2.6s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes wobble {
  50% { transform: translateY(-9px) rotate(-5deg); }
}

.network {
  width: 100%;
  height: auto;
}

.network__link {
  stroke: #0330ef;
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  animation: dash 1.2s linear infinite;
}

.network__pulse {
  fill: #0330ef;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.4s infinite;
}

.network__node {
  fill: #161618;
  stroke: rgb(255 255 255 / 0.14);
}

.network__label {
  fill: #e8eaf5;
  font: 700 12px sans-serif;
  text-anchor: middle;
}

@keyframes dash {
  to { stroke-dashoffset: -24; }
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(2.3); opacity: 0; }
}

.opensource {
  padding: 140px var(--gutter);
  border-top: 1px solid var(--line);
}

.opensource__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
}

.opensource__lead {
  max-width: 480px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.opensource__list {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}

.opensource__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
}

.opensource__list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0f0f0f;
  color: #f4f5fb;
  box-shadow: 0 50px 90px -40px rgb(3 48 239 / 0.55);
  transition: transform 0.7s var(--ease);
}

.terminal:hover {
  transform: translateY(-8px) rotate(-0.6deg);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  font-size: 14px;
  font-weight: 700;
}

.terminal__bar .icon {
  width: 20px;
  height: 20px;
}

.terminal__bar small {
  margin-left: auto;
  color: #0330ef;
  font-size: 12px;
}

.terminal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 26px 22px 30px;
}

.terminal__line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #080808;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 14px;
}

.terminal__line code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.terminal__line::before {
  content: "$";
  color: #0330ef;
}

.terminal__copy {
  padding: 7px 14px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.3s, border-color 0.3s;
}

.terminal__copy:hover {
  background: #0330ef;
  border-color: #0330ef;
}

.how {
  padding: 150px var(--gutter);
  background: var(--brand);
  color: #fff;
  overflow: hidden;
}

.how .section-head__num {
  color: #fff;
}

.how h2 {
  max-width: 900px;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw;
  margin-block: 80px;
}

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

.step {
  padding-top: 26px;
  border-top: 2px solid rgb(255 255 255 / 0.5);
  transition: transform 0.6s var(--ease);
}

.step:hover {
  transform: translateY(-12px);
}

.step__num {
  display: block;
  color: transparent;
  font-family: var(--font-title);
  font-size: clamp(80px, 11vw, 170px);
  font-weight: 900;
  line-height: 0.9;
  -webkit-text-stroke: 2px #fff;
  transition: color 0.5s;
}

.step:hover .step__num {
  color: #fff;
}

.step__title {
  margin-block: 22px 10px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.step__text {
  max-width: 320px;
  color: rgb(255 255 255 / 0.85);
  line-height: 1.6;
}

.step__text code {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.2);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92em;
}

.footer {
  padding: 70px var(--gutter) 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer__main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer__brand {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.footer__brand .wordmark {
  --size: 76px;
}

.footer__brand p {
  max-width: 300px;
  line-height: 1.6;
}

.footer__brand .pill {
  color: var(--fg);
}

.footer__title {
  margin-bottom: 18px;
  color: var(--fg);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.footer__list {
  display: grid;
  gap: 12px;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, transform 0.4s var(--ease);
}

.footer__list a:hover {
  color: var(--brand);
  transform: translateX(4px);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .sidebar {
    display: none;
  }

  .page,
  .footer {
    margin-left: 0;
  }

  .topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar);
    padding-inline: var(--gutter);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .topbar__logo {
    --size: 56px;
  }

  .topbar__actions {
    display: flex;
    gap: 8px;
  }

  .hero__text {
    max-width: 100%;
    padding-block: calc(var(--topbar) + 60px) 80px;
  }

  .hero__title {
    font-size: min(13vw, 76px);
  }

  .hero__lead {
    font-size: 17px;
  }

  .globe {
    --globe-size: 92vw;
    right: -30vw;
    top: 76%;
    opacity: 0.45;
  }

  .features {
    padding-block: 100px 60px;
  }

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

  .features__preview {
    order: -1;
    top: calc(var(--topbar) + 12px);
    z-index: 5;
  }

  .feature {
    min-height: 60vh;
  }

  .feature__title {
    font-size: min(15vw, 84px);
  }

  .feature__text {
    font-size: 16px;
  }

  .preview {
    height: 330px;
    max-width: none;
    transform: none;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .demo {
    padding-block: 90px 80px;
  }

  .demo__scene {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 14px;
  }

  .chat__feed {
    height: 420px;
  }

  .server-card {
    order: 2;
    transform: translateZ(70px);
  }

  .opensource {
    padding-block: 90px;
  }

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

  .how {
    padding-block: 100px;
  }

  .how__steps {
    grid-template-columns: 1fr;
    margin-block: 50px;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .btn {
    padding: 14px 20px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .embed {
    padding-inline: 12px;
  }

  .terminal__line {
    flex-wrap: wrap;
  }

  .terminal__line code {
    flex-basis: 100%;
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
