/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ========== DESIGN TOKENS ========== */
:root {
  --bg:      oklch(99% 0.002 240);
  --surface: oklch(100% 0 0);
  --fg:      oklch(18% 0.012 250);
  --muted:   oklch(54% 0.012 250);
  --border:  oklch(92% 0.005 250);
  --accent:  oklch(58% 0.18 255);

  --nav-bg:   oklch(99% 0.002 240 / 0.85);
  --card-bg:  var(--surface);

  --green:  oklch(65% 0.18 145);
  --yellow: oklch(75% 0.18 80);
  --red:    oklch(55% 0.22 25);
  --orange: oklch(65% 0.18 50);

  --code-bg:     oklch(97% 0.003 250);
  --code-border: oklch(89% 0.006 250);

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --font-mono:    'SF Mono', ui-monospace, 'Cascadia Code', 'Fira Code', Menlo, Consolas, monospace;

  --radius:    12px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

/* ========== DARK MODE ========== */
[data-theme="dark"] {
  --bg:      oklch(12% 0.012 250);
  --surface: oklch(16% 0.012 250);
  --fg:      oklch(93% 0.005 240);
  --muted:   oklch(60% 0.012 250);
  --border:  oklch(24% 0.012 250);
  --accent:  oklch(68% 0.18 255);

  --nav-bg:  oklch(12% 0.012 250 / 0.85);
  --card-bg: oklch(18% 0.012 250);

  --code-bg:     oklch(14% 0.012 250);
  --code-border: oklch(22% 0.012 250);
}

/* ========== BASE ========== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.header__subtitle {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1px;
}

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

.header__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green);
  background: oklch(65% 0.18 145 / 0.1);
  border: 1px solid oklch(65% 0.18 145 / 0.25);
  padding: 5px 12px;
  border-radius: 100px;
}

.header__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.header__github-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.header__github-btn:hover {
  color: var(--fg);
  border-color: var(--muted);
  background: var(--surface);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--muted);
  background: var(--surface);
}

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ========== MAIN ========== */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== HERO ========== */
.hero {
  padding: 56px 0 40px;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: oklch(58% 0.18 255 / 0.08);
  border: 1px solid oklch(58% 0.18 255 / 0.15);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), oklch(68% 0.18 290));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero__tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  transition: color var(--transition), border-color var(--transition);
}

.tech-pill:hover {
  color: var(--accent);
  border-color: oklch(58% 0.18 255 / 0.4);
}

/* Flow Diagram */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg);
  transition: border-color var(--transition), transform var(--transition);
}

.flow-node:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.flow-node__icon { font-size: 26px; }

.flow-node__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

[data-theme="dark"] .flow-node--zendesk .flow-node__icon svg path {
  fill: oklch(85% 0.05 195);
}

.flow-arrow svg {
  width: 48px;
  height: 24px;
}

/* ========== CONTROLS ========== */
.controls {
  padding: 20px 0;
  margin-bottom: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.controls__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.controls__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}

.controls__desc {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}

.controls__right {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn__icon { font-size: 1rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), oklch(52% 0.2 280));
  color: oklch(99% 0.002 240);
  border-color: oklch(58% 0.18 255 / 0.3);
  box-shadow: 0 4px 16px oklch(58% 0.18 255 / 0.25);
}

.btn--primary:hover:not(:disabled) {
  box-shadow: 0 6px 24px oklch(58% 0.18 255 / 0.38);
  transform: translateY(-1px);
}

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

.btn--secondary:hover:not(:disabled) {
  color: var(--fg);
  border-color: var(--muted);
}

/* ========== DASHBOARD ========== */
.dashboard {
  padding: 24px 0 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
  box-shadow: 0 4px 24px oklch(18% 0.012 250 / 0.08);
}

.stat-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stat-card__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.stat-card__icon { font-size: 1.2rem; }

.stat-card__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-card__footer {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  overflow: hidden;
}

.stat-card__bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card__bar--total::after   { background: linear-gradient(90deg, var(--accent), oklch(68% 0.18 290)); }
.stat-card__bar--sent::after    { background: linear-gradient(90deg, var(--green), oklch(72% 0.18 145)); }
.stat-card__bar--skipped::after { background: linear-gradient(90deg, var(--yellow), oklch(82% 0.18 80)); }
.stat-card__bar--failed::after  { background: linear-gradient(90deg, var(--red), oklch(65% 0.22 25)); }

.stat-card.active .stat-card__bar--total::after   { width: 100%; }
.stat-card.active .stat-card__bar--sent::after    { width: 75%; }
.stat-card.active .stat-card__bar--skipped::after { width: 30%; }
.stat-card.active .stat-card__bar--failed::after  { width: 10%; }

/* ========== PANELS ========== */
.dashboard__columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 24px;
}

.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.panel:hover { border-color: var(--muted); }

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.panel__title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}

.panel__badge {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

.panel__body {
  padding: 16px 20px;
  min-height: 200px;
}

/* Console Output */
.console-output {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.8;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  padding: 16px;
  max-height: 320px;
  overflow-y: auto;
}

.console-line {
  padding: 2px 0;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.console-line--info    { color: var(--muted); }
.console-line--success { color: var(--green); }
.console-line--warning { color: var(--orange); }
.console-line--error   { color: var(--red); }
.console-line--header  { color: var(--accent); font-weight: 600; }
.console-line--result  { color: var(--fg); font-weight: 600; }

/* Message Preview */
.message-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.message-preview__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.message-preview__avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), oklch(52% 0.2 280));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.message-preview__sender {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fg);
}

.message-preview__channel {
  font-size: 0.7rem;
  color: var(--muted);
}

.message-preview__bubble {
  background: oklch(58% 0.18 255 / 0.08);
  border: 1px solid oklch(58% 0.18 255 / 0.15);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.message-preview__bubble p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--fg);
}

.message-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.7rem;
  color: var(--muted);
}

.message-preview__meta code {
  font-family: var(--font-mono);
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
}

/* ========== TICKET TABLE ========== */
.table-wrapper { overflow-x: auto; }

.ticket-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.ticket-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.ticket-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--fg);
}

.ticket-table tbody tr {
  transition: background var(--transition);
}

.ticket-table tbody tr:hover {
  background: oklch(58% 0.18 255 / 0.04);
}

.ticket-table tbody tr:last-child td {
  border-bottom: none;
}

.result-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-badge--pending  { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.result-badge--sent     { background: oklch(65% 0.18 145 / 0.12); color: var(--green); }
.result-badge--skipped  { background: oklch(75% 0.18 80 / 0.15); color: oklch(55% 0.15 80); }
.result-badge--failed   { background: oklch(55% 0.22 25 / 0.12); color: var(--red); }
.result-badge--no-conv  { background: oklch(65% 0.18 50 / 0.12); color: var(--orange); }

.tag-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  margin: 1px 2px;
}

/* ========== CODE SECTION ========== */
.code-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.code-section__header {
  text-align: center;
  margin-bottom: 28px;
}

.code-section__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 6px;
}

.code-section__desc {
  font-size: 0.875rem;
  color: var(--muted);
}

.code-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.code-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.code-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.code-card__label {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}

.code-card__pre {
  padding: 16px;
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
  background: var(--code-bg);
  border: none;
}

/* ========== FEATURES ========== */
.features {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.features__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-align: center;
  margin-bottom: 28px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--muted);
  box-shadow: 0 8px 32px oklch(18% 0.012 250 / 0.08);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.comparison__warn {
  color: oklch(55% 0.15 80);
  font-weight: 500;
  font-size: 0.75rem;
}

/* Chat Preview (WhatsApp style) */
.chat-preview {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.chat-bubble {
  max-width: 90%;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.8125rem;
  line-height: 1.6;
  box-shadow: 0 1px 3px oklch(18% 0.012 250 / 0.06);
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble--customer {
  background: var(--surface);
  border: 1px solid var(--border);
  justify-self: start;
  border-radius: 10px 10px 10px 3px;
}

.chat-bubble--business {
  background: oklch(88% 0.06 145);
  border: 1px solid oklch(80% 0.08 145);
  justify-self: end;
  border-radius: 10px 10px 3px 10px;
  color: oklch(20% 0.02 145);
}

[data-theme="dark"] .chat-bubble--business {
  background: oklch(28% 0.04 145);
  border-color: oklch(35% 0.05 145);
  color: oklch(90% 0.02 145);
}

.chat-bubble__meta {
  display: block;
  margin-top: 6px;
  font-size: 0.65rem;
  color: var(--muted);
}

.chat-rule {
  border-left: 3px solid var(--green);
  background: oklch(65% 0.18 145 / 0.05);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
}

.chat-rule strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 3px;
}

.chat-rule span {
  font-size: 0.72rem;
  color: var(--muted);
}

.panel__badge--active {
  color: var(--green) !important;
  background: oklch(65% 0.18 145 / 0.1) !important;
  border-color: oklch(65% 0.18 145 / 0.25) !important;
  font-weight: 700;
}

/* Guardrails section */
.guardrails {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

/* ========== COMPARISON SECTION ========== */
.comparison {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.comparison__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-align: center;
  margin-bottom: 8px;
}

.comparison__subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 32px;
}

.comparison__highlight {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid oklch(65% 0.18 145 / 0.3);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.comparison__highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), oklch(72% 0.18 145));
}

.comparison__highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(65% 0.18 145 / 0.1);
  border-radius: var(--radius);
}

.comparison__highlight-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.comparison__highlight-text p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.7;
}

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

/* Comparison Table, wrapped in panel */
.comparison__panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  transition: border-color var(--transition);
}

.comparison__panel:hover {
  border-color: var(--muted);
}

.comparison__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.comparison__panel-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}

.comparison__panel-badge {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--green);
  background: oklch(65% 0.18 145 / 0.1);
  border: 1px solid oklch(65% 0.18 145 / 0.25);
  padding: 3px 10px;
  border-radius: 100px;
}

.comparison__table-wrapper {
  overflow-x: auto;
}

.comparison__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.comparison__table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.comparison__table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--fg);
}

.comparison__table tbody tr:last-child td {
  border-bottom: none;
}

.comparison__table tbody tr {
  transition: background var(--transition);
}

.comparison__table tbody tr:hover {
  background: oklch(58% 0.18 255 / 0.03);
}

.comparison__row--highlight {
  background: oklch(65% 0.18 145 / 0.04);
}

.comparison__row--highlight:hover {
  background: oklch(65% 0.18 145 / 0.07) !important;
}

.comparison__row--highlight td:first-child {
  position: relative;
  padding-left: 24px;
}

.comparison__row--highlight td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--green);
}

.comparison__check {
  color: var(--green);
  font-weight: 600;
  font-size: 0.75rem;
}

.comparison__cross {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.75rem;
}

/* Notes as feature-card style */
.comparison__notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comparison__note {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  transition: border-color var(--transition), transform var(--transition);
}

.comparison__note:hover {
  border-color: var(--muted);
  transform: translateY(-2px);
}

.comparison__note strong {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
  display: block;
  margin-bottom: 6px;
}

/* Adaptable Section */
.adaptable {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.adaptable__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-align: center;
  margin-bottom: 8px;
}

.adaptable__subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.adaptable__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.adaptable__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.adaptable__card:hover {
  transform: translateY(-3px);
  border-color: var(--muted);
  box-shadow: 0 8px 32px oklch(18% 0.012 250 / 0.08);
}

.adaptable__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.adaptable__card-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fg);
}

.adaptable__card-effort {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
}

.adaptable__card-effort--low {
  color: var(--green);
  background: oklch(65% 0.18 145 / 0.1);
  border: 1px solid oklch(65% 0.18 145 / 0.25);
}

.adaptable__card-effort--medium {
  color: oklch(55% 0.15 80);
  background: oklch(75% 0.18 80 / 0.12);
  border: 1px solid oklch(75% 0.18 80 / 0.3);
}

.adaptable__card-effort--high {
  color: var(--orange);
  background: oklch(65% 0.18 50 / 0.1);
  border: 1px solid oklch(65% 0.18 50 / 0.25);
}

.adaptable__card-endpoint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.adaptable__card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.adaptable__card-features {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.adaptable__card-feature {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

.adaptable__summary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.adaptable__summary strong {
  color: var(--fg);
}

@media (max-width: 1024px) {
  .adaptable__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .comparison__notes { grid-template-columns: 1fr; }
  .comparison__highlight { flex-direction: column; }
  .adaptable__grid { grid-template-columns: 1fr; }
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer__text {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer__note {
  font-size: 0.75rem;
  color: oklch(70% 0.008 250);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero__content      { grid-template-columns: 1fr; }
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .code-cards         { grid-template-columns: 1fr; }
  .features__grid     { grid-template-columns: repeat(2, 1fr); }
  .dashboard__columns { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header__inner      { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .hero__heading      { font-size: 1.65rem; }
  .controls__inner    { flex-direction: column; text-align: center; }
  .controls__right    { justify-content: center; }
  .stats-grid         { grid-template-columns: 1fr 1fr; }
  .features__grid     { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .main               { padding: 0 1.25rem; }
  .header             { padding: 0 1.25rem; }
  .stats-grid         { grid-template-columns: 1fr; }
  .controls__right    { flex-direction: column; width: 100%; }
  .btn                { width: 100%; justify-content: center; }
  .hero               { padding: 36px 0 28px; }
  .stat-card__value   { font-size: 2rem; }
}
