:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #07101d;
  --bg-deep: #040912;
  --card: #0f1724;
  --card-strong: #111d2d;
  --text: #f4f8ff;
  --muted: #9aa8ba;
  --line: rgba(158, 184, 214, 0.18);
  --blue: #2a8be0;
  --blue-soft: rgba(42, 139, 224, 0.18);
  --orange: #ff9d00;
  --orange-soft: rgba(255, 157, 0, 0.16);
  --glass: rgba(15, 23, 36, 0.72);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(42, 139, 224, 0.26), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(255, 157, 0, 0.2), transparent 28%),
    linear-gradient(180deg, #081321 0%, var(--bg) 46%, var(--bg-deep) 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: #66b7ff;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: clamp(54px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

h4 {
  font-size: 17px;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 19, 0.78);
  backdrop-filter: blur(18px);
}

.nav,
.site,
.footer-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 850;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #050b14;
  box-shadow: 0 0 22px rgba(42, 139, 224, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 760;
}

.nav-links a,
.footer-links a {
  color: #c6d2e3;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  align-items: center;
  gap: 54px;
  padding: 78px 0 56px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 620px;
  margin-top: 24px;
  color: #c2cede;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--blue), #1769d8);
  color: #fff;
  box-shadow: 0 14px 34px rgba(42, 139, 224, 0.28);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.button.wide {
  width: 100%;
  margin-top: 24px;
}

.hero-stats {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats span,
.platform-label,
.status-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.045);
  color: #d7e4f4;
  font-size: 12px;
  font-weight: 820;
}

.glass-panel,
.glass-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-card {
  border-radius: 8px;
  padding: 24px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  box-shadow: inset 0 0 52px rgba(42, 139, 224, 0.18);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading p {
  max-width: 720px;
  margin-top: 18px;
}

.reason-grid,
.feature-grid,
.security-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.reason-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-card h3,
.glass-card h4 {
  margin-bottom: 10px;
}

.card-number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--orange);
  font-weight: 900;
}

.accent-blue {
  box-shadow: 0 0 0 1px rgba(42, 139, 224, 0.1), var(--shadow);
}

.accent-orange {
  box-shadow: 0 0 0 1px rgba(255, 157, 0, 0.1), var(--shadow);
}

.slider {
  overflow: hidden;
  border-radius: 8px;
  padding: 18px;
}

.slider-toolbar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}

.slider-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.slider-dots {
  display: inline-flex;
  gap: 7px;
}

.slider-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.slider-dots span.active {
  width: 22px;
  background: var(--blue);
}

.slider-track {
  display: grid;
}

.slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 20px;
  align-items: stretch;
}

.slide.active {
  display: grid;
}

.slide img,
.screen-placeholder {
  width: 100%;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--card);
  object-fit: cover;
}

.slide > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 8px;
  padding: 24px;
  background: rgba(6, 13, 24, 0.66);
}

.screen-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.76);
  font-size: 72px;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(42, 139, 224, 0.25), rgba(255, 157, 0, 0.16)),
    var(--card);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline-item {
  position: relative;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--card);
}

.timeline-item::before {
  width: 12px;
  height: 12px;
  display: block;
  margin-bottom: 20px;
  border-radius: 999px;
  content: "";
  background: var(--blue);
  box-shadow: 0 0 24px rgba(42, 139, 224, 0.54);
}

.timeline-item.done::before {
  background: var(--orange);
  box-shadow: 0 0 24px rgba(255, 157, 0, 0.45);
}

.timeline-item span {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-bottom: 10px;
}

.download {
  padding-bottom: 92px;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.download-group {
  border-radius: 8px;
  padding: 22px;
}

.download-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.platform-label {
  color: #92cfff;
  background: var(--blue-soft);
}

.platform-label.orange {
  color: #ffd38c;
  background: var(--orange-soft);
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 18px;
  background: rgba(6, 13, 24, 0.55);
}

.download-card p {
  margin-top: 6px;
}

.download-card.disabled {
  opacity: 0.76;
}

.status-pill {
  color: #ffd38c;
  background: rgba(255, 157, 0, 0.12);
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

details summary {
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}

details p {
  margin-top: 12px;
}

.invite-page {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 42px 18px;
}

.invite-panel {
  width: min(450px, 100%);
  overflow: hidden;
  border-radius: 8px;
  padding: 0 26px 26px;
  text-align: center;
}

.invite-cover {
  aspect-ratio: 3.25 / 1;
  min-height: 112px;
  margin: 0 -26px;
  display: grid;
  place-items: start center;
  padding: 22px 20px;
  background:
    linear-gradient(135deg, rgba(42, 139, 224, 0.76), rgba(255, 157, 0, 0.48)),
    var(--card);
  background-size: cover;
  background-position: center;
}

.invite-brand {
  justify-content: center;
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(5, 10, 19, 0.62);
  backdrop-filter: blur(10px);
}

.avatar {
  width: 80px;
  height: 80px;
  margin: -40px auto 17px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--card);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

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

.invite-panel h1 {
  font-size: 25px;
  line-height: 1.2;
}

.chat-meta {
  min-height: 20px;
  margin-top: 8px;
  color: #8dccff;
  font-size: 13px;
  font-weight: 850;
}

#chat-description {
  min-height: 22px;
  margin-top: 8px;
  line-height: 1.48;
}

.copy-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 820;
}

.status {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.48;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: rgba(4, 9, 18, 0.7);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  max-width: min(420px, calc(100% - 32px));
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 13px 16px;
  background: rgba(6, 13, 24, 0.94);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .nav {
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .download-layout,
  .slide {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 54px;
  }

  .reason-grid,
  .feature-grid,
  .security-grid,
  .timeline,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slide img,
  .screen-placeholder {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .nav,
  .site,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .nav-links {
    font-size: 13px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 34px;
  }

  .lead {
    font-size: 17px;
  }

  .section {
    padding: 68px 0;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .reason-grid,
  .feature-grid,
  .security-grid,
  .timeline,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .download-card,
  .download-group-head,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .download-card .button,
  .download-card .status-pill {
    width: 100%;
    justify-content: center;
  }

  .slider-toolbar {
    justify-content: space-between;
  }
}
