:root {
  --container-max: 1200px;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-15: 120px;

  --radius-sm: 10px;
  --radius-md: 14px;

  --text-strong: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-soft-2: #f1f5f9;
  --surface-code: #0b1731;

  --line: #dbe4f0;
  --line-strong: #c7d4e8;

  --accent: #1d4ed8;
  --btn-dark: #0f172a;
  --btn-dark-hover: #0b1220;

  --dur-fast: 180ms;
  --ease: ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text-body);
  background: var(--surface);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.section-lg {
  padding: var(--s-15) 0;
}

.section-md {
  padding: var(--s-10) 0;
}

.section-sm {
  padding: var(--s-8) 0;
}

.tone-hero {
  background:
    radial-gradient(circle at 72% 36%, rgba(30, 64, 175, 0.08), transparent 42%),
    var(--surface);
}

.tone-white {
  background: var(--surface);
}

.tone-soft {
  background: var(--surface-soft);
}

.tone-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 220;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.header-row {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-2);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  text-decoration: none;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.back-link:hover {
  transform: translateY(-2px);
  border-color: #bdcde2;
}

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

.brand img {
  width: 34px;
  height: 34px;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.menu-btn {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid #c4cad4;
  background: rgba(243, 245, 248, 0.96);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
  z-index: 160;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.menu-icon-line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111318;
  transition: transform 240ms ease, opacity 240ms ease;
}

.menu-btn.is-open .menu-icon-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.is-open .menu-icon-line:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open .menu-icon-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(150deg, rgba(18, 27, 43, 0.97) 0%, rgba(13, 22, 35, 0.96) 52%, rgba(15, 30, 54, 0.95) 100%);
  opacity: 0;
  transform: translateY(-10px) scale(0.99);
  pointer-events: none;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
  will-change: transform, opacity;
}

.mobile-menu-list {
  margin: 0;
  padding: clamp(86px, 14vh, 128px) clamp(24px, 6vw, 38px) 36px;
  list-style: none;
  display: grid;
  gap: 12px;
}

.mobile-menu-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #f8fafc;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.25rem, 6vw, 1.9rem);
  font-weight: 700;
  padding: 0.3rem 0;
  transition: color 200ms ease, transform 220ms ease;
}

.mobile-menu-list a::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #38bdf8;
  transform: translateY(-50%) scale(0.2);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list a:focus-visible {
  color: #93c5fd;
  transform: translateX(6px);
}

.mobile-menu-list a:hover::before,
.mobile-menu-list a:focus-visible::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

body.mobile-menu-open {
  overflow: hidden !important;
}

body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(var(--s-4), 4vw, var(--s-8));
  align-items: center;
}

.eyebrow {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-copy h1 {
  margin: var(--s-2) 0 0;
  color: var(--text-strong);
  font-size: clamp(52px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-lead {
  margin: var(--s-3) 0 0;
  max-width: 560px;
  color: var(--text-body);
  font-size: clamp(18px, 1.9vw, 20px);
}

.hero-actions {
  margin-top: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: var(--btn-dark);
}

.btn-primary:hover {
  background: var(--btn-dark-hover);
}

.btn-secondary {
  color: var(--text-strong);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: #a7bcda;
}

.hero-preview-shell {
  position: relative;
  display: grid;
  justify-items: center;
}

.preview-backdrop {
  position: absolute;
  inset: 16% 8% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-code {
  position: relative;
  width: min(100%, 540px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-code);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.2);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.hero-code:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.22);
}

.hero-code-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: 0 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
  background: #112145;
  color: #e2e8f0;
  font-size: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot.red { background: #fb7185; }
.dot.yellow { background: #facc15; }
.dot.green { background: #4ade80; }

.hero-code-head strong {
  margin-left: var(--s-1);
  font-weight: 700;
}

.hero-code-version {
  margin-left: auto;
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 600;
}

.copy-btn {
  margin-left: var(--s-1);
  width: 30px;
  height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.74);
  color: #e2e8f0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.68);
  background: rgba(30, 41, 59, 0.92);
}

.copy-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.copy-btn.is-copied {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.76);
}

.hero-code pre {
  margin: 0;
  padding: var(--s-3);
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.68;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.hero-code pre .elang-k {
  color: #fbbf24;
}

.hero-code pre .elang-fn {
  color: #60a5fa;
}

.hero-code pre .elang-s {
  color: #4ade80;
}

.hero-code pre .elang-n {
  color: #c084fc;
}

.hero-code pre .elang-m {
  color: #38bdf8;
}

.hero-code-foot {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: 0 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  background: #0f1f40;
  color: #dbe6f7;
  font-size: 14px;
}

.prompt {
  color: #38bdf8;
  font-weight: 700;
}

.status-ok {
  margin-left: auto;
  color: #86efac;
  text-shadow: 0 0 10px rgba(134, 239, 172, 0.2);
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--s-6);
}

.section-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(34px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-head p {
  margin: var(--s-2) 0 0;
  color: var(--text-muted);
  font-size: 18px;
}

.section-head code,
.setup-list code,
.release-notes-panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

.highlights-section {
  padding-top: var(--s-12);
}

.highlights-section .section-head {
  position: relative;
  padding-top: var(--s-3);
}

.highlights-section .section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 88px;
  height: 1px;
  background: #bfd0e6;
}

.inline-tag {
  display: inline-flex;
  align-items: center;
  margin-left: var(--s-1);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #bcd0e8;
  background: #f8fbff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  vertical-align: middle;
}

.release-notes-panel {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: var(--s-4);
}

.release-notes-head h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(28px, 2.8vw, 34px);
  line-height: 1.14;
  font-weight: 800;
}

.release-notes-head p {
  margin: var(--s-2) 0 0;
  color: var(--text-body);
  font-size: 17px;
}

.release-columns {
  margin-top: var(--s-4);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--s-4);
}

.release-columns section h4 {
  margin: 0;
  color: var(--text-strong);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.release-columns section p,
.release-columns section li {
  color: rgba(51, 65, 85, 0.9);
  font-size: 16px;
}

.release-columns ul {
  margin: var(--s-2) 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.release-panel {
  background: var(--surface-soft-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.release-top {
  padding: var(--s-6);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.release-top h3 {
  margin: var(--s-1) 0 0;
  color: var(--text-strong);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.14;
  font-weight: 800;
}

.release-note {
  margin: var(--s-2) 0 0;
  color: var(--text-muted);
  font-size: 17px;
}

.release-badges {
  margin-top: var(--s-3);
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #c7d6ea;
  background: #ffffff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.release-badge-stable {
  border-color: #b7dec5;
  background: #e9f9ef;
  color: #14532d;
}

.release-cta-wrap {
  padding-top: var(--s-1);
  padding-bottom: var(--s-1);
}

.release-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.release-meta div {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  border-right: 1px solid var(--line);
}

.release-meta div:last-child {
  border-right: 0;
}

.release-meta dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.release-meta dd {
  margin: var(--s-1) 0 0;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 700;
}


.setup-list {
  position: relative;
  margin: 0;
  padding: 0 0 0 var(--s-4);
  list-style: none;
}

.setup-list::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #cfdbea;
}

.setup-list li {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-2);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.setup-list li:hover {
  background: rgba(248, 250, 252, 0.82);
  transform: translateY(-1px);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #c8d7ea;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.setup-list h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(22px, 2.1vw, 26px);
  line-height: 1.26;
  font-weight: 700;
}

.setup-list p {
  margin: var(--s-1) 0 0;
  color: rgba(51, 65, 85, 0.9);
  font-size: 17px;
}

.setup-list pre,
.feature-code-card pre {
  margin: var(--s-2) 0 0;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.58;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.setup-list pre {
  color: #1e293b;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

.feature-code-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--s-3);
}

.feature-code-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
}

.feature-code-card pre {
  color: #e2e8f0;
  background: #0f172a;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12), inset 0 0 22px rgba(56, 189, 248, 0.08);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

.article-item {
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}

.article-item h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.22;
  font-weight: 700;
}

.article-item p {
  margin: var(--s-2) 0 0;
  color: rgba(51, 65, 85, 0.9);
  font-size: 17px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-grid {
  padding: var(--s-6) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--s-6);
  align-items: start;
}

.footer-left {
  display: grid;
  gap: var(--s-2);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-strong);
}

.footer-brand img {
  width: 30px;
  height: 30px;
}

.footer-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 46ch;
}

.footer-meta {
  margin: 0;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 700;
}

.footer-right {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
}

.footer-links {
  display: grid;
  gap: var(--s-1);
}

.footer-links a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 700;
  transition: color var(--dur-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-social-minimal {
  display: flex;
  gap: var(--s-2);
  align-items: center;
}

.footer-social-minimal a {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
}

.footer-social-minimal a:hover {
  color: var(--accent);
}

.footer-social-minimal svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

  .hero-preview-shell {
    justify-items: start;
  }

  .release-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-meta div:nth-child(2n) {
    border-right: 0;
  }

  .release-meta div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .header-row {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s-2);
    min-height: 72px;
  }

  .site-nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .section-lg {
    padding: var(--s-12) 0;
  }

  .section-md {
    padding: var(--s-8) 0;
  }

  .feature-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--s-2);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .release-top,
  .release-notes-panel {
    padding: var(--s-3);
  }

  .release-meta {
    grid-template-columns: 1fr;
  }

  .release-meta div {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .release-meta div:first-child {
    border-top: 0;
  }

  .setup-list {
    padding-left: 0;
  }

  .setup-list::before {
    display: none;
  }

  .setup-list li {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
