:root {
  --bg: #101719;
  --bg-elevated: #182326;
  --panel: rgba(24, 35, 38, 0.86);
  --panel-strong: #202e31;
  --border: rgba(185, 205, 202, 0.17);
  --text: #edf4f1;
  --muted: #adbfbb;
  --primary: #2f8f83;
  --primary-strong: #236e67;
  --accent: #a9d8c9;
  --gold: #d9b66f;
  --shadow: rgba(4, 10, 11, 0.46);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", sans-serif; background: var(--bg); color: var(--text); }
img { max-width: 100%; display: block; }
button, a { font: inherit; }
.page-shell { min-height: 100vh; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 6rem 0; }
.section-alt { background: #141e20; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.topbar { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); background: rgba(16, 23, 25, 0.94); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.04em; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 0.35rem; background: var(--primary); box-shadow: 0 8px 20px rgba(47, 143, 131, 0.22); font-size: 0.9rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a, .footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.nav-links a:hover, .footer-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.language-switcher { display: inline-flex; align-items: center; }
.language-switcher select { appearance: none; border: 1px solid var(--border); border-radius: 0.35rem; padding: 0.55rem 1.8rem 0.55rem 0.65rem; background: var(--panel-strong); color: var(--text); font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.language-switcher select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 0.35rem; padding: 0.9rem 1.3rem; text-decoration: none; border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease; font-weight: 700; }

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

.button-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 22px rgba(47, 143, 131, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
  min-height: 620px;
}

.eyebrow {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 233, 210, 0.32);
  background: rgba(124, 233, 210, 0.08);
  color: #baf7ea;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.75rem, 4vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.mini-points {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
  gap: 0.7rem 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.mini-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.mini-points li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(124, 233, 210, 0.12);
  color: #baf7ea;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.rank-card {
  width: min(100%, 480px);
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 30px 70px var(--shadow);
  padding: 1.1rem 1.2rem 1.3rem;
}

.card-topbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2f; }
.dot-green { background: #28c840; }

.profile-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--primary);
  font-size: 1.7rem;
  font-weight: 800;
}

.profile-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-row h3 {
  margin: 0.4rem 0 0;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.xp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}

.xp-bar {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.xp-bar span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.badges span {
  display: inline-block;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  color: #dfe6ff;
  border-radius: 999px;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
}

.section-heading {
  margin-bottom: 2.5rem;
}

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

.section-heading h2 {
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  letter-spacing: -0.06em;
}

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

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 12px 24px rgba(9, 14, 22, 0.25);
}

.icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.14);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.3rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.command-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.command-item {
  background: rgba(17, 24, 40, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
}

.command-name {
  display: inline-block;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  color: #dfe7ff;
  margin-bottom: 0.7rem;
}

.command-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.compare-wrap {
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(12, 18, 30, 0.8);
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
}

.compare-head {
  background: rgba(124, 92, 255, 0.12);
}

.compare-cell {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
}

.compare-head .compare-cell {
  color: var(--text);
  font-weight: 700;
}

.compare-row:last-child .compare-cell {
  border-bottom: none;
}

.compare-cell:last-child {
  border-right: none;
}

.compare-feature {
  color: var(--text) !important;
  font-weight: 600 !important;
}

.compare-tier.free {
  background: rgba(124, 233, 210, 0.06);
}

.compare-tier.premium {
  background: rgba(124, 92, 255, 0.09);
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(124, 233, 210, 0.12);
  color: #baf7ea;
  font-weight: 700;
}

.mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.8rem;
}

.premium-mini {
  background: rgba(124, 92, 255, 0.12);
  color: #dfe6ff;
}

.pricing-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  gap: 1.2rem;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
}

.pricing-label {
  margin: 0 0 0.5rem;
  color: #b7d6ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

.pricing-card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  letter-spacing: -0.06em;
}

.pricing-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 2;
}

.roadmap-hero {
  padding-bottom: 4rem;
}

.roadmap-intro {
  max-width: 820px;
}

.text-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

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

.roadmap-intro h1 {
  max-width: 760px;
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.roadmap-intro p,
.roadmap-content .section-heading p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.legal-page {
  min-height: calc(100vh - 164px);
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  margin: 1.25rem 0 2.5rem;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
}

.legal-block {
  max-width: 560px;
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.45rem;
}

.legal-block h2 {
  margin: 0 0 1.2rem;
  font-size: 1.45rem;
}

.legal-block p,
.legal-block address {
  margin: 0 0 1rem;
  color: var(--muted);
  font-style: normal;
  line-height: 1.8;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block a {
  color: var(--accent);
}

.legal-intro,
.legal-updated {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.legal-intro {
  margin: 0 0 2.5rem;
  font-size: 1.08rem;
}

.legal-updated {
  margin: -1.5rem 0 1.25rem;
  font-size: 0.9rem;
}

.legal-sections {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.legal-sections .legal-block {
  max-width: none;
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  max-width: 920px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: roadmap;
}

.roadmap-list li {
  display: flex;
  align-items: center;
  min-height: 4.25rem;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  color: var(--text);
  font-weight: 600;
  counter-increment: roadmap;
}

.roadmap-list li::before {
  content: counter(roadmap, decimal-leading-zero);
  flex: 0 0 2rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(9, 13, 23, 0.8);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 1rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .command-list,
  .pricing-card {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 4.5rem 0;
  }

  .button,
  .nav-button {
    width: 100%;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
  }

  .brand {
    font-size: 1.1rem;
  }

  .pricing-card {
    padding: 1.3rem;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.5rem 0;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .roadmap-list {
    grid-template-columns: 1fr;
  }

  .roadmap-intro h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }
}
