/* Vektor — Standalone Corporate Messenger Website
 * Design system: cool slate neutrals (60/30/10), cobalt accent #1D6FD8,
 * Manrope display/body + JetBrains Mono for technical specs and commands.
 */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --surface-code: #0f172a;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #1d6fd8;
  --accent-hover: #165bb5;
  --accent-soft: rgba(29, 111, 216, 0.08);
  --success: #059669;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 44px -18px rgba(15, 23, 42, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme='dark'] {
  --bg: #0e1621;
  --surface: #17212b;
  --surface-subtle: #1d2a38;
  --surface-code: #0a1018;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #8b9eb3;
  --border: #232e3c;
  --border-strong: #324154;
  --accent: #3b8ef3;
  --accent-hover: #2578de;
  --accent-soft: rgba(59, 142, 243, 0.14);
  --success: #34d399;
  --danger: #f87171;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 52px -18px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color 180ms ease, color 180ms ease;
}

[data-theme='dark'] body {
  letter-spacing: 0.008em;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font-family: inherit;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Top Bar (Strict 3-zone contract: Wordmark — 5 Nav Links — 1 Primary CTA)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-wordmark img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  border-color: var(--text-muted);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}

.hero-head {
  max-width: 820px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-meta .sep {
  color: var(--border-strong);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 4.2vw, 3.65rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 68ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 20px 0 44px;
  border-top: 1px solid var(--border);
}

.fact-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.fact-label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Hero Vektor Desktop Preview
   ========================================================================== */
.preview-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.preview-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

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

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.preview-title {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-theme-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease;
}

.preview-theme-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.preview-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 460px;
}

.preview-sidebar {
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.preview-search {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.preview-search-box {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
}

.preview-chat-list {
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 2px;
}

.preview-chat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.preview-chat-btn:hover {
  background: var(--surface-subtle);
}

.preview-chat-btn.is-active {
  background: var(--accent);
  color: #ffffff;
}

.preview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.av-blue { background: #1d6fd8; }
.av-teal { background: #0f766e; }
.av-emerald { background: #059669; }
.av-slate { background: #334155; }

.preview-chat-btn.is-active .preview-avatar {
  background: rgba(255, 255, 255, 0.22);
}

.preview-chat-meta {
  min-width: 0;
  flex: 1;
}

.preview-chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.preview-chat-name {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-chat-time {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.72;
  flex-shrink: 0;
}

.preview-chat-snippet {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-stage {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.preview-stage-head {
  padding: 13px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-stage-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.preview-stage-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.preview-stage-id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.preview-messages {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.msg-row.own {
  justify-content: flex-end;
}

.msg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.msg-row.own .msg-bubble {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.msg-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.msg-bot-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.msg-bubble code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--text);
}

.msg-row.own .msg-bubble code {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.msg-time {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-align: right;
  opacity: 0.68;
}

.msg-file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
}

.msg-file-ext {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-e2ee-note {
  align-self: center;
  max-width: 480px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.e2ee-grid-preview {
  display: inline-grid;
  grid-template-columns: repeat(4, 10px);
  grid-template-rows: repeat(4, 10px);
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 10px;
}

.preview-composer {
  padding: 12px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Sections & Headings
   ========================================================================== */
.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--border);
}

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

.section-header {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-header p {
  margin: 0;
  font-size: 16.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Comparison Table (Why Vektor)
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-subtle);
}

.compare-table th.col-vektor,
.compare-table td.col-vektor {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

.compare-table th.col-vektor {
  color: var(--accent);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 24%;
}

/* ==========================================================================
   Asymmetric Bento Feature Grid
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-alt .bento-card {
  background: var(--bg);
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.bento-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.bento-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.bento-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.bento-list {
  margin: 6px 0 0;
  padding: 0 0 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bento-list li strong {
  color: var(--text);
}

/* ==========================================================================
   Screenshot Gallery + Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shot-media-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #0e1621;
  cursor: zoom-in;
  overflow: hidden;
}

.shot-media-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.shot-media-btn:hover img {
  transform: scale(1.02);
}

.shot-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #cbd5e1;
  font-size: 14px;
  background: linear-gradient(135deg, #17212b 0%, #0e1621 100%);
}

.shot-media-btn.is-broken img {
  display: none;
}

.shot-media-btn.is-broken .shot-fallback {
  display: flex;
}

.shot-caption {
  padding: 18px 20px 20px;
}

.shot-caption h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
}

.shot-caption p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 14, 22, 0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #f1f5f9;
}

.lightbox-title {
  font-size: 15px;
  font-weight: 600;
}

.lightbox-close {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lightbox-desc {
  font-size: 13.5px;
  color: #cbd5e1;
}

/* ==========================================================================
   Step-by-step Deployment Guide & Code Blocks
   ========================================================================== */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.guide-step {
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.section-alt .guide-step {
  background: var(--bg);
}

.step-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.step-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.step-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.guide-step > p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 78ch;
}

.code-block {
  margin: 14px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #1e293b;
  background: var(--surface-code);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
}

.copy-btn {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.copy-btn.is-copied {
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.4);
}

.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
}

.params-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.param-item {
  padding: 14px 16px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.param-key {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.param-desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Segmented Tabs (Interactive Controls) */
.tab-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.tab-btn {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

/* ==========================================================================
   Employee Usage Guide
   ========================================================================== */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.usage-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.usage-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.usage-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.usage-card p:last-child {
  margin-bottom: 0;
}

.kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
}

/* ==========================================================================
   Download Release CTA Section
   ========================================================================== */
.release-box {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.release-box h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.release-box p {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--text-secondary);
}

.release-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.release-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 16px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.release-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.release-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.release-card-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact & Enterprise Implementation CTA
   ========================================================================== */
.contact-box {
  margin-top: 24px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-copy {
  max-width: 680px;
}

.contact-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.contact-copy p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  transition: background-color 150ms ease;
}

.contact-email-link:hover {
  background: var(--accent-hover);
}

/* ==========================================================================
   Documentation Hub Layout (docs.html)
   ========================================================================== */
.docs-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.docs-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 24ch;
}

.docs-hero p {
  margin: 0 0 22px;
  max-width: 72ch;
  font-size: 16px;
  color: var(--text-secondary);
}

.docs-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-shell {
  padding: 40px 0 72px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 84px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
}

.docs-sidebar-title {
  padding: 0 10px 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.docs-nav a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color 140ms ease, color 140ms ease;
}

.docs-nav a .nav-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.docs-nav a:hover {
  background: var(--surface-subtle);
  color: var(--text);
}

.docs-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.docs-nav a.is-active .nav-num {
  color: var(--accent);
}

.mobile-toc {
  display: none;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
}

.mobile-toc summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.mobile-toc .docs-nav {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.docs-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.docs-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  scroll-margin-top: 84px;
}

.docs-section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.docs-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.docs-section h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.docs-section h4 {
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.docs-section p {
  margin: 0 0 14px;
  font-size: 14.8px;
  color: var(--text-secondary);
}

.docs-section ul,
.docs-section ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-section li strong {
  color: var(--text);
}

/* Hairline Callouts (no thick left border) */
.callout {
  margin: 16px 0;
  padding: 15px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  font-size: 14px;
  color: var(--text-secondary);
}

.callout strong {
  color: var(--text);
}

.callout-info {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
}

.callout-warn {
  background: color-mix(in srgb, #f59e0b 10%, var(--surface));
  border-color: color-mix(in srgb, #f59e0b 38%, var(--border));
}

.callout-ok {
  background: color-mix(in srgb, #16a34a 10%, var(--surface));
  border-color: color-mix(in srgb, #16a34a 36%, var(--border));
}

/* Clickable Architecture Diagram Card */
.diagram-card {
  margin: 18px 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f1722;
}

.diagram-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.diagram-btn img {
  width: 100%;
  height: auto;
  display: block;
}

.diagram-caption {
  padding: 12px 16px;
  background: var(--surface-subtle);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.diagram-caption-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
}

/* Field-by-Field Reference Cards & Tables */
.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0 18px;
}

.field-item {
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.field-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.field-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.field-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.field-item p {
  margin: 0 0 10px;
  font-size: 13.8px;
}

.field-examples {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.field-examples code {
  font-size: 12.2px;
  word-break: break-all;
}

.docs-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.docs-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.docs-table th,
.docs-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.docs-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--surface-subtle);
  font-weight: 600;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.site-nav a.is-current {
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   Quiet Footer
   ========================================================================== */
.site-footer {
  padding: 36px 0 44px;
  font-size: 13.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .docs-sidebar {
    display: none;
  }

  .mobile-toc {
    display: block;
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

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

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

  .preview-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .preview-chat-list {
    flex-direction: row;
    overflow-x: auto;
  }

  .preview-chat-btn {
    min-width: 210px;
  }

  .span-7,
  .span-5,
  .span-6,
  .span-4,
  .span-8 {
    grid-column: span 12;
  }

  .gallery-grid,
  .params-grid,
  .usage-grid,
  .release-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .section {
    padding: 56px 0;
  }

  .guide-step,
  .bento-card,
  .release-box,
  .docs-section,
  .contact-box {
    padding: 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
