:root {
  --ink: #10203a;
  --bg: #f4f8ff;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(16, 32, 58, 0.12);
  --brand: #0b6df0;
  --brand-2: #27c7ff;
  --ok: #19a873;
  --shadow: 0 18px 44px rgba(10, 25, 54, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  background: #edf4ff;
  position: relative;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 6% 8%, rgba(39, 199, 255, 0.26), transparent 36%),
    radial-gradient(circle at 92% 12%, rgba(11, 109, 240, 0.2), transparent 30%),
    linear-gradient(160deg, #edf4ff 0%, #eefbf8 55%, #f7f2ff 100%);
}

body {
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: transparent;
  min-height: 100vh;
  line-height: 1.55;
}

.site-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 24px 0 64px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

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

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(11, 109, 240, 0.35);
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.launcher-slot a,
.inline-language-options a,
.inline-language-options button,
.inline-language-toggle button {
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav-links a:hover,
.launcher-slot a:hover,
.inline-language-options a:hover,
.inline-language-options button:hover,
.inline-language-toggle button:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(16, 32, 58, 0.28);
}

.hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 34px;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: -74px;
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(39, 199, 255, 0.3), rgba(11, 109, 240, 0.08));
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.14;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

p {
  margin: 0 0 10px;
}

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

.card {
  grid-column: span 4;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(10, 25, 54, 0.12);
}

.card.wide {
  grid-column: span 8;
}

.card.full {
  grid-column: 1 / -1;
}

.stat {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.kicker {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16, 32, 58, 0.62);
  margin-bottom: 10px;
}

.image-block {
  width: 100%;
  border-radius: 14px;
  min-height: 220px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02)),
    linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
}

.inline-language-options,
.inline-language-toggle,
.launcher-slot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-language-options button[data-demo-lang="reset"],
.inline-language-toggle button[data-demo-lang="reset"] {
  background: rgba(255, 243, 228, 0.92);
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  margin-right: 6px;
  margin-bottom: 8px;
}

.footer-note {
  margin-top: 24px;
  color: rgba(16, 32, 58, 0.72);
  font-size: 0.9rem;
}

.demo-code-footer {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(10, 25, 54, 0.1);
}

.demo-code-footer h2 {
  margin-bottom: 8px;
}

.demo-code-footer p {
  color: rgba(16, 32, 58, 0.82);
}

.demo-code-footer pre {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  overflow-x: auto;
  background: #0f1e36;
  color: #d7ebff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.demo-code-footer code {
  font-family: "SFMono-Regular", Menlo, Consolas, Monaco, monospace;
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .card,
  .card.wide {
    grid-column: span 12;
  }

  .hero {
    padding: 24px;
  }
}
