:root {
  --bg: #06101d;
  --bg-soft: #0b1728;
  --panel: rgba(15, 29, 49, 0.78);
  --panel-strong: #101d31;
  --line: rgba(177, 202, 232, 0.16);
  --text: #f3f7fc;
  --muted: #9fb1c8;
  --dim: #6e8198;
  --blue: #2d6cdf;
  --cyan: #3ec9e8;
  --red: #d42b3a;
  --gold: #c9a227;
  --max: 1180px;
  --radius: 24px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(62, 201, 232, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 22%, rgba(45, 108, 223, 0.22), transparent 32rem),
    linear-gradient(180deg, #081425 0%, #050b14 100%);
}

.page-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.62;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0 62%, transparent);
}

.page-bg__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
}

.page-bg__orb--blue {
  width: 460px;
  height: 460px;
  right: -120px;
  top: -80px;
  background: rgba(45, 108, 223, 0.32);
}

.page-bg__orb--cyan {
  width: 380px;
  height: 380px;
  left: -120px;
  bottom: 10%;
  background: rgba(62, 201, 232, 0.16);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 29, 0.78);
  backdrop-filter: blur(20px);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

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

.brand__mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav a,
.header-login {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.nav a {
  padding: 0 14px;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.header-login {
  gap: 6px;
  padding: 0 16px;
  color: var(--text);
  border-color: rgba(62, 201, 232, 0.32);
  background: rgba(45, 108, 223, 0.16);
  box-shadow: 0 0 28px rgba(45, 108, 223, 0.18);
}

.header-login span {
  color: var(--muted);
  font-weight: 500;
}

.header-login strong {
  font-weight: 800;
}

.hero {
  padding: 64px 0 46px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 34px;
  text-align: center;
}

.hero__copy {
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px 12px;
  border: 1px solid rgba(62, 201, 232, 0.26);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(62, 201, 232, 0.08);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.hero h1,
.section-head h2,
.join-card h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 14em;
  font-size: clamp(2.15rem, 4.9vw, 4.5rem);
  line-height: 1.06;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero__lead {
  max-width: 31rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
  line-height: 1.52;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1b4fae);
  box-shadow: 0 14px 34px rgba(45, 108, 223, 0.28);
}

.btn--secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.developers-panel {
  position: relative;
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(45, 108, 223, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(12, 24, 41, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 34px 90px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.developers-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(62, 201, 232, 0.14);
  border-radius: 26px;
  pointer-events: none;
}

.developers-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -120px;
  border: 1px solid rgba(62, 201, 232, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(62, 201, 232, 0.035),
    0 0 0 108px rgba(45, 108, 223, 0.025);
}

.developers-panel__head {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.developers-panel__head p {
  margin: 0;
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.developers-panel__head strong {
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.section {
  padding: 56px 0;
}

.facts {
  padding-top: 22px;
}

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

.facts article,
.corp-card,
.route li,
.join-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.facts article {
  padding: 18px;
  border-radius: 20px;
}

.facts span,
.route span,
.section-head p,
.corp-card p,
.join-card p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts strong {
  display: block;
  margin-top: 18px;
  font-size: 1.1rem;
  line-height: 1.25;
}

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

.section-head h2 {
  max-width: 12em;
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.98;
}

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

.corp-card {
  min-height: 248px;
  position: relative;
  padding: 22px;
  border-radius: 28px;
  overflow: hidden;
}

.corp-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 5px;
  border-radius: 999px;
  background: var(--card-color, var(--cyan));
}

.corp-card--red {
  --card-color: var(--red);
}

.corp-card--blue {
  --card-color: var(--blue);
}

.corp-card--gold {
  --card-color: var(--gold);
}

.corp-card h2 {
  margin: 42px 0 18px;
  font-size: clamp(1.55rem, 2.65vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.corp-card span,
.join-card span {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.5;
}

.route-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.route li {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
}

.route strong {
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  line-height: 1.1;
}

.join-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(45, 108, 223, 0.22), rgba(62, 201, 232, 0.06)),
    var(--panel);
}

.join-card h2 {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 3.6vw, 3.5rem);
  line-height: 1;
}

.site-footer {
  padding: 28px 0 36px;
  color: var(--dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.footer-inner a {
  color: var(--muted);
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

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

  .facts__grid,
  .corp-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: auto;
    padding: 12px 0;
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-login {
    min-height: 40px;
    padding: 0 12px;
  }

  .header-login span {
    display: none;
  }

  .hero {
    padding: 34px 0 24px;
  }

  .status {
    max-width: 100%;
    border-radius: 14px;
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 10vw, 3.2rem);
    line-height: 1.08;
  }

  .hero__lead {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero__actions,
  .join-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .developers-panel {
    margin-top: 4px;
    padding: 16px;
    border-radius: 24px;
  }

  .developers-panel__head {
    display: grid;
  }

  .developers-panel__head strong {
    max-width: none;
    text-align: left;
  }

  .section {
    padding: 38px 0;
  }

  .facts article,
  .corp-card,
  .route li,
  .join-card {
    border-radius: 18px;
  }

  .facts strong {
    margin-top: 12px;
    font-size: 1rem;
  }

  .section-head h2 {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .corp-card {
    min-height: 190px;
    padding: 18px;
  }

  .corp-card h2 {
    margin-top: 28px;
    font-size: clamp(1.55rem, 8.2vw, 2.35rem);
    line-height: 1.1;
  }

  .route li {
    min-height: 78px;
  }

  .join-card {
    padding: 22px;
  }

  .footer-inner {
    display: grid;
  }
}
