:root {
  color-scheme: light;
  --concrete: #dce0e5;
  --panel: #f7f8fa;
  --steel: #e6e9ee;
  --ink: #0a0b0d;
  --muted: #393e46;
  --klein: #002fa7;
  --klein-hover: #00227a;
  --lime: #c8ff00;
  --terminal: #0d0f13;
  --terminal-line: #262b35;
  --terminal-text: #eef1f6;
  --terminal-muted: #9aa3b2;
  --mono: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-family: var(--sans);
  background-color: var(--concrete);
  background-image:
    linear-gradient(to right, rgba(10, 11, 13, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 11, 13, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--klein);
  outline-offset: 3px;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

h1,
h2,
h3,
p,
dl,
dd,
pre {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: -120px;
  inset-inline-start: 20px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 18px;
  font-family: var(--mono);
  font-weight: 700;
  z-index: 30;
}

.skip-link:focus {
  top: 16px;
}

.page {
  width: min(1380px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 22px 64px;
}

/* ─── INDUSTRIAL DUAL-DECK HEADER ─── */
.foundry-header {
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--panel);
}

.header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: var(--klein);
  color: #ffffff;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-box {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--lime);
  border: 1px solid var(--ink);
  font-size: 12px;
}

.header-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  background: var(--panel);
}

.platform-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-nav > a:not(.btn):hover {
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime);
}

/* ─── LANGUAGE MENU ─── */
.language-menu {
  position: relative;
}

.language-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  background: var(--steel);
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.language-menu > summary::-webkit-details-marker {
  display: none;
}

.language-options {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 10px;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.language-options a {
  padding: 7px 9px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  border: 1px solid transparent;
}

.language-options a:hover,
.language-options a[aria-current="true"] {
  background: var(--lime);
  border-color: var(--ink);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

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

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

.btn-white {
  background: var(--panel);
  color: var(--ink);
}

.btn-white:hover {
  background: var(--lime);
}

.btn-small {
  padding: 9px 16px;
  font-size: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.arrow {
  flex-shrink: 0;
}

[dir='rtl'] .arrow {
  transform: scaleX(-1);
}

/* ─── HERO SECTION ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 36px;
  align-items: start;
  padding-block: 42px 48px;
}

.hero-copy {
  position: relative;
}

.section-index {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
}

h1 {
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

.h1-sub {
  margin-top: 8px;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--klein);
  text-transform: none;
}

.lime-sticker {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg);
  font-family: var(--mono);
  text-transform: uppercase;
}

[dir='rtl'] .lime-sticker {
  transform: rotate(2deg);
}

.lime-sticker strong {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
}

.lime-sticker span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lime-sticker small {
  margin-top: 3px;
  padding-top: 4px;
  border-top: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.hero-lead-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.hero-lead-list p {
  font-size: 18px;
  line-height: 1.48;
  font-weight: 500;
  max-width: 54ch;
}

.hero-lead-list strong {
  font-weight: 800;
  background: rgba(200, 255, 0, 0.45);
  padding-inline: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.fact-cell {
  padding: 12px 14px;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.fact-cell strong {
  display: block;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 900;
}

.fact-cell span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* ─── SPLIT TERMINAL WORKBENCH ─── */
.workbench-frame {
  background: var(--terminal);
  color: var(--terminal-text);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}

.workbench-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #161920;
  border-bottom: 2px solid var(--terminal-line);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--terminal-muted);
}

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

.workbench-pane {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workbench-pane + .workbench-pane {
  border-inline-start: 2px solid var(--terminal-line);
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--terminal-line);
}

.pane-model {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.pane-badge {
  display: inline-block;
  padding: 4px 8px;
  background: var(--lime);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.pane-role {
  font-size: 13px;
  font-weight: 600;
  color: #ced5e0;
}

.pane-code {
  padding: 12px;
  background: #07080a;
  border: 1px solid var(--terminal-line);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: #d6deeb;
  overflow-x: auto;
  white-space: pre-wrap;
}

.pane-code .hl-lime {
  color: var(--lime);
  font-weight: 700;
}

.pane-code .hl-blue {
  color: #7aa2f7;
}

.pane-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--terminal-line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--terminal-muted);
}

/* ─── SECTION BANNERS ─── */
.section-block {
  margin-top: 48px;
}

.section-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: var(--ink);
  color: #ffffff;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--klein);
}

.section-banner h2 {
  font-family: var(--mono);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-banner span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--lime);
  font-weight: 700;
}

/* ─── BENCHMARK MATRIX & CHARTS ─── */
.foundry-matrix-layout {
  display: grid;
  grid-template-columns: 1.32fr 0.88fr;
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}

.matrix-card,
.charts-card {
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 20px;
}

.spec-table-wrap {
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--ink);
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  border: 2px solid var(--ink);
  padding: 13px 14px;
  text-align: start;
  vertical-align: middle;
}

.spec-table thead th {
  background: var(--klein);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.spec-table tbody th {
  background: var(--steel);
  font-weight: 800;
}

.spec-table tbody td {
  font-family: var(--mono);
  font-weight: 700;
}

.spec-table .cell-lime {
  background: var(--lime);
  font-weight: 900;
}

.table-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.charts-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.chart-box {
  border: 2px solid var(--ink);
  padding: 16px;
  background: #ffffff;
}

.chart-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bar-rows {
  display: grid;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: 128px 1fr 68px;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.bar-track {
  height: 20px;
  background: var(--steel);
  border: 2px solid var(--ink);
  position: relative;
}

.bar-fill {
  height: 100%;
  background: var(--ink);
}

.bar-fill.fill-lime {
  background: var(--lime);
  border-inline-end: 2px solid var(--ink);
}

.bar-fill.fill-klein {
  background: var(--klein);
}

.bar-val {
  text-align: end;
  font-weight: 900;
}

/* ─── USE CASES WORKBENCH GRID ─── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.usecase-card {
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.usecase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.usecase-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  background: var(--lime);
  border: 1px solid var(--ink);
  text-transform: uppercase;
}

.usecase-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.usecase-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.usecase-prompt {
  margin-top: auto;
  padding: 10px 12px;
  background: var(--steel);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

/* ─── PRICING LEDGER & LEINPREMIUM ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-top: 24px;
}

.ledger-box {
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 26px;
}

.ledger-box h3,
.premium-box h3 {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.ledger-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.rates-list {
  margin-top: 20px;
  border-top: 2px solid var(--ink);
}

.rates-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ink);
}

.rates-row dt {
  font-weight: 700;
  font-size: 15px;
}

.rates-row dt small {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.rates-row dd {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.premium-box {
  background: var(--klein);
  color: #ffffff;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.premium-stamp {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 10px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.premium-price-line bdi {
  font-family: var(--mono);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  color: var(--lime);
}

.premium-price-line span {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.premium-list {
  margin: 0;
  padding-inline-start: 18px;
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.45;
}

/* ─── FAQ SECTION ─── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.faq-item {
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.faq-item summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 800;
  list-style: none;
}

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

.faq-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--steel);
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

.faq-item[open] .faq-plus {
  background: var(--lime);
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  border-top: 1px dashed var(--ink);
  padding-top: 14px;
}

/* ─── FOOTER ─── */
.footer {
  margin-top: 56px;
  padding: 20px 24px;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.footer nav a:hover {
  background: var(--lime);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1120px) {
  .hero,
  .foundry-matrix-layout,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .page {
    width: calc(100% - 28px);
    padding-block: 14px 44px;
  }

  .header-top-bar,
  .header-nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .workbench-grid,
  .usecases-grid,
  .faq-grid,
  .hero-facts {
    grid-template-columns: 1fr;
  }

  .workbench-pane + .workbench-pane {
    border-inline-start: 0;
    border-top: 2px solid var(--terminal-line);
  }

  .bar-row {
    grid-template-columns: 100px 1fr 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
