:root {
  --sand: #060d1a;
  --paper: #101c33;
  --ink: #f3f8ff;
  --muted: #93a7c6;
  --stroke: #21395f;
  --accent: #4c8cff;
  --accent-soft: #173765;
  --pine: #59d7c7;
  --pine-soft: #14313d;
  --surface-raised: #142440;
  --surface-muted: #0b162b;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 15% 8%, rgba(76, 140, 255, 0.28), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(89, 215, 199, 0.18), transparent 30rem),
    linear-gradient(135deg, #050a14 0%, var(--sand) 55%, #081c2c 100%);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px 20px 64px;
}

.site-bar {
  align-items: center;
  background: rgba(16, 28, 51, 0.78);
  border: 1px solid rgba(33, 57, 95, 0.9);
  border-radius: 26px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 14px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  gap: 12px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(76, 140, 255, 0.22);
}

.language-switcher {
  background: var(--surface-muted);
  border: 1px solid rgba(33, 57, 95, 0.9);
  border-radius: 999px;
  display: flex;
  gap: 4px;
  padding: 5px;
}

.language-switcher button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 9px 11px;
}

.language-switcher button.active {
  background: linear-gradient(135deg, var(--accent), #73a6ff);
  color: white;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  min-height: 420px;
}

.hero-copy,
.hero-card,
.grid article,
.languages,
.split {
  background: rgba(16, 28, 51, 0.78);
  border: 1px solid rgba(33, 57, 95, 0.9);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 52px;
  position: relative;
}

.hero-copy::after {
  background: linear-gradient(135deg, rgba(76, 140, 255, 0.18), rgba(89, 215, 199, 0.12));
  border-radius: 999px;
  content: "";
  height: 280px;
  position: absolute;
  right: -90px;
  top: -90px;
  width: 280px;
}

.eyebrow {
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: -0.04em;
  margin: 0;
}

h1 {
  font-size: clamp(3.6rem, 12vw, 7.8rem);
  line-height: 0.86;
  max-width: 720px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  margin: 28px 0 0;
  max-width: 660px;
}

.hero-actions,
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
.store,
.link-stack a {
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  text-decoration: none;
}

.button {
  padding: 13px 20px;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #73a6ff);
  color: white;
}

.button.ghost {
  background: var(--surface-raised);
  border: 1px solid var(--stroke);
  color: var(--ink);
}

.hero-card {
  align-content: end;
  display: grid;
  min-height: 260px;
  padding: 30px;
}

.hero-card p,
.grid p,
.languages p,
.split p {
  color: var(--muted);
  line-height: 1.55;
}

.status-dot {
  background: var(--pine);
  border-radius: 999px;
  box-shadow: 0 0 36px rgba(89, 215, 199, 0.8);
  display: block;
  height: 14px;
  margin-bottom: 84px;
  width: 14px;
}

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

.grid article,
.languages,
.split {
  padding: 28px;
}

.languages {
  margin-top: 20px;
}

.language-panel {
  align-items: start;
  background: var(--surface-muted);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 20px;
  padding: 20px;
}

.language-panel span {
  color: var(--pine);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.language-panel p {
  margin: 0;
}

.split {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  margin-top: 20px;
}

.link-stack {
  display: grid;
  gap: 12px;
}

.link-stack a {
  background: var(--surface-muted);
  border: 1px solid var(--stroke);
  padding: 16px 18px;
}

.store {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--stroke);
  flex-direction: column;
  min-width: 170px;
  padding: 16px 22px;
  text-align: center;
}

.store small {
  color: var(--muted);
  font-weight: 700;
}

.disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

@media (max-width: 860px) {
  .hero,
  .grid,
  .split {
    grid-template-columns: 1fr;
  }

  .site-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .language-switcher {
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero-copy {
    padding: 34px;
  }

  .status-dot {
    margin-bottom: 48px;
  }
}
