/* ============================================
   Searchlab — Design System v2
   Tech-forward, animated, depth-rich
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-dark: #0a0e22;
  --bg-dark-2: #0f1430;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6e8ef;
  --line-strong: #d6dae4;

  --brand-1: #6366f1;
  --brand-2: #8b5cf6;
  --brand-3: #06b6d4;
  --brand-4: #ec4899;
  --brand-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --brand-grad-warm: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #6366f1 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(99,102,241,.10), rgba(6,182,212,.10));

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 1px rgba(15,23,42,.04);
  --shadow-md: 0 4px 14px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 24px 48px -16px rgba(99,102,241,.22), 0 8px 16px rgba(15,23,42,.06);
  --shadow-glow: 0 0 0 1px rgba(99,102,241,.18), 0 30px 80px -20px rgba(99,102,241,.55);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-1); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-2); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-2); }
::selection { background: rgba(99,102,241,.25); }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 40px 0; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--brand-grad);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 8px 22px -6px rgba(99,102,241,.6);
  animation: gradShift 6s ease infinite;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(99,102,241,.7);
  color: #fff;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand-1); color: var(--brand-1); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(15,23,42,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 32px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand img { width: 36px; height: 36px; transition: transform .4s cubic-bezier(.4,2,.6,1); }
.brand:hover { color: var(--ink); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand-name { display: inline-flex; align-items: baseline; gap: 6px; line-height: 1; }
.brand-suffix {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  position: relative;
  top: -2px;
}
.footer-brand .brand-suffix {
  background: rgba(255,255,255,.1);
  color: #c4b5fd;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0; flex: 1;
}
.nav-links a, .menu-trigger {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14.5px;
  padding: 9px 14px;
  border-radius: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover, .menu-trigger:hover { color: var(--ink); background: var(--bg-soft); }
.menu-trigger svg { width: 14px; height: 14px; transition: transform .25s ease; }
.has-menu:hover .menu-trigger svg { transform: rotate(180deg); }
.nav-cta { margin-left: auto; }

/* Mega-menu */
.has-menu { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: auto;
  width: min(640px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
}
/* Invisible bridge that keeps hover continuous across the gap */
.mega::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}
.has-menu:hover .mega, .has-menu.open .mega {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}
.mega.mega-sm { width: min(380px, calc(100vw - 32px)); grid-template-columns: 1fr; }
/* Right-anchored variant for menu items near the right of the nav */
.mega.mega-right { left: auto; right: 0; }
.mega a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: 12px;
  color: var(--ink);
  transition: background .15s ease, transform .15s ease;
}
.mega a:hover { background: var(--bg-soft); color: var(--ink); transform: translateX(2px); }
.mega .ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.mega a:hover .ico { transform: rotate(-6deg) scale(1.1); }
.mega .ico svg { width: 18px; height: 18px; }
.mega .t { font-weight: 600; font-size: 14px; line-height: 1.3; margin-bottom: 2px; display: block; }
.mega .d { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: block; }

/* Mobile */
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 24px 20px;
  background: #fff;
  max-height: 75vh;
  overflow-y: auto;
}
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .group-label {
  display: block;
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); font-weight: 700;
  padding: 16px 4px 6px;
}

/* === Hero === */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(99,102,241,.22), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(6,182,212,.18), transparent 60%),
              radial-gradient(800px 400px at 10% 80%, rgba(236,72,153,.15), transparent 60%),
              linear-gradient(180deg, #0a0e22 0%, #0f1430 100%);
  color: #fff;
  overflow: hidden;
  padding: 130px 0 110px;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
  animation: gridDrift 22s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 56px 56px; }
}
/* Floating gradient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 380px; height: 380px; background: #6366f1; top: -80px; left: -80px; animation: float1 14s ease-in-out infinite; }
.orb-2 { width: 320px; height: 320px; background: #06b6d4; bottom: -100px; right: -60px; animation: float2 18s ease-in-out infinite; }
.orb-3 { width: 240px; height: 240px; background: #ec4899; top: 30%; right: 20%; opacity: .35; animation: float3 16s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.1); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,-30px) scale(1.15); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-40px) scale(.9); } }

.hero-inner { position: relative; text-align: center; z-index: 2; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}
.hero .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,.2); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,.05); }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 900px;
  margin: 0 auto 18px;
  line-height: 1.05;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #a5b4fc, #67e8f9 50%, #f0abfc);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}
.hero p.lead {
  color: #cbd5e1;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* Hero search */
.hero-search {
  max-width: 640px;
  margin: 0 auto 36px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(14px);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.hero-search:focus-within {
  border-color: rgba(165,180,252,.5);
  box-shadow: 0 0 0 4px rgba(99,102,241,.15);
}
.hero-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 15.5px;
  padding: 12px 4px;
  font-family: inherit;
}
.hero-search input::placeholder { color: rgba(203,213,225,.7); }
.hero-search button {
  border: 0;
  background: var(--brand-grad);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  transition: transform .2s ease;
}
.hero-search button:hover { transform: translateY(-1px); }

.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 22px; color: #94a3b8; font-size: 13.5px;
  margin-bottom: 60px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 14px; height: 14px; color: #67e8f9; }

/* Hero floating preview cards (3D depth) */
.hero-mockup {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1400px;
}
.mockup-stage {
  transform: rotateX(14deg) rotateZ(-1deg);
  transform-style: preserve-3d;
  transition: transform .5s ease;
}
.mockup-window {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-xl);
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 50px 120px -30px rgba(99,102,241,.45), 0 30px 60px -20px rgba(0,0,0,.4);
  position: relative;
}
.mockup-bar {
  display: flex; gap: 6px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px;
}
.mockup-bar i {
  width: 11px; height: 11px; border-radius: 50%; display: inline-block;
}
.mockup-bar i:nth-child(1) { background: #ef4444; }
.mockup-bar i:nth-child(2) { background: #f59e0b; }
.mockup-bar i:nth-child(3) { background: #10b981; }
.mockup-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
}
.mockup-tile {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px;
}
.mockup-tile .ml { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.mockup-tile .mv { font-size: 1.5rem; font-weight: 800; color: #fff; }
.mockup-tile.score .mv { background: linear-gradient(90deg,#67e8f9,#a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mockup-bars { display: flex; gap: 4px; align-items: flex-end; height: 38px; margin-top: 8px; }
.mockup-bars span { flex: 1; background: var(--brand-grad); border-radius: 3px; opacity: .8; }
.mockup-bars span:nth-child(1) { height: 30%; animation: barPulse 3s ease-in-out infinite; }
.mockup-bars span:nth-child(2) { height: 60%; animation: barPulse 3s ease-in-out .3s infinite; }
.mockup-bars span:nth-child(3) { height: 80%; animation: barPulse 3s ease-in-out .6s infinite; }
.mockup-bars span:nth-child(4) { height: 50%; animation: barPulse 3s ease-in-out .9s infinite; }
.mockup-bars span:nth-child(5) { height: 95%; animation: barPulse 3s ease-in-out 1.2s infinite; }
@keyframes barPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* Floating mini cards beside mockup */
.float-card {
  position: absolute;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.5);
  font-size: 13.5px; font-weight: 600;
  z-index: 2;
}
.float-card .ic {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
}
.float-card.fc-1 { top: -16px; left: -28px; animation: floatA 6s ease-in-out infinite; }
.float-card.fc-1 .ic { background: var(--success); }
.float-card.fc-2 { bottom: -20px; right: -24px; animation: floatB 7s ease-in-out infinite; }
.float-card.fc-2 .ic { background: var(--brand-grad); }
.float-card svg { width: 16px; height: 16px; }
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(14px); } }

/* === Stats strip === */
.stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat .num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
  display: block;
  line-height: 1;
}
.stat .label { font-size: 13.5px; color: var(--muted); margin-top: 6px; display: block; }

/* === Section heading === */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .tag {
  display: inline-block;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-1);
  font-weight: 700;
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--brand-grad-soft);
  border-radius: var(--radius-pill);
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* === Tool grid === */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  perspective: 1200px;
}
.tool-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .25s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.tool-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--brand-grad);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 0;
}
.tool-card::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--brand-grad);
  opacity: 0;
  filter: blur(20px);
  z-index: -1;
  transition: opacity .35s ease;
}
.tool-card > * { position: relative; z-index: 1; }
.tool-card:hover {
  border-color: transparent;
  box-shadow: 0 30px 60px -20px rgba(99,102,241,.45);
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover::after { opacity: .35; }
.tool-card:hover h3,
.tool-card:hover p,
.tool-card:hover .arrow { color: #fff; }
.tool-card .ico {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.tool-card .ico svg { width: 26px; height: 26px; transition: transform .4s ease; }
.tool-card:hover .ico {
  background: rgba(255,255,255,.18);
  color: #fff;
  transform: scale(1.06) rotate(-4deg);
}
.tool-card:hover .ico svg { transform: rotate(8deg); }
.tool-card h3 { font-size: 1.05rem; margin: 0; transition: color .25s ease; }
.tool-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; transition: color .25s ease; }
.tool-card .arrow {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--brand-1);
  transition: color .25s ease, transform .25s ease;
}
.tool-card:hover .arrow { transform: translateX(6px); }
.tool-card .badge-soon {
  position: absolute; top: 16px; right: 16px;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--radius-pill);
  background: #fef3c7; color: #92400e;
  letter-spacing: .04em; text-transform: uppercase;
  z-index: 2;
  transition: background .25s ease, color .25s ease;
}
.tool-card:hover .badge-soon { background: rgba(255,255,255,.22); color: #fff; }
.tool-card .badge-live {
  position: absolute; top: 16px; right: 16px;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px 3px 18px; border-radius: var(--radius-pill);
  background: rgba(16,185,129,.12); color: var(--success);
  letter-spacing: .04em; text-transform: uppercase;
  z-index: 2;
}
.tool-card .badge-live::before {
  content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}
.tool-card:hover .badge-live { background: rgba(255,255,255,.22); color: #fff; }
.tool-card:hover .badge-live::before { background: #fff; }

/* === Feature cards (3D tilt) === */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1200px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  background: var(--brand-grad);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0; transition: opacity .3s ease;
}
.feature:hover { box-shadow: var(--shadow-lg); }
.feature:hover::before { opacity: 1; }
.feature .ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--brand-grad);
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px -8px rgba(99,102,241,.5);
  transition: transform .3s ease;
}
.feature:hover .ico { transform: rotate(-8deg) scale(1.05); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* === Comparison table === */
.compare {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td {
  padding: 18px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.compare th { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-soft); }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.compare .col-us { background: linear-gradient(180deg, rgba(99,102,241,.06), rgba(6,182,212,.04)); position: relative; }
.compare .col-us::before {
  content: 'BEST VALUE';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  padding: 5px 12px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--success); font-weight: 700; }
.compare .no { color: var(--danger); }
.compare .price { font-size: 1.4rem; font-weight: 800; }
.compare .price.free { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* === Live demo preview === */
.demo-preview {
  background: linear-gradient(180deg, #0a0e22 0%, #0f1430 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.demo-preview::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
}
.demo-preview > * { position: relative; }
.demo-preview h3 { color: #fff; font-size: 1.6rem; }
.demo-preview p { color: #cbd5e1; }
.demo-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(14px);
  margin-top: 24px;
}
.demo-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.demo-gauge {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: conic-gradient(#10b981 87%, rgba(255,255,255,.1) 0);
  display: grid; place-items: center;
  position: relative; flex-shrink: 0;
}
.demo-gauge::before {
  content: '';
  position: absolute; inset: 10px;
  background: #0a0e22; border-radius: 50%;
}
.demo-gauge .num { position: relative; color: #fff; font-size: 2rem; font-weight: 800; }
.demo-gauge .num small { color: #94a3b8; font-size: .8rem; font-weight: 600; }
.demo-checks { flex: 1; min-width: 240px; }
.demo-check { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: #e2e8f0; font-size: 14px; }
.demo-check .dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.demo-check .dot.pass { background: var(--success); }
.demo-check .dot.warn { background: var(--warning); }
.demo-check .dot svg { width: 10px; height: 10px; color: #fff; }

/* === Use cases === */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.use-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: #fff;
  overflow: hidden;
  min-height: 240px;
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.use-card.uc-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.use-card.uc-2 { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.use-card.uc-3 { background: linear-gradient(135deg, #ec4899, #f97316); }
.use-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.3); }
.use-card .uc-ico {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.18);
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.use-card .uc-ico svg { width: 26px; height: 26px; color: #fff; }
.use-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.use-card p { color: rgba(255,255,255,.85); font-size: 14.5px; margin-bottom: 18px; }
.use-card .uc-link {
  margin-top: auto; color: #fff; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.use-card .uc-link::after { content: '→'; transition: transform .25s ease; }
.use-card:hover .uc-link::after { transform: translateX(4px); }

/* === Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 16%; right: 16%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-1), var(--brand-3), transparent);
  z-index: 0;
}
.step { text-align: center; padding: 8px; position: relative; z-index: 1; }
.step .num {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 12px 32px -10px rgba(99,102,241,.5);
  position: relative;
}
.step .num::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(99,102,241,.3);
  animation: rotateRing 12s linear infinite;
}
@keyframes rotateRing { to { transform: rotate(360deg); } }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 14.5px; max-width: 280px; margin: 0 auto; }

/* === Testimonials === */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial .stars { color: #f59e0b; margin-bottom: 14px; font-size: 14px; letter-spacing: 2px; }
.testimonial blockquote { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--ink); }
.testimonial blockquote::before { content: '"'; font-size: 3rem; color: var(--brand-1); line-height: 0; position: absolute; top: 38px; left: 18px; opacity: .15; font-family: Georgia, serif; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 14px;
}
.testimonial .name { font-weight: 600; font-size: 14px; }
.testimonial .role { font-size: 12.5px; color: var(--muted); }

/* === FAQ === */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq details[open] { border-color: var(--brand-1); box-shadow: 0 4px 20px -8px rgba(99,102,241,.3); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 24px; color: var(--brand-1);
  font-weight: 300; transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 20px; color: var(--ink-2); font-size: 14.5px; }

/* === Newsletter === */
.newsletter {
  background: linear-gradient(135deg, #0a0e22 0%, #1a1745 100%);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 30% 100%, rgba(99,102,241,.4), transparent 60%),
              radial-gradient(500px 200px at 70% 0%, rgba(6,182,212,.3), transparent 60%);
}
.newsletter > * { position: relative; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 28px; }
.newsletter form {
  max-width: 480px; margin: 0 auto;
  display: flex; gap: 8px; padding: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
}
.newsletter input {
  flex: 1;
  background: transparent; border: 0; outline: 0;
  color: #fff; padding: 12px 18px; font-family: inherit; font-size: 14.5px;
}
.newsletter input::placeholder { color: rgba(255,255,255,.55); }
.newsletter button {
  background: var(--brand-grad); color: #fff; border: 0;
  padding: 12px 24px; border-radius: var(--radius-pill);
  font-weight: 600; cursor: pointer;
}

/* === CTA Banner === */
.cta-banner {
  background: var(--brand-grad);
  background-size: 200% 200%;
  animation: gradShift 10s ease infinite;
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 20% 0%, rgba(255,255,255,.18), transparent 60%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 28px; }
.cta-banner .btn-secondary { background: #fff; color: var(--brand-1); border-color: transparent; }
.cta-banner .btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(0,0,0,.2); }

/* === Footer === */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-1) 30%, var(--brand-3) 70%, transparent);
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-about { color: #94a3b8; font-size: 14px; max-width: 320px; line-height: 1.6; margin-bottom: 18px; }
.footer-col h4 {
  color: #fff; font-size: 13px; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 18px; font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; transition: color .15s ease, padding .2s ease; }
.footer-col a:hover { padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  color: #64748b; font-size: 13.5px;
  flex-wrap: wrap; gap: 14px;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, background .25s ease;
}
.footer-socials a:hover { background: var(--brand-grad); transform: translateY(-2px) rotate(-4deg); border-color: transparent; }
.footer-socials a:hover { padding-left: 0; }
.footer-socials svg { width: 16px; height: 16px; }

/* === Tool page (shared) === */
.tool-hero {
  background: linear-gradient(180deg, #0a0e22 0%, #131a3d 100%);
  color: #fff;
  padding: 88px 0 64px;
  position: relative; overflow: hidden;
}
.tool-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 80%);
  animation: gridDrift 24s linear infinite;
}
.tool-hero-inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.tool-hero .ico {
  width: 70px; height: 70px;
  border-radius: 20px;
  background: var(--brand-grad);
  display: grid; place-items: center;
  margin: 0 auto 24px;
  box-shadow: 0 20px 50px -12px rgba(99,102,241,.7);
  animation: floatIcon 4s ease-in-out infinite;
}
@keyframes floatIcon { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-4deg); } }
.tool-hero .ico svg { width: 32px; height: 32px; color: #fff; }
.tool-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.tool-hero p { color: #cbd5e1; font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.tool-form-wrap { padding: 0 0 40px; margin-top: -36px; position: relative; z-index: 5; }
.tool-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 820px; margin: 0 auto;
  transition: box-shadow .3s ease;
}
.tool-form:focus-within { box-shadow: 0 30px 60px -16px rgba(99,102,241,.35); }
.tool-form input[type="url"], .tool-form input[type="text"] {
  flex: 1; min-width: 240px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 15px; font-family: inherit;
  outline: none; background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease;
}
.tool-form input:focus { border-color: var(--brand-1); background: #fff; }
.tool-form button[type="submit"] {
  background: var(--brand-grad);
  color: #fff; border: 0;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px;
  transition: transform .2s ease;
}
.tool-form button[type="submit"]:hover { transform: translateY(-1px); }
.tool-form .hint { width: 100%; font-size: 12.5px; color: var(--muted); padding: 4px 12px 0; }

.tool-result { max-width: 960px; margin: 0 auto; padding: 0 24px 96px; }
.tool-result .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}
.placeholder { text-align: center; padding: 60px 24px; color: var(--muted); }
.placeholder svg { width: 48px; height: 48px; color: var(--line-strong); margin: 0 auto 14px; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--brand-1);
  border-right-color: var(--brand-3);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Score gauge */
.score-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.score-gauge {
  --p: 0;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--gauge-color, var(--brand-1)) calc(var(--p) * 1%), var(--bg-soft) 0);
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
  animation: gaugeIn .9s cubic-bezier(.4,1.4,.5,1);
}
@keyframes gaugeIn {
  from { transform: scale(.5) rotate(-30deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.score-gauge::before { content: ''; position: absolute; inset: 10px; background: #fff; border-radius: 50%; }
.score-gauge .num { position: relative; font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.score-gauge .num small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.score-summary h3 { font-size: 1.4rem; margin-bottom: 6px; }
.score-summary p { margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist .status { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.checklist .status svg { width: 14px; height: 14px; color: #fff; }
.checklist .status.pass { background: var(--success); }
.checklist .status.warn { background: var(--warning); }
.checklist .status.fail { background: var(--danger); }
.checklist .label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.checklist .detail { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.checklist .pill { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.checklist .pill.pass { background: rgba(16,185,129,.12); color: var(--success); }
.checklist .pill.warn { background: rgba(245,158,11,.14); color: var(--warning); }
.checklist .pill.fail { background: rgba(239,68,68,.12); color: var(--danger); }

.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-warn { background: #fef9c3; border-color: #fde68a; color: #854d0e; }
.alert-error { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: #e0f2fe; border-color: #bae6fd; color: #075985; }

/* === Generic page hero (about, contact, etc.) === */
.page-hero {
  padding: 100px 0 56px;
  background: linear-gradient(180deg, #f7f8fb 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.1), transparent 60%);
  pointer-events: none;
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.prose ul { padding-left: 20px; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit; font-size: 14.5px;
  margin-bottom: 16px;
  outline: none; background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand-1); background: #fff; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-info p { font-size: 15px; }
.contact-info .info-line { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.contact-info .info-line .ico {
  width: 40px; height: 40px;
  background: var(--brand-grad-soft); color: var(--brand-1);
  display: grid; place-items: center; border-radius: 12px; flex-shrink: 0;
}
.contact-info .info-line .ico svg { width: 18px; height: 18px; }

/* === Pricing === */
.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 480px; margin: 0 auto;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--brand-grad);
}
.pricing-card .price-tag { font-size: 3.5rem; font-weight: 800; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.pricing-card .price-tag small { font-size: 1rem; color: var(--muted); font-weight: 600; -webkit-text-fill-color: var(--muted); }
.pricing-card ul { list-style: none; padding: 0; margin: 28px 0; text-align: left; }
.pricing-card li { padding: 10px 0; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pricing-card li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-grad-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
  flex-shrink: 0;
}

/* === Blog === */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-thumb {
  height: 180px;
  background: var(--brand-grad);
  position: relative;
  overflow: hidden;
}
.blog-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 24px 24px;
}
.blog-thumb.bg-2 { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.blog-thumb.bg-3 { background: linear-gradient(135deg, #ec4899, #f97316); }
.blog-thumb.bg-4 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.blog-thumb.bg-5 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.blog-thumb.bg-6 { background: linear-gradient(135deg, #6366f1, #ec4899); }
.blog-body { padding: 24px; }
.blog-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-1); }
.blog-card h3 { font-size: 1.1rem; margin: 8px 0 8px; line-height: 1.35; }
.blog-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.blog-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; }

/* === Scroll reveal === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .8s ease, transform .8s ease; }
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* === Marquee logo strip === */
.marquee {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 100px;
  z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  padding-left: 60px;
}
.marquee-item {
  font-size: 14.5px; color: var(--muted); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.marquee-item svg { width: 18px; height: 18px; color: var(--brand-1); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === Responsive === */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: span 1; }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features, .steps, .testimonials, .use-grid, .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 80px 0 70px; }
  .steps::before { display: none; }
  .hero-mockup { display: none; }
  .compare table { font-size: 13px; }
  .compare th, .compare td { padding: 12px 10px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tool-form { flex-direction: column; padding: 16px; }
  .tool-form button { width: 100%; }
  .cta-banner, .newsletter, .demo-preview { padding: 40px 24px; }
  .hero-search { padding: 4px 4px 4px 16px; }
  .hero-search input { font-size: 14px; padding: 10px 4px; }
  .hero-search button { padding: 10px 16px; font-size: 13.5px; }
  .pricing-card { padding: 32px 24px; }
}

/* ============================================
   v3 additions — color injection, spotlight,
   animated icons, new sections
   ============================================ */

/* === Cursor-following spotlight in hero === */
.hero { --mx: 50%; --my: 50%; }
.hero-spot {
  position: absolute; inset: 0;
  background: radial-gradient(450px circle at var(--mx) var(--my), rgba(165,180,252,.18), transparent 55%);
  pointer-events: none;
  z-index: 1;
  transition: opacity .3s ease;
}

/* === Stronger 3D mockup parallax (driven by JS via CSS vars) === */
.hero { --px: 0; --py: 0; }
.float-wrap {
  position: absolute;
  transition: transform .15s ease-out;
  will-change: transform;
  z-index: 3;
}
.fw-1 { top: -16px; left: -28px; transform: translate(calc(var(--px) * -28px), calc(var(--py) * -22px)); }
.fw-2 { bottom: -20px; right: -24px; transform: translate(calc(var(--px) * 32px), calc(var(--py) * 26px)); }
.fw-3 { top: 40%; right: -36px; transform: translate(calc(var(--px) * 22px), calc(var(--py) * -18px)); }
/* Card itself keeps the breathing animation. The wrap handles absolute positioning. */
.hero-mockup .float-wrap > .float-card {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}
.float-card.fc-1 { animation: floatA 6s ease-in-out infinite; }
.float-card.fc-2 { animation: floatB 7s ease-in-out infinite; }
.float-card.fc-3 { animation: floatA 5.5s ease-in-out infinite; }

/* === Mockup tile parallax layers === */
.mockup-stage { transition: transform .25s ease-out; will-change: transform; }
.mockup-tile { transition: transform .2s ease-out; }
.mockup-tile:nth-child(1) { transform: translateZ(20px) translateX(calc(var(--px) * -10px)); }
.mockup-tile:nth-child(2) { transform: translateZ(35px) translateY(calc(var(--py) * -8px)); }
.mockup-tile:nth-child(3) { transform: translateZ(20px) translateX(calc(var(--px) * 10px)); }

/* === Animated icons in tool cards === */
.tool-card .ico {
  position: relative;
  overflow: visible;
}
.tool-card .ico::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 18px;
  background: var(--brand-grad);
  opacity: 0;
  filter: blur(14px);
  z-index: -1;
  transition: opacity .35s ease;
}
.tool-card:hover .ico::after { opacity: .55; }
.tool-card .ico svg {
  animation: iconBreathe 3.5s ease-in-out infinite;
}
@keyframes iconBreathe {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-3deg); }
}
.tool-card:hover .ico svg { animation: iconPop .6s cubic-bezier(.4,1.6,.5,1); }
@keyframes iconPop {
  0%, 100% { transform: rotate(0); }
  35% { transform: rotate(-18deg) scale(1.18); }
  70% { transform: rotate(12deg) scale(1.05); }
}

/* Animate dropdown menu icons on hover */
.mega a:hover .ico svg { animation: iconWiggle .55s ease; }
@keyframes iconWiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg) scale(1.1); }
  50% { transform: rotate(8deg) scale(1.12); }
  75% { transform: rotate(-4deg) scale(1.08); }
}

/* Feature icon — orbital glow */
.feature .ico {
  position: relative;
  overflow: visible;
}
.feature .ico::before {
  content: '';
  position: absolute; inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(99,102,241,.25);
  animation: rotateRing 16s linear infinite;
  opacity: 0;
  transition: opacity .3s ease;
}
.feature:hover .ico::before { opacity: 1; }

/* === Color injection — section backgrounds === */
.bg-tint-cool {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(99,102,241,.06), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(6,182,212,.06), transparent 60%),
    var(--bg);
  position: relative;
}
.bg-tint-warm {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(236,72,153,.06), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(245,158,11,.05), transparent 60%),
    var(--bg);
  position: relative;
}
.bg-tint-mix {
  background:
    radial-gradient(700px 400px at 30% 0%, rgba(139,92,246,.08), transparent 60%),
    radial-gradient(600px 500px at 80% 100%, rgba(6,182,212,.08), transparent 60%),
    var(--bg-soft);
  position: relative;
}

/* Decorative blur blobs in sections */
.section-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: .6;
}
.section-blob.b1 { width: 320px; height: 320px; background: rgba(99,102,241,.18); top: -100px; left: -80px; }
.section-blob.b2 { width: 280px; height: 280px; background: rgba(6,182,212,.18); bottom: -100px; right: -60px; }
.section-blob.b3 { width: 240px; height: 240px; background: rgba(236,72,153,.18); top: 30%; right: 10%; opacity: .35; }

/* === New section: "What we check" === */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.check-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.check-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(99,102,241,.3); }
.check-card::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 60%; height: 4px;
  background: var(--card-grad, var(--brand-grad));
  border-radius: 0 4px 4px 0;
}
.check-card .ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--card-grad, var(--brand-grad));
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 12px 28px -10px var(--card-shadow, rgba(99,102,241,.5));
  animation: iconBreathe 4s ease-in-out infinite;
}
.check-card .ico svg { width: 22px; height: 22px; }
.check-card .big {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--card-grad, var(--brand-grad));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.check-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.check-card p { font-size: 14px; color: var(--muted); margin: 0; }
.check-card.cc-1 { --card-grad: linear-gradient(135deg, #6366f1, #8b5cf6); --card-shadow: rgba(99,102,241,.5); }
.check-card.cc-2 { --card-grad: linear-gradient(135deg, #06b6d4, #0ea5e9); --card-shadow: rgba(6,182,212,.5); }
.check-card.cc-3 { --card-grad: linear-gradient(135deg, #ec4899, #f97316); --card-shadow: rgba(236,72,153,.5); }
.check-card.cc-4 { --card-grad: linear-gradient(135deg, #10b981, #06b6d4); --card-shadow: rgba(16,185,129,.5); }
.check-card.cc-5 { --card-grad: linear-gradient(135deg, #f59e0b, #ef4444); --card-shadow: rgba(245,158,11,.5); }
.check-card.cc-6 { --card-grad: linear-gradient(135deg, #8b5cf6, #ec4899); --card-shadow: rgba(139,92,246,.5); }

/* === New section: "Powered by real data" === */
.providers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.provider {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.provider:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 18px 36px -12px rgba(99,102,241,.3);
}
.provider::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--brand-grad-soft);
  opacity: 0;
  transition: opacity .3s ease;
}
.provider > * { position: relative; }
.provider:hover::before { opacity: 1; }
.provider .pi {
  width: 44px; height: 44px;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.provider:hover .pi {
  transform: rotate(-8deg) scale(1.1);
  background: var(--brand-grad);
  color: #fff;
}
.provider .pi svg { width: 22px; height: 22px; animation: iconBreathe 4s ease-in-out infinite; }
.provider .pn { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.provider .pd { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

/* === Reveal direction variants === */
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal-right.in { opacity: 1; transform: translateX(0); }
.reveal-rotate { opacity: 0; transform: rotateY(-15deg) translateY(20px); transition: opacity .9s ease, transform .9s ease; perspective: 800px; }
.reveal-rotate.in { opacity: 1; transform: rotateY(0) translateY(0); }

/* CSS-only safety net: after 4 seconds, force-show any reveal element that's
   still hidden. This guards against any future JS issue silently hiding content. */
@keyframes revealForceIn {
  to { opacity: 1; transform: none; }
}
.reveal, .reveal-scale, .reveal-left, .reveal-right, .reveal-rotate {
  animation: revealForceIn 0s linear 4s forwards;
}
.reveal.in, .reveal-scale.in, .reveal-left.in, .reveal-right.in, .reveal-rotate.in {
  animation: none;
}

/* Stagger helpers */
.reveal.delay-5 { transition-delay: .5s; }
.reveal.delay-6 { transition-delay: .6s; }

/* === Animated FAQ accent === */
.faq details {
  position: relative;
  transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.faq details::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand-grad);
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0;
  transition: opacity .25s ease;
}
.faq details:hover { transform: translateX(2px); }
.faq details:hover::before, .faq details[open]::before { opacity: 1; }

/* === Stat strip color injection === */
.stats-strip {
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(99,102,241,.06), transparent 60%),
    radial-gradient(500px 200px at 80% 100%, rgba(6,182,212,.06), transparent 60%),
    #fff;
  position: relative;
  overflow: hidden;
}
.stat .num {
  position: relative;
}
.stat .num::after {
  content: '';
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 36px; height: 3px;
  background: var(--brand-grad);
  border-radius: 3px;
  opacity: 0;
  animation: stripeIn .6s ease forwards .8s;
}
@keyframes stripeIn { to { opacity: .6; } }

/* === Ambient floating dots pattern === */
.dots-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(99,102,241,.18) 1px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
  opacity: .55;
}

/* === Tool card baseline icon glow === */
.tool-card { isolation: isolate; }

/* Responsive */
@media (max-width: 960px) {
  .checks-grid { grid-template-columns: 1fr 1fr; }
  .providers { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .checks-grid { grid-template-columns: 1fr; }
  .providers { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   v4 — More 3D sections, scroll effects
   ============================================ */

/* === 3D scroll-tilt utility === */
[data-scroll-tilt] {
  transition: transform .1s linear;
  will-change: transform;
}

/* === 3D Showcase section — three dramatic perspective cards === */
.showcase {
  background: linear-gradient(180deg, #0a0e22 0%, #0f1430 100%);
  color: #fff;
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  perspective: 1600px;
}
.showcase::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 50%, #000 30%, transparent 80%);
  animation: gridDrift 30s linear infinite;
}
.showcase .section-blob.b1 { background: rgba(99,102,241,.4); top: 10%; left: -10%; width: 480px; height: 480px; }
.showcase .section-blob.b2 { background: rgba(6,182,212,.35); bottom: 5%; right: -10%; width: 420px; height: 420px; }
.showcase .section-head { position: relative; z-index: 2; }
.showcase .section-head h2 { color: #fff; }
.showcase .section-head p { color: #cbd5e1; }
.showcase .section-head .tag { background: rgba(255,255,255,.08); color: #a5b4fc; }

.showcase-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  perspective: 1400px;
}
.showcase-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}
.showcase-card::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius-xl);
  background: var(--card-grad, var(--brand-grad));
  opacity: 0;
  z-index: -1;
  transition: opacity .35s ease;
  filter: blur(24px);
}
.showcase-card:hover { transform: translateY(-8px) rotateX(0) rotateY(0) !important; box-shadow: 0 40px 80px -20px var(--card-shadow, rgba(99,102,241,.5)); }
.showcase-card:hover::after { opacity: .4; }
.showcase-card.sc-1 { --card-grad: linear-gradient(135deg,#6366f1,#8b5cf6); --card-shadow: rgba(99,102,241,.6); transform: rotateY(8deg) rotateX(2deg) translateZ(0); }
.showcase-card.sc-2 { --card-grad: linear-gradient(135deg,#06b6d4,#0ea5e9); --card-shadow: rgba(6,182,212,.6); transform: rotateY(0deg) translateZ(40px); }
.showcase-card.sc-3 { --card-grad: linear-gradient(135deg,#ec4899,#f97316); --card-shadow: rgba(236,72,153,.6); transform: rotateY(-8deg) rotateX(2deg) translateZ(0); }
.showcase-card .sc-num {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #94a3b8; margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 8px;
}
.showcase-card .sc-num::before {
  content: ''; width: 24px; height: 2px; background: var(--card-grad);
}
.showcase-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 14px; line-height: 1.25; }
.showcase-card p { color: #cbd5e1; font-size: 14.5px; margin-bottom: 22px; }
.showcase-card .sc-mini {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #67e8f9;
  line-height: 1.7;
}
.showcase-card .sc-mini .ok { color: #34d399; }
.showcase-card .sc-mini .warn { color: #fbbf24; }
.showcase-card .sc-mini .key { color: #c4b5fd; }
.showcase-card .sc-stat {
  display: flex; gap: 16px; align-items: baseline; margin-top: 8px;
}
.showcase-card .sc-stat .v {
  font-size: 2rem; font-weight: 800;
  background: var(--card-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.02em;
}
.showcase-card .sc-stat .l { font-size: 12px; color: #94a3b8; }

/* Animated bar visualization inside showcase */
.sc-bars {
  display: flex; gap: 6px; align-items: flex-end; height: 60px; margin-top: 14px;
}
.sc-bars span {
  flex: 1; background: var(--card-grad); border-radius: 4px;
  animation: barPulse 2.5s ease-in-out infinite;
}
.sc-bars span:nth-child(1) { height: 35%; animation-delay: 0s; }
.sc-bars span:nth-child(2) { height: 65%; animation-delay: .2s; }
.sc-bars span:nth-child(3) { height: 50%; animation-delay: .4s; }
.sc-bars span:nth-child(4) { height: 85%; animation-delay: .6s; }
.sc-bars span:nth-child(5) { height: 40%; animation-delay: .8s; }
.sc-bars span:nth-child(6) { height: 75%; animation-delay: 1s; }
.sc-bars span:nth-child(7) { height: 95%; animation-delay: 1.2s; }

/* === Pinned scroll section: layered 3D image stack === */
.stack-section {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 50%, var(--bg-soft) 100%);
  overflow: hidden;
}
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.stack-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.stack-content p { font-size: 1.05rem; color: var(--ink-2); }
.stack-list { list-style: none; padding: 0; margin: 24px 0; }
.stack-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.stack-list li:last-child { border-bottom: 0; }
.stack-list .si {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.stack-list li:hover .si { background: var(--brand-grad); color: #fff; transform: rotate(-8deg) scale(1.08); }
.stack-list .si svg { width: 18px; height: 18px; }
.stack-list .st { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.stack-list .sd { font-size: 13.5px; color: var(--muted); }

.stack-visual {
  position: relative;
  height: 480px;
  perspective: 1500px;
  transform-style: preserve-3d;
}
.stack-tile {
  position: absolute;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.18);
  padding: 20px;
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.stack-tile.t1 {
  width: 70%; height: 220px;
  top: 0; left: 0;
  transform: rotateY(-12deg) rotateX(8deg) translateZ(0);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-color: transparent;
}
.stack-tile.t2 {
  width: 75%; height: 240px;
  top: 110px; right: 0;
  transform: rotateY(12deg) rotateX(-4deg) translateZ(40px);
  background: #fff;
}
.stack-tile.t3 {
  width: 65%; height: 200px;
  bottom: 0; left: 5%;
  transform: rotateY(-4deg) rotateX(-8deg) translateZ(20px);
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  color: #fff;
  border-color: transparent;
}
.stack-tile h4 { color: inherit; margin: 0 0 10px; font-size: 1.05rem; }
.stack-tile .mini-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.stack-tile .mini-row + .mini-row { margin-top: 8px; }
.stack-tile .pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52,211,153,.2);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.stack-tile.t1 .pulse { background: #fde68a; box-shadow: 0 0 0 4px rgba(253,230,138,.2); }
.stack-tile.t2 .pulse { background: var(--success); }
.stack-tile.t3 .pulse { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }

.stack-tile .gauge-mini {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: conic-gradient(#fff 87%, rgba(255,255,255,.15) 0);
  display: grid; place-items: center;
  position: relative;
  margin: 12px 0 6px;
}
.stack-tile.t1 .gauge-mini::before { content: ''; position: absolute; inset: 8px; background: #6366f1; border-radius: 50%; }
.stack-tile.t1 .gauge-mini span { position: relative; font-weight: 800; font-size: 1.4rem; color: #fff; }

.stack-tile .bar-row { background: rgba(0,0,0,.05); height: 8px; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.stack-tile .bar-fill { height: 100%; background: var(--brand-grad); border-radius: 4px; }

/* === Tools horizontal scroll-rotate carousel === */
.tools-rotate {
  --scroll: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 18px;
  perspective: 1400px;
  margin-top: 40px;
}
.tools-rotate .rotate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tools-rotate .rotate-card:nth-child(1) { transform: rotateY(calc(var(--scroll) * 360deg - 0deg)); }
.tools-rotate .rotate-card:nth-child(2) { transform: rotateY(calc(var(--scroll) * 360deg - 30deg)) translateY(calc(var(--scroll) * -20px)); }
.tools-rotate .rotate-card:nth-child(3) { transform: rotateY(calc(var(--scroll) * 360deg - 60deg)) translateY(calc(var(--scroll) * -40px)); }
.tools-rotate .rotate-card:nth-child(4) { transform: rotateY(calc(var(--scroll) * 360deg - 30deg)) translateY(calc(var(--scroll) * -20px)); }
.tools-rotate .rotate-card:nth-child(5) { transform: rotateY(calc(var(--scroll) * 360deg - 0deg)); }
.tools-rotate .rotate-card .ri {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--card-grad, var(--brand-grad));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px var(--card-shadow, rgba(99,102,241,.5));
}
.tools-rotate .rotate-card .ri svg { width: 22px; height: 22px; }
.tools-rotate .rotate-card h4 { font-size: 1rem; margin-bottom: 4px; }
.tools-rotate .rotate-card p { font-size: 12.5px; color: var(--muted); margin: 0; }
.tools-rotate .rotate-card.rc-1 { --card-grad: linear-gradient(135deg,#6366f1,#8b5cf6); --card-shadow: rgba(99,102,241,.5); }
.tools-rotate .rotate-card.rc-2 { --card-grad: linear-gradient(135deg,#06b6d4,#0ea5e9); --card-shadow: rgba(6,182,212,.5); }
.tools-rotate .rotate-card.rc-3 { --card-grad: linear-gradient(135deg,#ec4899,#f97316); --card-shadow: rgba(236,72,153,.5); }
.tools-rotate .rotate-card.rc-4 { --card-grad: linear-gradient(135deg,#10b981,#06b6d4); --card-shadow: rgba(16,185,129,.5); }
.tools-rotate .rotate-card.rc-5 { --card-grad: linear-gradient(135deg,#f59e0b,#ef4444); --card-shadow: rgba(245,158,11,.5); }

@media (max-width: 960px) {
  .showcase-rail { grid-template-columns: 1fr; }
  .showcase-card.sc-1, .showcase-card.sc-3 { transform: none; }
  .stack-grid { grid-template-columns: 1fr; gap: 40px; }
  .stack-visual { height: 400px; }
  .tools-rotate { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tools-rotate { grid-template-columns: 1fr; }
  .stack-visual { height: 360px; }
  .stack-tile.t1, .stack-tile.t2, .stack-tile.t3 { width: 90%; }
  .stack-tile.t1 { left: 0; }
  .stack-tile.t2 { right: 0; top: 130px; }
  .stack-tile.t3 { bottom: 0; left: 5%; }
}

/* ============================================
   v5 — PageSpeed + Meta Tags tool components
   ============================================ */

/* === Mobile/Desktop strategy toggle === */
.ps-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}
.ps-toggle button {
  background: transparent;
  border: 0;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.ps-toggle button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
}

/* === PageSpeed score gauge row === */
.ps-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
  text-align: center;
}
.ps-score { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ps-score .score-gauge { width: 110px; height: 110px; }
.ps-score .score-gauge .num { font-size: 1.9rem; }
.ps-score-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

/* === Core Web Vitals === */
.vitals-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.vital {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.vital:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vital::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.vital.good::before { background: var(--success); }
.vital.warn::before { background: var(--warning); }
.vital.fail::before { background: var(--danger); }
.vital.na::before { background: var(--line-strong); }
.vital .vl { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.vital .vv {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--ink);
}
.vital.good .vv { color: var(--success); }
.vital.warn .vv { color: var(--warning); }
.vital.fail .vv { color: var(--danger); }
.vital .vc { font-size: 13px; color: var(--muted); font-weight: 600; }
.vital.good .vc { color: var(--success); }
.vital.warn .vc { color: var(--warning); }
.vital.fail .vc { color: var(--danger); }
.vital-src { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 6px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; display: inline-block; }

/* === Opportunities list === */
.opp-list { list-style: none; padding: 0; margin: 0; }
.opp {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.opp:last-child { border-bottom: 0; }
.opp-l { flex: 1; min-width: 0; }
.opp-title { font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.opp-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.opp-savings {
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-1);
  text-align: right;
  line-height: 1;
}
.opp-savings small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* === Meta tag previews === */
.preview-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.preview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}
.preview-label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.preview-label svg { color: var(--brand-1); }

/* Google SERP */
.serp { padding: 18px 20px; background: #fff; }
.serp-host { font-size: 12.5px; color: #5f6368; margin-bottom: 4px; }
.serp-title {
  font-size: 18px; line-height: 1.3;
  color: #1a0dab;
  font-family: arial, sans-serif;
  margin-bottom: 4px;
  text-decoration: underline;
}
.serp-desc { font-size: 13.5px; line-height: 1.5; color: #4d5156; font-family: arial, sans-serif; }

/* Facebook card */
.fb-card { background: #fff; }
.fb-img {
  height: 220px;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.fb-body { padding: 12px 16px; border-top: 1px solid #dadde1; }
.fb-host { font-size: 12px; color: #606770; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.fb-title { font-size: 16px; font-weight: 600; line-height: 1.3; color: #050505; margin-bottom: 4px; }
.fb-desc { font-size: 14px; color: #606770; line-height: 1.4; }

/* Twitter card */
.tw-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #cfd9de;
  margin: 12px;
}
.tw-img {
  height: 200px;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
}
.tw-body { padding: 12px 14px; }
.tw-title { font-size: 14.5px; font-weight: 600; color: #0f1419; margin-bottom: 2px; line-height: 1.3; }
.tw-desc { font-size: 13.5px; color: #536471; line-height: 1.4; margin-bottom: 4px; }
.tw-host { font-size: 13px; color: #536471; }

.placeholder-img {
  display: grid; place-items: center;
  color: var(--muted); font-size: 13px;
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 8px, #e2e8f0 8px, #e2e8f0 16px);
}

/* === Meta tag inspector table === */
.tag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.tag-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tag-table tr:last-child td { border-bottom: 0; }
.tag-table .t-label {
  width: 30%;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-table .t-value {
  color: var(--ink-2);
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}
.tag-table .t-len {
  display: inline-block;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  border-radius: 4px;
  margin-left: 6px;
  font-family: var(--font-sans);
  letter-spacing: .04em;
}
.tag-table .tag-section td {
  background: var(--bg-soft);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Tool form: keep toggle inline on wide screens, drop full-width on narrow */
@media (max-width: 700px) {
  .ps-toggle { width: 100%; justify-content: center; }
  .ps-scores { grid-template-columns: 1fr 1fr; }
  .vitals-row { grid-template-columns: 1fr; }
  .opp { flex-direction: column; align-items: flex-start; gap: 8px; }
  .opp-savings { text-align: left; }
  .tag-table .t-label { width: 35%; font-size: 11px; }
}

/* ============================================
   v6 — Keyword Density / Suggestions / Broken Links
   ============================================ */

/* === Stats strip used inside tool result panels === */
.kd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.kd-stat {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.kd-stat .kdv {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  word-break: break-word;
}
.kd-stat .kdl { font-size: 12px; color: var(--muted); margin-top: 4px; }

.kd-preview {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.kd-preview strong { color: var(--ink); }

/* === Tabbed content === */
.kd-tabs, .bl-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 18px;
}
.kd-tabs button, .bl-tabs button {
  background: transparent;
  border: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kd-tabs button.active, .bl-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
}
.bl-count {
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 800;
}
.bl-tabs button.active .bl-count { background: var(--brand-grad); color: #fff; }

/* === Keyword Density table === */
.kd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.kd-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 2px solid var(--line);
  background: var(--bg-soft);
}
.kd-table th:nth-child(2) { width: 80px; text-align: center; }
.kd-table th:nth-child(3) { width: 280px; }
.kd-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.kd-table tbody tr:hover { background: var(--bg-soft); }
.kd-term {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}
.kd-rank {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  font-size: 12px;
  font-weight: 800;
}
.kd-count { text-align: center; font-weight: 700; color: var(--ink); }
.kd-density {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kd-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-soft);
  border-radius: 4px;
  overflow: hidden;
}
.kd-bar-fill {
  height: 100%;
  background: var(--brand-grad);
  border-radius: 4px;
}
.kd-density span {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-1);
  min-width: 50px;
  text-align: right;
}

/* === Keyword Suggestions === */
.ks-group {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--g-color, var(--brand-1));
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.ks-group:last-child { margin-bottom: 0; }
.ks-group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.ks-group-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--g-color, var(--ink));
  display: flex;
  align-items: center;
  gap: 8px;
}
.ks-count {
  background: rgba(0,0,0,.06);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 11.5px;
  padding: 1px 8px;
  border-radius: 999px;
}
.ks-group-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.ks-copy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.ks-copy:hover { border-color: var(--brand-1); color: var(--brand-1); }
.ks-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ks-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, color .15s ease, background .15s ease;
  user-select: none;
}
.ks-chip:hover { border-color: var(--g-color, var(--brand-1)); color: var(--g-color, var(--brand-1)); transform: translateY(-1px); }
.ks-chip.copied { background: var(--brand-grad); border-color: transparent; color: #fff; }

/* === Broken Links === */
.bl-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  background: #fff;
}
.bl-stat {
  text-align: center;
  padding: 18px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  position: relative;
}
.bl-stat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 14px 14px 0 0;
}
.bl-stat.ok::before { background: var(--success); }
.bl-stat.redirect::before { background: #0ea5e9; }
.bl-stat.broken::before { background: var(--danger); }
.bl-stat.error::before { background: #dc2626; }
.bl-stat.timeout::before { background: var(--warning); }
.bl-stat .bln { font-size: 1.8rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.bl-stat .bll { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 600; }

.bl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.bl-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 2px solid var(--line);
  background: var(--bg-soft);
}
.bl-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.bl-table tbody tr:hover { background: var(--bg-soft); }
.bl-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  font-family: var(--font-mono);
}
.bl-pill.bl-ok { background: rgba(16,185,129,.12); color: var(--success); }
.bl-pill.bl-redirect { background: rgba(14,165,233,.12); color: #0284c7; }
.bl-pill.bl-broken { background: rgba(239,68,68,.12); color: var(--danger); }
.bl-pill.bl-error { background: rgba(220,38,38,.15); color: #b91c1c; }
.bl-pill.bl-timeout { background: rgba(245,158,11,.15); color: #b45309; }
.bl-url a {
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}
.bl-url a:hover { color: var(--brand-1); }
.bl-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bl-sub { font-size: 12px; color: var(--muted); margin-top: 4px; word-break: break-all; }
.bl-sub.bl-err { color: var(--danger); }
.bl-anchor { color: var(--ink-2); font-size: 13px; max-width: 240px; }
.bl-time { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }

@media (max-width: 700px) {
  .bl-summary { grid-template-columns: 1fr 1fr; }
  .bl-table th:nth-child(3), .bl-table td.bl-anchor { display: none; }
  .kd-table th:nth-child(3) { width: auto; }
}

/* ============================================
   v7 — Robots, Headers, SSL, Search Console
   ============================================ */

/* === Robots + sitemap === */
.rs-group {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.rs-agent {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.rule {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 6px;
  margin: 3px 0;
  display: inline-block;
  margin-right: 6px;
  word-break: break-all;
}
.rule-allow { background: rgba(16,185,129,.1); color: var(--success); }
.rule-disallow { background: rgba(239,68,68,.08); color: var(--danger); }
.rule-meta { background: var(--bg); color: var(--muted); border: 1px dashed var(--line); }
.rule-meta a { color: var(--brand-1); }
.rs-samples { list-style: none; padding: 0; margin: 0; }
.rs-sample {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.rs-sample:last-child { border-bottom: 0; }
.rs-sample a { color: var(--ink); word-break: break-all; }
.rs-sample a:hover { color: var(--brand-1); }
.rs-mod { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* === Redirect hops === */
.hops { display: flex; flex-direction: column; gap: 14px; }
.hop {
  display: flex;
  gap: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  position: relative;
}
.hop-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(99,102,241,.5);
}
.hop-body { flex: 1; min-width: 0; }
.hop-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.hop-reason { font-weight: 600; color: var(--ink); font-size: 14px; }
.hop-time { font-size: 12px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.hop-url { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); word-break: break-all; }
.hop-loc { font-family: var(--font-mono); font-size: 12px; color: var(--brand-1); word-break: break-all; margin-top: 4px; }
.hop-err { font-size: 12.5px; color: var(--danger); margin-top: 4px; }

/* === Headers categorized === */
.hr-block { margin-bottom: 22px; }
.hr-block:last-child { margin-bottom: 0; }
.hr-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hr-count {
  background: var(--brand-grad-soft);
  color: var(--brand-1);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}
.hr-hint { font-size: 13px; color: var(--muted); font-style: italic; }
.hr-empty { padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.hr-empty:last-child { border-bottom: 0; }
.hr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hr-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: break-all;
}
.hr-table tr:last-child td { border-bottom: 0; }
.hr-name { width: 30%; font-weight: 600; color: var(--ink); font-family: var(--font-mono); font-size: 12px; }
.hr-value { color: var(--ink-2); font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }

/* === Key-value grid (SSL, WHOIS) === */
.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.kv-grid > div {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kv-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.kv-v { font-size: 14px; color: var(--ink); word-break: break-word; }
.kv-sub { font-size: 12px; color: var(--muted); font-weight: 500; }

/* === Setup checklist (Search Console) === */
.setup-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.setup-list li {
  counter-increment: step;
  padding: 14px 14px 14px 56px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.setup-list li:last-child { border-bottom: 0; }
.setup-list li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.setup-list code {
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--brand-1);
  border: 1px solid var(--line);
  word-break: break-all;
}

/* ============================================
   v8 — Online Code Compiler (landing + editor + docs)
   ============================================ */

/* === Landing page: language cards === */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.lang-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, border-color .2s ease;
}
.lang-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--g);
  border-radius: 18px 18px 0 0;
  opacity: 0;
  transition: opacity .25s ease;
}
.lang-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 24px 50px -16px rgba(15,23,42,.14);
  color: inherit;
}
.lang-card:hover::before { opacity: 1; }
.lang-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--g);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
  box-shadow: 0 12px 24px -10px rgba(15,23,42,.25);
  transition: transform .25s ease;
}
.lang-card:hover .lang-logo { transform: rotate(-6deg) scale(1.06); }
.lang-logo span { position: relative; z-index: 1; }
.lang-body { flex: 1; }
.lang-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.lang-tag { font-size: 13px; color: var(--muted); line-height: 1.5; }
.lang-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700;
  color: var(--brand-1);
  margin-top: auto;
  transition: gap .25s ease;
}
.lang-card:hover .lang-cta { gap: 10px; }

.lang-info {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.lang-info h3 { font-size: 1.05rem; }

/* === Editor page: top bar === */
.cc-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 72px;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.cc-topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.cc-back:hover { color: var(--brand-1); border-color: var(--brand-1); }
.cc-lang-badge {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.cc-title {
  font-size: 1.1rem;
  margin: 0;
  flex: 1;
  min-width: 200px;
  letter-spacing: -.01em;
}
.cc-title small {
  font-weight: 500;
  color: var(--muted);
  font-size: .85rem;
  margin-left: 6px;
}
.cc-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
}
.cc-shortcut {
  font-size: 11px;
  background: rgba(255,255,255,.2);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* === Editor workspace === */
.cc-workspace { padding: 24px 0 80px; background: var(--bg-soft); min-height: 60vh; }
.cc-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.cc-editor-col, .cc-side-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 580px;
}
.cc-editor-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 4px 8px;
  gap: 2px;
  min-height: 44px;
}
.cc-editor-tabs button {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-mono);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s ease, color .15s ease;
}
.cc-editor-tabs button:hover { color: var(--ink); }
.cc-editor-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
}
.cc-editor-tabs button[disabled] { opacity: 1; cursor: default; }
.cc-editor-tabs .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.cc-editor-tabs .dot-html { background: #e34c26; }
.cc-editor-tabs .dot-css { background: #264de4; }
.cc-editor-tabs .dot-js { background: #f7df1e; }

.cc-version-pill {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cc-editor {
  flex: 1;
  width: 100%;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  background: #0b1020;
  color: #e2e8f0;
  border: 0;
  outline: none;
  resize: none;
  tab-size: 4;
  -moz-tab-size: 4;
  white-space: pre;
  overflow: auto;
  min-height: 500px;
}
.cc-editor:focus { box-shadow: inset 0 0 0 2px rgba(99,102,241,.4); }
#cc-stdin.cc-editor {
  background: #fff;
  color: var(--ink);
  min-height: 100%;
  padding: 16px 18px;
  font-size: 13px;
}

/* === Side panel === */
.cc-side-tabs {
  display: flex;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 6px 8px;
  gap: 4px;
  min-height: 44px;
  align-items: center;
}
.cc-side-tabs button {
  background: transparent;
  border: 0;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s ease, color .15s ease;
}
.cc-side-tabs button:hover { color: var(--ink); }
.cc-side-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
}
.cc-side-pane { flex: 1; overflow: auto; }

.cc-pane-output { display: flex; flex-direction: column; }
.cc-output-pre {
  flex: 1;
  margin: 0;
  padding: 16px 18px;
  background: #0b1020;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 400px;
}
.cc-output-pre.err { color: #fecaca; background: #1f0a0a; }
.cc-output-pre.warn { color: #fde68a; background: #1f1505; }
.cc-runtime {
  padding: 8px 16px;
  background: #0b1020;
  border-top: 1px solid #1e293b;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
}
.cc-runtime:empty { display: none; }

.cc-pane-stdin { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.cc-side-label { font-size: 12px; color: var(--muted); }
.cc-side-label code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11.5px;
}

.cc-pane-preview { background: #f1f5f9; padding: 0; }
#cc-preview {
  width: 100%;
  height: 100%;
  min-height: 540px;
  border: 0;
  background: #fff;
  display: block;
}

/* Status pill in tab */
.cc-status {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  text-transform: uppercase;
}
.cc-status.running { background: rgba(99,102,241,.12); color: var(--brand-1); }
.cc-status.ok { background: rgba(16,185,129,.14); color: var(--success); }
.cc-status.err { background: rgba(239,68,68,.14); color: var(--danger); }

/* === Docs pane === */
.cc-pane-docs { padding: 18px 20px; background: #fff; }
.cc-doc-section { margin-bottom: 22px; }
.cc-doc-section:last-child { margin-bottom: 0; }
.cc-doc-section h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.cc-doc-row {
  margin-bottom: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.cc-doc-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.cc-doc-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--brand-1);
  white-space: pre-wrap;
  word-break: break-word;
}
.cc-doc-rules {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cc-doc-rules li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.cc-doc-rules li:last-child { border-bottom: 0; }
.cc-doc-rules li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-grad);
}
.cc-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--brand-grad);
  color: #fff !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.cc-doc-link:hover { transform: translateY(-1px); color: #fff; }

@media (max-width: 1100px) {
  .cc-layout { grid-template-columns: 1fr; }
  .cc-editor-col, .cc-side-col { min-height: auto; }
  .cc-editor { min-height: 360px; }
  .cc-output-pre { min-height: 280px; }
  #cc-preview { min-height: 480px; }
}
@media (max-width: 600px) {
  .cc-topbar { position: static; }
  .cc-title { font-size: 1rem; }
  .cc-shortcut { display: none; }
}

/* ============================================
   v9 — Domain Authority Checker
   ============================================ */
.da-form { flex-wrap: wrap; }
.da-form input[type="text"] { flex: 1; min-width: 220px; }

.da-hero {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.da-gauge-wrap { flex-shrink: 0; }
.da-summary { flex: 1; min-width: 240px; }
.da-host {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  word-break: break-all;
  letter-spacing: -.02em;
}
.da-tier {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.da-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.da-metric {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.da-metric-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.da-metric-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 4px;
  word-break: break-word;
}
.da-metric-hint { font-size: 12px; color: var(--muted); }

/* Compare mode */
.da-compare-panel { padding: 32px 28px; }
.da-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.da-comp-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.da-comp-hero .da-host { font-size: 1.1rem; }
.da-vs {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.da-comp-row {
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.da-comp-row:last-child { border-bottom: 0; }
.da-comp-cell {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
}
.da-comp-cell.win {
  background: rgba(16,185,129,.12);
  color: var(--success);
  position: relative;
}
.da-comp-cell.win::after {
  content: '🏆';
  position: absolute;
  top: -8px; right: -6px;
  font-size: 14px;
}
.da-comp-label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 700px) {
  .da-compare-grid { grid-template-columns: 1fr; }
  .da-vs { margin: 0 auto; }
  .da-comp-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .da-comp-label { order: -1; text-align: left; }
}

/* ============================================
   v10 — Mobile fixes
   ============================================ */

/* Stop horizontal scroll across the board */
html, body { overflow-x: clip; max-width: 100%; }

/* Hide nav CTA earlier so the "Run free audit" button never clips on tablets */
@media (max-width: 1024px) {
  .nav-cta { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* === Mobile menu accordion === */
.mobile-nav { padding: 12px 24px 28px; }
.mobile-nav details {
  border-bottom: 1px solid var(--line);
}
.mobile-nav details > summary {
  padding: 16px 4px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: var(--ink);
}
.mobile-nav details > summary::-webkit-details-marker { display: none; }
.mobile-nav details > summary::after {
  content: '+';
  font-size: 22px;
  color: var(--brand-1);
  transition: transform .25s ease;
  font-weight: 300;
  line-height: 1;
}
.mobile-nav details[open] > summary::after { transform: rotate(45deg); }
.mobile-nav details a {
  display: block;
  padding: 12px 4px 12px 18px;
  border: 0;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.mobile-nav details a:hover,
.mobile-nav details a:focus { color: var(--brand-1); }
.mobile-nav details + .m-link {
  margin-top: 8px;
}
.mobile-nav .m-link {
  display: block;
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .m-link:last-child { border-bottom: 0; }
.mobile-nav .m-cta {
  margin-top: 14px;
  background: var(--brand-grad);
  color: #fff !important;
  text-align: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  border: 0;
  box-shadow: 0 8px 22px -6px rgba(99,102,241,.5);
}

/* === Tool grid: 2 columns on phones === */
@media (max-width: 600px) {
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool-card { padding: 18px 14px; gap: 10px; }
  .tool-card .ico { width: 42px; height: 42px; border-radius: 10px; }
  .tool-card .ico svg { width: 22px; height: 22px; }
  .tool-card h3 { font-size: 0.95rem; }
  .tool-card p { font-size: 12.5px; line-height: 1.45; }
  .tool-card .arrow { font-size: 12px; gap: 4px; }
  .tool-card .badge-soon, .tool-card .badge-live {
    font-size: 9px; padding: 2px 6px; top: 10px; right: 10px;
  }
  .tool-card .badge-live { padding-left: 14px; }
  .tool-card .badge-live::before { left: 5px; width: 5px; height: 5px; }
}

/* === What we check: 2 cols on phones === */
@media (max-width: 600px) {
  .checks-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .check-card { padding: 16px 14px; }
  .check-card .ico { width: 36px; height: 36px; margin-bottom: 12px; border-radius: 10px; }
  .check-card .ico svg { width: 18px; height: 18px; }
  .check-card .big { font-size: 1.6rem; margin-bottom: 4px; }
  .check-card h3 { font-size: 0.92rem; margin-bottom: 4px; }
  .check-card p { font-size: 11.5px; line-height: 1.45; }
}

/* === Live demo preview: full width on mobile === */
@media (max-width: 700px) {
  .demo-preview {
    padding: 28px 16px;
    border-radius: 18px;
    margin: 0 -8px;
  }
  .demo-card { padding: 18px 14px; }
  .demo-row { gap: 18px; flex-direction: column; }
  .demo-gauge { width: 110px; height: 110px; margin: 0 auto; }
  .demo-gauge .num { font-size: 1.7rem; }
  .demo-checks h3 { font-size: 1.05rem; text-align: center; }
  .demo-check { font-size: 12.5px; }
}

/* === Testimonials: square swipe cards on mobile, one per view === */
@media (max-width: 700px) {
  .testimonials {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 -18px;
    padding: 4px 18px 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: stretch;
  }
  .testimonials::-webkit-scrollbar { display: none; }

  .testimonial {
    min-width: 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    scroll-snap-align: center;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: 0 18px 36px -12px rgba(15,23,42,.12);
    box-sizing: border-box;
  }
  /* Drop the giant decorative quote — it overlaps text on small cards */
  .testimonial blockquote::before { display: none; }

  .testimonial .stars {
    font-size: 16px;
    letter-spacing: 3px;
    color: #f59e0b;
    margin: 0 0 14px;
    line-height: 1;
  }
  .testimonial blockquote {
    flex: 1;
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    font-weight: 500;
    /* Center the quote vertically in the leftover space */
    display: flex;
    align-items: center;
    /* Allow word-level wrapping so long testimonials never overflow */
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
  .testimonial .who {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .testimonial .avatar {
    width: 42px;
    height: 42px;
    font-size: 15px;
    flex-shrink: 0;
  }
  .testimonial .name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
  }
  .testimonial .role {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.2;
    margin-top: 2px;
  }
}

/* On very narrow phones, drop the strict square constraint so the
   testimonial copy never gets clipped — the card gets a touch taller. */
@media (max-width: 380px) {
  .testimonial {
    aspect-ratio: auto;
    min-height: 340px;
  }
  .testimonial blockquote { font-size: 14.5px; line-height: 1.5; }
}

/* === Hero search button: shorter label on phones so it never clips === */
.hero-search button .hs-short { display: none; }
@media (max-width: 480px) {
  .hero-search { padding: 4px 4px 4px 14px; gap: 4px; }
  .hero-search input {
    flex: 1; min-width: 0;
    font-size: 13.5px;
    padding: 11px 4px;
  }
  .hero-search button {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
  .hero-search button .hs-full { display: none; }
  .hero-search button .hs-short { display: inline; }
}

/* === Newsletter + CTA banner: full bleed on phones === */
@media (max-width: 600px) {
  .newsletter,
  .cta-banner {
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 0;
    padding: 56px 24px;
  }
  .newsletter h2, .cta-banner h2 { font-size: 1.5rem; }
  .newsletter form {
    flex-direction: column;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    padding: 0;
    gap: 10px;
  }
  .newsletter input {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    padding: 14px 18px;
    width: 100%;
  }
  .newsletter button {
    border-radius: 14px;
    padding: 14px 22px;
    width: 100%;
  }
  .cta-banner .btn-lg { width: 100%; padding: 14px 24px; }
}

/* === Tool result panels: contain overflow + readable on phones === */
@media (max-width: 600px) {
  .tool-result { padding: 0 16px 64px; }
  .tool-result .panel { padding: 18px 14px; overflow: hidden; }
  .tool-result table { font-size: 12px; width: 100%; }
  .tool-result table th,
  .tool-result table td { padding: 8px 6px; }

  /* Force long URLs / values to wrap */
  .bl-url, .bl-url a, .bl-sub { word-break: break-all; }
  .tag-table .t-value { font-size: 11.5px; word-break: break-all; }
  .tag-table .t-label { font-size: 11px; }
  .hr-table .hr-name,
  .hr-table .hr-value { font-size: 11.5px; word-break: break-all; }
  .kd-term { font-size: 12px; gap: 8px; }
  .kd-density span { font-size: 12px; min-width: 38px; }
  .kd-bar { height: 6px; }
  .checklist .label { font-size: 13px; }
  .checklist .detail { font-size: 12px; }

  /* Score gauge: shrink so it doesn't crowd */
  .score-row { gap: 14px; flex-direction: column; align-items: flex-start; }
  .score-gauge { width: 110px; height: 110px; margin: 0 auto; }
  .score-gauge .num { font-size: 1.8rem; }
  .score-summary { width: 100%; text-align: center; }
  .score-summary p { word-break: break-all; }

  /* PageSpeed score row: 2 across */
  .ps-scores { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ps-score .score-gauge { width: 90px; height: 90px; }
  .ps-score .score-gauge .num { font-size: 1.4rem; }

  /* Vitals: stacked */
  .vitals-row { grid-template-columns: 1fr; gap: 10px; }
  .vital { padding: 16px; }
  .vital .vv { font-size: 1.6rem; }

  /* Broken link summary: 2 cols + smaller text */
  .bl-summary { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bl-stat { padding: 14px 10px; }
  .bl-stat .bln { font-size: 1.4rem; }

  /* Hide wide columns aggressively */
  .bl-table th:nth-child(3), .bl-table td.bl-anchor { display: none; }
  .bl-table th:nth-child(4), .bl-table td.bl-time { display: none; }

  /* Compiler editor: smaller font, full bleed */
  .cc-editor { font-size: 12.5px; padding: 14px; }
  .cc-output-pre { font-size: 11.5px; padding: 12px 14px; }
  .cc-pane-docs { padding: 14px; }
  .cc-doc-row { padding: 8px 10px; }
  .cc-doc-code { font-size: 11.5px; }

  /* Domain authority: stack metrics */
  .da-hero { gap: 20px; flex-direction: column; text-align: center; }
  .da-summary { text-align: center; }
  .da-host { font-size: 1.15rem; }
  .da-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .da-metric { padding: 12px 14px; }
  .da-metric-value { font-size: 1.05rem; }

  /* Hops on Headers tool */
  .hop { padding: 12px 14px; gap: 10px; }
  .hop-num { width: 30px; height: 30px; font-size: 12px; }
  .hop-row { gap: 6px; }
  .hop-url, .hop-loc { font-size: 11.5px; }
}

/* === Tool form: button takes full width on phones === */
@media (max-width: 600px) {
  .tool-form { padding: 14px; gap: 10px; }
  .tool-form input { padding: 12px 16px; font-size: 14px; }
  .tool-form button[type="submit"] { width: 100%; padding: 12px 20px; font-size: 14px; }
  .ps-toggle { width: 100%; justify-content: center; }
}

/* === Footer credit line === */
.footer-credit {
  color: #94a3b8;
}
.footer-credit strong {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* === Generic mobile sizing for sections === */
@media (max-width: 600px) {
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 1.5rem; }
  .section-head p { font-size: 14.5px; }

  /* Page hero + tool hero: tighter */
  .page-hero { padding: 64px 0 32px; }
  .page-hero h1 { font-size: 1.6rem; }
  .tool-hero { padding: 64px 0 56px; }
  .tool-hero h1 { font-size: 1.5rem; }
  .tool-hero p { font-size: 0.95rem; }
  .tool-hero .ico { width: 56px; height: 56px; border-radius: 16px; }
  .tool-hero .ico svg { width: 26px; height: 26px; }

  /* Hero search: more compact */
  .hero { padding: 70px 0 60px; }
  .hero .lead { font-size: 0.98rem; }
  .hero-search input { font-size: 13.5px; }
  .hero-search button { padding: 10px 14px; font-size: 13px; }

  /* Use-case cards full width */
  .use-grid { grid-template-columns: 1fr; gap: 14px; }
  .use-card { min-height: auto; padding: 26px 22px; }

  /* Stats strip: 2 col */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat .num { font-size: 1.5rem; }

  /* Marquee text smaller */
  .marquee-track { gap: 36px; padding-left: 36px; }
  .marquee-item { font-size: 13px; }

  /* Showcase / 3D rail one-col */
  .showcase-rail { grid-template-columns: 1fr; gap: 18px; }
  .showcase-card { padding: 24px 18px; }
  .showcase-card.sc-1, .showcase-card.sc-3 { transform: none; }

  /* Stack section visual */
  .stack-grid { gap: 32px; }
  .stack-visual { height: 380px; }
  .stack-tile.t1, .stack-tile.t2, .stack-tile.t3 { width: 88%; padding: 16px; }

  /* Step numbers smaller */
  .steps { gap: 20px; }
  .step .num { width: 48px; height: 48px; font-size: 1.1rem; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: 13.5px; }

  /* Section padding tighter overall */
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
