:root {
  --bg: #081318;
  --bg-soft: #0f2028;
  --panel: rgba(10, 22, 28, 0.84);
  --panel-strong: #11242d;
  --line: rgba(236, 217, 173, 0.16);
  --text: #eff5f1;
  --muted: #b4c4c0;
  --gold: #e8c98e;
  --gold-deep: #c89c55;
  --teal: #7ed2c6;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Trebuchet MS", Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(126, 210, 198, 0.14), transparent 32%),
    radial-gradient(circle at right, rgba(232, 201, 142, 0.16), transparent 28%),
    linear-gradient(180deg, #061015 0%, #09151b 36%, #0d1d25 100%);
}

body.is-language-gate-open {
  overflow: hidden;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 32px 40px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(160deg, rgba(17, 36, 45, 0.94), rgba(8, 19, 24, 0.96));
  box-shadow: var(--shadow);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.hero__status {
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.8;
}

.hero__glow--gold {
  top: -60px;
  right: -20px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(232, 201, 142, 0.34), transparent 65%);
}

.hero__glow--teal {
  bottom: -90px;
  left: -50px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(126, 210, 198, 0.2), transparent 70%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.02;
}

h1 {
  font-size: clamp(42px, 8vw, 84px);
  max-width: 9ch;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
}

h3 {
  font-size: 22px;
}

.hero__lead,
.card p,
.note-box p,
.command-row span,
.steps li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.hero__lead {
  max-width: 60ch;
  margin: 20px 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.download-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.download-counter[hidden] {
  display: none;
}

.download-counter span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.download-counter strong {
  color: var(--gold);
  font-family: "Space Grotesk", "Trebuchet MS", Verdana, sans-serif;
  font-size: 20px;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  appearance: none;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #102027;
}

.button--ghost {
  color: var(--text);
  border-color: rgba(232, 201, 142, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 16, 21, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.lang-switch--wide {
  width: 100%;
  margin-top: 26px;
}

.lang-switch__button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.lang-switch__button.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #102027;
}

.lang-switch--wide .lang-switch__button {
  flex: 1 1 0;
  min-height: 56px;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero__meta li {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.content {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.section {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section__intro {
  margin-bottom: 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card p {
  margin: 14px 0 0;
}

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

.command-row {
  display: grid;
  grid-template-columns: minmax(180px, 320px) 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  color: var(--gold);
  word-break: break-word;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 20px;
}

.steps li {
  padding-left: 6px;
}

.note-box {
  padding: 26px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, rgba(232, 201, 142, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 201, 142, 0.14);
}

.note-box p {
  margin: 16px 0 0;
}

.contact-box h3 {
  margin: 0;
}

.contact-link {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  word-break: break-word;
}

.contact-link:hover {
  text-decoration: underline;
}

.language-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 8, 11, 0.72);
  backdrop-filter: blur(16px);
}

.language-gate[hidden] {
  display: none;
}

.language-gate__panel {
  width: min(560px, 100%);
  padding: 32px;
  border-radius: 32px;
  border: 1px solid rgba(232, 201, 142, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 45%),
    linear-gradient(180deg, rgba(17, 36, 45, 0.96), rgba(8, 19, 24, 0.98));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  animation: gate-rise 220ms ease;
}

.language-gate__copy {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

@keyframes gate-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 10px;
  }

  .hero,
  .section {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .command-row {
    grid-template-columns: 1fr;
  }

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

  .hero__toolbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .language-gate__panel {
    padding: 24px 20px;
    border-radius: 24px;
  }
}
