:root {
  --ink: #111a2b;
  --ink-2: #ffffff;
  --ink-3: #f3f5f8;
  --paper: #fbfaf7;
  --paper-2: #f1f2f4;
  --signal: #1d4f9f;
  --signal-soft: rgba(29, 79, 159, 0.08);
  --aqua: #2d63b7;
  --red: #b3172f;
  --muted: #727986;
  --line: #dadddf;
  --line-dark: #dadddf;
  --radius-panel: 14px;
  --radius-control: 8px;
}

html,
body {
  background: #fbfaf7;
  color: #111a2b;
}

body::selection {
  background: #d9e5f8;
  color: #10244c;
}

.site-header {
  height: 68px;
  border-bottom: 1px solid #e2e3e3;
  background: rgba(251, 250, 247, 0.92);
}

.site-header::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    #b3172f 0,
    #b3172f 18%,
    transparent 18%,
    transparent 82%,
    #1d4f9f 82%,
    #1d4f9f 100%
  );
  content: "";
}

.site-header.scrolled {
  background: rgba(251, 250, 247, 0.97);
  box-shadow: 0 1px 0 rgba(17, 26, 43, 0.04);
}

.brand {
  color: #111a2b;
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.primary-nav {
  gap: 32px;
}

.primary-nav a {
  color: #616978;
  font-size: 12px;
  font-weight: 520;
}

.primary-nav a::after {
  bottom: -24px;
  height: 2px;
  background: #b3172f;
}

.primary-nav a:hover {
  color: #111a2b;
}

.header-cta {
  padding: 10px 0 10px 17px;
  border: 0;
  border-left: 1px solid #d9dcdd;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1d4f9f;
  font-size: 12px;
  font-weight: 600;
}

.language-switch {
  position: absolute;
  top: 50%;
  right: 176px;
  z-index: 5;
  color: #68717d;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  transform: translateY(-50%);
}

.language-switch summary {
  display: flex;
  justify-content: center;
  gap: 4px;
  align-items: center;
  width: 46px;
  height: 27px;
  border: 1px solid #d9dcdd;
  border-radius: 7px;
  cursor: pointer;
  list-style: none;
}

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

.language-switch[open] summary,
.language-switch summary:hover {
  border-color: #1d4f9f;
  color: #1d4f9f;
}

.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: 156px;
  padding: 7px;
  border: 1px solid #d9dcdd;
  border-radius: 10px;
  background: rgba(251, 250, 247, 0.98);
  box-shadow: 0 18px 45px rgba(24, 36, 58, 0.12);
}

.language-menu a {
  padding: 9px 11px;
  border-radius: 6px;
  color: #59636e;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background: #eef3f7;
  color: #1d4f9f;
}

.header-cta:hover {
  border-color: #1d4f9f;
  box-shadow: none;
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.78fr);
  gap: clamp(48px, 7vw, 106px);
  align-items: center;
  min-height: 880px;
  padding-top: 112px;
  padding-bottom: 96px;
}

.hero-grid {
  display: block;
  inset: 84px 0 0;
  opacity: 0.72;
  background-image: linear-gradient(
    90deg,
    transparent 0,
    transparent calc(25% - 1px),
    rgba(29, 79, 159, 0.11) 25%,
    transparent calc(25% + 1px)
  );
  background-size: 25% 100%;
  mask-image: none;
}

.hero-grid::before {
  position: absolute;
  top: -260px;
  left: -360px;
  width: 860px;
  height: 860px;
  border: 1px solid rgba(29, 79, 159, 0.13);
  border-radius: 50%;
  background: none;
  content: "";
}

.hero::after {
  position: absolute;
  z-index: 1;
  top: 140px;
  right: 0;
  width: 15px;
  height: 15px;
  background: #b3172f;
  content: "";
}

.hero-brand-panel {
  min-height: 0;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: #111a2b;
  box-shadow: none;
}

.hero-brand-panel .eyebrow {
  margin-bottom: 42px;
  color: #6d7480;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.hero-brand-panel .eyebrow-divider {
  width: 22px;
  background: #d4d7da;
}

.hero-brand-panel .status-dot {
  width: 7px;
  height: 7px;
  background: #b3172f;
  box-shadow: none;
}

.hero-brand-panel h1 {
  max-width: 730px;
  color: #111a2b;
  font-size: clamp(68px, 6.8vw, 100px);
  font-weight: 500;
  letter-spacing: -0.066em;
  line-height: 0.93;
}

.hero-brand-panel .signal-word {
  color: #1d4f9f;
}

.hero-brand-panel .hero-intro {
  max-width: 610px;
  margin-top: 34px;
  color: #626a77;
  font-size: 17px;
  line-height: 1.72;
}

.hero-brand-panel .task-composer {
  max-width: 650px;
  margin-top: 38px;
  padding: 15px 0;
  border: 0;
  border-top: 1px solid #cfd3d7;
  border-bottom: 1px solid #cfd3d7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-brand-panel .task-composer > label {
  margin-bottom: 11px;
  color: #747b87;
  font-size: 10px;
}

.hero-brand-panel .composer-row input {
  color: #111a2b;
  font-size: 15px;
}

.hero-brand-panel .composer-row button {
  gap: 28px;
  padding: 13px 18px;
  border-radius: 0;
  background: #1d4f9f;
  color: #fff;
}

.hero-brand-panel .composer-row button:hover {
  background: #143f86;
}

.hero-brand-panel .task-suggestions {
  margin-top: 14px;
}

.hero-brand-panel .task-suggestions button {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid #c9cdd2;
  border-radius: 0;
  color: #6e7580;
}

.hero-brand-panel .task-suggestions button:hover {
  border-color: #1d4f9f;
  color: #1d4f9f;
}

.hero-brand-panel .hero-proof {
  gap: 22px;
  margin-top: 24px;
}

.hero-brand-panel .hero-proof span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #737b86;
  font-size: 10px;
}

.console-shell {
  border: 1px solid #d5d9de;
  border-radius: var(--radius-panel);
  background: #fff;
  box-shadow: none;
}

.console-shell::before {
  top: -77px;
  right: 0;
  bottom: auto;
  left: auto;
  display: block;
  width: 1px;
  height: 76px;
  border: 0;
  background: #1d4f9f;
}

.console-shell::after {
  display: none;
}

.console-bar {
  height: 42px;
  border-bottom-color: #e1e3e5;
  color: #848b95;
  font-size: 8px;
}

.console-body {
  padding: 27px;
}

.console-kicker {
  color: #777f8a;
  font-size: 9px;
}

.console-title-row h2 {
  color: #151d2c;
  font-size: 26px;
  font-weight: 530;
  letter-spacing: -0.03em;
}

.checkpoint-badge {
  border-color: #e5d2d5;
  border-radius: var(--radius-control);
  background: #fbf4f5;
  color: #a61b30;
}

.metric-row {
  margin: 23px 0;
  border-color: #e2e4e6;
}

.metric > span {
  color: #858b95;
}

.metric strong {
  color: #222b3a;
  font-weight: 580;
}

.metric-track {
  height: 1px;
  border-radius: 0;
  background: #e1e4e7;
}

.metric-track i {
  border-radius: 0;
  background: #1d4f9f;
}

.map-rail {
  background: #dfe2e5;
}

.map-rail i {
  background: #1d4f9f;
}

.step-node {
  border-color: #d4d8dc;
  border-radius: 50%;
  background: #fff;
}

.thread-step.complete .step-node {
  border-color: #b9cbe7;
  background: #fff;
  color: #235cad;
}

.thread-step.active .step-node {
  border-color: #b3172f;
  background: #b3172f;
  color: #fff;
}

.thread-action {
  color: #1d4f9f;
}

.console-live {
  color: #235eae;
}

.console-live i,
.saved-dot {
  background: #1d4f9f;
}

.featured-reading {
  min-height: 58px;
  border-color: #dbdddf;
  color: #636b77;
}

.featured-reading:hover {
  background: transparent;
  color: #1d4f9f;
}

.featured-label {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b3172f;
  font-size: 9px;
  font-weight: 650;
}

.section {
  padding: 156px 0;
}

.section-index {
  padding-bottom: 20px;
  border-color: #dcdfe2;
  color: #858c96;
}

.section-index span:first-child,
.edition-label,
.scenario-kicker,
.mini-label,
.stage-panel-head span:last-child,
.package-label i,
.governance-points span {
  color: #1d4f9f;
}

.split-heading {
  grid-template-columns: 1.32fr 0.55fr;
  gap: 9vw;
  padding: 70px 0 80px;
}

.split-heading h2,
.architecture-heading h2 {
  max-width: 900px;
  color: #111a2b;
  font-size: clamp(58px, 6.2vw, 90px);
  font-weight: 490;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.signal-word,
.serif-accent {
  color: #1d4f9f;
}

.comparison-grid {
  gap: 0;
  overflow: hidden;
  border-top: 1px solid #d8dbde;
  border-left: 1px solid #d8dbde;
  border-radius: var(--radius-panel);
}

.comparison-card,
.libre-card {
  min-height: 500px;
  border: 0;
  border-right: 1px solid #d8dbde;
  border-bottom: 1px solid #d8dbde;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.comparison-card:nth-child(2) {
  background: #f7f5f0;
}

.libre-card {
  background: #f2f6fb;
}

.comparison-card h3 {
  margin-top: 68px;
  font-size: 30px;
  font-weight: 500;
}

.comparison-visual {
  border-color: #dfe2e4;
}

.chat-visual span {
  border-color: #e0e3e5;
  border-radius: 0;
  background: rgba(17, 26, 43, 0.035);
}

.chat-visual span:nth-child(2) {
  background: rgba(29, 79, 159, 0.07);
}

.workflow-visual span {
  border-color: #cfd4d9;
  border-radius: 0;
}

.mini-contract-row {
  border-color: #d5dce7;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.54);
}

.mini-contract-row strong {
  color: #1d4f9f;
}

.active-tag {
  border-color: #c6d6ec;
  border-radius: 999px;
  background: transparent;
  color: #1d4f9f;
}

.principles-strip {
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: transparent;
}

.principles-strip > div {
  padding-top: 26px;
  padding-bottom: 26px;
}

.scenario-showcase {
  margin-top: 84px;
  padding: 0;
  border: 0;
  border-top: 1px solid #d9dcdf;
  border-radius: 0;
  background: transparent;
}

.scenario-intro {
  padding-top: 66px;
}

.scenario-intro h3 {
  font-size: clamp(38px, 4vw, 57px);
  font-weight: 500;
}

.scenario-tabs {
  gap: 24px;
  margin-top: 34px;
  border-bottom: 1px solid #d9dcdf;
}

.scenario-tabs button {
  padding: 8px 0 12px;
  border: 0;
  border-radius: 0;
  color: #747b86;
}

.scenario-tabs button[aria-selected="true"] {
  background: transparent;
  color: #111a2b;
  box-shadow: inset 0 -2px #b3172f;
}

.scenario-panel {
  border-color: #d7dade;
  border-radius: var(--radius-panel);
  box-shadow: none;
}

.scenario-panel-body h4 {
  font-size: 36px;
  font-weight: 500;
}

.stage-tabs {
  border-color: #d8dbde;
  border-radius: var(--radius-control);
  background: transparent;
}

.stage-tabs button {
  border-radius: 0;
}

.stage-tabs button[aria-selected="true"] {
  background: #1d4f9f;
}

.stage-panel {
  border-radius: var(--radius-panel);
  box-shadow: none;
}

.stage-domain {
  border-radius: var(--radius-control);
  background: #f3f6fa;
}

.governance {
  background: #f5f3ee;
}

.policy-chip,
.capability-list .allow {
  border-radius: 999px;
}

.cap-icon {
  border-radius: var(--radius-control);
  background: #f5f7fa;
}

.routing-panel {
  border-radius: var(--radius-panel);
  box-shadow: none;
}

.routing-meter i {
  border-radius: 2px;
}

.delivery-workspace {
  border-radius: var(--radius-panel);
  box-shadow: none;
}

.delivery-sidebar {
  background: #f5f3ee;
}

.delivery-document {
  overflow: hidden;
  border-radius: var(--radius-control);
  box-shadow: none;
}

.insight-block {
  border-radius: var(--radius-control);
}

.evidence-strip {
  overflow: hidden;
  border-radius: var(--radius-panel);
}

.arch-layer,
.arch-layer:nth-of-type(n) {
  border-radius: var(--radius-control);
  box-shadow: none;
}

.arch-layer:nth-of-type(5) {
  background: #f3f6fa;
}

.preview-section {
  min-height: 620px;
  border: 0;
  background: #153f83;
  color: #fff;
}

.preview-section::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 36%;
  height: 6px;
  background: #b3172f;
  content: "";
}

.preview-copy .edition-label {
  color: rgba(255, 255, 255, 0.62);
}

.preview-copy h2 {
  color: #fff;
  font-size: clamp(64px, 7.2vw, 108px);
  font-weight: 490;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.preview-copy h2 .signal-word {
  color: #fff;
}

.preview-copy p {
  color: rgba(255, 255, 255, 0.67);
}

.primary-button {
  border-radius: var(--radius-control);
  background: #fff;
  color: #153f83;
  box-shadow: none;
}

.primary-button:hover {
  background: #f4f5f4;
  color: #b3172f;
}

.site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 92px max(32px, calc((100vw - 1440px) / 2 + 32px)) 34px;
  overflow: hidden;
  border-top: 1px solid #1d4f9f;
  background: #fbfaf7;
  color: #111a2b;
}

.site-footer::before {
  position: absolute;
  top: -1px;
  left: 50%;
  display: block;
  width: min(34vw, 380px);
  height: 2px;
  background: #b3172f;
  content: "";
  transform: translateX(-50%);
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.footer-wordmark {
  color: #111a2b;
  font-family: var(--display);
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1;
}

.footer-wordmark:hover {
  color: #1d4f9f;
}

.footer-statement {
  margin: 22px 0 0;
  color: #1d4f9f;
  font-size: 17px;
  font-weight: 520;
  letter-spacing: -0.015em;
}

.footer-description {
  max-width: 610px;
  margin: 14px auto 0;
  color: #737b87;
  font-size: 13px;
  line-height: 1.75;
}

.footer-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(940px, 100%);
  margin: 62px auto 0;
  padding: 32px 0;
  border-top: 1px solid #dfe1e3;
  border-bottom: 1px solid #dfe1e3;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.footer-group span {
  margin-bottom: 5px;
  color: #9298a0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-group a {
  color: #5c6470;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-group a:hover {
  color: #1d4f9f;
}

.footer-bottom {
  width: 100%;
  margin-top: 28px;
}

.site-footer .footer-meta {
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 0;
  border: 0;
  color: #858c96;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-status i {
  width: 6px;
  height: 6px;
  background: #b3172f;
  border-radius: 50%;
}

.toast {
  border-radius: var(--radius-control);
  box-shadow: 0 14px 36px rgba(17, 26, 43, 0.12);
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
    gap: 44px;
  }

  .hero-brand-panel h1 {
    font-size: clamp(60px, 6.4vw, 82px);
  }

  .section {
    padding: 136px 0;
  }
}

@media (max-width: 940px) {
  .site-header {
    height: 64px;
  }

  .primary-nav {
    top: 63px;
    border-radius: 0;
    background: #fbfaf7;
  }

  .language-switch {
    right: 72px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 68px;
    min-height: 0;
    padding-top: 96px;
    padding-bottom: 82px;
  }

  .hero-brand-panel h1 {
    max-width: 820px;
    font-size: clamp(66px, 11vw, 96px);
  }

  .console-shell {
    max-width: none;
  }

  .section {
    padding: 116px 0;
  }

  .scenario-showcase {
    gap: 42px;
  }

  .site-footer {
    padding-top: 82px;
  }
}

@media (max-width: 650px) {
  .site-header {
    height: 60px;
  }

  .primary-nav {
    top: 59px;
  }

  .language-switch {
    right: 66px;
  }

  .hero {
    gap: 54px;
    padding-top: 79px;
    padding-bottom: 62px;
  }

  .hero::after {
    top: 104px;
    width: 10px;
    height: 10px;
  }

  .hero-brand-panel .eyebrow {
    margin-bottom: 31px;
    font-size: 9px;
  }

  .hero-brand-panel h1 {
    font-size: clamp(52px, 15vw, 68px);
    letter-spacing: -0.06em;
  }

  .hero-brand-panel .hero-intro {
    margin-top: 25px;
    font-size: 15px;
  }

  .hero-brand-panel .task-composer {
    margin-top: 29px;
  }

  .hero-brand-panel .hero-proof {
    gap: 12px 18px;
  }

  .console-shell::before {
    display: none;
  }

  .section {
    padding: 92px 0;
  }

  .split-heading {
    padding: 46px 0 52px;
  }

  .split-heading h2,
  .architecture-heading h2 {
    font-size: clamp(45px, 13vw, 62px);
  }

  .comparison-grid {
    border-left: 0;
  }

  .comparison-card,
  .libre-card {
    border-left: 1px solid #d8dbde;
  }

  .scenario-showcase {
    margin-top: 54px;
  }

  .scenario-intro {
    padding-top: 44px;
  }

  .scenario-intro h3 {
    font-size: 36px;
  }

  .preview-section {
    min-height: 600px;
    padding: 88px 16px;
  }

  .preview-copy h2 {
    font-size: clamp(49px, 14vw, 66px);
  }

  .site-footer {
    padding: 72px 16px 28px;
  }

  .footer-wordmark {
    font-size: 48px;
  }

  .footer-statement {
    margin-top: 18px;
    font-size: 15px;
  }

  .footer-description {
    max-width: 330px;
    font-size: 12px;
  }

  .footer-directory {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 45px;
    padding: 22px 0;
  }

  .footer-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
  }

  .footer-group span {
    width: 100%;
    margin-bottom: 2px;
  }

  .site-footer .footer-meta {
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
  }
}
