/* ============================================================
   StackIQ — Complete Design System & Stylesheet
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-primary: #060b18;
  --bg-secondary: #080d1e;
  --bg-card: #0d1426;
  --bg-card-hover: #111930;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(0,212,255,0.3);

  --text-primary: #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted: #4a5568;

  --accent-cyan: #00d4ff;
  --accent-purple: #7c3aed;
  --accent-pink: #f472b6;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;

  --gradient-primary: linear-gradient(135deg, #00d4ff, #7c3aed);
  --gradient-glow: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(124,58,237,0.2));

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(0,212,255,0.15);
  --shadow-glow-purple: 0 0 40px rgba(124,58,237,0.15);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.4);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-cyan { background: rgba(0,212,255,0.1); color: var(--accent-cyan); border: 1px solid rgba(0,212,255,0.2); }
.badge-purple { background: rgba(124,58,237,0.1); color: #a78bfa; border: 1px solid rgba(124,58,237,0.2); }
.badge-green { background: rgba(16,185,129,0.1); color: var(--accent-green); border: 1px solid rgba(16,185,129,0.2); }
.badge-orange { background: rgba(245,158,11,0.1); color: var(--accent-orange); border: 1px solid rgba(245,158,11,0.2); }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(6,11,24,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

/* ── Hero Section ──────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.12), transparent);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent);
  top: 20%; right: -50px;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(244,114,182,0.08), transparent);
  bottom: 10%; left: 30%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.hero-eyebrow span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.hero-title-wrapper {
  /* Fixed-height container that never changes size — the h1 lives inside here */
  height: calc(clamp(40px, 5vw, 68px) * 1.05 * 3.4);
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.typewriter-line {
  display: block;
  white-space: nowrap;
}

/* Word-swap: all words stacked absolutely inside a fixed-width inline-block.
   Only opacity/transform changes — zero layout shift, ever. */
.word-swap-container {
  display: inline-block;
  position: relative;
  /* Width of the longest word so the line never resizes */
  min-width: 320px;
  vertical-align: bottom;
}

.swap-word {
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  pointer-events: none;
}

.swap-word.active {
  opacity: 1;
  transform: translateY(0);
  position: relative; /* active word holds the line height */
}

/* Remove the old cursor style */
.typing-cursor::after {
  content: '';
  animation: none;
  margin-left: 2px;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  min-height: 5.1em; /* locks height for 3 lines — prevents layout shift from typewriter */
  display: flex;
  align-items: flex-start;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat-number {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-mono);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ── Robot Visual ──────────────────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.robot-container {
  position: relative;
  width: 320px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, rgba(124,58,237,0.1) 50%, transparent 70%);
  border-radius: 50%;
  animation: robotGlow 3s ease-in-out infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes robotGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.15); }
}

.robot-svg {
  width: 240px;
  height: auto;
  animation: robotFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0,212,255,0.2));
  position: relative;
  z-index: 2;
}

@keyframes robotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Orbit rings */
.robot-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 320px;
  height: 320px;
  animation: orbitSpin 12s linear infinite;
}

.orbit-2 {
  width: 420px;
  height: 420px;
  border-color: rgba(124,58,237,0.1);
  animation: orbitSpin 20s linear infinite reverse;
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.orbit-dot-2 {
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

/* Data streams */
.data-stream {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-cyan), transparent);
  border-radius: 2px;
  animation: streamFall 2s ease-in-out infinite;
  opacity: 0;
}

@keyframes streamFall {
  0% { opacity: 0; transform: translateY(-20px); }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(20px); }
}

/* Tool Badges */
.tool-badge {
  position: absolute;
  background: rgba(13,20,38,0.9);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  animation: badgeFloat 5s ease-in-out infinite;
  z-index: 3;
}

.tool-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tool-badge-1 { top: 5%; left: -20%; animation-delay: 0s; }
.tool-badge-2 { top: 25%; right: -25%; animation-delay: -1s; }
.tool-badge-3 { top: 55%; left: -30%; animation-delay: -2s; }
.tool-badge-4 { bottom: 25%; right: -20%; animation-delay: -3s; }
.tool-badge-5 { bottom: 5%; left: -15%; animation-delay: -4s; }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Section Styles ────────────────────────────────────────── */
section {
  padding: 100px 0;
}

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

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Category Cards ────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.category-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0,212,255,0.25);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.category-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.category-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.category-arrow {
  color: var(--accent-cyan);
  font-size: 16px;
  transition: var(--transition-fast);
}

.category-card:hover .category-arrow {
  transform: translateX(4px);
}

/* ── Article Cards ─────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.article-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.article-card:hover {
  border-color: rgba(0,212,255,0.25);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.article-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-body {
  padding: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.article-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.article-read-time {
  font-size: 11px;
  color: var(--text-muted);
}

.article-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.article-author-avatar {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.read-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  transition: var(--transition-fast);
}

.article-card:hover .read-more {
  letter-spacing: 0.03em;
}

/* ── Compare Table ─────────────────────────────────────────── */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th {
  background: rgba(0,212,255,0.05);
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

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

.compare-table tr:hover td {
  background: rgba(0,212,255,0.02);
}

.tool-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Email Form ────────────────────────────────────────────── */
.email-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.email-input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition);
}

.email-input::placeholder { color: var(--text-muted); }
.email-input:focus {
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.05);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-btn:hover {
  border-color: rgba(0,212,255,0.3);
  color: var(--accent-cyan);
  background: rgba(0,212,255,0.05);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-disclaimer a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

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

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

/* ── Article Page ──────────────────────────────────────────── */
.article-page {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.article-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.article-intro {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 48px 0 20px;
  padding-top: 8px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 16px;
}

.article-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
}

.article-content ul li, .article-content ol li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.article-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 12px;
  top: 3px;
}

/* ── Tool Review Card ──────────────────────────────────────── */
.tool-review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 24px 0 32px;
  transition: var(--transition);
}

.tool-review-card:hover {
  border-color: rgba(0,212,255,0.2);
  box-shadow: var(--shadow-glow);
}

.tool-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.tool-review-info h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.tool-review-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.tool-score {
  text-align: center;
  flex-shrink: 0;
}

.tool-score-number {
  font-size: 36px;
  font-weight: 900;
  font-family: var(--font-mono);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.tool-score-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.tool-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.pros h4, .cons h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.pros h4 { color: var(--accent-green); }
.cons h4 { color: #f87171; }

.pros ul li, .cons ul li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

.pros ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-size: 11px;
  font-weight: 700;
}

.cons ul li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
}

.tool-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.commission-info {
  font-size: 14px;
  color: var(--text-muted);
}

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

/* ── Comparison Table (Article) ────────────────────────────── */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 24px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th {
  background: rgba(0,212,255,0.05);
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}

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

.comparison-table .highlight-row td {
  background: rgba(0,212,255,0.03);
}

.comparison-table .check { color: var(--accent-green); font-weight: 700; }
.comparison-table .cross { color: #f87171; }

/* ── CTA Glow Animation ────────────────────────────────────── */
@keyframes ctaGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-eyebrow { justify-content: center; }
  .hero-visual { min-height: 400px; }
  .tool-badge-1, .tool-badge-3, .tool-badge-5 { left: -10%; }
  .tool-badge-2, .tool-badge-4 { right: -10%; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .categories-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tool-review-header { flex-direction: column; }
  .tool-pros-cons { grid-template-columns: 1fr; }
  .tool-badge { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .compare-table-wrap { font-size: 13px; }
  .email-form { flex-direction: column; }
  .email-input { min-width: unset; width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .section-title { font-size: 26px; }
  .article-header h1 { font-size: 26px; }
  section { padding: 60px 0; }
}

/* ══════════════════════════════════════════════════════════════
   TABBED COMPARISON HUB
══════════════════════════════════════════════════════════════ */

/* Tab Navigation Bar */
.hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.hub-tab {
  flex: 0 0 auto;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.hub-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}

.hub-tab.active {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.15));
  border-color: rgba(0,212,255,0.4);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0,212,255,0.12);
}

/* Panel Container */
.hub-panels {
  position: relative;
  min-height: 420px;
}

/* Individual Panel */
.hub-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hub-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hub-panel.animating-in {
  animation: panelIn 0.35s ease forwards;
}

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

/* Panel Header */
.hub-panel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
}

.hub-panel-icon {
  font-size: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.4));
}

.hub-panel-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.hub-panel-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.hub-full-review {
  margin-left: auto;
  flex-shrink: 0;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 8px;
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hub-full-review:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0,212,255,0.15);
}

/* Table Wrapper */
.hub-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0 0 16px 16px;
  background: var(--bg-card);
}

/* Hub Table */
.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.hub-table thead tr {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.hub-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.hub-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

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

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

.hub-table td {
  padding: 16px;
  color: var(--text-secondary);
  vertical-align: middle;
}

/* Featured Row */
.featured-row {
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(124,58,237,0.04)) !important;
  border-left: 3px solid var(--accent-cyan) !important;
}

/* Tool Name Cell */
.ht-name {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.ht-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ht-name strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
}

.ht-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 6px;
}

/* IQ Score Pill */
.iq-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.iq-score.top {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.15));
  border-color: rgba(0,212,255,0.4);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0,212,255,0.15);
}

/* Free Tier Indicators */
.free-yes {
  color: var(--accent-green);
  font-weight: 600;
  font-size: 13px;
}

.free-no {
  color: var(--text-muted);
  font-size: 13px;
}

/* Ghost Button variant */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: rgba(0,212,255,0.4);
  color: var(--accent-cyan);
  background: rgba(0,212,255,0.05);
}

/* Responsive */
@media (max-width: 768px) {
  .hub-tabs {
    gap: 6px;
  }
  .hub-tab {
    padding: 8px 12px;
    font-size: 12px;
  }
  .hub-panel-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .hub-full-review {
    margin-left: 0;
  }
  .hub-table th:nth-child(3),
  .hub-table td:nth-child(3) {
    display: none;
  }
}


/* ══════════════════════════════════════════════════════════════
   BATTLE ARENA — AI Tool Showdown Background
══════════════════════════════════════════════════════════════ */

/* Hero centered layout (replaces two-column with robot) */
.hero-content.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding-top: 0;
  position: relative;
  z-index: 10;
}

.hero-text.hero-text-center {
  max-width: 780px;
  text-align: center;
}

.hero-text.hero-text-center .hero-eyebrow {
  justify-content: center;
}

.hero-text.hero-text-center .hero-actions {
  justify-content: center;
}

.hero-text.hero-text-center .hero-stats {
  justify-content: center;
}

/* Battle Arena Container */
.battle-arena {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

#battle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.battle-stage {
  position: absolute;
  bottom: 8%;
  left: 0;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  box-sizing: border-box;
}

/* Fighter Cards */
.fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fighter.visible { opacity: 1; }

.fighter-icon {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: rgba(13, 20, 38, 0.9);
  border: 2px solid rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fighter-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent 0deg, rgba(0,212,255,0.15) 90deg, transparent 180deg);
  animation: fighter-spin 3s linear infinite;
}

@keyframes fighter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fighter-right .fighter-icon {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3), inset 0 0 20px rgba(124, 58, 237, 0.05);
}

.fighter-right .fighter-icon::before {
  background: conic-gradient(transparent 0deg, rgba(124,58,237,0.15) 90deg, transparent 180deg);
}

.fighter-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  max-width: 110px;
}

.fighter-score {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fighter-right .fighter-score {
  background: linear-gradient(135deg, #7c3aed, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Battle Center */
.battle-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.vs-text {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(0,212,255,0.5));
}

/* Explosion */
.explosion {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffdd00 20%, #ff6600 45%, #ff0000 65%, transparent 80%);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

.explosion.boom {
  animation: explode 0.6s ease-out forwards;
}

@keyframes explode {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  40%  { transform: translate(-50%,-50%) scale(1.4); opacity: 1; }
  70%  { transform: translate(-50%,-50%) scale(1.8); opacity: 0.6; }
  100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}

/* Shockwave ring */
.shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(255, 200, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 19;
}

.shockwave.ring {
  animation: shockwave-expand 0.8s ease-out forwards;
}

@keyframes shockwave-expand {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(4); opacity: 0; }
}

/* Winner Reveal */
.winner-reveal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  text-align: center;
}

.winner-reveal.show {
  animation: winner-appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes winner-appear {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 0; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}

.winner-crown {
  font-size: 28px;
  animation: crown-bounce 0.5s ease infinite alternate;
}

@keyframes crown-bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}

.winner-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: rgba(13, 20, 38, 0.95);
  border: 2px solid #ffd700;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.2);
}

.winner-label {
  font-size: 12px;
  font-weight: 800;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.winner-score-badge {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* Fighter slide animations */
.fighter-left.slide-in {
  animation: slide-from-left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fighter-right.slide-in {
  animation: slide-from-right 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slide-from-left {
  from { transform: translateX(-120px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes slide-from-right {
  from { transform: translateX(120px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.fighter-left.charge {
  animation: charge-right 0.5s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.fighter-right.charge {
  animation: charge-left 0.5s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes charge-right {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(50vw - 15% - 100px)); }
}

@keyframes charge-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50vw + 15% + 100px)); }
}

.fighter-left.retreat, .fighter-right.retreat {
  animation: retreat 0.4s ease-out forwards;
}

@keyframes retreat {
  0%   { opacity: 1; }
  100% { opacity: 0; transform: scale(0.5); }
}

/* Arena ground line */
.battle-stage::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3) 20%, rgba(124,58,237,0.3) 50%, rgba(0,212,255,0.3) 80%, transparent);
}

/* Spark particles */
.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 22;
}

/* Battle label */
.battle-label {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,212,255,0.5);
  white-space: nowrap;
}

/* Adjust hero section height for centered layout */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 100px;
  padding-bottom: 280px; /* space for battle arena at bottom */
  position: relative;
}

#hero .container {
  position: relative;
  z-index: 10;
}
