/* ProdGuard Marketing Site Stylesheet
   Pure semantic CSS with Dark Mode tokens, zero external CDNs, and responsive layout */

:root {
  --bg-page: #0b0d13;
  --bg-surface: #131722;
  --bg-surface-elevated: #1a1f2e;
  --bg-surface-hover: #22293d;
  --border-control: #23293d;
  --border-subtle: #191e2e;
  --border-focus: #3b82f6;
  --text-primary: #f3f4f6;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --max-w: 1140px;
  --header-height: 70px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg-page);
}

section[id] {
  scroll-margin-top: 80px;
}

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

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 13, 19, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 30px;
  height: 30px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

/* Primary Button: Pure crisp white, reserving red strictly for production danger */
.btn-primary {
  background: #ffffff;
  color: #090b10;
  border-color: #ffffff;
}

.btn-primary:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #090b10;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-control);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: #3b4461;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Main Container */
.container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero {
  padding: 76px 0 52px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  max-width: 860px;
  margin: 0 auto 18px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 30px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-trust {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Guided Three-Beat Simulator */
.hero-graphic-wrap {
  margin-top: 44px;
  position: relative;
}

.sim-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111522;
  border: 1px solid var(--border-control);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 14px 20px;
  gap: 16px;
  flex-wrap: wrap;
  text-align: left;
}

.sim-step-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.sim-step-badge {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sim-step-badge.armed {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}

.sim-step-badge.safe {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.sim-step-text {
  color: var(--text-secondary);
  line-height: 1.4;
}

.sim-step-text strong {
  color: #ffffff;
}

.sim-browser {
  background: #0d1017;
  border: 1px solid var(--border-control);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.sim-chrome {
  background: #121622;
  border-bottom: 1px solid var(--border-control);
  padding: 10px 16px 8px;
}

.sim-chrome-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.sim-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sim-dot-red { background: #ef4444; }
.sim-dot-yellow { background: #f59e0b; }
.sim-dot-green { background: #10b981; }

.sim-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
}

.sim-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #181d2c;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.sim-tab:hover {
  background: #20273b;
  color: var(--text-primary);
}

.sim-tab.active {
  background: #0d1017;
  color: #ffffff;
  border-color: var(--border-control);
  font-weight: 600;
}

.sim-tab-tag {
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sim-tab-tag.prod {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sim-tab-tag.staging {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sim-address-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #080a10;
  border: 1px solid #1c2233;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.sim-address-lock {
  color: #10b981;
  font-size: 0.85rem;
}

.sim-url-protocol {
  color: #4b5563;
}

.sim-url-host {
  color: #ffffff;
  font-weight: 600;
}

.sim-url-host.highlight-prod {
  color: #fca5a5;
  text-decoration: underline;
  text-decoration-color: #ef4444;
}

.sim-url-host.highlight-stg {
  color: #fcd34d;
  text-decoration: underline;
  text-decoration-color: #f59e0b;
}

.sim-url-path {
  color: #94a3b8;
}

/* Viewport & Application Canvas */
.sim-viewport {
  position: relative;
  min-height: 380px;
  padding: 22px 26px;
  background: #0d1017;
  transition: all 0.25s ease;
}

/* Ambient Border (ProdGuard active) */
.sim-ambient-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 4px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 10;
}

.sim-viewport.guard-prod .sim-ambient-border {
  border-color: #ef4444;
  box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.35);
}

.sim-viewport.guard-staging .sim-ambient-border {
  border-color: #f59e0b;
  box-shadow: inset 0 0 16px rgba(245, 158, 11, 0.25);
}

/* Hanging File Tab (matches actual ProdGuard extension: hangs from top border) */
.sim-floating-pill {
  position: absolute;
  top: 0;
  right: 48px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 6px;
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: none;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: opacity 0.15s ease, transform 0.1s ease;
  cursor: grab;
  user-select: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sim-floating-pill:hover {
  opacity: 0.08 !important;
  pointer-events: none;
}

.sim-floating-pill.pill-prod {
  background: #dc2626;
  border-color: rgba(255, 255, 255, 0.3);
  border-top: none;
}

.sim-floating-pill.pill-staging {
  background: #d97706;
  border-color: rgba(255, 255, 255, 0.3);
  border-top: none;
}

.sim-tab-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.sim-tab-sep {
  opacity: 0.4;
  font-weight: normal;
}

.sim-tab-host {
  font-weight: 500;
  opacity: 0.92;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

/* App Header */
.sim-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1a2030;
}

.sim-app-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-app-logo {
  width: 26px;
  height: 26px;
  background: #2563eb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
}

.sim-app-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.sim-app-badge {
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: #192033;
  color: #94a3b8;
  font-weight: 500;
  margin-right: 90px;
}

/* Cluster Table */
.sim-table-wrap {
  border: 1px solid #1f263b;
  border-radius: 8px;
  overflow: hidden;
  background: #111420;
}

.sim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.sim-table th {
  background: #161c2d;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 16px;
  text-align: left;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #1f263b;
}

.sim-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #1a2030;
  color: var(--text-secondary);
}

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

.sim-node-name {
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-node-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.sim-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.sim-btn-ghost {
  background: #181d2c;
  color: #cbd5e1;
  border-color: #262e45;
}

.sim-btn-ghost:hover {
  background: #222a3f;
  color: #ffffff;
}

.sim-btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sim-btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Inline Outcome Cards (Replaces alert popups) */
.sim-outcome-card {
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-outcome-danger {
  background: #201215;
  border: 1px solid #ef4444;
}

.sim-outcome-safe {
  background: #121826;
  border: 1px solid #3b82f6;
}

.sim-outcome-success {
  background: #102019;
  border: 1px solid #10b981;
}

.sim-outcome-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
}

.sim-outcome-desc {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.sim-outcome-desc code {
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  color: #fca5a5;
}

/* FUSE Interceptor Modal */
.sim-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sim-modal-card {
  background: #151a26;
  border: 1px solid #ef4444;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  padding: 26px;
  max-width: 480px;
  width: 100%;
}

.sim-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.sim-modal-body {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.sim-modal-body strong.prod-highlight {
  color: #ef4444;
  font-weight: 700;
}

.sim-modal-input-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.sim-modal-input {
  width: 100%;
  background: #090b10;
  border: 1px solid var(--border-control);
  border-radius: 6px;
  padding: 10px 14px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease;
  margin-bottom: 18px;
}

.sim-modal-input:focus {
  border-color: #ef4444;
}

.sim-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: rgba(19, 23, 34, 0.35);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 52px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Three Core Beats Grid */
.beats-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.beat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.beat-row.reverse {
  direction: rtl;
}

.beat-row.reverse .beat-copy,
.beat-row.reverse .beat-preview {
  direction: ltr;
}

.beat-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.beat-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 9px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 4px;
  color: #93c5fd;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.beat-badge.red {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.beat-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.beat-text {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.beat-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.beat-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* For Teams Section */
.teams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card-body {
  padding: 26px 26px 18px;
}

.team-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.team-card-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.team-card-preview {
  padding: 0 16px 16px;
}

.team-card-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* Compact Privacy Strip (Runs entirely on your machine) */
.privacy-strip {
  background: var(--bg-surface);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-xl);
  padding: 36px 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.privacy-point {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-point-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-point-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-green);
  flex-shrink: 0;
}

.privacy-point-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
}

.privacy-point-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-point-desc code {
  background: #0a0d14;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  color: #93c5fd;
}

/* Changelog Timeline */
.changelog-timeline {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.changelog-entry {
  background: var(--bg-surface);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.changelog-entry:hover {
  border-color: #333c56;
}

.changelog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.changelog-version-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.changelog-version {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.changelog-pill-latest {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
}

.changelog-date {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.changelog-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.changelog-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.changelog-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

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

.changelog-list li code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: #e2e8f0;
}

.changelog-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.tag-feat {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag-sec {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-perf {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag-fix {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 640px) {
  .changelog-entry {
    padding: 22px 18px;
  }
  .changelog-list li {
    flex-direction: column;
    gap: 6px;
  }
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-md);
  padding: 22px;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.faq-answer code {
  background: #0a0d14;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  color: #93c5fd;
}

/* Closing CTA */
.cta-block {
  text-align: center;
  padding: 68px 0 88px;
}

.cta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-xl);
  padding: 56px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 30px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #08090d;
  padding: 36px 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

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

/* Demo fixes */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-control);
}

.btn-ghost:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.sim-tab:disabled {
  cursor: default;
  pointer-events: none;
  color: var(--text-secondary);
}

.sim-tab.active:disabled {
  color: #ffffff;
}

.sim-table-wrap {
  overflow-x: auto;
}

@media (max-width: 640px) {
  .sim-app-badge {
    display: none;
  }
  .sim-viewport {
    padding: 18px 14px;
  }
  .sim-floating-pill {
    right: 16px;
    padding: 4px 10px;
    font-size: 0.7rem;
  }
  .sim-tab-host,
  .sim-tab-sep {
    display: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .beat-row,
  .beat-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .beat-row.reverse .beat-copy,
  .beat-row.reverse .beat-preview {
    direction: ltr;
  }
  .teams-grid {
    grid-template-columns: 1fr;
  }
  .privacy-strip {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
