:root {
  --bg: #050506;
  --bg-soft: #0d0d10;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --text: #f7f7f8;
  --muted: #b9bac3;
  --muted-2: #81838f;
  --accent: #6d5dfc;
  --accent-2: #39d5ff;
  --brand-accent: #c84f64;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1440px;
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(109, 93, 252, 0.2), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.08), transparent 28rem),
    var(--bg);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - clamp(40px, 5vw, 88px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 16px min(28px, 5vw);
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 6, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brand__icon {
  width: 26px;
  height: auto;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--brand-accent);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.language-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.055);
  justify-self: end;
}

.language-select__flag {
  width: 22px;
  height: 16px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border-radius: 2px;
  pointer-events: none;
}

.language-select {
  min-width: 76px;
  margin: 0;
  padding: 8px 28px 8px 2px;
  color: var(--text);
  border: none;
  border-radius: 999px;
  background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  appearance: none;
  cursor: pointer;
}

.language-select option {
  color: #111;
}

.section {
  padding: clamp(70px, 9vw, 120px) 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: clamp(34px, 5vw, 72px);
}

.hero__glow {
  position: absolute;
  inset: 12% 0 auto auto;
  width: min(45vw, 620px);
  height: min(45vw, 620px);
  border-radius: 999px;
  background: rgba(57, 213, 255, 0.14);
  filter: blur(80px);
}

.hero__grid,
.split,
.contact-grid,
.launch-grid {
  display: grid;
  column-gap: clamp(42px, 6vw, 96px);
  row-gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.hero__grid {
  grid-template-columns: minmax(0, 1.34fr) minmax(340px, 0.66fr);
}

.split,
.contact-grid,
.launch-grid {
  grid-template-columns: minmax(0, 1.34fr) minmax(340px, 0.66fr);
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: clamp(1rem, 1.15vw, 1.24rem);
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1120px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.75vw, 3.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  white-space: pre-line;
}

html[lang="ru"] h1 {
  max-width: 1160px;
  font-size: clamp(2rem, 3.35vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  white-space: pre-line;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  white-space: pre-line;
}

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

.hero__lead {
  max-width: 860px;
  margin-bottom: 36px;
  font-size: clamp(1.3rem, 1.95vw, 1.78rem);
  color: #d7d7de;
}

.hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 390px;
  align-self: center;
  transform: translateY(-10px);
}

.hero__visual::before {
  content: "";
  position: absolute;
  width: min(88%, 520px);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.055);
}

.hero__image {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.hero__actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}

.path-card,
.feature-card,
.upgrade-card,
.levels article,
.launch-card,
.contact-form,
.token-story {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.path-card {
  position: relative;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  padding: clamp(28px, 2.8vw, 40px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(57, 213, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.028));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.path-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 28%, transparent 70%, rgba(109, 93, 252, 0.2));
  opacity: 0.7;
  pointer-events: none;
}

.path-card::after {
  content: "→";
  position: absolute;
  right: 26px;
  bottom: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--accent), #2498ff);
  box-shadow: 0 12px 34px rgba(57, 213, 255, 0.22);
  font-size: 1.35rem;
  line-height: 1;
}

.path-card:hover {
  transform: translateY(-6px);
  border-color: rgba(57, 213, 255, 0.58);
  box-shadow: 0 30px 90px rgba(57, 213, 255, 0.18);
}

.path-card span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 22px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.path-card strong {
  position: relative;
  z-index: 1;
  max-width: 82%;
  font-size: clamp(1.28rem, 1.75vw, 1.68rem);
  line-height: 1.28;
}

.path-card small {
  position: relative;
  z-index: 1;
  max-width: 78%;
  color: var(--muted);
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  line-height: 1.6;
}

.path-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.path-section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}

.split--reverse {
  grid-template-columns: minmax(360px, 0.84fr) minmax(0, 1.16fr);
}

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

.feature-card {
  min-height: 185px;
  padding: 22px;
  border-radius: var(--radius-md);
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.upgrade-card {
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(109, 93, 252, 0.2), transparent 55%),
    linear-gradient(145deg, var(--panel-strong), rgba(255, 255, 255, 0.03));
}

.upgrade-card p {
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), #2498ff);
  box-shadow: 0 18px 42px rgba(57, 213, 255, 0.22);
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.code-panel {
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #09090d;
}

.code-panel pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
}

.code-panel code {
  color: #f5dede;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.75;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-list span {
  padding: 10px 14px;
  color: #eeeeef;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.86rem;
  font-weight: 700;
}

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

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

.levels article {
  padding: 26px;
  border-radius: var(--radius-md);
}

.levels span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--accent-2);
  font-weight: 800;
}

.token-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  margin-top: 22px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--radius-lg);
}

.token-visuals {
  display: grid;
  gap: 18px;
  justify-items: center;
  justify-self: center;
  width: min(100%, 300px);
}

.token-visuals img {
  width: min(100%, 300px);
}

.token-visuals__secondary {
  width: min(48%, 140px);
  max-width: 140px;
  opacity: 0.78;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.38));
}

.token-patent {
  margin: -6px 0 0;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

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

.token-points li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.token-points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(57, 213, 255, 0.28);
}

.launch-section {
  background: linear-gradient(180deg, transparent, rgba(109, 93, 252, 0.07), transparent);
}

.launch-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.launch-card strong {
  color: #f1f1f3;
  font-size: clamp(1.02rem, 1.35vw, 1.24rem);
  line-height: 1.55;
}

.launch-grid p {
  max-width: 820px;
  font-size: clamp(1.1rem, 1.55vw, 1.36rem);
  color: #dedee5;
}

.contact-section {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-lg);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
}

.contact-form input,
.contact-form select {
  min-height: 52px;
  padding: 0 15px;
}

.contact-form textarea {
  resize: vertical;
  padding: 14px 15px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(57, 213, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(57, 213, 255, 0.12);
}

.contact-form option {
  color: #111;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-size: 0.92rem;
}

.form-message.is-success {
  color: #7ee69f;
}

.form-message.is-error {
  color: #ff8585;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.26);
}

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

.footer img {
  width: 118px;
}

.footer__copyright {
  color: var(--brand-accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer a {
  color: var(--brand-accent);
  font-weight: 700;
  transition: color 160ms ease;
}

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

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

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero__grid,
  .split,
  .split--reverse,
  .contact-grid,
  .launch-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__visual {
    min-height: 360px;
    order: -1;
  }

  .hero__actions,
  .feature-grid,
  .levels {
    grid-template-columns: 1fr;
  }

  .token-story {
    grid-template-columns: 1fr;
  }
}

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

  .hero__grid > *,
  .split > *,
  .split--reverse > *,
  .contact-grid > *,
  .launch-grid > * {
    min-width: 0;
    width: 100%;
  }

  .site-header {
    padding: 12px 14px;
  }

  .nav {
    gap: 14px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(1.65rem, 9.6vw, 2.5rem);
    line-height: 1.12;
  }

  html[lang="ru"] h1 {
    font-size: clamp(1.55rem, 8.8vw, 2.25rem);
    line-height: 1.12;
  }

  .hero__visual {
    min-height: 235px;
    transform: none;
    justify-self: center;
    width: 100%;
  }

  .hero__visual::before {
    width: min(68vw, 255px);
  }

  .hero__image {
    width: min(68vw, 255px);
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.5));
  }

  .path-card,
  .feature-card,
  .upgrade-card,
  .levels article,
  .launch-card,
  .contact-form,
  .token-story {
    box-shadow: none;
    max-width: 100%;
    margin-inline: auto;
  }

  .footer__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 1040px) and (orientation: landscape) {
  .nav {
    justify-content: center;
  }

  .hero__visual {
    min-height: 250px;
    transform: none;
  }

  .hero__visual::before {
    width: min(32vw, 260px);
  }

  .hero__image {
    width: min(32vw, 260px);
  }
}
