/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Dark theme (default) */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1420;
  --bg-card: #111827;
  --bg-elevated: #1a2030;
  --border: #1e2740;
  --border-hover: #2d3a5c;
  --text-primary: #e8ecf3;
  --text-secondary: #8a93a8;
  --text-muted: #5a6478;
  
  /* Neon accents */
  --neon-cyan: #00f0ff;
  --neon-green: #39ff7c;
  --neon-pink: #ff2e88;
  --neon-purple: #a855f7;
  --neon-yellow: #fbbf24;
  --neon-orange: #ff6b35;
  
  /* Functional */
  --accent: var(--neon-cyan);
  --accent-glow: rgba(0, 240, 255, 0.15);
  --success: var(--neon-green);
  --warning: var(--neon-yellow);
  --danger: var(--neon-pink);
  
  --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Space Grotesk', sans-serif;
}

[data-theme="light"] {
  --bg-primary: #fafbfc;
  --bg-secondary: #f1f3f7;
  --bg-card: #ffffff;
  --bg-elevated: #f7f8fb;
  --border: #e4e8ef;
  --border-hover: #c8d0dc;
  --text-primary: #0f1420;
  --text-secondary: #4a5468;
  --text-muted: #8a93a8;
  
  --neon-cyan: #0891b2;
  --neon-green: #059669;
  --neon-pink: #db2777;
  --neon-purple: #7c3aed;
  --neon-yellow: #d97706;
  --neon-orange: #ea580c;
  
  --accent: var(--neon-cyan);
  --accent-glow: rgba(8, 145, 178, 0.1);
  --shadow-glow: 0 0 20px rgba(8, 145, 178, 0.08);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* Animated background grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.06), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(57, 255, 124, 0.04), transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: bgFloat 20s ease-in-out infinite;
}

[data-theme="light"] body::after {
  opacity: 0.5;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.3s;
}

[data-theme="light"] .header {
  background: rgba(250, 251, 252, 0.85);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #000;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.4), transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-title { color: var(--text-primary); }
.logo-sub {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.05em;
}

.search-wrap {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-shortcut {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-primary);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ TABS ============ */
.tabs-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.tabs {
  display: flex;
  gap: 0;
  margin-top: 2rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

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

.tab.active {
  color: var(--accent);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.tab-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.tab-num {
  font-size: 0.7rem;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.tab.active .tab-num {
  background: var(--accent-glow);
  color: var(--accent);
}

/* ============ MAIN CONTENT ============ */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active { display: block; }

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

/* ============ HERO (HOME TAB) ============ */
.hero {
  text-align: center;
  padding: 3rem 1rem 4rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-title .grad {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.3));
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 3rem auto 0;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.stat:hover::before { opacity: 1; }

.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

/* ============ SECTION HEADERS ============ */
.section-header {
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 700px;
}

/* ============ CARDS GRID ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-color, var(--accent)), transparent);
}

.card:hover {
  border-color: var(--card-color, var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--card-color-glow, var(--accent-glow));
  border: 1px solid var(--card-color, var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--card-color, var(--accent));
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

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

/* ============ EXAMPLES ============ */
.example {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

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

.example-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.example.open .example-header {
  border-bottom-color: var(--border);
}

.example-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.example-num {
  width: 32px;
  height: 32px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.example-title {
  font-size: 1rem;
  font-weight: 600;
}

.example-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.example-toggle {
  color: var(--text-muted);
  transition: transform 0.3s;
}

.example.open .example-toggle { transform: rotate(180deg); }

.example-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.example.open .example-body { max-height: 5000px; }

.example-content {
  padding: 1.5rem;
}

.example-section {
  margin-bottom: 1.25rem;
}

.example-section:last-child { margin-bottom: 0; }

.example-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.example-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.example-text strong { color: var(--text-primary); }

/* ============ CODE BLOCKS ============ */
.code-block {
  background: #060912;
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  margin: 1rem 0;
  overflow: hidden;
}

[data-theme="light"] .code-block {
  background: #1a1f2e;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  font-weight: 600;
}

.code-dots { display: flex; gap: 5px; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; background: #353d52; }
.code-dot:nth-child(1) { background: #ff5f56; }
.code-dot:nth-child(2) { background: #ffbd2e; }
.code-dot:nth-child(3) { background: #27c93f; }

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.copy-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.copy-btn.copied {
  border-color: var(--neon-green);
  color: var(--neon-green);
  background: rgba(57, 255, 124, 0.05);
}

.code-block pre {
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #d4d8e0;
}

.code-block code { font-family: inherit; }

/* Syntax highlighting */
.tk-comment { color: #5a6478; font-style: italic; }
.tk-string { color: var(--neon-green); }
.tk-keyword { color: var(--neon-pink); font-weight: 500; }
.tk-fn { color: var(--neon-cyan); }
.tk-num { color: var(--neon-yellow); }
.tk-prop { color: var(--neon-purple); }

/* ============ DECISION MATRIX ============ */
.matrix-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.matrix-table thead th {
  background: var(--bg-elevated);
  padding: 1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.matrix-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

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

.matrix-table tr:hover td { background: var(--bg-elevated); }

.matrix-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.check { color: var(--neon-green); font-weight: 700; }
.cross { color: var(--text-muted); }
.best {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-green);
  background: rgba(57, 255, 124, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============ CHECKLIST ============ */
.checklist-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.checklist-title {
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checklist-level {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.progress-bar {
  width: 120px;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  border-radius: 100px;
  transition: width 0.4s;
  width: 0;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.checklist-items { display: flex; flex-direction: column; gap: 0.5rem; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.check-item:hover { border-color: var(--border-hover); }

.check-item.done {
  border-color: var(--neon-green);
  background: rgba(57, 255, 124, 0.04);
}

.check-item.done .check-text {
  color: var(--text-muted);
  text-decoration: line-through;
}

.check-box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-hover);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s;
}

.check-item.done .check-box {
  background: var(--neon-green);
  border-color: var(--neon-green);
}

.check-icon {
  opacity: 0;
  color: #000;
  transition: opacity 0.2s;
}

.check-item.done .check-icon { opacity: 1; }

.check-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ============ INTEGRATION SECTION ============ */
.flow-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  margin: 2rem 0;
  overflow-x: auto;
}

.flow-steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 800px;
  justify-content: center;
}

.flow-node {
  background: var(--bg-elevated);
  border: 1px solid var(--node-color, var(--accent));
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 130px;
  position: relative;
  transition: all 0.3s;
}

.flow-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--node-color-glow, var(--accent-glow));
}

.flow-node-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--node-color, var(--accent));
}

.flow-node-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.flow-node-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.flow-arrow {
  color: var(--accent);
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}

/* ============ ROI CALCULATOR ============ */
.roi-section {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(168, 85, 247, 0.08));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  margin: 2rem 0;
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.roi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.roi-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.roi-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neon-green);
  margin-bottom: 0.25rem;
}

.roi-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.roi-total {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
}

.roi-total-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.roi-total-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ NO RESULTS ============ */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  display: none;
}

.no-results.show { display: block; }

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* ============ HIDDEN FOR SEARCH ============ */
.hidden { display: none !important; }

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 3rem 2rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 1rem;
  }
  
  .search-wrap { order: 3; flex: 1 1 100%; }
  .tabs-container, .main { padding-left: 1rem; padding-right: 1rem; }
  .tab { padding: 0.875rem 1rem; font-size: 0.8rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .matrix-table { font-size: 0.75rem; }
  .matrix-table th, .matrix-table td { padding: 0.5rem; }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* Selection */
::selection { background: var(--accent); color: var(--bg-primary); }

/* ============ SHARE SECTION ============ */
.share-section {
  max-width: 1400px;
  margin: 4rem auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.share-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.share-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
}

.share-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.share-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.share-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.share-btn-whatsapp:hover { color: #25D366; border-color: #25D366; box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2); }
.share-btn-twitter:hover { color: var(--text-primary); border-color: var(--text-primary); }
.share-btn-instagram:hover { color: #E1306C; border-color: #E1306C; box-shadow: 0 4px 16px rgba(225, 48, 108, 0.25); }

.share-btn.copied {
  color: var(--neon-green);
  border-color: var(--neon-green);
}

.share-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  font-style: italic;
}

/* ============ FOOTER IMPROVEMENTS ============ */
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-meta kbd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

.footer-disclaimer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ============ ACCESSIBILITY ============ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  z-index: 1000;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}

@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;
  }
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .share-section { padding: 0 1rem; }
  .share-inner { padding: 2rem 1.25rem; }
  .share-buttons { flex-direction: column; align-items: stretch; }
  .share-btn { justify-content: center; }
}
