/* ApplyFlow — High-Craft Design System & Accessible Stylesheet
   Typography: Inter + JetBrains Mono
   WCAG 2.1 AA / AAA Compliant Contrast & Focus Management
*/

:root {
  /* Surface & Background */
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --surface: #FFFFFF;
  --surface-subtle: #F8FAFC;
  --surface-hover: #F1F5F9;
  --surface-active: #E2E8F0;
  
  /* Borders */
  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-strong: #CBD5E1;
  
  /* Typography / Inks (All pass WCAG AA on white & light-slate) */
  --ink: #0F172A;              /* 16.5:1 ratio */
  --text-secondary: #475569;   /* 6.3:1 ratio */
  --text-muted: #64748B;       /* 4.6:1 ratio */
  --text-light: #94A3B8;
  
  /* Accent & Brand Colors */
  --primary: #0F172A;
  --primary-hover: #020617;
  --primary-text: #FFFFFF;
  
  --brand-emerald: #059669;
  --brand-emerald-light: #ECFDF5;
  --brand-emerald-border: #A7F3D0;
  --brand-emerald-text: #065F46;
  
  --brand-blue: #2563EB;
  --brand-blue-light: #EFF6FF;
  --brand-blue-border: #BFDBFE;
  --brand-blue-text: #1E40AF;
  
  --brand-amber: #D97706;
  --brand-amber-light: #FFFBEB;
  --brand-amber-border: #FDE68A;
  --brand-amber-text: #92400E;
  
  --brand-purple: #7C3AED;
  --brand-purple-light: #F5F3FF;
  --brand-purple-border: #DDD6FE;
  --brand-purple-text: #5B21B6;

  --danger-text: #DC2626;

  /* Focus Indicator */
  --focus-ring: #2563EB;
  --focus-offset: 2px;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-canvas: 0 20px 35px -8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);

  /* Layout */
  --max-w: 1120px;
  --max-narrow: 760px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

/* Accessible Focus Styling */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Skip to Content */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--ink);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.skip-link:focus {
  top: 14px;
}

/* Utilities */
.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: -0.02em;
}
.mono-code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  color: var(--ink);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.hidden {
  display: none !important;
}
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: var(--max-narrow);
}
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--brand-emerald); }
.text-danger { color: var(--danger-text); }
.flex-1 { flex: 1; min-width: 0; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}
.nav-inner {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.logo-mark svg {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
.logo-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-gh-btn {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.nav-gh-btn:hover {
  background: var(--surface-hover);
  border-color: #94A3B8;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}
.btn-lg {
  padding: 11px 22px;
  font-size: 14.5px;
}
.btn-full {
  width: 100%;
  padding: 10px 14px;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  color: #FFFFFF;
}
.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background-color: var(--surface-hover);
  border-color: #94A3B8;
  color: var(--ink);
}

/* Hero Section */
.hero {
  padding: 96px 0 48px;
  text-align: center;
  position: relative;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 18ch;
}
.gradient-text {
  background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 32px;
}
.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}
.hero-sub em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-platforms {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
}
.platforms-label {
  font-weight: 500;
}
.platforms-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.platform-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 11.5px;
}

/* Hero Live Preview Canvas */
.preview {
  margin-top: 48px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-canvas);
  overflow: hidden;
  text-align: left;
}
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  gap: 12px;
  flex-wrap: wrap;
}
.preview-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--brand-emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
  animation: pulse-live 2s infinite ease-in-out;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.05); }
}
.preview-title {
  font-weight: 600;
  color: var(--ink);
}
.preview-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.kbd-hint {
  font-weight: 600;
  color: var(--ink);
}

.preview-grid {
  display: grid;
  grid-template-columns: 310px 54px 1fr;
  padding: 20px;
  gap: 0;
  align-items: stretch;
  background: #FFFFFF;
}

/* Extension Popup Mockup */
.phone {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--ink);
  color: #FFFFFF;
}
.window-controls {
  display: flex;
  gap: 5px;
}
.win-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.phone-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: #FFFFFF;
}
.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: #10B981;
}

/* Phone Timer Bar */
.phone-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.timer-info {
  display: flex;
  flex-direction: column;
}
.timer-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.timer-desc {
  font-size: 11px;
  color: var(--text-secondary);
}
.timer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.timer-digits {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.icon-btn:hover {
  background: var(--surface-hover);
  border-color: var(--ink);
}

/* Tabs */
.phone-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 4px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.tab-btn:hover {
  color: var(--ink);
  background: var(--bg-alt);
}
.tab-btn.active {
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

/* Phone Form */
.phone-panel {
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.phone-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.form-input, .form-select {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  transition: all 0.15s ease;
}
.form-input:hover, .form-select:hover {
  border-color: #94A3B8;
}
.form-input:focus, .form-select:focus {
  background: #FFFFFF;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}
.phone-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.phone-actions .btn {
  flex: 1;
}

/* Center Connector */
.preview-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 6px;
}
.connector-track {
  width: 2px;
  flex: 1;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-full);
}
.connector-beam {
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--brand-emerald));
  animation: stream-down 2s infinite linear;
}
@keyframes stream-down {
  0% { top: -40px; }
  100% { top: 100%; }
}
.sync-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: var(--brand-emerald-text);
  font-size: 10.5px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

/* Right Google Sheet Mockup */
.sheet {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.sheet-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sheet-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet-name {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sheet-sub {
  font-size: 11px;
  color: var(--text-secondary);
}
.sheet-privacy-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.sheet-formula-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.fx-label {
  font-style: italic;
  font-weight: 700;
  color: var(--text-muted);
}
.fx-content {
  color: var(--text-secondary);
  font-size: 11.5px;
}

/* Data Table */
.table-wrap {
  overflow-x: auto;
  flex: 1;
  background: #FFFFFF;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.data-table th {
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  white-space: nowrap;
  vertical-align: middle;
}
.data-table tbody tr:hover td {
  background-color: var(--surface-hover);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tr.highlight-new {
  background-color: #FEF3C7 !important;
  transition: background-color 1s ease-out;
}

/* Accessible Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.status-applied {
  background-color: var(--brand-blue-light);
  color: var(--brand-blue-text);
  border-color: var(--brand-blue-border);
}
.status-interviewing {
  background-color: var(--brand-emerald-light);
  color: var(--brand-emerald-text);
  border-color: var(--brand-emerald-border);
}
.status-offer {
  background-color: var(--brand-amber-light);
  color: var(--brand-amber-text);
  border-color: var(--brand-amber-border);
}
.status-saved {
  background-color: var(--brand-purple-light);
  color: var(--brand-purple-text);
  border-color: var(--brand-purple-border);
}

.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: 12px;
  gap: 10px;
}

/* Quick Chips */
.preview-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.chips-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.chips-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}
.chip:hover .chip-role {
  color: rgba(255, 255, 255, 0.8);
}
.chip-company {
  font-weight: 600;
}
.chip-role {
  color: var(--text-secondary);
}

/* Section Shared Styling */
.section {
  padding: 80px 0;
  position: relative;
}
.section-alt {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  margin-bottom: 36px;
}
.section-head.centered {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 10px;
}
.section-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Steps Grid (How it works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.step-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  margin-bottom: 20px;
}
.step-num {
  position: absolute;
  top: 28px;
  right: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.step-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ====================================================
   Realistic Browser Screen Recording Showcase Styles
   ==================================================== */

.rec-chapters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}
.rec-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.rec-chip:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.rec-chip.active {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.rec-chip.active .rec-chip-num {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}
.rec-chip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
}

/* Simulated Browser Chrome */
.browser-frame {
  background: #090A0F;
  border: 1px solid #1E293B;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-canvas), 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  position: relative;
}

/* Browser Top Bar & Tabs */
.browser-topbar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #111827;
  border-bottom: 1px solid #1F2937;
  gap: 16px;
}
.browser-tabs {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.browser-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}
.browser-tab.active {
  background: #1E293B;
  color: #F8FAFC;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
}
.browser-tab.inactive {
  background: transparent;
  color: #64748B;
}
.tab-close {
  margin-left: auto;
  font-size: 14px;
  color: #94A3B8;
}
.browser-meta-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.browser-rec-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: #EF4444;
  animation: pulse-live 1.5s infinite;
}
.browser-rec-label {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
}

/* Browser Omnibox Navbar */
.browser-navbar {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: #1E293B;
  border-bottom: 1px solid #334155;
  gap: 12px;
}
.nav-btn-group {
  display: flex;
  gap: 4px;
}
.browser-nav-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 4px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}
.browser-omnibox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 12px;
}
.omnibox-lock {
  color: #10B981;
}
.omnibox-url {
  color: #E2E8F0;
  font-size: 11.5px;
}
.browser-toolbar-extensions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toolbar-puzzle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #E2E8F0;
  background: #334155;
  border-radius: var(--radius-sm);
  cursor: default;
}
.toolbar-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #334155;
  border-radius: var(--radius-sm);
  cursor: default;
}
.toolbar-ext-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #3B82F6;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: var(--radius-full);
}

/* Viewport Area */
.browser-viewport {
  position: relative;
  height: 440px;
  background: #FFFFFF;
  overflow: hidden;
}
.sim-scene {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  opacity: 1;
  transition: opacity 0.25s ease-in-out;
}

/* Animated Cursor */
.sim-cursor {
  position: absolute;
  z-index: 60;
  pointer-events: none;
  transition: top 0.75s cubic-bezier(0.25, 1, 0.5, 1), left 0.75s cubic-bezier(0.25, 1, 0.5, 1);
  top: 60px;
  left: 60px;
}
.cursor-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.35);
  border: 1px solid #2563EB;
  transform: scale(0);
  opacity: 0;
}
.cursor-ripple.click-pulse {
  animation: ripple-anim 0.5s ease-out forwards;
}
@keyframes ripple-anim {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Scene 0: Google Homepage */
.google-view {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.google-top-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 13px;
  color: #3C4043;
}
.google-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: #8430CE;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.google-center {
  margin: auto;
  text-align: center;
  width: 100%;
  max-width: 520px;
}
.google-logo {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.g-blue { color: #4285F4; }
.g-red { color: #EA4335; }
.g-yellow { color: #FBBC05; }
.g-green { color: #34A853; }
.google-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border: 1px solid #DFE1E5;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 6px rgba(32,33,36,.15);
  margin-bottom: 18px;
}
.google-placeholder {
  color: #70757A;
  font-size: 14px;
}
.google-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.g-btn {
  background: #F8F9FA;
  border: 1px solid #F8F9FA;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: #3C4043;
}

/* Chrome Menu Dropdown */
.chrome-menu-dropdown {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  width: 220px;
  z-index: 20;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  background: #EFF6FF;
  color: #1E40AF;
}
.menu-arrow {
  margin-left: auto;
  font-weight: 700;
}
.menu-sub-dropdown {
  margin-top: 4px;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-sub-item {
  padding: 6px 8px;
  font-size: 12px;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
}
.menu-sub-item.highlight {
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 600;
}
.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

/* Scene 1: Developer Mode & Unpacked */
.ext-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.ext-manager-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ext-hamburger {
  font-size: 18px;
  color: var(--text-secondary);
}
.ext-manager-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.ext-dev-toggle-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dev-mode-label {
  font-size: 13px;
  color: var(--ink);
}
.sim-switch {
  width: 38px;
  height: 22px;
  border-radius: var(--radius-full);
  background: #CBD5E1;
  position: relative;
  transition: background-color 0.2s ease;
}
.sim-switch.on {
  background: #2563EB;
}
.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.sim-switch.on .switch-knob {
  transform: translateX(16px);
}

.ext-action-bar {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ext-action-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.ext-action-btn.primary {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}
.highlight-box {
  box-shadow: 0 0 0 2px #2563EB;
}

.mini-picker-box {
  margin: 30px auto 0;
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px;
}
.picker-head-mini {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 10px;
}
.picker-row.selected {
  padding: 8px 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm);
  color: #1E40AF;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
}
.picker-foot-mini {
  display: flex;
  justify-content: flex-end;
}

/* Scene 2 & 3: Google Sheets Application UI */
.sheets-app-window {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.sheets-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sheets-logo-badge {
  font-size: 24px;
}
.sheets-filename {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.sheets-menubar {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.menu-highlight {
  font-weight: 700;
  color: #1E40AF;
}
.menu-active {
  background: #E2E8F0;
  padding: 1px 4px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  color: var(--ink);
}

.sheets-formula-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.fx-symbol {
  font-style: italic;
  font-weight: 700;
  color: var(--text-muted);
}
.sheets-grid-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  margin-top: 8px;
  background: #FFFFFF;
}
.sheets-grid-header, .sheets-grid-row {
  display: grid;
  grid-template-columns: 32px 110px 140px 180px 1fr 100px;
  border-bottom: 1px solid var(--border);
}
.grid-cell {
  padding: 6px 10px;
  border-right: 1px solid var(--border);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid-cell:last-child {
  border-right: none;
}
.grid-cell.c-idx {
  background: #F1F5F9;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
}
.grid-cell.c-head {
  font-weight: 700;
  color: var(--ink);
  background: #F8FAFC;
}

/* Sheets Dropdown */
.sheets-ext-dropdown {
  position: absolute;
  top: 45px;
  left: 200px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  width: 170px;
  z-index: 20;
}
.ext-item {
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--ink);
}
.ext-item.highlight {
  background: #EFF6FF;
  color: #1E40AF;
  border-radius: var(--radius-xs);
}

/* Apps Script Modal */
.apps-script-editor-modal {
  position: absolute;
  inset: 10px;
  background: #090A0F;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.script-editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #111827;
  border-bottom: 1px solid #1F2937;
}
.script-title {
  font-size: 13px;
  font-weight: 700;
  color: #F3F4F6;
}
.script-code-editor {
  padding: 14px;
  flex: 1;
  color: #E2E8F0;
  font-size: 12px;
  line-height: 1.6;
}

/* Scene 4: Deploy & Settings */
.deploy-flow-view {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.deploy-dialog-box, .applyflow-settings-modal {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  width: 100%;
  max-width: 320px;
}
.dialog-header, .settings-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 14px;
}
.dialog-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}
.dialog-lbl { color: var(--text-muted); }
.dialog-val { font-weight: 600; color: var(--ink); }
.dialog-url-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.badge-copy {
  background: #059669;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: var(--radius-xs);
}
.settings-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.highlight-btn {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}

/* Scene 5: LinkedIn Job Post */
.linkedin-job-view {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #F3F2F0;
}
.linkedin-nav {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid #E0DFDC;
  gap: 16px;
}
.li-logo {
  width: 24px;
  height: 24px;
  background: #0A66C2;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.li-search {
  background: #EDF3F8;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}
.li-links {
  display: flex;
  gap: 14px;
  margin-left: auto;
  font-size: 11.5px;
  color: #666;
}
.li-links .active {
  color: #0A66C2;
  font-weight: 700;
}
.li-job-card {
  margin: 16px auto 0;
  background: #FFFFFF;
  border: 1px solid #E0DFDC;
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: 480px;
}
.li-brand-logo {
  width: 48px;
  height: 48px;
  background: #635BFF;
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.li-title {
  font-size: 15px;
  font-weight: 700;
  color: #000;
}
.li-company {
  font-size: 12.5px;
  color: #333;
}
.li-meta {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}
.li-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.li-btn-apply {
  background: #0A66C2;
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
}
.li-btn-save {
  background: transparent;
  color: #0A66C2;
  border: 1px solid #0A66C2;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
}
.linkedin-popup-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 270px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 25;
}
.sim-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--ink);
  color: #FFFFFF;
}
.sim-pop-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sim-input-row {
  background: var(--bg-alt);
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.sim-lbl {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}
.sim-val {
  font-size: 11.5px;
  color: var(--ink);
}

/* Scene 6: Live Sheet Row Appended */
.sheet-live-sync-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}
.highlight-inserted-row {
  background: #FEF3C7 !important;
  animation: pulse-row 2s infinite ease-in-out;
}
@keyframes pulse-row {
  0%, 100% { background: #FEF3C7; }
  50% { background: #ECFDF5; }
}
.sheet-success-banner {
  margin-top: 16px;
  padding: 10px 14px;
  background: #065F46;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Video Player Controls Bar */
.browser-player-controls {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: #111827;
  border-top: 1px solid #1F2937;
  gap: 16px;
}
.player-btn {
  background: #1F2937;
  border: 1px solid #374151;
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.player-btn:hover {
  background: #374151;
}
.player-time {
  font-size: 12px;
  color: #94A3B8;
  white-space: nowrap;
}
.player-scrubber-track {
  flex: 1;
  height: 6px;
  background: #334155;
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
}
.player-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #3B82F6;
  border-radius: var(--radius-full);
}
.player-scrubber-thumb {
  position: absolute;
  top: -4px;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  transform: translateX(-50%);
  transition: transform 0.1s ease;
}
.step-notches {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.notch {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 10px;
  background: #475569;
  transform: translateX(-50%);
}
.player-nav-actions {
  display: flex;
  gap: 6px;
}
.player-icon-btn {
  background: transparent;
  border: 1px solid #374151;
  color: #94A3B8;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.player-icon-btn:hover {
  background: #1F2937;
  color: #FFFFFF;
}

/* Narration Card */
.rec-narration-card {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.narration-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.narration-step-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.narration-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.narration-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Timeline (Setup Guide) */
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}
.tl-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.tl-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
.tl-content {
  flex: 1;
}
.tl-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.tl-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-inline:hover {
  color: #1D4ED8;
}
.callout-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.callout-tip svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-blue);
}

/* Code Studio Box */
.code-box {
  background: #090A0F;
  border: 1px solid #1E293B;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #111827;
  border-bottom: 1px solid #1F2937;
}
.code-head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.code-badge {
  font-size: 12px;
  font-weight: 600;
  color: #F3F4F6;
}
.code-lang {
  font-size: 11px;
  color: #9CA3AF;
}
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1F2937;
  color: #F3F4F6;
  border: 1px solid #374151;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-copy:hover {
  background: #374151;
  color: #FFFFFF;
}
.code-scroll {
  margin: 0;
  padding: 18px;
  overflow: auto;
  max-height: 420px;
  background: #090A0F;
  color: #E2E8F0;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.7;
}
.code-scroll code {
  font-family: inherit;
  white-space: pre;
}

/* Syntax Highlighting */
.c-comment { color: #64748B; font-style: italic; }
.c-keyword { color: #F472B6; font-weight: 600; }
.c-func { color: #60A5FA; }
.c-string { color: #34D399; }
.c-num { color: #FBBF24; }

.code-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #111827;
  border-top: 1px solid #1F2937;
  font-size: 12.5px;
  gap: 12px;
  flex-wrap: wrap;
}
.code-foot-note {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: -0.01em;
}

/* Extension Installation Card */
.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.install-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.install-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink);
}
.install-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.install-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
}
.install-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.feature-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.feature-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-name {
  font-weight: 700;
  color: var(--ink);
}
.footer-pill {
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.footer-gh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-gh-link:hover {
  color: var(--ink);
}
.footer-notes {
  color: var(--text-secondary);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 500;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .preview-connector {
    flex-direction: row;
    padding: 8px 0;
  }
  .connector-track {
    height: 2px;
    width: 100%;
  }
  .connector-beam {
    top: 0;
    left: -40px;
    height: 100%;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--brand-emerald));
    animation: stream-right 2s infinite linear;
  }
  @keyframes stream-right {
    0% { left: -40px; }
    100% { left: 100%; }
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .browser-viewport {
    height: 480px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 56px 0 32px;
  }
  .section {
    padding: 56px 0;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 18px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-actions {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .browser-viewport {
    height: 520px;
  }
  .chrome-menu-dropdown {
    width: 190px;
  }
  .deploy-flow-view {
    flex-direction: column;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
