:root {
  --ink: #0e1116;
  --ink-2: #161b22;
  --panel: #1c232d;
  --line: rgba(200, 245, 66, 0.14);
  --text: #eef2f6;
  --mute: #9aa8b8;
  --lime: #c8f542;
  --coral: #ff6b4a;
  --display: "Unbounded", "Segoe UI", sans-serif;
  --sans: "Onest", "Segoe UI", sans-serif;
  --w: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(800px 380px at 90% -5%, rgba(200, 245, 66, 0.12), transparent 55%),
    radial-gradient(600px 300px at 0% 40%, rgba(255, 107, 74, 0.08), transparent 50%),
    var(--ink);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--lime); color: #0e1116; padding: 10px 14px; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

.shell {
  width: min(var(--w), calc(100% - 32px));
  margin-inline: auto;
}

.mast {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 17, 22, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mast-in {
  position: relative;
  min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.03em;
}
.brand span { color: var(--lime); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background:
    linear-gradient(135deg, var(--lime), #8bc20a 60%, var(--coral));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--mute);
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
}
.site-nav a[aria-current="page"],
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-call { border: 1px solid var(--line); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: rgba(255,255,255,0.08); cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 16px; height: 2px; margin: 5px auto; background: #fff;
}

/* Hero — content-first, brand dominant */
.hero-live {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: end;
}
.hero-live .tag {
  margin: 0 0 16px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lime); font-weight: 700;
}
.hero-live h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
  max-width: 12ch;
}
.hero-live h1 em {
  font-style: normal;
  color: var(--lime);
  display: block;
}
.speak-lead {
  margin: 22px 0 0;
  color: var(--mute);
  font-size: 1.15rem;
  max-width: 38rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  text-decoration: none; font-weight: 700; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: #0e1116; }
.btn-lime:hover { background: #fff; color: #0e1116; }
.btn-ghost { border-color: rgba(255,255,255,0.22); color: #fff; }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--panel);
}
.hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; animation: drift 22s ease-in-out infinite alternate;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(14,17,22,0.85)),
    linear-gradient(90deg, rgba(200,245,66,0.12), transparent 50%);
}
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(14,17,22,0.82); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: #fff;
}

.block { padding: 72px 0; }
.block-head { max-width: 46rem; margin-bottom: 36px; }
.kicker {
  margin: 0 0 12px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral); font-weight: 700;
}
.block-head h2,
.page-head h1,
.cta-panel h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.03em;
  color: #fff;
}
.block-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.15;
}
.block-head h2 span { color: var(--lime); }
.lede { margin: 16px 0 0; color: var(--mute); font-size: 1.05rem; }

/* Long-form article on homepage */
.article {
  max-width: 46rem;
}
.article p { color: var(--mute); margin: 0 0 1.1em; }
.article h2 {
  margin: 2em 0 0.6em;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: #fff;
  letter-spacing: -0.02em;
}
.article h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.15rem;
  color: #fff;
}
.article ul, .article ol {
  color: var(--mute);
  padding-left: 1.2em;
  margin: 0 0 1.2em;
}
.article li { margin: 0.35em 0; }
.article strong { color: #fff; }

.algo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.algo-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 24px;
  border-left: 3px solid var(--lime);
}
.algo-card .code {
  font-family: var(--display);
  color: var(--lime);
  font-size: 0.95rem;
  font-weight: 700;
}
.algo-card h3 { margin: 12px 0 8px; color: #fff; font-size: 1.15rem; }
.algo-card p { margin: 0; color: var(--mute); font-size: 0.95rem; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.proof {
  padding: 18px;
  border-radius: 16px;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.06);
}
.proof b {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--lime);
  margin-bottom: 6px;
}
.proof span { color: var(--mute); font-size: 0.9rem; }

.table-box {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--panel);
}
table { width: 100%; border-collapse: collapse; min-width: 720px; text-align: left; }
th, td { padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top; }
th {
  color: var(--mute); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
}
td { color: #c5d0dc; }
td strong { color: #fff; }

.split-mistakes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.split-mistakes article {
  padding: 24px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.07);
}
.split-mistakes h3 { margin: 0 0 8px; color: #fff; }
.split-mistakes p { margin: 0; color: var(--mute); }

.region-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.region {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.07);
}
.region img {
  width: 100%; height: 100%; min-height: 160px; object-fit: cover;
}
.region-body { padding: 18px 20px; }
.region-body .meta {
  margin: 0 0 6px; color: var(--coral);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.region-body h3 { margin: 0 0 8px; color: #fff; font-size: 1.15rem; }
.region-body p { margin: 0; color: var(--mute); font-size: 0.95rem; }

.faq-stack { display: grid; gap: 10px; max-width: 780px; }
.faq-stack details {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 18px;
}
.faq-stack summary { cursor: pointer; font-weight: 700; color: #fff; }
.faq-stack p { margin: 12px 0 0; color: var(--mute); }

.glossary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.glossary dt {
  font-weight: 700; color: var(--lime); margin: 0;
}
.glossary dd {
  margin: 4px 0 14px; color: var(--mute);
}

.cta-panel {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  margin-bottom: 48px;
  background:
    linear-gradient(135deg, #1a2a0a, #121820 45%, #2a1410);
  border: 1px solid var(--line);
}
.cta-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  max-width: 16ch;
  line-height: 1.15;
}

.page-head { padding: 48px 0 24px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 32px; }
.crumbs { margin: 0 0 12px; font-size: 13px; color: var(--mute); }
.crumbs a { color: inherit; text-decoration: none; }
.page-head h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  max-width: 18ch;
}
.page-head .lede { max-width: 40rem; }

.prose { max-width: 46rem; padding-bottom: 48px; }
.prose p, .prose li { color: var(--mute); }
.prose h2 { color: #fff; font-family: var(--display); font-size: 1.4rem; }

.contact-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 56px;
}
.panel {
  background: var(--panel); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 24px;
}
.panel h2 { margin: 0 0 12px; color: #fff; font-family: var(--display); font-size: 1.3rem; }
.panel p, .panel li { color: var(--mute); }
.form { display: grid; gap: 10px; }
.form label { font-size: 13px; font-weight: 700; }
.form input, .form textarea {
  width: 100%; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  padding: 12px 14px; background: rgba(255,255,255,0.03); color: #fff; font: inherit;
}
.form button {
  border: 0; border-radius: 14px; min-height: 50px;
  background: var(--lime); color: #0e1116; font: inherit; font-weight: 700; cursor: pointer;
}
.form button:hover { background: #fff; }
.note {
  margin: 0; padding: 10px 12px; border-radius: 12px;
  background: rgba(200,245,66,0.1); color: #d7f58a;
}

.site-foot {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 24px; background: #090b0f;
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 24px;
}
.foot-brand {
  margin: 0 0 10px; font-family: var(--display); font-size: 1.3rem; color: #fff;
}
.site-foot a, .site-foot span, .site-foot p {
  display: block; color: var(--mute); text-decoration: none; margin: 6px 0;
}
.site-foot a:hover { color: var(--lime); }
.site-foot strong { color: #fff; }
.foot-legal {
  margin-top: 32px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12px; color: #6b7785;
}

.notfound { padding: 100px 0 120px; max-width: 36rem; }
.notfound h1 { font-family: var(--display); color: #fff; }

@keyframes drift {
  from { transform: scale(1.04); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}

@media (max-width: 960px) {
  .hero-live, .algo-grid, .proof-strip, .split-mistakes,
  .region-board, .glossary, .contact-duo, .foot-grid {
    grid-template-columns: 1fr;
  }
  .region { grid-template-columns: 1fr; }
  .region img { height: 200px; min-height: 200px; }
  .hero-visual { min-height: 280px; height: 280px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none; position: absolute; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; min-width: 230px;
    background: var(--panel); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 8px; z-index: 50;
  }
  .site-nav.open { display: flex; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
}
