* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, #243044, #090b10 45%);
  color: #f6f7f9;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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


/* NAV */

header {
  position: sticky;
  top: 0;
  z-index: 10;

  background: rgba(9, 11, 16, 0.82);
  backdrop-filter: blur(20px);

  border-bottom: 1px solid #252a33;
}

.nav {
  max-width: 1150px;
  height: 72px;

  margin: auto;
  padding: 0 24px;

  display: flex;
  align-items: center;
  gap: 35px;
}

.logo {
  font-size: 20px;
  font-weight: 800;

  display: flex;
  align-items: center;
  gap: 10px;

  margin-right: auto;
}

.logo-box {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  color: #111;
  background: white;

  font-weight: 900;
}

nav {
  display: flex;
  gap: 25px;

  color: #aeb6c3;
}

nav a:hover {
  color: white;
}

.unstable {
  padding: 7px 10px;

  border-radius: 8px;

  font-size: 11px;
  font-weight: 800;

  color: #ffcf67;
  background: #2c2412;

  border: 1px solid #59461b;
}


/* HERO */

.hero {
  max-width: 950px;

  margin: auto;
  padding: 110px 25px 90px;

  text-align: center;
}

.badge {
  display: inline-block;

  padding: 7px 13px;

  border-radius: 100px;

  background: #171b23;
  border: 1px solid #303744;

  color: #b9c4d3;

  font-size: 13px;
}

.hero h1 {
  max-width: 900px;

  margin: 25px auto;

  font-size: clamp(45px, 7vw, 80px);
  line-height: 1.02;

  letter-spacing: -4px;
}

.hero-text {
  max-width: 700px;

  margin: auto;

  color: #aeb6c3;

  font-size: 19px;
  line-height: 1.7;
}

.hero-buttons {
  margin-top: 35px;

  display: flex;
  justify-content: center;
  gap: 12px;

  flex-wrap: wrap;
}

.button {
  padding: 14px 22px;

  border-radius: 10px;

  font-weight: 700;

  transition: 0.2s;
}

.primary {
  color: #111;
  background: white;
}

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

.secondary {
  background: #171b23;
  border: 1px solid #303744;
}

.secondary:hover {
  background: #212631;
}

.warning {
  max-width: 650px;

  margin: 45px auto 0;
  padding: 18px 20px;

  text-align: left;

  border-radius: 14px;

  color: #e7d8b0;
  background: rgba(74, 55, 15, 0.25);

  border: 1px solid #59471c;
}

.warning p {
  margin-bottom: 0;

  color: #baae91;
  line-height: 1.6;
}


/* SECTIONS */

.section {
  max-width: 1120px;

  margin: auto;
  padding: 80px 25px;
}

.section-title span,
.flow-title {
  font-size: 12px;
  font-weight: 800;

  letter-spacing: 2px;

  color: #77849a;
}

.section-title h2 {
  max-width: 700px;

  margin-top: 10px;

  font-size: 42px;
  letter-spacing: -2px;
}


/* FORMAT CARDS */

.comparison {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 15px;

  margin-top: 40px;
}

.card {
  min-height: 270px;

  padding: 28px;

  border-radius: 18px;

  background: #11141a;
  border: 1px solid #262c35;
}

.card.featured {
  background:
    linear-gradient(
      145deg,
      #171d28,
      #11141a
    );

  border-color: #465366;
}

.extension {
  font-size: 28px;
  font-weight: 900;
}

.card h3 {
  margin-top: 45px;
}

.card p {
  color: #949eae;

  line-height: 1.7;
}


/* DOWNLOADS */

.downloads {
  display: grid;
  gap: 12px;

  margin-top: 35px;
}

.download-card {
  display: grid;

  grid-template-columns:
    60px 1fr auto;

  align-items: center;

  gap: 20px;

  padding: 22px;

  border-radius: 16px;

  background: #11141a;
  border: 1px solid #272d36;
}

.download-card h3 {
  margin: 0 0 5px;
}

.download-card p {
  margin: 0;

  color: #9aa4b3;
}

.icon {
  width: 55px;
  height: 55px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  color: #111;
  background: white;

  font-size: 21px;
  font-weight: 900;
}

.platforms {
  margin-top: 9px;

  color: #687486;

  font-size: 12px;
}

.small-button {
  padding: 10px 17px;

  border-radius: 9px;

  background: #212630;
  border: 1px solid #303845;

  font-weight: 700;
}


/* CODE */

.code-card {
  margin-top: 18px;

  padding: 20px;

  overflow-x: auto;

  border-radius: 15px;

  background: #090b0f;
  border: 1px solid #252b34;
}

pre {
  margin: 0;

  color: #c9d4e3;

  font-family:
    "JetBrains Mono",
    "Fira Code",
    monospace;

  line-height: 1.7;
}


/* FLOW */

.flow {
  max-width: 1120px;

  margin: 30px auto 100px;
  padding: 40px 25px;
}

.flow-row {
  margin-top: 25px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;
}

.flow-row > div {
  flex: 1;

  min-height: 100px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 18px;

  border-radius: 14px;

  background: #11141a;
  border: 1px solid #282e38;
}

.flow-row strong {
  color: #68788f;

  margin-bottom: 7px;
}


/* FOOTER */

footer {
  max-width: 1120px;

  margin: auto;
  padding: 35px 25px;

  display: flex;
  justify-content: space-between;

  color: #697484;

  border-top: 1px solid #222831;
}

footer div {
  display: flex;
  gap: 12px;
}


/* MOBILE */

@media (max-width: 800px) {

  nav {
    display: none;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

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

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

  .small-button {
    grid-column: 1 / -1;
    text-align: center;
  }

  .flow-row {
    flex-direction: column;
  }

  .flow-row > span {
    transform: rotate(90deg);
  }

  .flow-row > div {
    width: 100%;
  }

}

.auth-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-actions button {
  border: 1px solid #303744;
  background: #171b23;
  color: white;
  padding: 9px 13px;
  border-radius: 9px;
  cursor: pointer;
}

.auth-actions button:hover {
  background: #222833;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.modal-backdrop.hidden {
  display: none;
}

.modal {
  position: relative;
  width: min(620px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid #303744;
  background: #11141a;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.modal input,
.modal textarea {
  width: 100%;
  margin: 7px 0;
  padding: 12px;
  border: 1px solid #303744;
  border-radius: 9px;
  background: #090b10;
  color: white;
}

.report-card {
  margin-top: 15px;
  padding: 16px;
  border: 1px solid #2b323d;
  border-radius: 12px;
  background: #0c0f14;
}

.chat-messages {
  max-height: 420px;
  overflow-y: auto;
  margin: 15px 0;
  padding: 10px;
  background: #090b10;
  border-radius: 12px;
}

.chat-message {
  max-width: 80%;
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 12px;
}

.chat-message.user {
  margin-left: auto;
  background: #263042;
}

.chat-message.admin {
  margin-right: auto;
  background: #171b23;
  border: 1px solid #303744;
}
