:root {
  color-scheme: dark;
  --ink: #f5f5f7;
  --ink-soft: rgba(245, 245, 247, 0.72);
  --sand: #0b0b12;
  --cream: #121623;
  --accent: #f97316;
  --teal: #14b8a6;
  --blue: #38bdf8;
  --shadow: rgba(0, 0, 0, 0.45);
  --panel: rgba(16, 20, 32, 0.92);
  --panel-soft: rgba(16, 20, 32, 0.72);
  --panel-border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.2), transparent 40%),
    radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.18), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(56, 189, 248, 0.2), transparent 35%),
    var(--sand);
  min-height: 100vh;
}

.page {
  position: relative;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.25;
  pointer-events: none;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: conic-gradient(from 220deg, var(--accent), var(--teal), var(--blue));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.lang-picker {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.lang-button {
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
}

.lang-button.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 28px 80px;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 40px 0 60px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Sora", sans-serif;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.button {
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border-color: var(--panel-border);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
}

.hero-ui {
  position: relative;
}

.ui-window {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.ui-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.traffic span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  background: #f97316;
}

.traffic span:nth-child(2) {
  background: #fbbf24;
}

.traffic span:nth-child(3) {
  background: #34d399;
}

.ui-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ui-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.6fr;
  gap: 14px;
  align-items: center;
  font-size: 0.85rem;
}

.ui-name {
  font-weight: 600;
}

.ui-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.bar-fill-1 {
  width: 72%;
}

.bar-fill-2 {
  width: 36%;
}

.bar-fill-3 {
  width: 0;
  background: linear-gradient(90deg, #f97316, #fbbf24);
}

.ui-footer {
  display: flex;
  gap: 10px;
}

.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.2);
  color: var(--ink);
}

.hero-float {
  display: flex;
  gap: 12px;
  position: absolute;
  bottom: -24px;
  right: 16px;
}

.float-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  min-width: 160px;
  animation: float 6s ease-in-out infinite;
}

.float-card:last-child {
  animation-delay: 1.5s;
}

.float-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.float-value {
  font-family: "JetBrains Mono", "Space Grotesk", monospace;
  font-size: 1.1rem;
}

.float-value span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.float-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 10px;
  overflow: hidden;
}

.float-track span {
  display: block;
  height: 100%;
  width: 70%;
  background: var(--blue);
}

.float-track.calm span {
  width: 40%;
  background: var(--teal);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  background: var(--panel-soft);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 60px;
}

.stat-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.6rem;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 620px;
}

.features {
  margin-bottom: 80px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  min-height: 170px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.languages {
  margin-bottom: 80px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--panel-border);
}

.language-grid span {
  font-weight: 500;
  padding: 10px 14px;
  background: rgba(14, 165, 233, 0.2);
  border-radius: 999px;
  text-align: center;
}

.releases {
  margin-bottom: 80px;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.release-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(11, 26, 42, 0.08);
  box-shadow: 0 16px 30px rgba(11, 26, 42, 0.08);
}

.release-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.release-version {
  font-family: "JetBrains Mono", monospace;
  background: rgba(14, 165, 233, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.release-card ul {
  margin: 0;
  padding-left: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.release-actions {
  margin-top: 20px;
}

.compare {
  margin-bottom: 80px;
}

.compare-table {
  display: grid;
  grid-auto-rows: minmax(48px, auto);
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  align-items: center;
  padding: 14px 18px;
  gap: 12px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.92rem;
}

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

.compare-head {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
}

.compare-row > div {
  text-align: center;
}

.compare-row > div:first-child {
  text-align: left;
  color: var(--ink-soft);
}

.compare-row .yes {
  color: var(--teal);
  font-weight: 600;
}

.compare-row .no {
  color: rgba(245, 245, 247, 0.45);
}

.howto {
  margin-bottom: 80px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.steps li {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.steps li strong {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.steps li span {
  color: var(--ink-soft);
  line-height: 1.5;
}

.faq {
  margin-bottom: 80px;
}

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

.faq-item {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 14px 18px;
  transition: background 0.2s ease;
}

.faq-item[open] {
  background: rgba(56, 189, 248, 0.08);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--ink-soft);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(20, 184, 166, 0.25), rgba(249, 115, 22, 0.2));
  border: 1px solid var(--panel-border);
}

.download-band p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.footer {
  padding: 40px 28px 60px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.footer span + span {
  margin-left: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .lang-picker {
    order: 3;
  }

  .hero-float {
    position: static;
    margin-top: 16px;
  }
}

@media (max-width: 720px) {
  .nav {
    padding: 22px 18px 0;
  }

  main {
    padding: 32px 18px 80px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .download-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .compare-table {
    overflow-x: auto;
    display: block;
  }

  .compare-row {
    grid-template-columns: 1.4fr repeat(4, 90px);
    min-width: 560px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float-card {
    animation: none;
  }
}
