:root {
  color-scheme: dark;
  --brand: #002a80;
  --action: #025df8;
  --action-soft: rgba(2, 93, 248, 0.22);
  --canvas: #050810;
  --panel: rgba(5, 10, 20, 0.94);
  --panel-soft: rgba(8, 15, 29, 0.86);
  --line: rgba(2, 93, 248, 0.9);
  --line-soft: rgba(2, 93, 248, 0.35);
  --title-blue: #3d9cff;
  --text: #f0ede6;
  --muted: #c2beb8;
  --shadow: 0 0 0 1px rgba(2, 93, 248, 0.25), 0 0 28px rgba(2, 93, 248, 0.12);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 4%, rgba(2, 93, 248, 0.18), transparent 34rem),
    radial-gradient(circle at 8% 78%, rgba(0, 42, 128, 0.2), transparent 30rem),
    linear-gradient(145deg, #03050a 0%, #080e1a 52%, #040711 100%);
  background-attachment: fixed;
}

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

.stage-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 46px 18px 72px;
}

.welcome-stage {
  display: grid;
  gap: 28px;
  align-items: center;
}

.language-panel,
.selection-stage,
.install-card,
.feature-card,
.status-strip,
.card {
  background: linear-gradient(180deg, rgba(7, 13, 25, 0.97), rgba(4, 8, 16, 0.93));
  border: 2px solid var(--line-soft);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.language-panel {
  padding: 22px;
}

.language-title,
.hero-copy-panel h1,
.feature-title,
.section-head h2,
.card h3 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.language-title {
  color: #1f7fe0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.language-copy,
.section-subtitle,
.feature-description,
.status-metric,
.install-tip,
.card-description {
  margin: 0;
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
  line-height: 1.45;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.language-card {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 82px;
  border-radius: 18px;
  border: 2px solid var(--line-soft);
  background: rgba(11, 11, 11, 0.96);
  color: var(--text);
}

.language-card.active {
  box-shadow: 0 0 18px rgba(122, 204, 255, 0.35);
}

.flag {
  font-size: 2rem;
}

.hero-copy-panel {
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right;
}

.brand-signature,
.hero-kicker,
.hero-subtitle {
  margin: 0;
}

.brand-signature {
  color: #1f7fe0;
  font-family: "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-kicker {
  color: var(--muted);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.hero-copy-panel h1 {
  color: #1f7fe0;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.95;
}

.hero-subtitle {
  padding: 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-cta {
  min-width: 290px;
  min-height: 72px;
  border-radius: 22px;
  border: 2px solid var(--line-soft);
  background: rgba(7, 7, 7, 0.92);
  color: var(--text);
  box-shadow: 0 0 18px rgba(2, 93, 248, 0.24);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

.hidden {
  display: none;
}

@media (min-width: 900px) {
  .welcome-stage {
    grid-template-columns: minmax(320px, 420px) 1fr;
  }
}

@media (max-width: 899px) {
  .hero-copy-panel {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .language-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    min-width: 100%;
  }
}
