/* ===== VARIABLES ===== */
:root {
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-2: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --green: #10b981;
  --green-light: #d1fae5;
  --yellow: #f59e0b;
  --yellow-light: #fef3c7;
  --red: #ef4444;
  --red-light: #fee2e2;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-2: #1e293b;
  --bg-3: #334155;
  --surface: #1e293b;
  --border: #334155;
  --border-2: #475569;
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --primary-light: #1e3a5f;
  --green-light: #064e3b;
  --yellow-light: #78350f;
  --red-light: #7f1d1d;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font); }
input { font-family: var(--font); }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.85);
}
[data-theme="dark"] .header {
  background: rgba(15,23,42,0.85);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.logo-icon { font-size: 22px; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.header-nav a:hover { color: var(--text); text-decoration: none; }
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: 16px;
  color: var(--text-2);
  transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--border-2); }
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline; }

/* ===== HERO ===== */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #2563eb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ===== SCAN BOX ===== */
.scan-box {
  max-width: 600px;
  margin: 0 auto;
}
.scan-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 4px 4px 16px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.scan-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.scan-icon {
  font-size: 18px;
  color: var(--text-3);
  margin-right: 8px;
  flex-shrink: 0;
}
.scan-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--text);
  padding: 12px 8px;
  min-width: 0;
}
.scan-input::placeholder { color: var(--text-3); }
.scan-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.scan-btn:hover { background: var(--primary-hover); }
.scan-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scan-error {
  margin-top: 12px;
  padding: 10px 16px;
  background: var(--red-light);
  color: var(--red);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.hero-examples {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.example-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 12px;
  font-size: 13px;
  color: var(--text-2);
  transition: var(--transition);
}
.example-btn:hover {
  background: var(--bg-3);
  color: var(--text);
}

/* ===== BOOKMARKLET BAR ===== */
.bookmarklet-bar {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bookmarklet-or {
  font-size: 13px;
  color: var(--text-3);
}
.bookmarklet-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white !important;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  cursor: grab;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.bookmarklet-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.bookmarklet-link:active { cursor: grabbing; }
.bookmarklet-hint {
  font-size: 11px;
  color: var(--text-3);
  font-style: italic;
}

/* ===== RESULTS ===== */
.results {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Score Header */
.results-header {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.score-card {
  text-align: center;
  flex-shrink: 0;
}
.score-gauge {
  position: relative;
  width: 140px;
  height: 140px;
}
.score-ring {
  transform: rotate(-90deg);
  width: 140px;
  height: 140px;
}
.score-ring-bg {
  fill: none;
  stroke: var(--bg-3);
  stroke-width: 8;
}
.score-ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1.5s ease, stroke 0.5s ease;
}
.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.score-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scanned URL */
.scanned-url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
}
.scanned-url-label { color: var(--text-3); font-weight: 500; }
.scanned-url-value {
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.rescan-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  font-size: 16px;
  color: var(--text-2);
  transition: var(--transition);
  flex-shrink: 0;
}
.rescan-btn:hover { background: var(--bg-3); }

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
}
.tab {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.tab:hover { color: var(--text-2); }
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Section Title */
.section-title { margin-bottom: 24px; }
.section-title h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-title p {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 4px;
}

/* ===== CATEGORY SCORES ===== */
.category-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.category-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.category-bar {
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.category-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}
.category-score {
  font-size: 20px;
  font-weight: 700;
}

/* ===== ISSUES ===== */
.issues-section, .forms-section { margin-bottom: 32px; }
.issues-section h3, .forms-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.issues-list { display: flex; flex-direction: column; gap: 8px; }
.issue-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.issue-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.issue-icon.error { background: var(--red-light); color: var(--red); }
.issue-icon.warning { background: var(--yellow-light); color: var(--yellow); }
.issue-icon.success { background: var(--green-light); color: var(--green); }
.issue-icon.info { background: var(--primary-light); color: var(--primary); }
.issue-text { flex: 1; }
.issue-text strong { font-weight: 600; }

/* ===== PROXY WARNING ===== */
.proxy-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--yellow-light);
  border: 1px solid var(--yellow);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
[data-theme="dark"] .proxy-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ===== FORMS LIST ===== */
.forms-list { display: flex; flex-direction: column; gap: 12px; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.form-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.form-card-header:hover { background: var(--bg-2); }
.form-name {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
}
.form-badge.ready { background: var(--green-light); color: var(--green); }
.form-badge.not-ready { background: var(--red-light); color: var(--red); }
.form-fields-count {
  font-size: 13px;
  color: var(--text-3);
}
.form-card-body {
  padding: 16px 20px;
  display: none;
}
.form-card.expanded .form-card-body { display: block; }
.form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.form-field-row:last-child { border-bottom: none; }
.form-field-label { font-weight: 500; font-family: var(--mono); font-size: 12px; }
.form-field-type { color: var(--text-3); }
.form-field-webmcp { font-family: var(--mono); font-size: 12px; }

/* ===== CODE SECTIONS ===== */
.code-sections { display: flex; flex-direction: column; gap: 24px; }
.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.code-block-title {
  font-size: 14px;
  font-weight: 600;
}
.code-tabs {
  display: flex;
  gap: 4px;
}
.code-tab {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
}
.code-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.code-copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-2);
  transition: var(--transition);
}
.code-copy-btn:hover { background: var(--bg-3); }
.code-copy-btn.copied {
  background: var(--green-light);
  color: var(--green);
  border-color: var(--green);
}
.code-block-body {
  padding: 16px 20px;
  overflow-x: auto;
}
.code-block-body pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
  color: var(--text);
  margin: 0;
}

/* ===== AGENT VIEW ===== */
.agent-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}
.agent-toggle-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
}
.agent-toggle-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.agent-view { display: none; }
.agent-view.active { display: block; }
.agent-console {
  background: #1a1b26;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.agent-console-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #24283b;
}
.agent-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.agent-dot.red { background: #f7768e; }
.agent-dot.yellow { background: #e0af68; }
.agent-dot.green { background: #9ece6a; }
.agent-console-title {
  font-size: 12px;
  color: #787c99;
  margin-left: 8px;
  font-family: var(--mono);
}
.agent-console-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: #a9b1d6;
  min-height: 200px;
}
.agent-line { margin-bottom: 4px; }
.agent-prompt { color: #7aa2f7; }
.agent-success { color: #9ece6a; }
.agent-warning { color: #e0af68; }
.agent-error { color: #f7768e; }
.agent-dim { color: #565f89; }
.agent-tool {
  background: #24283b;
  border: 1px solid #3b4261;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 8px 0;
}
.agent-tool-name { color: #7dcfff; font-weight: 600; }
.agent-tool-desc { color: #a9b1d6; margin-left: 8px; }
.agent-param { color: #bb9af7; }
.agent-type { color: #565f89; }

/* ===== REPORT ===== */
.report-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-2); }
.report-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 14px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-2);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }

/* ===== HOW SECTION ===== */
.how-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}
.how-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ===== INFO SECTION ===== */
.info-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.info-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.info-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 12px;
}
.info-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.info-links a {
  font-size: 14px;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
}
.footer-sep { margin: 0 8px; opacity: 0.5; }
.footer-right a { color: var(--text-3); }
.footer-right a:hover { color: var(--text); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== HERO CTA ===== */
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-lg:hover { text-decoration: none; }
.btn-block { width: 100%; text-align: center; display: block; text-decoration: none; }
.btn-block:hover { text-decoration: none; }
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-3);
}
.hero-stat strong { color: var(--text); font-weight: 700; }
.hero-stat-sep { width: 1px; height: 16px; background: var(--border); }
.scan-icon-svg { color: var(--text-3); margin-right: 8px; flex-shrink: 0; }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-header p {
  font-size: 16px;
  color: var(--text-2);
  margin-top: 12px;
}

/* ===== PROBLEM / SOLUTION ===== */
.problem-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.problem-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.problem-icon-red { background: var(--red-light); color: var(--red); }
.problem-icon-green { background: var(--green-light); color: var(--green); }
.problem-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.problem-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ===== FEATURES ===== */
.features-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }
.feature-card.featured { border-color: var(--primary); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.feature-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.feature-badge.free { background: var(--green-light); color: var(--green); }
.feature-badge.pro { background: var(--primary-light); color: var(--primary); }
.feature-badge.soon { background: var(--bg-3); color: var(--text-3); }

/* ===== COMPARE ===== */
.compare-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}
.compare-inputs {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.compare-input-wrap {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}
.compare-input-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.compare-vs {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-3);
  padding-bottom: 8px;
}
.compare-results {
  margin-top: 32px;
}
.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.compare-card-domain {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
  word-break: break-all;
}
.compare-card-score {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}
.compare-card-label {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.compare-bar-wrap {
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.compare-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease, background 0.3s;
}
.compare-stats {
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.compare-winner {
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}
@media (max-width: 600px) {
  .compare-cards { grid-template-columns: 1fr; }
}

/* ===== PRICING ===== */
.pricing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}
.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
  margin: 0 auto 48px;
}
.pricing-toggle-btn {
  background: none;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: var(--transition);
}
.pricing-toggle-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.pricing-save {
  font-size: 11px;
  background: var(--green-light);
  color: var(--green);
  padding: 2px 6px;
  border-radius: 100px;
  font-weight: 700;
  margin-left: 4px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}
.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pricing-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.pricing-period { font-size: 14px; color: var(--text-3); margin-bottom: 24px; }
.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li:last-child { border: none; }
.pricing-features li.included::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}
.pricing-features li.excluded {
  color: var(--text-3);
}
.pricing-features li.excluded::before {
  content: '\2014';
  color: var(--text-3);
  font-size: 13px;
}

/* ===== INSTALL ===== */
.install-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}
.install-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.install-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}
.install-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); text-decoration: none; }
.install-card-active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }

/* Browser Detection */
.browser-detected {
  max-width: 600px;
  margin: 0 auto 24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(16,185,129,0.06) 100%);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
}
.browser-detected-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.browser-detected-icon { flex-shrink: 0; }
.browser-detected-text { flex: 1; }
.browser-detected-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.browser-detected-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.install-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 16px;
}

/* ===== FULL SITE SCAN REPORT ===== */
.sitescan-header {
  text-align: center;
  margin-bottom: 24px;
}
.sitescan-header h2 {
  font-size: 24px;
  font-weight: 800;
}
.sitescan-subtitle {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 4px;
}
.sitescan-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.sitescan-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.sitescan-stat-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}
.sitescan-stat-lbl {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.sitescan-pages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.ss-page-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: var(--transition);
}
.ss-page-row:not(.ss-locked):hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.ss-page-score {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.ss-page-info { flex: 1; min-width: 0; }
.ss-page-url {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-page-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
}
.ss-page-meta span { margin-right: 12px; }
.ss-page-arrow {
  font-size: 20px;
  color: var(--text-3);
  font-weight: 300;
}
.ss-page-row:hover .ss-page-arrow { color: var(--primary); }
.ss-page-lock { color: var(--text-3); }
.ss-locked {
  opacity: 0.5;
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

/* Pro Overlay */
.ss-pro-overlay {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(37,99,235,0.04) 0%, rgba(124,58,237,0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.ss-pro-icon { margin-bottom: 12px; color: var(--primary); }
.ss-pro-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.ss-pro-text {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Page Detail */
.ss-page-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.ss-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ss-detail-back {
  background: none;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
}
.ss-detail-back:hover { border-color: var(--primary); color: var(--primary); }
.ss-detail-score {
  font-size: 36px;
  font-weight: 800;
}
.ss-detail-url {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ===== DEMO ===== */
.demo-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 8px; }
  .hero-stat-sep { display: none; }
  .scan-input-wrap { flex-direction: column; padding: 8px; }
  .scan-icon-svg { display: none; }
  .scan-input { width: 100%; padding: 12px; }
  .scan-btn { width: 100%; padding: 14px; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .results-header { flex-direction: column; align-items: stretch; }
  .score-card { align-self: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .sitescan-summary { grid-template-columns: repeat(2, 1fr); }
  .browser-detected-inner { flex-direction: column; text-align: center; }
  .form-field-row { grid-template-columns: 1fr; gap: 4px; }
  .report-actions { flex-direction: column; }
  .info-card { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .tabs { gap: 0; }
  .tab { padding: 10px 14px; font-size: 13px; }
  .header-nav { gap: 8px; }
  .header-nav a { display: none; }
  .header-nav.mobile-open a { display: block; }
  .header-nav.mobile-open {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    box-shadow: var(--shadow-md);
    z-index: 200;
  }
  .hamburger-btn { display: flex !important; }
}
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: 20px;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
}
.hamburger-btn:hover { border-color: var(--border-2); }
