/* ============================================================
   Verilog Generator — design system
   ============================================================ */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem;
  --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem;
  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem; --radius-xl: 1.25rem;

  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #22d3ee 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Dark theme (default) ---------- */
:root, [data-theme='dark'] {
  --bg: #0a0b14;
  --bg-elevated: #11131f;
  --surface: rgba(23, 26, 41, 0.72);
  --surface-solid: #171a29;
  --surface-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1fb;
  --text-muted: #9aa3bd;
  --text-faint: #6b7392;
  --code-bg: #0d0f1a;
  --code-bar: #141726;
  --code-text: #e2e8f0;
  --line-no: #4b5474;
  --line-border: rgba(255, 255, 255, 0.07);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --glow-opacity: 0.5;
  --blob-opacity: 0.55;
  --grid-opacity: 0.035;

  --warn-bg: rgba(245, 158, 11, 0.08);
  --warn-border: rgba(245, 158, 11, 0.35);
  --warn-text: #fcd34d;
  --success: #34d399;

  --tok-keyword: #c792ea;
  --tok-comment: #5f6b8c;
  --tok-string: #c3e88d;
  --tok-number: #f78c6c;
  --tok-directive: #82aaff;
  --tok-systask: #ffcb6b;
  --tok-op: #89ddff;
}

/* ---------- Light theme ---------- */
[data-theme='light'] {
  --bg: #f4f6fc;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-2: rgba(15, 23, 42, 0.03);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text-muted: #56607a;
  --text-faint: #8a93ab;
  --code-bg: #0d0f1a;
  --code-bar: #141726;
  --code-text: #e2e8f0;
  --line-no: #64748b;
  --line-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 50px -22px rgba(31, 41, 79, 0.28);
  --shadow-sm: 0 8px 24px -14px rgba(31, 41, 79, 0.25);
  --glow-opacity: 0.32;
  --blob-opacity: 0.4;
  --grid-opacity: 0.04;

  --warn-bg: #fffbeb;
  --warn-border: #f59e0b;
  --warn-text: #92400e;
  --success: #10b981;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

/* ---------- Decorative background ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--blob-opacity); transition: opacity 0.4s var(--ease); }
.blob-1 { width: 46vw; height: 46vw; top: -14vw; left: -10vw; background: radial-gradient(circle at 30% 30%, #6366f1, transparent 70%); animation: drift1 24s var(--ease) infinite alternate; }
.blob-2 { width: 42vw; height: 42vw; bottom: -16vw; right: -10vw; background: radial-gradient(circle at 70% 70%, #22d3ee, transparent 70%); animation: drift2 28s var(--ease) infinite alternate; }
.grid-overlay {
  position: absolute; inset: 0; opacity: var(--grid-opacity);
  background-image: linear-gradient(var(--text) 1px, transparent 1px), linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes drift1 { to { transform: translate(8vw, 6vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-7vw, -5vw) scale(1.1); } }

/* ---------- App bar ---------- */
.app-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: var(--space-md); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 3px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.75);
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-accent {
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-tag { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { transition: opacity 0.2s var(--ease), transform 0.3s var(--ease); }
[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
[data-theme='light'] .theme-toggle .icon-moon { display: none; }

/* ---------- Layout ---------- */
.app-main {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: var(--space-2xl) var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-xl); flex: 1;
}
@media (min-width: 960px) {
  .app-main { flex-direction: row; align-items: stretch; }
  .input-section, .output-section { flex: 1 1 0; min-width: 0; }
}

.panel {
  position: relative; background: var(--surface);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: var(--space-xl); box-shadow: var(--shadow);
  animation: rise 0.5s var(--ease) both;
}
.output-section { animation-delay: 0.06s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* subtle top gradient hairline */
.panel::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, transparent), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.6;
}
.panel-glow {
  position: absolute; inset: -1px -1px auto -1px; height: 120px; border-radius: inherit;
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: var(--glow-opacity); pointer-events: none;
}

/* ---------- Input ---------- */
.input-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-sm); }
.input-header label { font-weight: 600; font-size: 0.95rem; }
.char-counter { font-size: 0.8rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }

textarea {
  width: 100%; min-height: 190px; padding: var(--space-md);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.55; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  resize: vertical; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-elevated); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea::placeholder { color: var(--text-faint); }

.examples-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.examples-label { font-size: 0.78rem; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-right: var(--space-xs); }
.example-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.example-chip {
  padding: 0.3rem 0.7rem; font-size: 0.8rem; font-weight: 500; font-family: var(--font-sans);
  color: var(--text-muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  transition: all 0.18s var(--ease);
}
.example-chip:hover { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); transform: translateY(-1px); }
.example-chip:active { transform: translateY(0); }

.options-row { display: flex; gap: var(--space-md); margin-top: var(--space-lg); flex-wrap: wrap; }
.option-group { flex: 1; min-width: 180px; }
.option-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: var(--space-xs); color: var(--text-muted); }
.option-group input, .option-group select {
  width: 100%; padding: 0.6rem var(--space-md); font-size: 0.875rem; font-family: var(--font-sans); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.option-group select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa3bd' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--space-md) center; padding-right: 2.2rem;
}
.option-group input:focus, .option-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }

/* ---------- Submit ---------- */
.submit-row { display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-xl); flex-wrap: wrap; }
#submit-btn {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 0.7rem 1.5rem; font-size: 0.95rem; font-weight: 600; font-family: var(--font-sans);
  color: #fff; background: var(--accent-grad); background-size: 180% 180%; background-position: 0% 50%;
  border: none; border-radius: var(--radius-md); cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 10px 26px -10px var(--accent); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-position 0.5s var(--ease);
}
#submit-btn .btn-icon { transition: transform 0.2s var(--ease); }
#submit-btn:hover:not(:disabled) { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 16px 34px -12px var(--accent); }
#submit-btn:hover:not(:disabled) .btn-icon { transform: translateX(2px); }
#submit-btn:active:not(:disabled) { transform: translateY(0); }
#submit-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; filter: grayscale(0.3); }
#submit-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.loading-indicator { display: inline-flex; align-items: center; gap: var(--space-sm); font-size: 0.875rem; color: var(--text-muted); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.kbd-hint { margin-left: auto; font-size: 0.72rem; color: var(--text-faint); display: inline-flex; align-items: center; gap: 3px; }
.kbd-hint kbd {
  font-family: var(--font-mono); font-size: 0.68rem; padding: 0.1rem 0.35rem; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px;
}

/* ---------- Progress tracker ---------- */
.progress-tracker {
  margin-top: var(--space-lg); padding: var(--space-md) var(--space-lg);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  animation: rise 0.35s var(--ease) both;
}
.progress-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.progress-step {
  display: flex; align-items: center; gap: var(--space-md);
  padding: 0.5rem 0; position: relative; color: var(--text-faint);
  transition: color 0.25s var(--ease);
}
/* connector line between step icons */
.progress-step:not(:last-child)::before {
  content: ''; position: absolute; left: 10px; top: 28px; bottom: -6px; width: 2px;
  background: var(--border); transition: background 0.25s var(--ease);
}
.progress-step.done:not(:last-child)::before { background: var(--success); }

.step-icon {
  flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg-elevated);
  display: grid; place-items: center; position: relative; z-index: 1;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.step-label { font-size: 0.9rem; font-weight: 500; flex: 1 1 auto; }
.step-detail { font-size: 0.75rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* Active step: pulsing accent ring + spinner dot */
.progress-step.active { color: var(--text); }
.progress-step.active .step-icon { border-color: var(--accent); border-top-color: transparent; animation: spin 0.7s linear infinite; }

/* Done step: filled check */
.progress-step.done { color: var(--text-muted); }
.progress-step.done .step-icon { border-color: var(--success); background: var(--success); animation: none; }
.progress-step.done .step-icon::after {
  content: ''; width: 6px; height: 10px; margin-top: -2px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Skipped step: muted dash */
.progress-step.skipped { color: var(--text-faint); }
.progress-step.skipped .step-icon { border-style: dashed; animation: none; }
.progress-step.skipped .step-icon::after {
  content: ''; width: 8px; height: 2px; background: var(--text-faint); border-radius: 1px;
}

/* ---------- Output header ---------- */
.output-header { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); flex-wrap: wrap; }
.output-header .output-title { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; flex: 1 1 auto; }
.output-header h2 { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.output-actions { display: flex; gap: var(--space-sm); flex-shrink: 0; }

.action-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem; font-size: 0.82rem; font-weight: 600; font-family: var(--font-sans);
  color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.18s var(--ease);
}
.action-btn:hover { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); transform: translateY(-1px); }
.action-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.action-btn.copied { color: #fff; background: var(--success); border-color: var(--success); }

.complexity-badge {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: 0.15rem 0.6rem; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.complexity-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.complexity-badge.simple { background: color-mix(in srgb, #22c55e 15%, transparent); border-color: color-mix(in srgb, #22c55e 45%, transparent); color: #4ade80; }
.complexity-badge.moderate { background: color-mix(in srgb, #eab308 15%, transparent); border-color: color-mix(in srgb, #eab308 45%, transparent); color: #facc15; }
.complexity-badge.complex { background: color-mix(in srgb, #ef4444 15%, transparent); border-color: color-mix(in srgb, #ef4444 45%, transparent); color: #f87171; }

.session-info {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md); font-size: 0.75rem; color: var(--text-faint);
}
.session-info .session-id { font-family: var(--font-mono); display: inline-flex; align-items: center; gap: var(--space-xs); }
.session-info .session-id code {
  font-family: var(--font-mono); color: var(--text-muted); background: var(--surface-2);
  padding: 0.1rem var(--space-xs); border-radius: var(--radius-sm); border: 1px solid var(--border); word-break: break-all;
}
.session-info .elapsed-badge {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: 0.2rem 0.65rem; font-size: 0.72rem; font-weight: 700; font-family: var(--font-mono);
  border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent-2);
}
.session-info .elapsed-badge svg { flex-shrink: 0; }

/* ---------- Code panel ---------- */
.code-panel { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-border); box-shadow: var(--shadow-sm); }
.code-panel-bar {
  display: flex; align-items: center; gap: var(--space-md);
  padding: 0.55rem var(--space-md); background: var(--code-bar); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.window-dots { display: inline-flex; gap: 6px; }
.window-dots i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.window-dots i:nth-child(1) { background: #ff5f57; }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.code-filename { font-family: var(--font-mono); font-size: 0.76rem; color: #8b94b3; }

.code-output {
  background: var(--code-bg); padding: var(--space-sm) 0; overflow: auto; max-height: 62vh;
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.65; color: var(--code-text);
  scrollbar-width: thin; scrollbar-color: #2a3050 transparent;
}
.code-output::-webkit-scrollbar { width: 10px; height: 10px; }
.code-output::-webkit-scrollbar-thumb { background: #2a3050; border-radius: 999px; border: 2px solid var(--code-bg); }
.code-output::-webkit-scrollbar-thumb:hover { background: #3a4470; }

.code-lines { display: table; width: 100%; }
.code-line { display: table-row; }
.code-line:hover .line-content { background: rgba(255, 255, 255, 0.03); }
.code-line .line-no {
  display: table-cell; width: 1%; white-space: nowrap;
  padding: 0 var(--space-md); text-align: right; user-select: none; -webkit-user-select: none;
  color: var(--line-no); border-right: 1px solid var(--line-border); font-variant-numeric: tabular-nums;
}
.code-line .line-content { display: table-cell; padding: 0 var(--space-md); white-space: pre-wrap; word-break: break-word; width: 100%; }

.tok-keyword   { color: var(--tok-keyword); font-weight: 600; }
.tok-comment   { color: var(--tok-comment); font-style: italic; }
.tok-string    { color: var(--tok-string); }
.tok-number    { color: var(--tok-number); }
.tok-directive { color: var(--tok-directive); }
.tok-systask   { color: var(--tok-systask); }
.tok-op        { color: var(--tok-op); }

/* ---------- Warnings ---------- */
.warnings-panel {
  margin-top: var(--space-md); padding: var(--space-md);
  background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius-md);
  animation: rise 0.4s var(--ease) both;
}
.warnings-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); color: var(--warn-text); font-weight: 600; }
.warnings-header .warning-icon { display: inline-flex; }
.warnings-panel ul { margin: 0; padding-left: 1.3rem; color: var(--warn-text); }
.warnings-panel li { margin-bottom: var(--space-xs); font-size: 0.85rem; line-height: 1.5; }

/* ---------- Simulation toggle ---------- */
.sim-toggle {
  display: flex; align-items: flex-start; gap: var(--space-sm); margin-top: var(--space-md);
  padding: var(--space-md); border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface-2); cursor: pointer; transition: border-color 0.18s var(--ease);
}
.sim-toggle:hover { border-color: var(--accent); }
.sim-toggle input { margin-top: 0.2rem; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.sim-toggle-text { display: flex; flex-direction: column; gap: 2px; }
.sim-toggle-title { font-size: 0.9rem; font-weight: 600; }
.sim-toggle-desc { font-size: 0.78rem; color: var(--text-faint); line-height: 1.4; }

/* ---------- Simulation result ---------- */
.sim-result {
  margin-top: var(--space-md); padding: var(--space-md);
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2);
  animation: rise 0.4s var(--ease) both;
}
.sim-result-header { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.sim-verdict {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: 0.2rem 0.7rem; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.sim-verdict::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sim-verdict.passed { background: color-mix(in srgb, #22c55e 16%, transparent); border-color: color-mix(in srgb, #22c55e 45%, transparent); color: #4ade80; }
.sim-verdict.failed,
.sim-verdict.compile_error { background: color-mix(in srgb, #ef4444 16%, transparent); border-color: color-mix(in srgb, #ef4444 45%, transparent); color: #f87171; }
.sim-verdict.timeout,
.sim-verdict.skipped,
.sim-verdict.error { background: color-mix(in srgb, #eab308 16%, transparent); border-color: color-mix(in srgb, #eab308 45%, transparent); color: #facc15; }
.sim-summary { font-size: 0.85rem; color: var(--text-muted); flex: 1 1 auto; min-width: 0; }
.sim-tb-toggle {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted); background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.3rem 0.6rem; cursor: pointer;
  transition: all 0.18s var(--ease);
}
.sim-tb-toggle:hover { color: var(--text); border-color: var(--accent); }
.sim-output {
  margin: var(--space-md) 0 0; padding: var(--space-md); max-height: 30vh; overflow: auto;
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.55; color: var(--code-text);
  background: var(--code-bg); border-radius: var(--radius-sm); white-space: pre-wrap; word-break: break-word;
}
.sim-output:empty { display: none; }
.sim-testbench { margin-top: var(--space-md); }

/* ---------- Footer ---------- */
.app-footer {
  display: flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: var(--space-lg); font-size: 0.8rem; color: var(--text-faint); border-top: 1px solid var(--border);
}
.dot-sep { opacity: 0.5; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media (max-width: 560px) {
  .app-bar { padding: var(--space-md); }
  .app-main { padding: var(--space-lg) var(--space-md); }
  .panel { padding: var(--space-lg); }
  .brand-tag { display: none; }
}

/* ============================================================
   SEMICON India event homepage
   ============================================================ */
.event-strip {
  position: relative;
  min-height: 54px;
  padding: 0.6rem clamp(var(--space-md), 4vw, var(--space-xl));
  color: #fff;
  background: linear-gradient(100deg, #3730a3 0%, #6d28d9 48%, #075985 100%);
  box-shadow: 0 10px 30px -20px rgba(79, 70, 229, 0.9);
}
.event-strip::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.event-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  gap: 0.8rem;
  text-align: center;
}
.event-strip-label {
  color: #fff;
  font-size: clamp(0.86rem, 1.2vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.event-strip-label span { color: #dbeafe; }
.event-strip-separator { width: 1px; height: 24px; flex: 0 0 1px; background: rgba(255, 255, 255, 0.32); }
.event-strip-pod {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.34rem 0.66rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.event-strip-pod span { color: rgba(255, 255, 255, 0.8); }
.event-strip-pod strong { font-size: 0.9rem; font-weight: 900; letter-spacing: 0.02em; }
.event-strip-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  line-height: 1.35;
  white-space: nowrap;
}
.brand { color: inherit; text-decoration: none; }
.app-nav { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; margin-right: var(--space-md); }
.app-nav a {
  padding: 0.5rem 0.7rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.app-nav a:hover { color: var(--text); background: var(--surface-2); }
.app-bar-actions { display: flex; align-items: center; gap: var(--space-sm); }
.pod-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.event-live-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px color-mix(in srgb, #34d399 14%, transparent);
}
.event-live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid color-mix(in srgb, #34d399 55%, transparent);
  border-radius: 50%;
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0% { transform: scale(0.75); opacity: 0.9; }
  75%, 100% { transform: scale(1.65); opacity: 0; }
}

/* ---------- Hero ---------- */
.event-hero {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--space-xl) clamp(3rem, 6vw, 5rem);
}
.event-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.hero-copy { animation: rise 0.55s var(--ease) both; }
.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-copy h1 {
  max-width: 760px;
  margin: 1.15rem 0 1.3rem;
  font-size: clamp(3.15rem, 6vw, 5.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.hero-gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-summary {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.72rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.hero-button-primary { color: #fff; background: var(--accent-grad); box-shadow: 0 14px 30px -13px var(--accent); }
.hero-button-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px var(--accent); }
.hero-button-primary svg { transition: transform 0.18s var(--ease); }
.hero-button-primary:hover svg { transform: translateX(2px); }
.hero-button-secondary { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }
.hero-button-secondary:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface); }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}
.hero-metric { min-width: 0; padding-right: 1rem; }
.hero-metric + .hero-metric { padding-left: 1rem; border-left: 1px solid var(--border); }
.metric-value {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.metric-value span { color: var(--accent-2); font-size: 0.62em; }
.hero-metric strong { display: block; font-size: 0.74rem; }
.hero-metric small { display: block; margin-top: 0.15rem; color: var(--text-faint); font-size: 0.65rem; line-height: 1.35; }
.metric-rank {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.55rem;
  padding: 0.3rem 0.5rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ---------- Pipeline preview ---------- */
.pipeline-card {
  overflow: hidden;
  color: #e7eaf4;
  background: #0d101b;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px -28px rgba(0, 0, 0, 0.8), 0 0 70px -38px var(--accent);
  animation: rise 0.55s 0.08s var(--ease) both;
}
.pipeline-card-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 46px;
  padding: 0.65rem var(--space-md);
  color: #7f88a6;
  background: #141826;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.pipeline-ready { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; color: #8ce9c5; }
.pipeline-ready i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.pipeline-card-body { padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.pipeline-spec { padding: 0.9rem 1rem; background: rgba(99, 102, 241, 0.09); border: 1px solid rgba(129, 140, 248, 0.2); border-radius: var(--radius-md); }
.pipeline-label { display: block; margin-bottom: 0.35rem; color: #8993b0; font-size: 0.61rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.pipeline-spec p { margin: 0; color: #cdd3e6; font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.55; }
.pipeline-steps { margin: 0.75rem 0; padding: 0; list-style: none; }
.pipeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.64rem 0.2rem;
}
.pipeline-step:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 36px; bottom: -6px; width: 1px; background: rgba(52, 211, 153, 0.24); }
.pipeline-index {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #929bb7;
  background: #171c2c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
}
.pipeline-step > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.pipeline-step strong { color: #e3e7f2; font-size: 0.76rem; font-weight: 600; }
.pipeline-step small { margin-top: 0.05rem; color: #737d9a; font-size: 0.65rem; }
.pipeline-check { display: grid; place-items: center; width: 20px; height: 20px; color: #34d399; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.24); border-radius: 50%; font-size: 0.68rem; font-weight: 800; }
.pipeline-result { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.8rem; background: rgba(52, 211, 153, 0.07); border: 1px solid rgba(52, 211, 153, 0.2); border-radius: var(--radius-md); }
.pipeline-result-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #34d399; background: rgba(52, 211, 153, 0.1); border-radius: 9px; }
.pipeline-result > span:nth-child(2) { display: flex; flex-direction: column; }
.pipeline-result strong { color: #dff8ef; font-size: 0.76rem; }
.pipeline-result small { color: #769387; font-size: 0.64rem; }
.pipeline-result code { padding: 0.2rem 0.45rem; color: #70e3b8; background: rgba(52, 211, 153, 0.08); border-radius: 4px; font-family: var(--font-mono); font-size: 0.61rem; font-weight: 700; }

/* ---------- Demo introduction and workspace ---------- */
.demo-intro,
.content-section,
.meet-section {
  width: calc(100% - 2 * var(--space-xl));
  max-width: 1216px;
  margin-right: auto;
  margin-left: auto;
}
.demo-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-xl);
  padding-top: 1rem;
}
.demo-intro h2,
.section-heading h2,
.evidence-copy h2,
.meet-section h2 { margin: 0.45rem 0 0.6rem; font-size: clamp(1.75rem, 3.6vw, 2.8rem); line-height: 1.12; letter-spacing: -0.04em; }
.demo-intro p,
.section-heading p,
.evidence-copy > p,
.meet-section p { max-width: 720px; margin: 0; color: var(--text-muted); }
.demo-flow { display: flex; align-items: center; flex-shrink: 0; gap: 0.5rem; padding: 0.65rem 0.8rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.demo-flow span { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-muted); font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.demo-flow b { display: grid; place-items: center; width: 20px; height: 20px; color: #fff; background: var(--accent); border-radius: 50%; font-size: 0.62rem; }
.demo-flow i { width: 18px; height: 1px; background: var(--border-strong); }
.app-main { padding-top: var(--space-xl); padding-bottom: clamp(4rem, 7vw, 6rem); }
.panel-label { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: var(--space-md); color: var(--text-faint); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.panel-label span { display: grid; place-items: center; width: 25px; height: 25px; color: var(--accent-2); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 7px; font-family: var(--font-mono); font-size: 0.62rem; }
.demo-session-callout { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(180px, 240px); align-items: center; gap: 0.7rem; margin-top: var(--space-md); padding: 0.75rem 0.85rem; background: color-mix(in srgb, var(--success) 7%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--success) 25%, var(--border)); border-radius: var(--radius-md); cursor: text; }
.demo-session-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; color: var(--success); background: color-mix(in srgb, var(--success) 11%, transparent); border-radius: 9px; }
.demo-session-callout > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.demo-session-callout strong { font-size: 0.8rem; }
.demo-session-callout small { color: var(--text-faint); font-size: 0.7rem; line-height: 1.4; }
.demo-session-callout input {
  width: 100%; min-width: 0; padding: 0.55rem 0.7rem;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font: 0.76rem var(--font-sans);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.demo-session-callout input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.demo-session-callout input::placeholder { color: var(--text-faint); }

/* ---------- How it works ---------- */
.content-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-heading { max-width: 800px; margin-bottom: 2rem; }
.workflow-section { border-top: 1px solid var(--border); }
.workflow-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.workflow-grid li { position: relative; display: flex; min-height: 190px; flex-direction: column; padding: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.workflow-grid li:not(:last-child)::after { content: '→'; position: absolute; z-index: 2; top: 50%; right: -0.7rem; display: grid; place-items: center; width: 22px; height: 22px; color: var(--text-faint); background: var(--bg); border: 1px solid var(--border); border-radius: 50%; font-size: 0.68rem; transform: translateY(-50%); }
.workflow-grid li > span { color: var(--accent-2); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; }
.workflow-grid strong { margin-top: auto; font-size: 0.88rem; }
.workflow-grid small { margin-top: 0.4rem; color: var(--text-faint); font-size: 0.72rem; line-height: 1.5; }

/* ---------- Evidence ---------- */
.evidence-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr); align-items: center; gap: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--border); }
.suite-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0; }
.suite-pills span { display: inline-flex; align-items: baseline; gap: 0.35rem; padding: 0.45rem 0.7rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; font-size: 0.72rem; }
.suite-pills strong { color: var(--text); font-family: var(--font-mono); }
.methodology-note { padding-left: 0.85rem; border-left: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--text-faint) !important; font-size: 0.7rem; line-height: 1.55; }
.comparison-card { padding: 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.comparison-card-header { display: flex; justify-content: space-between; gap: var(--space-md); margin-bottom: 1.4rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border); }
.comparison-card-header span { font-size: 0.78rem; font-weight: 700; }
.comparison-card-header small { color: var(--text-faint); font-size: 0.66rem; }
.comparison-row { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 1rem; margin-top: 1rem; }
.comparison-row > div:first-child { display: flex; justify-content: space-between; gap: var(--space-md); }
.comparison-row strong { font-size: 0.75rem; }
.comparison-row > div:first-child span { color: var(--text-faint); font-family: var(--font-mono); font-size: 0.65rem; }
.comparison-row b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--font-mono); font-size: 1.05rem; }
.comparison-track { grid-column: 1; height: 8px; overflow: hidden; background: var(--surface-2); border-radius: 999px; }
.comparison-track i { display: block; height: 100%; background: var(--text-faint); border-radius: inherit; }
.comparison-row.is-vesdiam b { color: var(--accent-2); }
.comparison-row.is-vesdiam .comparison-track i { background: var(--accent-grad); }
.comparison-delta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: 1.4rem;
  padding: 0.8rem;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  border-radius: var(--radius-md);
}
.comparison-delta strong { font-family: var(--font-mono); font-size: 0.82rem; }
.comparison-delta span { font-size: 0.68rem; }

/* ---------- Meet the team ---------- */
.meet-section { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; overflow: hidden; margin-bottom: clamp(4rem, 7vw, 6rem); padding: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 17%, var(--surface)), color-mix(in srgb, var(--accent-2) 8%, var(--surface))); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.meet-section::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -150px; background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 68%); border-radius: 50%; pointer-events: none; }
.meet-section > * { position: relative; z-index: 1; }
.meet-section h2 { max-width: 680px; }
.meet-section p { max-width: 680px; }
.meet-section .hero-button { flex: 0 0 auto; }

@media (max-width: 980px) {
  .app-nav { display: none; }
  .event-hero-inner, .evidence-section { grid-template-columns: 1fr; }
  .pipeline-card { width: 100%; max-width: 640px; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-grid li { min-height: 150px; }
  .workflow-grid li::after { display: none !important; }
}

@media (max-width: 700px) {
  .event-strip { padding: 0.6rem var(--space-md); }
  .event-strip-inner { flex-wrap: wrap; gap: 0.45rem 0.65rem; }
  .event-strip-separator { display: none; }
  .event-strip-copy { flex: 1 0 100%; justify-content: center; font-size: 0.74rem; white-space: normal; }
  .pod-link { display: none; }
  .event-hero { padding: 3.5rem var(--space-md) 3rem; }
  .hero-copy h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero-metrics { grid-template-columns: 1fr; gap: 0.85rem; }
  .hero-metric, .hero-metric + .hero-metric { padding: 0 0 0.85rem; border-left: 0; border-bottom: 1px solid var(--border); }
  .hero-metric:last-child { border-bottom: 0; }
  .hero-metric { display: grid; grid-template-columns: auto 1fr; column-gap: 0.8rem; align-items: baseline; }
  .metric-value { grid-row: 1 / span 2; }
  .metric-rank { grid-column: 1 / -1; }
  .demo-intro, .content-section, .meet-section { width: calc(100% - 2 * var(--space-md)); }
  .demo-intro { align-items: flex-start; flex-direction: column; }
  .demo-flow { align-self: stretch; justify-content: center; }
  .demo-session-callout { grid-template-columns: auto minmax(0, 1fr); }
  .demo-session-callout input { grid-column: 1 / -1; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid li { min-height: 130px; }
  .meet-section { align-items: flex-start; flex-direction: column; }
  .meet-section .hero-button { width: 100%; }
}

@media (max-width: 480px) {
  .event-strip { padding: 0.65rem 0.75rem; }
  .event-strip-inner { gap: 0.45rem 0.55rem; }
  .event-strip-label { font-size: 0.8rem; letter-spacing: 0.08em; }
  .event-strip-pod { padding: 0.3rem 0.55rem; }
  .event-strip-copy { font-size: 0.69rem; }
  .brand { gap: 0.65rem; }
  .brand-mark { width: 46px; height: 46px; flex-basis: 46px; padding: 2px; }
  .brand-name { font-size: 1.08rem; }
  .pipeline-card-bar > span:nth-child(2) { display: none; }
  .pipeline-step { grid-template-columns: 30px minmax(0, 1fr) 20px; gap: 0.55rem; }
  .pipeline-step small { display: none; }
  .pipeline-result { grid-template-columns: 32px minmax(0, 1fr); }
  .pipeline-result code { display: none; }
  .hero-button { width: 100%; }
  .demo-flow { gap: 0.3rem; }
  .demo-flow i { width: 8px; }
  .comparison-delta { align-items: flex-start; flex-direction: column; }
}
