/* ==========================================================================
   Best.Tomorrow Translate — B2B redesign
   Design source: "B2B Redesign Options.dc.html" (Claude Design)
   Light corporate system: hairline grid, navy accent, square edges.
   ========================================================================== */

:root {
  --white: #ffffff;
  --navy: #0f2a4a;
  --navy-deep: #0a1e36;
  --text: #1a2330;
  --muted: #4a5462;
  --muted-light: #8a93a0;
  --line: #e4e7eb;
  --line-strong: #c8cdd4;
  --surface: #f6f7f9;
  --line-invert: rgba(255, 255, 255, 0.16);
  --muted-invert: rgba(255, 255, 255, 0.66);

  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --shell: 1280px;
  --gutter: 56px;
  --header-height: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
}

button,
label[for] {
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  letter-spacing: -0.04em;
  text-wrap: balance;
}

mark {
  background: rgba(15, 42, 74, 0.1);
  box-shadow: inset 0 -2px 0 rgba(15, 42, 74, 0.4);
  color: inherit;
}

u {
  text-decoration-color: var(--navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

::selection {
  background: var(--navy);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

dialog::backdrop {
  background: rgba(10, 20, 34, 0.62);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.page {
  max-width: var(--shell);
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}

.section {
  padding: 88px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.section-surface {
  background: var(--surface);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
  border-bottom-color: var(--navy);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
}

.section-dark .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.section-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.section-intro h2 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
}

.section-intro > div > p {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  margin: 0;
  text-wrap: pretty;
}

/* Buttons ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
}

.button-primary {
  background: var(--navy);
  color: var(--white);
}

.button-primary:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.button-outline {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.button-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.button-invert {
  background: var(--white);
  color: var(--navy);
}

.button-invert:hover {
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
}

.button-small {
  padding: 11px 24px;
  font-size: 14px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.text-button:hover {
  gap: 14px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -20px rgba(15, 42, 74, 0.5);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--shell);
  height: var(--header-height);
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  padding: 5px 8px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-copy {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.brand-copy strong {
  font-weight: 700;
}

.brand-copy small {
  color: var(--muted);
  font-size: inherit;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.2s var(--ease);
}

.site-header.menu-open .menu-toggle span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-login {
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.nav-login:hover {
  color: var(--navy);
}

.nav-cta {
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--navy-deep);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 96px var(--gutter) 80px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.25;
}

.hero-description {
  max-width: 560px;
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-preview-link {
  margin-left: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.hero-preview-link:hover {
  color: var(--navy);
}

/* Core three-up ------------------------------------------------------------ */

.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.core-grid article {
  padding: 48px var(--gutter);
  border-right: 1px solid var(--line);
}

.core-grid article:last-child {
  border-right: 0;
}

.core-index {
  margin: 0 0 16px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.core-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.core-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Workspace preview
   -------------------------------------------------------------------------- */

.workspace-section {
  padding: 72px var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.workspace-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.workspace-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.workspace-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.workspace-window {
  background: var(--white);
  border: 1px solid var(--line);
}

.workspace-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  background: var(--line-strong);
}

.project-path {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
}

.project-path span {
  flex: none;
  color: var(--muted-light);
  letter-spacing: 0.1em;
}

.project-path strong {
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workspace-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.workspace-status i {
  width: 6px;
  height: 6px;
  background: var(--navy);
}

.workspace-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.language-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.language-pair button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  font-weight: 600;
  cursor: pointer;
}

.language-pair button:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.language-pair i {
  color: var(--muted-light);
  font-style: normal;
}

.document-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.file-trigger {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.file-trigger:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.model-rail {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.model-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.model-chip small {
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 500;
}

.model-spark {
  color: var(--navy);
}

.model-chip:hover {
  background: var(--surface);
  color: var(--text);
}

.model-chip.is-active {
  background: var(--navy);
  color: var(--white);
}

.model-chip.is-active small,
.model-chip.is-active .model-spark {
  color: rgba(255, 255, 255, 0.7);
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
}

.editor-pane {
  padding: 24px;
}

.source-pane {
  border-right: 1px solid var(--line);
}

.result-pane {
  border-left: 1px solid var(--line);
}

.editor-pane > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.editor-pane > header span {
  display: block;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.editor-pane > header strong {
  font-size: 14px;
  font-weight: 700;
}

.editor-count {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 11px;
}

.editor-pane > header button {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.editor-pane > header button:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.editor-copy {
  padding: 20px 0;
  font-size: 15px;
  line-height: 1.85;
}

.editor-copy p + p {
  margin-top: 14px;
}

.source-annotations,
.translation-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.source-annotations span,
.translation-signals span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.translation-signals span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.translation-signals i {
  width: 5px;
  height: 5px;
  background: var(--navy);
}

.engine-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface);
}

.engine-bridge > span {
  flex: 1;
  width: 1px;
  background: var(--line-strong);
}

.engine-bridge strong {
  padding: 6px 8px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.engine-bridge small {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.08em;
}

.compare-drawer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.compare-drawer > div {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.compare-drawer > div:last-child {
  border-right: 0;
}

.compare-drawer span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.compare-drawer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.workspace-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.workspace-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.run-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.run-button span {
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.run-button:hover {
  background: var(--navy-deep);
}

/* --------------------------------------------------------------------------
   Model routing
   -------------------------------------------------------------------------- */

.model-explorer {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--line);
}

.model-index {
  border-right: 1px solid var(--line);
}

.model-index-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 4px 12px;
  width: 100%;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease;
}

.model-index-item:last-child {
  border-bottom: 0;
}

.model-index-item span {
  grid-row: span 2;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.model-index-item strong {
  font-size: 15px;
  font-weight: 700;
}

.model-index-item small {
  color: var(--muted);
  font-size: 12px;
}

.model-index-item:hover {
  background: var(--surface);
}

.model-index-item.is-active {
  background: var(--navy);
  color: var(--white);
}

.model-index-item.is-active span,
.model-index-item.is-active small {
  color: rgba(255, 255, 255, 0.7);
}

.model-detail {
  padding: 40px;
}

.model-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.model-detail-head > span:first-child {
  color: var(--navy);
}

.model-availability {
  padding: 5px 10px;
  background: var(--surface);
  color: var(--muted);
}

.model-detail h3 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
}

.model-detail > p {
  max-width: 560px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
}

.model-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.model-facts > div {
  padding: 20px 24px 20px 0;
  border-right: 1px solid var(--line);
}

.model-facts > div:last-child {
  border-right: 0;
}

.model-facts > div + div {
  padding-left: 24px;
}

.model-facts dt {
  margin-bottom: 6px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.model-facts dd {
  font-size: 14px;
  font-weight: 600;
}

.model-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.model-capabilities span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.model-network {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.model-network > div p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.model-network ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.model-network li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.model-network li:last-child {
  border-right: 0;
}

.model-network li small {
  color: var(--muted-light);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.network-note {
  grid-column: 2;
  margin: 0;
  color: var(--muted-light);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Workflow
   -------------------------------------------------------------------------- */

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.workflow-track li {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-number {
  display: block;
  margin-bottom: 24px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 12px;
}

.workflow-icon svg {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.4;
  stroke-linecap: square;
}

.workflow-track h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.workflow-track p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Compare
   -------------------------------------------------------------------------- */

.compare-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.compare-copy h2 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
}

.compare-copy > p {
  max-width: 480px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 16px;
}

.comparison-sheet {
  background: var(--white);
  border: 1px solid var(--line);
}

.comparison-sheet > header,
.comparison-sheet > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-light);
}

.comparison-sheet > header {
  border-bottom: 1px solid var(--line);
}

.comparison-sheet > footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.comparison-sheet > footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.comparison-source {
  padding: 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.comparison-source span,
.comparison-result span {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.comparison-source p {
  margin: 8px 0 0;
  font-size: 15px;
}

.comparison-result {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.comparison-result:last-of-type {
  border-bottom: 0;
}

.comparison-result > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.comparison-result strong {
  padding: 4px 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.comparison-result p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.comparison-result.is-selected {
  border-left: 2px solid var(--navy);
}

.comparison-result.is-selected strong {
  background: var(--navy);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.pricing-copy h2 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
}

.pricing-copy > p {
  max-width: 480px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 16px;
}

.pricing-unit {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.pricing-unit strong {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.pricing-unit span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.pricing-disclaimer {
  margin: 20px 0 0;
  color: var(--muted-light);
  font-size: 12px;
}

.usage-calculator {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--text);
}

.calculator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.calculator-head span {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.calculator-head h3 {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 800;
}

.beta-label {
  padding: 5px 10px;
  background: var(--surface);
  color: var(--muted) !important;
  white-space: nowrap;
}

.usage-calculator label {
  display: block;
  margin: 24px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.calculator-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
}

.calculator-input input {
  width: 100%;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 20px;
  outline: none;
}

.calculator-input span {
  color: var(--muted);
  font-size: 14px;
}

.calculator-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 20px;
  background: var(--surface);
}

.calculator-result > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.calculator-result > div > span {
  color: var(--muted);
  font-size: 13px;
}

.calculator-result strong {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
}

.calculator-result small {
  color: var(--muted);
  font-size: 13px;
}

.calculator-result p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.calculator-button {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Enterprise strip
   -------------------------------------------------------------------------- */

.enterprise-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.enterprise-strip p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.enterprise-strip a {
  padding: 11px 24px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}

.enterprise-strip a:hover {
  background: var(--navy);
  color: var(--white);
}

.enterprise-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.enterprise-points li {
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Enterprise page
   -------------------------------------------------------------------------- */

.enterprise-page {
  background: var(--white);
}

.enterprise-hero h1 {
  max-width: 760px;
}

.enterprise-summary article {
  min-height: 198px;
}

.enterprise-console {
  display: grid;
  grid-template-columns: 260px 1fr;
  border: 1px solid var(--line);
  background: var(--white);
}

.enterprise-console-nav {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.enterprise-console-nav > p {
  margin: 0 0 22px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.enterprise-console-nav ul {
  border-top: 1px solid var(--line);
}

.enterprise-console-nav li {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.enterprise-console-nav li span {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 10px;
}

.enterprise-console-nav li.is-active {
  background: var(--navy);
  color: var(--white);
}

.enterprise-console-nav li.is-active span {
  color: rgba(255, 255, 255, 0.7);
}

.enterprise-console-main {
  min-width: 0;
  padding: 28px;
}

.enterprise-console-main > header {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.enterprise-console-main > header h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.enterprise-console-main > header span {
  padding: 5px 9px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.enterprise-console-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.enterprise-console-grid article {
  min-height: 130px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.enterprise-console-grid article > span {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.enterprise-console-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
}

.enterprise-console-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.enterprise-capabilities {
  border-top: 1px solid var(--line);
}

.enterprise-capabilities article {
  display: grid;
  grid-template-columns: 64px 260px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.enterprise-capabilities article > span,
.enterprise-steps li > span {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 12px;
}

.enterprise-capabilities h3,
.enterprise-steps h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.enterprise-capabilities p,
.enterprise-steps p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.enterprise-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.enterprise-steps li {
  min-height: 250px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.enterprise-steps h3 {
  margin-top: 42px;
}

.enterprise-steps p {
  margin-top: 12px;
  font-size: 13px;
}

.enterprise-contact-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 72px;
  align-items: start;
}

.enterprise-contact-copy h2 {
  margin: 0 0 18px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
}

.enterprise-contact-copy > p:last-child {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.enterprise-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.16s ease;
}

.form-field input,
.form-field select {
  height: 46px;
  padding: 0 12px;
}

.form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 20px,
    calc(100% - 11px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.form-field textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy);
}

.enterprise-form > .button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 2px;
  cursor: pointer;
}

.form-note {
  grid-column: 1 / -1;
  margin: -8px 0 0;
  color: var(--muted-light);
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}

.faq-heading h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 800;
}

.faq-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

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

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

.faq-list summary:hover {
  color: var(--navy);
}

.faq-list summary span {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq-list summary span::before,
.faq-list summary span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.2s var(--ease);
}

.faq-list summary span::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary span::after {
  transform: rotate(0deg);
}

.faq-list details p {
  max-width: 720px;
  margin: 0;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  max-width: var(--shell);
  margin-inline: auto;
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  align-items: start;
  gap: 40px;
  padding: 56px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.footer-column span {
  margin-bottom: 6px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.footer-column a:hover {
  color: var(--navy);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px var(--gutter);
  color: var(--muted-light);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom i {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px 3px;
  background: var(--line-strong);
}

/* --------------------------------------------------------------------------
   Beta dialog
   -------------------------------------------------------------------------- */

.beta-dialog {
  width: min(480px, calc(100vw - 40px));
  padding: 40px;
  margin: auto;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.beta-dialog h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}

.beta-dialog > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  :root {
    --gutter: 40px;
  }

  .compare-layout,
  .pricing-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .faq-layout,
  .section-intro,
  .model-network {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .network-note {
    grid-column: 1;
  }

  .model-explorer {
    grid-template-columns: 240px 1fr;
  }

  .workflow-track {
    grid-template-columns: 1fr 1fr;
  }

  .enterprise-contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 960px) {
  :root {
    --gutter: 24px;
  }

  .menu-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100svh - var(--header-height));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-header.menu-open .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 16px;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-actions {
    justify-content: space-between;
    margin-top: 20px;
  }

  .hero {
    padding: 64px var(--gutter) 56px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-preview-link {
    margin-left: 0;
  }

  .section {
    padding: 64px var(--gutter);
  }

  .section-intro h2,
  .compare-copy h2,
  .pricing-copy h2 {
    font-size: 28px;
  }

  .core-grid,
  .model-facts,
  .model-network ul,
  .compare-drawer {
    grid-template-columns: 1fr;
  }

  .core-grid article,
  .model-facts > div,
  .model-network li,
  .compare-drawer > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .core-grid article:last-child,
  .model-facts > div:last-child,
  .model-network li:last-child,
  .compare-drawer > div:last-child {
    border-bottom: 0;
  }

  .model-facts > div + div {
    padding-left: 0;
  }

  .model-facts > div {
    padding-right: 0;
  }

  .model-explorer {
    grid-template-columns: 1fr;
  }

  .model-index {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .model-index-item {
    padding: 16px;
  }

  .model-detail {
    padding: 28px 24px;
  }

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

  .source-pane,
  .result-pane {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .engine-bridge {
    flex-direction: row;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }

  .engine-bridge > span {
    width: auto;
    height: 1px;
  }

  .workflow-track {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .workflow-track li {
    border-right: 0;
  }

  .usage-calculator {
    padding: 24px;
  }

  .enterprise-summary {
    grid-template-columns: 1fr;
  }

  .enterprise-summary article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .enterprise-console {
    grid-template-columns: 1fr;
  }

  .enterprise-console-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .enterprise-console-nav ul {
    display: flex;
    overflow-x: auto;
    border-left: 1px solid var(--line);
  }

  .enterprise-console-nav li {
    min-width: max-content;
    border-right: 1px solid var(--line);
  }

  .enterprise-console-grid {
    grid-template-columns: 1fr 1fr;
  }

  .enterprise-capabilities article {
    grid-template-columns: 48px 1fr;
    gap: 18px;
  }

  .enterprise-capabilities p {
    grid-column: 2;
  }

  .enterprise-steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .beta-dialog {
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  .page,
  .site-footer {
    border-inline: 0;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    justify-content: center;
  }

  .model-index {
    grid-template-columns: 1fr;
  }

  .enterprise-console-main {
    padding: 22px 18px;
  }

  .enterprise-console-grid,
  .enterprise-steps,
  .enterprise-form {
    grid-template-columns: 1fr;
  }

  .enterprise-console-grid article,
  .enterprise-steps li {
    min-height: 0;
  }

  .enterprise-form {
    padding: 24px 18px;
  }

  .form-field-full,
  .enterprise-form > .button,
  .form-note {
    grid-column: 1;
  }

  .enterprise-form > .button {
    width: 100%;
    justify-content: center;
  }

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