/* ═══════════════════════════════════════
   PORTRM — MARKETING SITE STYLES
   ═══════════════════════════════════════ */

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

:root {
  --bg:         #0a0a0a;
  --surface:    #111111;
  --card:       #161616;
  --border:     rgba(255,255,255,0.10);
  --border-hover: rgba(255,255,255,0.18);
  --green:      #00ff88;
  --green-dim:  #00cc6a;
  --green-glow: rgba(0,255,136,0.12);
  --orange:     #ff6b35;
  --rust:       #ce422b;
  --text:       #ffffff;
  --text-muted: #aaaaaa;
  --text-dim:   #777777;
  --vscode:     #007acc;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
  --sans:       'Figtree', system-ui, -apple-system, sans-serif;
  --code:       'Fira Code', 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

/* ── Thin scrollbar (thumb only) ── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

code {
  font-family: var(--code);
  font-feature-settings: "liga" 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── Noise overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  /* background: rgba(10, 10, 10, 0.85); */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* border-bottom: 1px solid var(--border); */
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
}

.nav-logo-accent {
  color: var(--orange);
}

.version-badge {
  font-size: 10px;
  font-family: monospace;
  background: rgba(255,107,53,0.1);
  color: var(--orange);
  border: 1px solid rgba(255,107,53,0.15);
  border-radius: 4px;
  padding: 2px 6px;
}

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

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:not(.nav-github-btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.25s ease;
}

.nav-links a:not(.nav-github-btn):hover::after {
  width: 100%;
}

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

.nav-github-btn {
  font-size: 13px !important;
  color: var(--text) !important;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  transition: background 0.2s, border-color 0.2s;
}

.nav-github-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--border-hover);
}
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 5% 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  width: 500px;
  height: 500px;
}

.hero-logo-watermark img {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero pill */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(206,66,43,0.08);
  border: 1px solid rgba(206,66,43,0.15);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.hero-pill-rust {
  font-size: 12px;
  color: var(--rust);
}

.hero-pill-sep {
  font-size: 11px;
  color: var(--text-dim);
}

.hero-pill-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-headline {
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-highlight {
  color: var(--orange);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--sans);
  position: relative;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border: 1px solid rgba(255,107,53,0.3);
}

.btn-primary code {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.btn-primary:hover {
  background: #e05a2a;
  border-color: rgba(255,107,53,0.5);
  box-shadow: 0 0 20px rgba(255,107,53,0.15);
  transform: translateY(-1px);
}

.btn-primary .btn-icon {
  font-size: 12px;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--border-hover);
}
  transition: transform 0.2s;
}

.btn-secondary:hover .arrow {
  transform: translateX(3px);
}

.copy-feedback {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.copy-feedback.show {
  opacity: 1;
}

.hero-platforms {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-stat {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.hero-stat strong {
  color: var(--text);
  font-weight: 600;
}

.hero-stat-sep {
  width: 1px;
  height: 14px;
  background: var(--border-hover);
  flex-shrink: 0;
}

.platform-check {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

.check-icon {
  color: var(--orange);
  font-size: 10px;
}

/* ── 3D Terminal ── */
.hero-terminal-wrapper {
  position: relative;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  padding: 20px;
}

.space-fiber {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.terminal-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120px;
  background: radial-gradient(ellipse, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.terminal-3d {
  position: relative;
  z-index: 1;
  transform: rotateX(-6deg) rotateY(8deg);
  transform-style: preserve-3d;
  width: 100%;
  max-width: 560px;
  cursor: grab;
  transition: transform 0.15s ease;
}

.terminal-3d.dragging {
  cursor: grabbing;
  transition: none;
}

.terminal-3d.idle {
  animation: terminalFloat 4s ease-in-out infinite;
}

@keyframes terminalFloat {
  0%, 100% { transform: rotateX(-6deg) rotateY(8deg) translateY(0); }
  50%      { transform: rotateX(-6deg) rotateY(8deg) translateY(-10px); }
}

.terminal {
  width: 100%;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.terminal-body {
  padding: 16px 20px;
  font-family: var(--code);
  font-size: 11px;
  line-height: 1.5;
  min-height: 340px;
  max-height: 370px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: #0d1117;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    0 0 40px rgba(255,107,53,0.04);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.terminal-body::-webkit-scrollbar {
  display: none;
}

.terminal-content .line {
  min-height: 1.6em;
  animation: slideIn 0.15s ease;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.terminal-content .line-prompt  { color: var(--green); }
.terminal-content .line-text    { color: var(--text); }
.terminal-content .line-highlight { color: #ffcc44; }
.terminal-content .line-info    { color: var(--text-muted); }
.terminal-content .line-success { color: var(--orange); }
.terminal-content .line-dim     { color: var(--text-dim); }
.terminal-content .line-table   { color: var(--text-muted); font-size: 10px; letter-spacing: -0.02em; }
.terminal-content .line-table-green { color: var(--orange); font-size: 10px; letter-spacing: -0.02em; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--orange);
  vertical-align: middle;
  animation: cursorBlink 1.06s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── Sections ── */
.section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}

.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 800px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

/* Section label with green line */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-label-line {
  width: 24px;
  height: 1px;
  background: var(--orange);
}

.section-label span {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.15;
}

.section-title-left {
  text-align: left;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 56px;
  max-width: 560px;
}

.section-subtitle-left {
  text-align: left;
}

/* ── Problem Section ── */
.problem-scenarios {
  position: relative;
}

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

.scenario-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scenario-btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--border-hover);
}

.scenario-btn.active {
  background: rgba(255, 107, 53, 0.06);
  border-color: rgba(255, 107, 53, 0.2);
}

.scenario-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.scenario-btn:not(.active) .scenario-tag {
  color: var(--text-muted);
}

.scenario-desc {
  font-size: 12px;
  color: var(--text-dim);
}

.scenario-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.scenario-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.scenario-dot.active {
  background: var(--orange);
  border-color: rgba(255,107,53,0.4);
  box-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

.scenario-dot:hover:not(.active) {
  background: var(--text-dim);
}

.scenario {
  display: none;
  animation: scenarioIn 0.35s ease;
}

.scenario.active {
  display: block;
}

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

.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.comparison-block {
  width: 100%;
}

.comparison-label {
  font-size: 12px;
  font-family: monospace;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 600;
}

.comparison-label.bad  { color: #cc4444; }
.comparison-label.good { color: var(--orange); }

.code-block {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: var(--code);
  font-size: 13.5px;
  line-height: 1.5;
  overflow-x: auto;
}

.code-bad  { }
.code-good { }

.code-block .code-line {
  white-space: pre-line;
}

.code-block .prompt {
  color: var(--text-muted);
}

.code-bad .prompt     { color: var(--text-muted); }
.code-good .prompt    { color: var(--green); }
.prompt-bad           { color: #cc4444 !important; }
.bad-cmd              { color: #cc4444; }

.code-block .dimmed   { color: #444; }
.code-block .success  { color: var(--orange); }
.code-block .output   { color: var(--text-muted); }

.comparison-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--orange);
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.feature-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-card-highlight {
  background: linear-gradient(135deg, rgba(255,107,53,0.06) 0%, rgba(255,255,255,0.05) 100%);
  border-color: rgba(255,107,53,0.15);
}

.feature-card-highlight:hover {
  background: linear-gradient(135deg, rgba(255,107,53,0.10) 0%, rgba(255,255,255,0.09) 100%);
  border-color: rgba(255,107,53,0.30);
}

.feature-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--orange);
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 2;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-card code {
  font-size: 12px;
  color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── VS Code Callout ── */
.vscode-callout {
  padding-top: 40px;
}

/* ── Config Showcase (.ptrm.toml) ── */
.config-showcase {
  padding-top: 40px;
}

.config-card {
  background: linear-gradient(135deg, #1a1208 0%, #161616 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.config-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--orange);
}

.config-pill-icon {
  width: 14px;
  height: 14px;
  stroke: var(--orange);
}

.config-card h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.config-card-left p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.config-card-left p code {
  color: var(--orange);
  background: rgba(255, 107, 53, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

.config-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.config-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.config-check-icon {
  width: 14px;
  height: 14px;
  stroke: var(--orange);
  flex-shrink: 0;
}

.config-card-right {
  flex: 0 0 auto;
  min-width: 320px;
  max-width: 420px;
}

.config-code {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0d1117;
}

.config-code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
}

.config-code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.config-code-dot:nth-child(1) { background: #ff5f57; }
.config-code-dot:nth-child(2) { background: #ffbd2e; }
.config-code-dot:nth-child(3) { background: #28c840; }

.config-code-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
}

.config-code-body {
  background: #0d1117;
  padding: 20px;
  font-family: var(--code);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-x: auto;
  margin: 0;
}

.toml-comment { color: #555; }
.toml-section { color: var(--orange); }
.toml-key     { color: var(--text); }
.toml-string  { color: var(--orange); }
.toml-number  { color: #88ccff; }

.vscode-card {
  background: linear-gradient(135deg, #1a1208 0%, #161616 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.vscode-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.15);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--orange);
}

.vscode-pill-icon {
  width: 14px;
  height: 14px;
  stroke: var(--orange);
  flex-shrink: 0;
}

.vscode-card h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.vscode-card-left p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 480px;
  line-height: 1.7;
}

.vscode-card-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.vscode-install-btn {
  background: var(--orange);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border: 1px solid rgba(255,107,53,0.3);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.vscode-install-btn:hover {
  background: #e05a2a;
  border-color: rgba(255,107,53,0.5);
  box-shadow: 0 0 20px rgba(255,107,53,0.15);
}

.vscode-cmd {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  display: block;
}

/* ── Comparison Table ── */
.table-wrapper {
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table thead {
  background: var(--card);
}

.comparison-table th {
  padding: 14px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comparison-table colgroup .col-feature { width: 28%; }
.comparison-table colgroup .col-tool    { width: 18%; }

.comparison-table th:not(:first-child) {
  text-align: center;
}

.comparison-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 13px;
  word-break: break-word;
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

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

.comparison-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.015);
}

.comparison-table tbody tr {
  transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(255,255,255,0.06);
}

.comparison-table .highlight-col {
  background: rgba(255, 107, 53, 0.03);
}

.comparison-table thead .highlight-col {
  color: var(--orange);
}

.table-row {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.check-yes      { color: var(--orange); font-weight: 600; font-size: 14px; }
.check-no       { color: var(--text-dim); font-size: 16px; }
.check-partial  { color: var(--text-muted); font-size: 12px; font-style: italic; }
.check-neutral  { color: var(--text-muted); font-size: 12px; }
.check-yes-mono {
  color: var(--orange);
  font-size: 12px;
  font-family: monospace;
}

/* ── Tabs / Commands ── */
.tabs {
  margin-top: 0;
}

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}

.tab-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

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

.tabs-content {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.code-ref {
  border-radius: 0 0 12px 12px;
  border-top: none;
  border: 1px solid var(--border);
  border-top: none;
}

.code-ref .code-line {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.code-ref .cmd {
  color: var(--green);
  flex: 0 0 auto;
}

.code-ref .comment {
  color: var(--text-dim);
  font-size: 12px;
}

/* ── Install ── */
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.install-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: background 0.2s, border-color 0.2s;
}

.install-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-hover);
}

.install-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.install-note {
  color: var(--text-dim);
}

.install-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  transition: background 0.15s;
  overflow: hidden;
  min-width: 0;
}

.install-cmd:hover {
  background: #1e1e1e;
  border-color: var(--border-hover);
}

.install-cmd code {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.install-curl {
  margin-bottom: 0;
}

.copy-icon {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  font-family: var(--sans);
  font-size: 11px;
  min-width: 50px;
  justify-content: flex-end;
}

.copy-icon:hover {
  color: var(--orange);
}

.copy-icon .copy-feedback {
  position: static;
  display: none;
  font-size: 11px;
  background: none;
  padding: 0;
  transform: none;
  color: var(--orange);
}

.copy-icon.copied .copy-text {
  display: none;
}

.copy-icon.copied .copy-feedback {
  display: inline;
  opacity: 1;
}

.platform-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 2;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
}

.footer-note {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger feature cards */
.features-grid .reveal:nth-child(2)  { transition-delay: 0.05s; }
.features-grid .reveal:nth-child(3)  { transition-delay: 0.10s; }
.features-grid .reveal:nth-child(4)  { transition-delay: 0.15s; }
.features-grid .reveal:nth-child(5)  { transition-delay: 0.20s; }
.features-grid .reveal:nth-child(6)  { transition-delay: 0.25s; }
.features-grid .reveal:nth-child(7)  { transition-delay: 0.30s; }
.features-grid .reveal:nth-child(8)  { transition-delay: 0.35s; }
.features-grid .reveal:nth-child(9)  { transition-delay: 0.40s; }
.features-grid .reveal:nth-child(10) { transition-delay: 0.45s; }
.features-grid .reveal:nth-child(11) { transition-delay: 0.50s; }
.features-grid .reveal:nth-child(12) { transition-delay: 0.55s; }
.features-grid .reveal:nth-child(13) { transition-delay: 0.60s; }
.features-grid .reveal:nth-child(14) { transition-delay: 0.65s; }
.features-grid .reveal:nth-child(15) { transition-delay: 0.70s; }
.features-grid .reveal:nth-child(16) { transition-delay: 0.75s; }

/* ── Selection ── */
::selection {
  background: rgba(255, 107, 53, 0.2);
  color: var(--text);
}

/* ── TUI Showcase ── */
.tui-panels {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  align-items: start;
}

.tui-terminal {
  background: #161616;
  border: 1px solid rgba(100,140,180,0.15);
  border-radius: 14px;
  overflow: hidden;
}

.tui-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1a1e28;
  border-bottom: 1px solid rgba(100,140,180,0.1);
}

.tui-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.tui-body {
  font-family: var(--code);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.tui-top-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(100,140,180,0.1);
}

.tui-app-name {
  font-weight: 700;
  color: #5ec4ff;
  font-size: 13px;
}

.tui-app-label {
  color: var(--text-muted);
  font-size: 13px;
}

.tui-table {
  padding: 0;
  flex: 1;
}

.tui-row {
  display: grid;
  grid-template-columns: 70px 1fr 60px 80px 80px 80px 80px;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(100,140,180,0.04);
  transition: background 0.15s;
}

.tui-row-header {
  background: rgba(100,140,180,0.06);
  border-bottom: 1px solid rgba(100,140,180,0.12);
}

.tui-row-header .tui-col {
  font-size: 11px;
  font-weight: 600;
  color: #7a8a9a;
  letter-spacing: 0.06em;
}

.tui-row-selected {
  background: rgba(90,180,220,0.08);
}

.tui-row-selected .tui-col-port {
  color: #e8e8e8;
}

.tui-row-selected .tui-col-process {
  color: #e8e8e8;
}

.tui-arrow {
  color: #5ec4ff;
  margin-right: 4px;
  font-size: 11px;
}

.tui-col {
  font-size: 12px;
  color: #7a8a9a;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tui-col-port {
  color: #c8d0d8;
  font-weight: 600;
}

.tui-col-process {
  color: #a0b0c0;
}

.tui-service-highlight {
  color: #5ec4ff !important;
  font-weight: 500;
}

.tui-uptime-green {
  color: #5ec4a0 !important;
}

.tui-bottom-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(100,140,180,0.04);
  border-top: 1px solid rgba(100,140,180,0.1);
  margin-top: auto;
}

.tui-key {
  font-size: 12px;
  color: #657080;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tui-key kbd {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: #90a8c0;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* ── TUI Detail View ── */
.tui-detail-body {
  padding: 0;
}

.tui-detail-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(100,180,220,0.3), rgba(100,180,220,0.05));
  margin: 16px 20px 0;
}

.tui-detail-section {
  padding: 20px 24px 0;
}

.tui-detail-heading {
  font-size: 15px;
  font-weight: 700;
  color: #e8e8e8;
  margin-bottom: 4px;
}

.tui-detail-port {
  color: #5ec4ff;
  font-weight: 700;
}

.tui-detail-info {
  padding: 8px 24px;
}

.tui-detail-confidence {
  padding-top: 14px;
}

.tui-detail-line {
  font-size: 13px;
  color: #a0b0c0;
  line-height: 1.9;
}

.tui-detail-arrow {
  color: #5ec4a0;
  margin-right: 6px;
}

.tui-detail-label {
  color: #5ec4ff;
  font-weight: 600;
}

.tui-detail-val {
  color: #e8c85e;
  font-weight: 500;
}

.tui-detail-dim {
  color: #657080;
}

.tui-detail-safe {
  color: #5ec4a0;
  font-weight: 500;
}

/* ── VS Code Mockup ── */
.vscode-card-right-enhanced {
  flex: 0 0 auto;
  min-width: 320px;
  max-width: 420px;
}

.vscode-mockup {
  border: 1px solid rgba(100,140,180,0.15);
  border-radius: 10px;
  overflow: hidden;
  background: #161616;
}

.vscode-chrome {
  display: flex;
  min-height: 340px;
}

.vscode-activity-bar {
  width: 40px;
  background: #12151c;
  border-right: 1px solid rgba(100,140,180,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 6px;
}

.vscode-activity-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.vscode-activity-icon svg {
  width: 16px;
  height: 16px;
}

.vscode-activity-icon.active {
  color: var(--text);
  border-left: 2px solid var(--text);
  border-radius: 0;
}

.vscode-activity-icon.highlight {
  color: var(--orange);
}

.vscode-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #161616;
}

.vscode-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: #1a1e28;
  border-bottom: 1px solid rgba(100,140,180,0.1);
}

.vscode-panel-actions {
  display: flex;
  gap: 6px;
  color: var(--text-dim);
}

.vscode-panel-actions svg {
  width: 12px;
  height: 12px;
}

/* VS Code notice bar */
.vscode-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(100,140,180,0.1);
}

.vscode-notice-icon {
  width: 13px !important;
  height: 13px !important;
  color: var(--text-dim);
  flex-shrink: 0;
}

.vscode-notice-dim {
  color: var(--text-dim);
  font-size: 11px;
}

/* VS Code tree sections */
.vscode-tree-section {
  border-bottom: 1px solid rgba(100,140,180,0.1);
}

.vscode-tree-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.vscode-tree-header:hover {
  background: rgba(90,180,220,0.06);
}

.vscode-tree-header-active {
  background: rgba(90,180,220,0.08);
}

.vscode-tree-chevron {
  width: 12px !important;
  height: 12px !important;
  flex-shrink: 0;
  color: var(--text-dim);
}

.vscode-tree-icon {
  width: 13px !important;
  height: 13px !important;
  color: var(--text-dim);
}

.vscode-tree-items {
  padding: 2px 0 4px;
}

.vscode-tree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 30px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--sans);
  cursor: default;
  transition: background 0.12s;
}

.vscode-tree-item:hover {
  background: rgba(90,180,220,0.06);
}

/* Port items in tree */
.vscode-port-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.vscode-port-icon.running { color: var(--green); }
.vscode-port-icon.warning { color: #ffbd2e; }

.vscode-port-num {
  font-weight: 700;
  color: #c8d0d8;
  font-size: 13px;
  min-width: 40px;
}

.vscode-port-meta {
  font-size: 11.5px;
  color: #7a8a9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action items in tree */
.vscode-action-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--text-dim);
}

.vscode-sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(100,140,180,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Live Stats Badges ── */
.live-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s;
}

.stat-badge:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.07);
}

.stat-badge svg {
  width: 13px;
  height: 13px;
  stroke: var(--orange);
  flex-shrink: 0;
}

.stat-badge-value {
  font-weight: 600;
  color: var(--text);
}

.stat-badge-skeleton {
  width: 36px;
  height: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-platforms {
    justify-content: center;
  }

  .terminal-3d {
    transform: rotateX(-3deg) rotateY(4deg);
    max-width: 100%;
  }

  .terminal-3d.idle {
    animation-name: terminalFloatMobile;
  }

  @keyframes terminalFloatMobile {
    0%, 100% { transform: rotateX(-3deg) rotateY(4deg) translateY(0); }
    50%      { transform: rotateX(-3deg) rotateY(4deg) translateY(-6px); }
  }

  .comparison {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scenario-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-arrow {
    transform: rotate(90deg);
  }

  .vscode-card {
    padding: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .vscode-card-right,
  .vscode-card-right-enhanced {
    min-width: 100%;
    max-width: 100%;
  }

  .tui-panels {
    grid-template-columns: 1fr;
  }

  .tui-row {
    grid-template-columns: 60px 1fr 50px 70px 70px 70px 70px;
    font-size: 11px;
  }

  .tui-col-user { display: none; }

  .tui-row {
    grid-template-columns: 60px 1fr 50px 70px 70px 70px;
  }

  .live-stats {
    justify-content: center;
  }

  .config-card {
    padding: 28px;
    flex-direction: column;
  }

  .config-card-right {
    min-width: 100%;
    max-width: 100%;
  }

  .config-features {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.nav-github-btn) {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 80px 4% 40px;
  }

  .hero-headline {
    font-size: 2.2rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-pill {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .hero-pill-meta {
    font-size: 11px;
  }

  .hero-sub {
    font-size: 15px;
    max-width: 100%;
    padding: 0;
  }

  .hero-platforms {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .terminal-3d {
    max-width: 100%;
    transform: rotateX(-2deg) rotateY(2deg);
  }

  .terminal-3d.idle {
    animation-name: terminalFloatSmall;
  }

  @keyframes terminalFloatSmall {
    0%, 100% { transform: rotateX(-2deg) rotateY(2deg) translateY(0); }
    50%      { transform: rotateX(-2deg) rotateY(2deg) translateY(-4px); }
  }

  .hero-terminal-wrapper {
    padding: 10px 0;
  }

  .hero-stats {
    justify-content: center;
    gap: 10px;
  }

  .hero-stat {
    font-size: 12px;
  }

  .hero-stat-sep {
    height: 12px;
  }

  .terminal-body {
    font-size: 8.5px;
    padding: 10px 12px;
    min-height: 240px;
    max-height: 260px;
  }

  .terminal-header {
    padding: 10px 14px;
  }

  .terminal-dot {
    width: 10px;
    height: 10px;
  }

  .terminal-title {
    font-size: 10px;
  }

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

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

  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0;
  }

  .btn {
    width: auto;
    justify-content: center;
    font-size: 13px;
    padding: 9px 16px;
  }

  .scenario-nav {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .scenario-btn {
    padding: 10px 12px;
  }

  .scenario-tag {
    font-size: 10px;
  }

  .scenario-desc {
    font-size: 11px;
  }

  .comparison {
    gap: 12px;
  }

  .code-block {
    font-size: 10px;
    padding: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .code-ref .code-line {
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .config-card {
    padding: 16px;
  }

  .config-card h3 {
    font-size: 20px;
  }

  .config-card-left p {
    font-size: 14px;
  }

  .config-card-right {
    min-width: 100%;
    max-width: 100%;
  }

  .config-code-body {
    font-size: 10px;
    padding: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vscode-card {
    padding: 16px;
  }

  .vscode-card h3 {
    font-size: 20px;
  }

  .vscode-card-left p {
    font-size: 14px;
  }

  .vscode-cmd {
    font-size: 10px;
    overflow-x: auto;
    word-break: break-all;
  }

  .comparison-table {
    font-size: 10px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 6px 4px;
    font-size: 10px;
  }

  .tab-btn {
    font-size: 10px;
    padding: 8px 10px;
  }

  .tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .install-card {
    padding: 14px;
  }

  .install-cmd {
    gap: 8px;
    padding: 8px 10px;
  }

  .install-cmd code {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
  }

  .install-curl .install-cmd code {
    font-size: 10px;
  }

  .copy-icon {
    min-width: 36px;
    font-size: 10px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-col {
    min-width: 100px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 14px;
    padding: 0;
  }

  .container {
    padding: 0 5%;
  }

  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 500px;
  }

  .platform-badges {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .tui-row {
    grid-template-columns: 50px 1fr 50px 60px 60px;
    padding: 6px 12px;
    font-size: 10px;
  }

  .tui-col-pid,
  .tui-col-user,
  .tui-col-memory { display: none; }

  .tui-body { min-height: 260px; }

  .tui-bottom-bar {
    gap: 8px;
    padding: 8px 12px;
    flex-wrap: wrap;
  }

  .tui-key { font-size: 10px; }

  .tui-top-bar {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .tui-detail-heading { font-size: 14px; }
  .tui-detail-line { font-size: 11px; }
  .tui-detail-info { padding: 6px 16px; }
  .tui-detail-section { padding: 14px 16px 0; }

  .vscode-activity-bar { display: none; }

  .vscode-chrome { min-height: 260px; }

  .live-stats { gap: 6px; }
  .stat-badge { font-size: 11px; padding: 4px 10px; }
}

/* ── FAQ Section ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}

.faq-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--border-hover);
}

.faq-item[open] {
  background: rgba(255,107,53,0.03);
  border-color: rgba(255,107,53,0.15);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  gap: 16px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.faq-toggle {
  font-size: 20px;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  font-weight: 300;
  width: 24px;
  text-align: center;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-answer code {
  font-size: 12px;
  color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
}

.faq-answer a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: #ff8855;
}

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

  .faq-question h3 {
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .faq-answer p {
    font-size: 13px;
  }
}

/* ── SEO Content Section ── */
.seo-content {
  padding: 80px 0 60px;
  border-top: 1px solid var(--border);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.seo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s;
}

.seo-card:hover {
  border-color: var(--border-hover);
}

.seo-card h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.seo-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.seo-card code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--green);
}

.seo-card a {
  font-size: 0.85rem;
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}

.seo-card a:hover {
  text-decoration: underline;
}

.seo-cta {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .seo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .seo-content {
    padding: 50px 0 40px;
  }
}
