/* ============================================
   AIHub ΓÇö Global CSS (all breakpoints)
   ============================================ */

:root {
  --bg-base: #050816;
  --bg-surface: #0B1120;
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --accent-cyan: #06B6D4;
  --accent-violet: #8B5CF6;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;

  --gradient-brand: linear-gradient(135deg, #2563EB, #06B6D4);
  --gradient-border: linear-gradient(135deg, #2563EB, #06B6D4);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1140px;
  --section-padding: 6rem;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(37, 99, 235, 0.3);
  color: var(--text-primary);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  border-radius: 4px;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--max-width) !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.05);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.6rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  animation: glowPulse 1.5s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  animation: glowPulse 1s ease-in-out infinite;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-ghost:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
  color: var(--accent-cyan);
}

/* ---------- Featured Card (gradient border) ---------- */
.featured-card {
  background: var(--bg-surface);
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--bg-surface), var(--bg-surface)),
    var(--gradient-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.featured-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent 70%);
  pointer-events: none;
}

/* ---------- Regular Card ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- Card icon container ---------- */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}

.card:hover .card-icon {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
}

/* ---------- Animations ---------- */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4), 0 0 40px rgba(6, 182, 212, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.6), 0 0 60px rgba(6, 182, 212, 0.35);
  }
}

@keyframes auroraSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes nebulaDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---------- Animation utility classes ---------- */
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-fade-up { animation: fadeUp 0.5s ease-out forwards; }
.animate-glow { animation: glowPulse 1.5s ease-in-out infinite; }

/* ---------- Hero Aurora Background ---------- */
.hero-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-aurora::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.25), transparent 60%),
    radial-gradient(circle at 70% 40%, rgba(6, 182, 212, 0.2), transparent 55%),
    radial-gradient(circle at 50% 60%, rgba(139, 92, 246, 0.18), transparent 50%);
  filter: blur(60px);
  z-index: 1;
}

.hero-aurora::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: conic-gradient(
    from 0deg,
    rgba(37, 99, 235, 0.15),
    rgba(6, 182, 212, 0.12),
    rgba(139, 92, 246, 0.1),
    rgba(37, 99, 235, 0.15)
  );
  border-radius: 50%;
  filter: blur(80px);
  animation: auroraSpin 12s linear infinite;
  z-index: 0;
}

/* ---------- Mesh Nebula ---------- */
.mesh-nebula {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(ellipse 500px 350px at 85% 30%, rgba(6, 182, 212, 0.1), transparent),
    radial-gradient(ellipse 450px 300px at 50% 80%, rgba(139, 92, 246, 0.08), transparent),
    radial-gradient(ellipse 400px 300px at 80% 70%, rgba(59, 130, 246, 0.07), transparent);
}

/* ---------- Grid pattern overlay ---------- */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Glow orb ---------- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Navbar ---------- */
.navbar {
  position: relative;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ---------- Nav Dropdown ---------- */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 180px;
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.6rem;
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 110;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.06);
}

/* Dropdown chevron indicator */
.nav-dropdown > a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-right: 0.4rem;
  vertical-align: middle;
  opacity: 0.5;
  transition: transform 0.15s ease;
}

.nav-dropdown:hover > a::before {
  transform: rotate(180deg);
}

/* Light theme dropdown */
[data-theme="light"] .dropdown-menu {
  background: var(--bg-surface);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dropdown-menu a:hover {
  background: rgba(15, 23, 42, 0.04);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 4rem 2rem 4rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.5);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: glowPulse 1.5s ease-in-out infinite;
}

/* ---------- Floating orbs in hero ---------- */
.orb-1 {
  top: 15%;
  left: 10%;
  width: 120px;
  height: 120px;
  background: rgba(37, 99, 235, 0.15);
  animation: float 5s ease-in-out infinite, nebulaDrift 14s ease-in-out infinite;
}

.orb-2 {
  top: 60%;
  right: 12%;
  width: 160px;
  height: 160px;
  background: rgba(6, 182, 212, 0.12);
  animation: float 5s ease-in-out infinite reverse, nebulaDrift 16s ease-in-out infinite;
}

.orb-3 {
  bottom: 10%;
  left: 20%;
  width: 100px;
  height: 100px;
  background: rgba(139, 92, 246, 0.1);
  animation: float 4s ease-in-out infinite, nebulaDrift 12s ease-in-out infinite;
}

/* ============================================
   HERO ΓÇö SPLIT LAYOUT WITH VISUALS
   ============================================ */

.hero {
  text-align: left;
  display: block;
  padding: 4rem 2rem 5rem;
}

.hero-split {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-left {
  max-width: 540px;
}

.hero-left h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
}

.hero-left .hero-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.hero-left .hero-cta {
  justify-content: flex-start;
}

/* Mini stats */
.hero-mini-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mini-stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.mini-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Right side visual */
.hero-right {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central mockup */
.hero-mockup {
  width: 100%;
  max-width: 380px;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

/* Floating tool cards */
.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 3;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.float-card-1 {
  top: 8%;
  left: -6%;
  animation: float 4s ease-in-out infinite;
}

.float-card-2 {
  top: 48%;
  right: -8%;
  animation: float 5s ease-in-out infinite 0.5s;
}

.float-card-3 {
  bottom: 6%;
  left: 4%;
  animation: float 4.5s ease-in-out infinite 1s;
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  flex-shrink: 0;
}

.float-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.float-card-body strong {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
}

.float-card-status {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* Floating badge */
.hero-float-badge {
  position: absolute;
  bottom: -15px;
  right: -8%;
  background: var(--bg-surface);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 0.75rem;
  padding: 0.75rem 1.1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 4;
  animation: float 5s ease-in-out infinite;
  text-align: center;
}

.hero-float-badge strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  z-index: 2;
}

.scroll-indicator span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-cyan);
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* Animated particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.3;
  animation: particleFloat 8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.3s);
  left: calc(8% + var(--i) * 5%);
  top: calc(15% + var(--i) * 4%);
}

.particle:nth-child(3n) {
  background: var(--primary-light);
}

.particle:nth-child(5n) {
  background: var(--accent-violet);
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
}

/* ============================================
   LOGO STRIP ΓÇö MARQUEE ANIMATION
   ============================================ */

.logo-strip-marquee {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.logo-strip-marquee::before,
.logo-strip-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.logo-strip-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-base), transparent);
}

.logo-strip-marquee::after {
  right: 0;
  background: linear-gradient(90deg, transparent, var(--bg-base));
}

.logo-strip-track {
  display: flex;
  gap: 3rem;
  animation: marquee 22s linear infinite;
  width: max-content;
}

.logo-strip-track:hover {
  animation-play-state: paused;
}

.logo-strip-track span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: rgba(148, 163, 184, 0.4);
  transition: color 0.2s ease, text-shadow 0.2s ease;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo-strip-track span:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Light theme overrides for new hero elements ---------- */

[data-theme="light"] .hero-float-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-float-badge {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(8, 145, 178, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-mini-stats {
  border-top-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .logo-strip-marquee::before {
  background: linear-gradient(90deg, var(--bg-base), transparent);
}

[data-theme="light"] .logo-strip-marquee::after {
  background: linear-gradient(90deg, transparent, var(--bg-base));
}

[data-theme="light"] .logo-strip-track span {
  color: rgba(71, 85, 105, 0.5);
}

[data-theme="light"] .logo-strip-track span:hover {
  color: var(--accent-cyan);
}

[data-theme="light"] .scroll-indicator {
  border-color: rgba(15, 23, 42, 0.15);
}

/* ---------- Responsive: hero split ---------- */

@media (max-width: 1023px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-left {
    text-align: center;
    max-width: 100%;
  }

  .hero-left h1 {
    font-size: 2.5rem;
  }

  .hero-left .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-left .hero-cta {
    justify-content: center;
  }

  .hero-mini-stats {
    justify-content: center;
  }

  .hero-right {
    min-height: 380px;
  }

  .float-card-1 { left: 0; }
  .float-card-2 { right: 0; }
  .float-card-3 { left: 8%; }
}

@media (max-width: 640px) {
  .hero {
    padding: 7rem 1.25rem 4rem;
  }

  .hero-left h1 {
    font-size: 2rem;
  }

  .hero-right {
    min-height: 340px;
  }

  .hero-float-card {
    padding: 0.5rem 0.75rem;
  }

  .float-card-body strong {
    font-size: 0.7rem;
  }

  .float-card-status {
    font-size: 0.6rem;
  }

  .float-card-icon {
    width: 30px;
    height: 30px;
  }

  .hero-mini-stats {
    gap: 1.5rem;
  }

  .mini-stat-num {
    font-size: 1.25rem;
  }

  .hero-mockup {
    max-width: 300px;
  }

  .float-card-1 { left: -3%; top: 3%; }
  .float-card-2 { right: -3%; top: 42%; }
  .float-card-3 { bottom: 4%; left: 5%; }

  .hero-float-badge {
    right: 0;
    padding: 0.5rem 0.85rem;
  }

  .hero-float-badge strong {
    font-size: 1rem;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ============================================
   AI MODELS ΓÇö SPLIT SECTION
   ============================================ */

.models-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.models-left h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.models-left p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.models-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.model-card {
  width: 100%;
  max-width: 340px;
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.model-card-gpt {
  animation: float 5s ease-in-out infinite;
  border-color: rgba(37, 99, 235, 0.2);
}

.model-card-claude {
  animation: float 5s ease-in-out infinite 0.8s;
  border-color: rgba(139, 92, 246, 0.2);
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.model-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.model-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.model-card-claude .model-card-logo {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.15);
}

.model-card-header strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.model-card-header span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.model-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.model-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.12);
  align-self: flex-start;
}

.model-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  overflow: hidden;
}

.model-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563EB, #06B6D4);
  animation: barGrow 1.2s ease-out;
}

@keyframes barGrow {
  from { width: 0; }
}

.model-bar-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.model-vs {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-secondary);
  z-index: 2;
  animation: glowPulse 2s ease-in-out infinite;
}

.model-switch-badge {
  position: absolute;
  top: -12px;
  right: -10px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid rgba(6, 182, 212, 0.25);
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

[data-theme="light"] .model-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .model-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .model-vs {
  background: var(--bg-surface);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .model-switch-badge {
  background: var(--bg-surface);
}

@media (max-width: 1023px) {
  .models-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .models-left {
    text-align: center;
  }

  .models-left .showcase-list {
    max-width: 400px;
    margin: 1.5rem auto 0;
  }
}

/* ============================================
   USE CASES ΓÇö BENTO GRID
   ============================================ */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), rgba(6, 182, 212, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-lg {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-wide {
  grid-column: span 3;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  margin-bottom: 1.25rem;
}

.bento-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.bento-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bento-tags span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
}

[data-theme="light"] .bento-card {
  background: var(--bg-surface);
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .bento-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1023px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-lg {
    grid-column: span 2;
  }

  .bento-wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-lg,
  .bento-wide {
    grid-column: span 1;
  }
}

/* ============================================
   WORKFLOW ΓÇö TIMELINE
   ============================================ */

.workflow-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.workflow-line {
  position: absolute;
  left: 28px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.3), rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
  z-index: 0;
}

.workflow-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.workflow-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: all 0.25s ease;
}

.workflow-step:hover .workflow-node {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.workflow-num {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.workflow-node-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.workflow-step:hover .workflow-node-glow {
  opacity: 1;
}

.workflow-card {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  transition: all 0.25s ease;
}

.workflow-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.workflow-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  margin-bottom: 0.85rem;
}

.workflow-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.workflow-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

[data-theme="light"] .workflow-card {
  background: var(--bg-surface);
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .workflow-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .workflow-node {
  background: var(--bg-surface);
  border-color: rgba(37, 99, 235, 0.2);
}

@media (max-width: 640px) {
  .workflow-timeline {
    gap: 1.75rem;
  }

  .workflow-line {
    left: 20px;
  }

  .workflow-node {
    width: 40px;
    height: 40px;
  }

  .workflow-num {
    font-size: 0.9rem;
  }

  .workflow-step {
    gap: 1rem;
  }

  .workflow-card {
    padding: 1.25rem;
  }
}

/* ---------- Section base ---------- */
section {
  position: relative;
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ---------- Stats Section ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: 1rem;
  transition: all 0.2s ease;
}

.stat-item:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feature-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}

.feature-card:hover .card-icon {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Showcase Section ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.showcase-visual {
  position: relative;
}

.showcase-panel {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.showcase-panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.showcase-panel-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.showcase-panel-header .dot.red { background: #FF5F57; }
.showcase-panel-header .dot.yellow { background: #FEBC2E; }
.showcase-panel-header .dot.green { background: #28C840; }

.showcase-panel-header .filename {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.showcase-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.showcase-code .keyword { color: var(--accent-violet); }
.showcase-code .string { color: var(--accent-cyan); }
.showcase-code .function { color: var(--primary-light); }
.showcase-code .comment { color: rgba(148, 163, 184, 0.4); }

.showcase-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.showcase-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.showcase-list li .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.7rem;
  color: #fff;
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: var(--bg-surface);
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--bg-surface), var(--bg-surface)),
    var(--gradient-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 1.5rem;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.cta-box .hero-cta {
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding: 3rem 0 2rem;
  position: relative;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.footer-social a:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
}

/* ---------- Marquee / Logo strip ---------- */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.logo-strip span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: rgba(148, 163, 184, 0.4);
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.logo-strip span:hover {
  color: var(--text-secondary);
}

/* ============================================
   LIGHT THEME OVERRIDES
   Activated via [data-theme="light"] on <html>
   ============================================ */

[data-theme="light"] {
  --bg-base: #F1F5F9;
  --bg-surface: #FFFFFF;
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --accent-cyan: #0891B2;
  --accent-violet: #7C3AED;
  --text-primary: #0F172A;
  --text-secondary: #475569;

  --gradient-brand: linear-gradient(135deg, #2563EB, #0891B2);
  --gradient-border: linear-gradient(135deg, #2563EB, #0891B2);

  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 12px 30px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.04);
  --border-card: rgba(15, 23, 42, 0.1);
}

/* Navbar */
[data-theme="light"] .navbar {
  background: rgba(241, 245, 249, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .nav-links.open {
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Hero badge */
[data-theme="light"] .hero-badge {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-secondary);
}

/* Hero aurora ΓÇö softer in light mode */
[data-theme="light"] .hero-aurora::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.15), transparent 60%),
    radial-gradient(circle at 70% 40%, rgba(8, 145, 178, 0.12), transparent 55%),
    radial-gradient(circle at 50% 60%, rgba(124, 58, 237, 0.1), transparent 50%);
}

[data-theme="light"] .hero-aurora::after {
  background: conic-gradient(
    from 0deg,
    rgba(37, 99, 235, 0.08),
    rgba(8, 145, 178, 0.06),
    rgba(124, 58, 237, 0.05),
    rgba(37, 99, 235, 0.08)
  );
}

/* Mesh nebula ΓÇö softer in light mode */
[data-theme="light"] .mesh-nebula {
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(37, 99, 235, 0.07), transparent),
    radial-gradient(ellipse 500px 350px at 85% 30%, rgba(8, 145, 178, 0.06), transparent),
    radial-gradient(ellipse 450px 300px at 50% 80%, rgba(124, 58, 237, 0.05), transparent),
    radial-gradient(ellipse 400px 300px at 80% 70%, rgba(59, 130, 246, 0.04), transparent);
}

/* Grid pattern ΓÇö darker lines in light mode */
[data-theme="light"] .grid-pattern {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

/* Glow orbs ΓÇö slightly more visible in light mode */
[data-theme="light"] .orb-1 { background: rgba(37, 99, 235, 0.1); }
[data-theme="light"] .orb-2 { background: rgba(8, 145, 178, 0.08); }
[data-theme="light"] .orb-3 { background: rgba(124, 58, 237, 0.07); }

/* Cards ΓÇö lighter shadows */
[data-theme="light"] .card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .feature-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .featured-card:hover {
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

/* Stat items */
[data-theme="light"] .stat-item {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stat-item:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Showcase panel */
[data-theme="light"] .showcase-panel {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .showcase-panel-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .showcase-code .comment {
  color: rgba(71, 85, 105, 0.5);
}

/* CTA box */
[data-theme="light"] .cta-box::before {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
}

/* Footer */
[data-theme="light"] .footer {
  border-top-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .footer-social a {
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .footer-social a:hover {
  background: rgba(8, 145, 178, 0.05);
}

/* Logo strip */
[data-theme="light"] .logo-strip span {
  color: rgba(71, 85, 105, 0.5);
}

[data-theme="light"] .logo-strip span:hover {
  color: var(--text-secondary);
}

/* Section tag */
[data-theme="light"] .section-tag {
  border-color: rgba(8, 145, 178, 0.2);
  background: rgba(8, 145, 178, 0.04);
}

/* Buttons */
[data-theme="light"] .btn-ghost {
  border-color: rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(8, 145, 178, 0.05);
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-base);
}

/* Selection */
[data-theme="light"] ::selection {
  background: rgba(37, 99, 235, 0.2);
  color: var(--text-primary);
}

/* ============================================
   LIGHT THEME ΓÇö CARD/CONTAINER SHADOWS & BORDERS
   Ensures all cards are visible against the light background
   ============================================ */

/* Generic card */
[data-theme="light"] .card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Featured card */
[data-theme="light"] .featured-card {
  box-shadow: var(--shadow-card);
}

/* Feature card */
[data-theme="light"] .feature-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Stat item */
[data-theme="light"] .stat-item {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* CTA box */
[data-theme="light"] .cta-box {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Tool card */
[data-theme="light"] .tool-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Tool row */
[data-theme="light"] .tool-row {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Pricing card */
[data-theme="light"] .pricing-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Category card */
[data-theme="light"] .category-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Use case card */
[data-theme="light"] .usecase-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Step card */
[data-theme="light"] .step-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* FAQ item */
[data-theme="light"] .faq-item {
  border-color: var(--border-card);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* How-visual card */
[data-theme="light"] .how-visual-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Tool UI panel */
[data-theme="light"] .tool-ui-panel {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Tool UI (container) */
[data-theme="light"] .tool-ui {
  border-color: var(--border-card);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Tool feature bento card */
[data-theme="light"] .tool-feature-bento-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Tool timeline card */
[data-theme="light"] .tool-timeline-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Tool usecase split card */
[data-theme="light"] .tool-usecase-split-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Tool benefit card */
[data-theme="light"] .tool-benefit-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Tool example panel */
[data-theme="light"] .tool-example-panel {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Tool tips sidebar */
[data-theme="light"] .tool-tips-sidebar {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Tool related card */
[data-theme="light"] .tool-related-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Tool stats bar */
[data-theme="light"] .tool-stats-bar {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Recommend form */
[data-theme="light"] .recommend-form {
  border-color: var(--border-card);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Legal TOC inner */
[data-theme="light"] .legal-toc-inner {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Legal contact card */
[data-theme="light"] .legal-contact-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* 404 nav card */
[data-theme="light"] .notfound-nav-card {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Comparison table */
[data-theme="light"] .comparison-table {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Tool preview */
[data-theme="light"] .tool-preview {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Showcase panel */
[data-theme="light"] .showcase-panel {
  border-color: var(--border-card);
  box-shadow: var(--shadow-card);
}

/* Tool UI SERP */
[data-theme="light"] .tool-ui-serp {
  border-color: var(--border-card);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Tool UI pricing card */
[data-theme="light"] .tool-ui-pricing-card {
  border-color: var(--border-card);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(15, 23, 42, 0.12);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* ============================================
   TOOLS LIST (GRID LAYOUT)
   ============================================ */

#tools-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

#tools-list .tool-card {
  padding: 1.5rem;
  gap: 0.625rem;
}

#tools-list .tool-card .tool-icon {
  width: 44px;
  height: 44px;
}

#tools-list .tool-card h3 {
  font-size: 1rem;
}

#tools-list .tool-card p {
  font-size: 0.85rem;
}

.tool-row {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}

.tool-row:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .tool-row:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.tool-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tool-row:hover .tool-row-icon {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
}

.tool-row-content {
  flex: 1;
  min-width: 0;
}

.tool-row-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.tool-row h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.tool-row p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.tool-row-arrow {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.2s ease;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.tool-row:hover .tool-row-arrow {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--primary);
}

/* ============================================
   TOOLS GRID (LEGACY - KEPT FOR REFERENCE)
   ============================================ */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}

.tool-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .tool-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.tool-card .tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tool-card:hover .tool-icon {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
}

.tool-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.tool-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.tool-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-top: auto;
  align-self: flex-start;
}

.tool-badge.free {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.tool-badge.trial {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-violet);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.tool-badge.paid {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .tool-badge.free {
  background: rgba(8, 145, 178, 0.08);
  color: var(--accent-cyan);
}

[data-theme="light"] .tool-badge.trial {
  background: rgba(124, 58, 237, 0.08);
  color: var(--accent-violet);
}

[data-theme="light"] .tool-badge.paid {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

/* Tool category tabs */
.tool-categories {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tool-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tool-category:hover,
.tool-category.active {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: rgba(6, 182, 212, 0.06);
}

[data-theme="light"] .tool-category:hover,
[data-theme="light"] .tool-category.active {
  background: rgba(8, 145, 178, 0.04);
}

/* ============================================
   PRICING CARDS
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 950px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .pricing-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.pricing-card.featured {
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--bg-surface), var(--bg-surface)),
    var(--gradient-border);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.pricing-card .plan-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.pricing-card .plan-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.pricing-card .plan-price .currency {
  font-size: 1.25rem;
  vertical-align: top;
  color: var(--text-secondary);
}

.pricing-card .plan-period {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-card .plan-credits {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.pricing-card .plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.pricing-card .plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-card .plan-features li .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.65rem;
  color: #fff;
}

.pricing-card .plan-features li .x {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.pricing-card .btn {
  width: 100%;
}

.pricing-card.featured .btn {
  animation: glowPulse 1.5s ease-in-out infinite;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
  white-space: nowrap;
}

/* ============================================
   TOOL PREVIEW (Showcase mockup)
   ============================================ */

.tool-preview {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .tool-preview {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.tool-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .tool-preview-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.tool-preview-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.tool-preview-title .icon-box {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.tool-preview-model {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(37, 99, 235, 0.05);
}

.tool-preview-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-preview-input {
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

[data-theme="light"] .tool-preview-input {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-preview-input .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
  display: block;
}

.tool-preview-output {
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.6;
}

[data-theme="light"] .tool-preview-output {
  background: rgba(37, 99, 235, 0.03);
}

.tool-preview-output .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
  display: block;
}

.tool-preview-output .typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent-cyan);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.tool-preview-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
}

.tool-preview-actions button {
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tool-preview-actions button:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.tool-preview-actions .generate-btn {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  font-weight: 600;
}

.tool-preview-actions .generate-btn:hover {
  color: #fff;
  border: none;
  transform: translateY(-1px);
}

/* ============================================
   DIFFERENTIATORS STRIP
   ============================================ */

.diff-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.diff-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.diff-item .diff-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.diff-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.diff-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   LEGAL PAGES (Privacy Policy & Terms)
   ============================================ */

.legal-hero {
  padding: 4rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.legal-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.5);
}

[data-theme="light"] .legal-meta-item {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.1);
}

.legal-body-section {
  padding: 2rem 0 6rem;
  position: relative;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Table of Contents */
.legal-toc {
  position: sticky;
  top: 6rem;
}

.legal-toc-inner {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
}

[data-theme="light"] .legal-toc-inner {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.legal-toc h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.legal-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-toc a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.65rem;
  border-radius: 0.4rem;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.legal-toc a:hover {
  color: var(--text-primary);
  background: rgba(37, 99, 235, 0.08);
}

.legal-toc a svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.legal-toc a:hover svg {
  opacity: 1;
}

/* Legal Content */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  min-width: 0;
}

.legal-article {
  scroll-margin-top: 6rem;
}

.legal-article h2 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .legal-article h2 {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.legal-article h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-primary);
}

.legal-article p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-article strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
}

.legal-list li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 1.5rem;
  position: relative;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
}

.legal-list li strong {
  color: var(--text-primary);
}

.legal-link {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
  transition: border-color 0.15s ease;
}

.legal-link:hover {
  border-bottom-color: var(--accent-cyan);
}

/* Callout box */
.legal-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

.legal-callout svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

.legal-callout span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-callout strong {
  color: var(--text-primary);
}

.legal-callout-warning {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.15);
}

.legal-callout-warning svg {
  color: #F59E0B;
}

[data-theme="light"] .legal-callout {
  background: rgba(8, 145, 178, 0.04);
}

[data-theme="light"] .legal-callout-warning {
  background: rgba(245, 158, 11, 0.04);
}

/* Legal table */
.legal-table-wrapper {
  overflow-x: auto;
  margin: 1.25rem 0;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 400px;
}

.legal-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  white-space: nowrap;
}

.legal-table td {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  vertical-align: top;
}

.legal-table td code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 0.3rem;
}

[data-theme="light"] .legal-table th {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .legal-table td {
  border-bottom-color: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .legal-table td code {
  background: rgba(8, 145, 178, 0.06);
}

/* Contact cards */
.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.legal-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.legal-contact-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

[data-theme="light"] .legal-contact-card {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .legal-contact-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.legal-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
  flex-shrink: 0;
}

.legal-contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

/* ============================================
   404 PAGE
   ============================================ */

.notfound-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 4rem 2rem 4rem;
  overflow: hidden;
}

.notfound-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.notfound-aurora::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.2), transparent 60%),
    radial-gradient(circle at 70% 40%, rgba(6, 182, 212, 0.18), transparent 55%),
    radial-gradient(circle at 50% 60%, rgba(139, 92, 246, 0.12), transparent 50%);
  filter: blur(60px);
}

.notfound-aurora::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: conic-gradient(
    from 0deg,
    rgba(37, 99, 235, 0.12),
    rgba(6, 182, 212, 0.1),
    rgba(139, 92, 246, 0.08),
    rgba(37, 99, 235, 0.12)
  );
  border-radius: 50%;
  filter: blur(80px);
  animation: auroraSpin 12s linear infinite;
}

[data-theme="light"] .notfound-aurora::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(circle at 70% 40%, rgba(8, 145, 178, 0.1), transparent 55%),
    radial-gradient(circle at 50% 60%, rgba(124, 58, 237, 0.07), transparent 50%);
}

[data-theme="light"] .notfound-aurora::after {
  background: conic-gradient(
    from 0deg,
    rgba(37, 99, 235, 0.06),
    rgba(8, 145, 178, 0.05),
    rgba(124, 58, 237, 0.04),
    rgba(37, 99, 235, 0.06)
  );
}

/* Glow orbs */
.notfound-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.notfound-orb-1 {
  top: 15%;
  left: 8%;
  width: 120px;
  height: 120px;
  background: rgba(37, 99, 235, 0.15);
  animation: float 5s ease-in-out infinite, nebulaDrift 14s ease-in-out infinite;
}

.notfound-orb-2 {
  top: 55%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: rgba(6, 182, 212, 0.12);
  animation: float 5s ease-in-out infinite reverse, nebulaDrift 16s ease-in-out infinite;
}

.notfound-orb-3 {
  bottom: 12%;
  left: 18%;
  width: 100px;
  height: 100px;
  background: rgba(139, 92, 246, 0.1);
  animation: float 4s ease-in-out infinite, nebulaDrift 12s ease-in-out infinite;
}

[data-theme="light"] .notfound-orb-1 { background: rgba(37, 99, 235, 0.1); }
[data-theme="light"] .notfound-orb-2 { background: rgba(8, 145, 178, 0.08); }
[data-theme="light"] .notfound-orb-3 { background: rgba(124, 58, 237, 0.07); }

/* Particles */
.notfound-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0;
  animation: particleFloat 4s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes particleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-30px) scale(1);
  }
}

/* Content */
.notfound-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  width: 100%;
}

/* Robot illustration */
.notfound-illustration {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.notfound-robot {
  animation: robotFloat 3s ease-in-out infinite;
}

@keyframes robotFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

.robot-antenna-dot {
  animation: blink 1s ease-in-out infinite;
}

.robot-body-light {
  animation: blink 1s step-end infinite;
}

.robot-arm-left {
  animation: armWaveLeft 2s ease-in-out infinite;
  transform-origin: 65px 135px;
}

.robot-arm-right {
  animation: armWaveRight 2s ease-in-out infinite;
  transform-origin: 135px 135px;
}

@keyframes armWaveLeft {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-15deg); }
}

@keyframes armWaveRight {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
}

/* Sparks */
.spark {
  animation: sparkBlink 1.5s ease-in-out infinite;
}

.spark-1 { animation-delay: 0s; }
.spark-2 { animation-delay: 0.3s; }
.spark-3 { animation-delay: 0.6s; }
.spark-4 { animation-delay: 0.9s; }
.spark-5 { animation-delay: 1.2s; }
.spark-6 { animation-delay: 1.5s; }

@keyframes sparkBlink {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Big 404 number */
.notfound-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.notfound-digit {
  font-family: var(--font-heading);
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: digitBounce 2s ease-in-out infinite;
}

.notfound-digit-1 { animation-delay: 0s; }
.notfound-digit-2 { animation-delay: 0.3s; }

@keyframes digitBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.notfound-digit-0 {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zeroSpin 5s ease-in-out infinite;
}

@keyframes zeroSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.05); }
}

.notfound-zero-svg {
  width: 70px;
  height: 84px;
}

/* Text */
.notfound-text {
  margin-bottom: 2.5rem;
}

.notfound-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.5);
  margin-bottom: 1.25rem;
}

[data-theme="light"] .notfound-badge {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.1);
}

.notfound-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: blink 1s step-end infinite;
}

.notfound-text h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.notfound-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

/* Navigation cards */
.notfound-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.notfound-nav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  text-align: left;
  overflow: hidden;
}

.notfound-nav-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .notfound-nav-card {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .notfound-nav-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.notfound-nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.notfound-nav-card:hover .notfound-nav-icon {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
}

.notfound-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.notfound-nav-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.notfound-nav-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.notfound-nav-arrow {
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.notfound-nav-card:hover .notfound-nav-arrow {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

/* Quick action */
.notfound-quick {
  display: flex;
  justify-content: center;
}

.notfound-cta {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ============================================
   TOOLS PAGE ΓÇö SEARCH BAR
   ============================================ */

.tools-search-wrap {
  max-width: 550px;
  margin: 0 auto 2rem;
  position: relative;
}

.tools-search {
  width: 100%;
  padding: 0.9rem 1.25rem 0.9rem 3rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.tools-search::placeholder {
  color: var(--text-secondary);
}

.tools-search:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .tools-search {
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .tools-search:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.08);
}

.tools-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.tools-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tools-result-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.tools-result-count span {
  color: var(--accent-cyan);
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: none;
}

.no-results.show {
  display: block;
}

.no-results svg {
  margin: 0 auto 1rem;
  opacity: 0.3;
}

/* ============================================
   CATEGORIES PAGE
   ============================================ */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .category-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cat-gradient, var(--gradient-brand));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.category-card:hover::before {
  opacity: 1;
}

.category-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--cat-glow, rgba(37, 99, 235, 0.08)), transparent 70%);
  pointer-events: none;
  transition: opacity 0.2s ease;
  opacity: 0;
}

.category-card:hover::after {
  opacity: 1;
}

.category-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--cat-gradient, var(--gradient-brand));
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.category-card .cat-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.category-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.cat-tool-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.category-card:hover .cat-tool-chip {
  border-color: rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .cat-tool-chip {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

.category-card .cat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: auto;
  position: relative;
  z-index: 1;
  transition: gap 0.15s ease;
}

.category-card .cat-link:hover {
  gap: 0.75rem;
}

.category-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.cat-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cat-stat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cat-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ============================================
   RECOMMEND A TOOL PAGE
   ============================================ */

.recommend-form {
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1.25rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .recommend-form {
  border-color: rgba(15, 23, 42, 0.1);
}

.recommend-form::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
  pointer-events: none;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(148, 163, 184, 0.03);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  outline: none;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.12);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
  background: var(--bg-surface);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.08);
  background: #fff;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .form-chip {
  border-color: rgba(15, 23, 42, 0.12);
}

.form-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.form-chip.selected {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
  display: none;
}

.form-success.show {
  display: block;
  animation: fadeUp 0.3s ease-out forwards;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  animation: glowPulse 1.5s ease-in-out infinite;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.form-success p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ============================================
   USE CASES PAGE
   ============================================ */

.usecase-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.usecase-filter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .usecase-filter {
  border-color: rgba(15, 23, 42, 0.12);
}

.usecase-filter:hover,
.usecase-filter.active {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: rgba(6, 182, 212, 0.06);
}

[data-theme="light"] .usecase-filter:hover,
[data-theme="light"] .usecase-filter.active {
  background: rgba(8, 145, 178, 0.04);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.usecase-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.usecase-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .usecase-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.usecase-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--uc-glow, rgba(37, 99, 235, 0.06)), transparent 70%);
  pointer-events: none;
}

.usecase-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--uc-bg, rgba(37, 99, 235, 0.1));
  border: 1px solid var(--uc-border, rgba(37, 99, 235, 0.2));
  color: var(--uc-accent, var(--primary-light));
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.usecase-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.usecase-card .uc-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.usecase-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.uc-tool-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
  white-space: nowrap;
}

[data-theme="light"] .uc-tool-tag {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

.usecase-example {
  background: rgba(148, 163, 184, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

[data-theme="light"] .usecase-example {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.06);
}

.uc-example-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
  display: block;
}

.uc-example-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.uc-example-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================
   HOW IT WORKS ΓÇö VISUAL STEPS (tools page)
   ============================================ */

.how-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.how-visual-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.how-visual-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-3px);
}

.how-visual-num {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.08);
  line-height: 1;
}

[data-theme="light"] .how-visual-num {
  color: rgba(15, 23, 42, 0.06);
}

.how-visual-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
}

.how-visual-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.how-visual-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   PAGE HEADER (sub-page hero)
   ============================================ */

.page-header {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header-content {
  max-width: 700px;
  margin: 0 auto;
}

[data-theme="light"] .page-header {
  min-height: 40vh;
}

/* ============================================
   NAV ACTIVE LINK
   ============================================ */

.nav-links a.nav-active {
  color: var(--text-primary);
  position: relative;
}

.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

/* ============================================
   STEPS GRID (How It Works)
   ============================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.step-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .step-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.step-card:hover::before {
  opacity: 1;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
  margin-bottom: 1.25rem;
  color: var(--primary-light);
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-section {
  margin-bottom: 3rem;
}

.faq-section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

[data-theme="light"] .faq-section-title {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .faq-item {
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .faq-item:hover {
  border-color: rgba(37, 99, 235, 0.15);
}

.faq-question {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.15s ease;
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-secondary);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, padding 0.2s ease;
  padding: 0 1.25rem;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.1rem;
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-table {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

[data-theme="light"] .comparison-table {
  border-color: rgba(15, 23, 42, 0.08);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  align-items: center;
}

.comparison-row:not(:last-child) {
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .comparison-row:not(:last-child) {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.comparison-cell {
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.comparison-cell:first-child {
  text-align: left;
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-header .comparison-cell {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  padding: 1.25rem 1.25rem;
  background: rgba(148, 163, 184, 0.03);
}

[data-theme="light"] .comparison-header .comparison-cell {
  background: rgba(15, 23, 42, 0.02);
}

.comparison-highlight {
  color: var(--accent-cyan) !important;
  position: relative;
}

.comparison-header .comparison-highlight {
  background: rgba(6, 182, 212, 0.05);
}

[data-theme="light"] .comparison-header .comparison-highlight {
  background: rgba(8, 145, 178, 0.04);
}

.check-icon {
  color: var(--accent-cyan);
  display: inline-flex;
}

.x-icon {
  color: rgba(148, 163, 184, 0.4);
  display: inline-flex;
}

.comparison-cell strong {
  color: var(--text-primary);
}

/* ============================================
   TOOL PAGE ΓÇö INDIVIDUAL TOOL PAGES
   ============================================ */

/* Section 1: Tool Interface (interactive UI) */
.tool-interface-section {
  padding: 2rem 0 3rem;
}

/* Tool UI container */
.tool-ui {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .tool-ui {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Tool UI header */
.tool-ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(148, 163, 184, 0.02);
  flex-wrap: wrap;
  gap: 0.75rem;
}

[data-theme="light"] .tool-ui-header {
  border-bottom-color: rgba(15, 23, 42, 0.06);
  background: rgba(15, 23, 42, 0.015);
}

.tool-ui-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tool-ui-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.6rem;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.tool-ui-header-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-ui-header-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.tool-ui-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-ui-model-select {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(37, 99, 235, 0.05);
  cursor: pointer;
  outline: none;
}

[data-theme="light"] .tool-ui-model-select {
  border-color: rgba(15, 23, 42, 0.1);
}

/* Tool UI body */
.tool-ui-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Form fields */
.tool-ui-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-ui-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tool-ui-label .required {
  color: #EF4444;
  font-size: 0.6rem;
}

.tool-ui-input,
.tool-ui-textarea,
.tool-ui-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(148, 163, 184, 0.03);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  outline: none;
}

[data-theme="light"] .tool-ui-input,
[data-theme="light"] .tool-ui-textarea,
[data-theme="light"] .tool-ui-select {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.1);
}

.tool-ui-input:focus,
.tool-ui-textarea:focus,
.tool-ui-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
  background: var(--bg-surface);
}

[data-theme="light"] .tool-ui-input:focus,
[data-theme="light"] .tool-ui-textarea:focus,
[data-theme="light"] .tool-ui-select:focus {
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.08);
  background: #fff;
}

.tool-ui-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.6;
}

.tool-ui-input::placeholder,
.tool-ui-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.tool-ui-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Form row (two columns) */
.tool-ui-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Chip group */
.tool-ui-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-ui-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .tool-ui-chip {
  border-color: rgba(15, 23, 42, 0.1);
}

.tool-ui-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.tool-ui-chip.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
}

/* Character/word counter */
.tool-ui-counter {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.tool-ui-counter span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tool-ui-counter .count-num {
  color: var(--text-primary);
  font-weight: 600;
}

.tool-ui-counter .count-warn {
  color: #F59E0B;
}

.tool-ui-counter .count-over {
  color: #EF4444;
}

/* Action bar */
.tool-ui-actions {
  display: flex;
  gap: 0.6rem;
  padding: 0 1.5rem 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.tool-ui-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

[data-theme="light"] .tool-ui-btn {
  border-color: rgba(15, 23, 42, 0.1);
}

.tool-ui-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.tool-ui-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tool-ui-btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
}

.tool-ui-btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.tool-ui-btn-primary:disabled {
  transform: none;
  box-shadow: none;
}

.tool-ui-btn-copied {
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.06);
}

/* Output area */
.tool-ui-output {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-ui-output-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tool-ui-output-card {
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.7;
  position: relative;
  transition: all 0.2s ease;
}

[data-theme="light"] .tool-ui-output-card {
  background: rgba(37, 99, 235, 0.03);
  border-color: rgba(37, 99, 235, 0.08);
}

.tool-ui-output-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.tool-ui-output-card .output-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  margin-right: 0.5rem;
}

.tool-ui-output-card .output-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
}

[data-theme="light"] .tool-ui-output-card .output-meta {
  border-top-color: rgba(15, 23, 42, 0.06);
}

.tool-ui-output-card .output-meta .meta-char-ok {
  color: var(--accent-cyan);
}

.tool-ui-output-card .output-meta .meta-char-warn {
  color: #F59E0B;
}

.tool-ui-output-card .output-meta .meta-char-over {
  color: #EF4444;
}

.tool-ui-output-card .output-copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 30px;
  height: 30px;
  border-radius: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  opacity: 0;
}

.tool-ui-output-card:hover .output-copy-btn {
  opacity: 1;
}

.tool-ui-output-card .output-copy-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Loading skeleton */
.tool-ui-loading {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tool-ui-skeleton {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.06) 0%, rgba(148, 163, 184, 0.12) 50%, rgba(148, 163, 184, 0.06) 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
  height: 16px;
}

[data-theme="light"] .tool-ui-skeleton {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.08) 50%, rgba(15, 23, 42, 0.04) 100%);
  background-size: 200% 100%;
}

.tool-ui-skeleton.short { width: 60%; }
.tool-ui-skeleton.medium { width: 80%; }
.tool-ui-skeleton.long { width: 100%; }

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Loading spinner */
.tool-ui-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty state */
.tool-ui-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.tool-ui-empty svg {
  margin: 0 auto 0.75rem;
  opacity: 0.3;
}

/* SERP Preview */
.tool-ui-serp {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
}

[data-theme="light"] .tool-ui-serp {
  border-color: rgba(15, 23, 42, 0.08);
  background: #fff;
}

.tool-ui-serp-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.tool-ui-serp-url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tool-ui-serp-title {
  font-size: 1.1rem;
  color: #8AB4F8;
  font-weight: 400;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.tool-ui-serp-desc {
  font-size: 0.8rem;
  color: #BDC1C6;
  line-height: 1.5;
}

[data-theme="light"] .tool-ui-serp-title {
  color: #1a0dab;
}

[data-theme="light"] .tool-ui-serp-desc {
  color: #4d5156;
}

[data-theme="light"] .tool-ui-serp-url {
  color: #006621;
}

/* Tool UI footer */
.tool-ui-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(148, 163, 184, 0.02);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 0.5rem;
}

[data-theme="light"] .tool-ui-footer {
  border-top-color: rgba(15, 23, 42, 0.06);
  background: rgba(15, 23, 42, 0.015);
}

.tool-ui-footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-ui-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: blink 2s ease-in-out infinite;
}

/* JSON-LD output block */
.tool-ui-jsonld {
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
}

[data-theme="light"] .tool-ui-jsonld {
  background: rgba(15, 23, 42, 0.03);
}

/* Tab switcher */
.tool-ui-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .tool-ui-tabs {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.tool-ui-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: -1px;
}

.tool-ui-tab:hover {
  color: var(--text-primary);
}

.tool-ui-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.tool-ui-tab-content {
  display: none;
  padding: 1.25rem 1.5rem;
}

.tool-ui-tab-content.active {
  display: block;
}

/* FAQ output specific */
.tool-ui-faq-item {
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}

[data-theme="light"] .tool-ui-faq-item {
  background: rgba(37, 99, 235, 0.03);
  border-color: rgba(37, 99, 235, 0.08);
}

.tool-ui-faq-q {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.tool-ui-faq-a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Business name output specific */
.tool-ui-name-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  transition: all 0.15s ease;
}

[data-theme="light"] .tool-ui-name-card {
  background: rgba(37, 99, 235, 0.03);
  border-color: rgba(37, 99, 235, 0.08);
}

.tool-ui-name-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateX(2px);
}

.tool-ui-name-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.tool-ui-name-actions {
  display: flex;
  gap: 0.35rem;
}

.tool-ui-name-btn {
  width: 28px;
  height: 28px;
  border-radius: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

[data-theme="light"] .tool-ui-name-btn {
  border-color: rgba(15, 23, 42, 0.1);
}

.tool-ui-name-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Progress bar for generation */
.tool-ui-progress {
  width: 100%;
  height: 3px;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.tool-ui-progress-bar {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 999px;
  width: 0%;
  transition: width 0.3s ease;
}

/* Hint text */
.tool-ui-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.tool-ui-hint svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent-cyan);
  opacity: 0.7;
}

/* Section 2: Tool Hero */
.tool-hero-section {
  position: relative;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tool-hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tool-hero-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tool-hero-breadcrumb a:hover {
  color: var(--accent-cyan);
}

.tool-hero-breadcrumb span {
  color: var(--text-primary);
  font-weight: 500;
}

.tool-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tool-hero-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
}

[data-theme="light"] .tool-hero-category {
  border-color: rgba(15, 23, 42, 0.1);
}

.tool-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25);
}

.tool-hero-content h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.tool-hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.tool-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero stats row */
.tool-hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.tool-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.tool-hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tool-hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Tool page sections */
.tool-section {
  padding: 4rem 0;
  position: relative;
}

.tool-section-alt {
  background: rgba(148, 163, 184, 0.02);
}

[data-theme="light"] .tool-section-alt {
  background: rgba(15, 23, 42, 0.015);
}

/* ===== Section 3: Features Bento Grid ===== */
.tool-features-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tool-feature-bento-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.tool-feature-bento-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .tool-feature-bento-card {
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .tool-feature-bento-card:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.tool-feature-bento-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 70%);
  pointer-events: none;
  transition: opacity 0.25s ease;
  opacity: 0;
}

.tool-feature-bento-card:hover .tool-feature-bento-glow {
  opacity: 1;
}

.tool-feature-bento-right .tool-feature-bento-glow {
  right: auto;
  left: -30%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06), transparent 70%);
}

.tool-feature-bento-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.tool-feature-bento-card:hover .tool-feature-bento-icon {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
}

.tool-feature-bento-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.tool-feature-bento-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Section 4: How It Works Timeline ===== */
.tool-timeline {
  display: flex;
  gap: 1.5rem;
  position: relative;
  margin-top: 1rem;
}

.tool-timeline-line {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  z-index: 0;
}

.tool-timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tool-timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

.tool-timeline-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.tool-timeline-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 2px solid rgba(37, 99, 235, 0.25);
  color: var(--primary-light);
  transition: all 0.25s ease;
}

.tool-timeline-item:hover .tool-timeline-icon {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.tool-timeline-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
  width: 100%;
}

[data-theme="light"] .tool-timeline-card {
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-timeline-item:hover .tool-timeline-card {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-3px);
}

.tool-timeline-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.tool-timeline-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Section 5: Use Cases Split Cards ===== */
.tool-usecases-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tool-usecase-split-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
}

[data-theme="light"] .tool-usecase-split-card {
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-usecase-split-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .tool-usecase-split-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.tool-usecase-split-bar {
  height: 3px;
  width: 100%;
}

.tool-usecase-accent-1 .tool-usecase-split-bar { background: linear-gradient(90deg, #2563EB, #3B82F6); }
.tool-usecase-accent-2 .tool-usecase-split-bar { background: linear-gradient(90deg, #06B6D4, #0891B2); }
.tool-usecase-accent-3 .tool-usecase-split-bar { background: linear-gradient(90deg, #8B5CF6, #7C3AED); }
.tool-usecase-accent-4 .tool-usecase-split-bar { background: linear-gradient(90deg, #06B6D4, #2563EB); }

.tool-usecase-accent-1 .tool-usecase-split-icon { background: rgba(37, 99, 235, 0.1); border-color: rgba(37, 99, 235, 0.15); color: var(--primary-light); }
.tool-usecase-accent-2 .tool-usecase-split-icon { background: rgba(6, 182, 212, 0.1); border-color: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.tool-usecase-accent-3 .tool-usecase-split-icon { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.15); color: var(--accent-violet); }
.tool-usecase-accent-4 .tool-usecase-split-icon { background: rgba(6, 182, 212, 0.1); border-color: rgba(37, 99, 235, 0.15); color: var(--accent-cyan); }

.tool-usecase-split-body {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
}

.tool-usecase-split-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.tool-usecase-split-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.tool-usecase-split-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ===== Section 6: Benefits + Stats ===== */
.tool-stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
}

[data-theme="light"] .tool-stats-bar {
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(148, 163, 184, 0.08);
}

.tool-stat-item:last-child {
  border-right: none;
}

[data-theme="light"] .tool-stat-item {
  border-right-color: rgba(15, 23, 42, 0.06);
}

.tool-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tool-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.tool-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tool-benefit-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .tool-benefit-card {
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-benefit-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .tool-benefit-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.tool-benefit-card-check {
  width: 28px;
  height: 28px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  margin-bottom: 0.85rem;
}

.tool-benefit-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.tool-benefit-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ===== Section 7: Example + Tips ===== */
.tool-example-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.tool-example-panel {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1rem;
  overflow: hidden;
}

[data-theme="light"] .tool-example-panel {
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-example-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(148, 163, 184, 0.02);
}

[data-theme="light"] .tool-example-panel-header {
  border-bottom-color: rgba(15, 23, 42, 0.06);
  background: rgba(15, 23, 42, 0.015);
}

.tool-example-dots {
  display: flex;
  gap: 0.35rem;
}

.tool-example-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tool-example-dots .dot.red { background: #FF5F57; }
.tool-example-dots .dot.yellow { background: #FEBC2E; }
.tool-example-dots .dot.green { background: #28C840; }

.tool-example-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.tool-example-panel-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-example-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tool-example-block-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.tool-example-input-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 0.75rem 1rem;
  background: rgba(148, 163, 184, 0.04);
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.06);
}

[data-theme="light"] .tool-example-input-text {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.04);
}

.tool-example-output-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.7;
  padding: 0.75rem 1rem;
  background: rgba(37, 99, 235, 0.04);
  border-radius: 0.5rem;
  border: 1px solid rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .tool-example-output-text {
  background: rgba(37, 99, 235, 0.03);
  border-color: rgba(37, 99, 235, 0.06);
}

.tool-tips-sidebar {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
}

[data-theme="light"] .tool-tips-sidebar {
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-tips-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.tool-tips-title svg {
  color: var(--accent-cyan);
}

.tool-tip-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.tool-tip-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

[data-theme="light"] .tool-tip-item {
  border-bottom-color: rgba(15, 23, 42, 0.04);
}

.tool-tip-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
  margin-top: 6px;
}

.tool-tip-item strong {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.tool-tip-item p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Section 8: FAQ + Related Two-Column ===== */
.tool-faq-related-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.tool-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-related-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-related-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
}

[data-theme="light"] .tool-related-card {
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-related-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .tool-related-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.tool-related-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
  flex-shrink: 0;
}

.tool-related-card span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-related-arrow {
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tool-related-card:hover .tool-related-arrow {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

/* ===== Tool UI Header with Badge ===== */
.tool-ui-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  margin: -1.5rem -1.5rem 1.25rem;
  background: rgba(148, 163, 184, 0.02);
}

[data-theme="light"] .tool-ui-header-bar {
  border-bottom-color: rgba(15, 23, 42, 0.06);
  background: rgba(15, 23, 42, 0.015);
}

.tool-ui-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tool-ui-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.tool-ui-header-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.tool-ui-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-ui-header-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

.tool-ui-header-badge.free {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.tool-ui-header-badge.paid {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.tool-ui-header-model {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(37, 99, 235, 0.05);
}

/* ===== Free Note Banner ===== */
.tool-ui-free-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  background: rgba(6, 182, 212, 0.03);
  margin: 0 -1.5rem -1.5rem;
}

[data-theme="light"] .tool-ui-free-note {
  border-top-color: rgba(15, 23, 42, 0.04);
  background: rgba(8, 145, 178, 0.02);
}

.tool-ui-free-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* ===== Swap Button (Translator) ===== */
.tool-ui-swap-btn {
  width: 40px;
  height: 40px;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(148, 163, 184, 0.03);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 0;
}

[data-theme="light"] .tool-ui-swap-btn {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.12);
}

.tool-ui-swap-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: rotate(180deg);
}

/* ===== Locked State for Paid Tools ===== */
.tool-ui-locked .tool-ui-panel {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.tool-ui-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 10;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

[data-theme="light"] .tool-ui-locked-overlay {
  background: rgba(248, 250, 252, 0.85);
}

.tool-ui-locked-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

.tool-ui-locked-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tool-ui-locked-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.6;
}

.tool-ui-locked-pricing {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tool-ui-pricing-card {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.75rem;
  padding: 0.85rem 1.1rem;
  text-align: center;
  min-width: 90px;
}

[data-theme="light"] .tool-ui-pricing-card {
  border-color: rgba(15, 23, 42, 0.1);
}

.tool-ui-pricing-card .price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.tool-ui-pricing-card .credits {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.tool-ui-locked-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 0.6rem;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  animation: glowPulse 1.5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.tool-ui-locked-cta:hover {
  transform: translateY(-2px);
  color: #fff;
}

/* ===== Compact Features Grid (3-column) ===== */
.tool-features-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tool-features-compact .tool-feature-bento-card {
  flex-direction: column;
  padding: 1.25rem;
  gap: 0;
}

.tool-features-compact .tool-feature-bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.tool-features-compact .tool-feature-bento-icon svg {
  width: 22px;
  height: 22px;
}

.tool-features-compact .tool-feature-bento-body h3 {
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.tool-features-compact .tool-feature-bento-body p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.tool-features-compact .tool-feature-bento-glow {
  width: 140px;
  height: 140px;
}

/* ===== Tool UI Format Chips ===== */
.tool-ui-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tool-ui-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .tool-ui-chip {
  border-color: rgba(15, 23, 42, 0.12);
}

.tool-ui-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.tool-ui-chip.selected {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
}

/* ===== Tool UI Single Column Layout ===== */
.tool-ui-single {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 100%;
}

.tool-ui-single .tool-ui-panel {
  position: relative;
}

/* ============================================
   TOOL INTERFACE ΓÇö Interactive UI Components
   ============================================ */

.tool-interface-section {
  padding: 2rem 0 3rem;
  position: relative;
}

.tool-ui {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

/* ---------- Banner ---------- */
.tool-ui-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  border: 1px solid;
}

.tool-ui-banner-free {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
}

.tool-ui-banner-trial {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--accent-violet);
}

.tool-ui-banner-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.tool-ui-banner-icon {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-ui-banner-free .tool-ui-banner-icon {
  background: rgba(6, 182, 212, 0.15);
}

.tool-ui-banner-trial .tool-ui-banner-icon {
  background: rgba(139, 92, 246, 0.15);
}

.tool-ui-credit-counter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--accent-violet);
  white-space: nowrap;
}

.tool-ui-credit-dots {
  display: flex;
  gap: 3px;
}

.tool-ui-credit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-violet);
}

.tool-ui-credit-dot.used {
  background: rgba(139, 92, 246, 0.25);
}

/* ---------- Panels ---------- */
.tool-ui-panel {
  background: var(--bg-surface);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.tool-ui-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(6, 182, 212, 0.3), transparent);
}

.tool-ui-panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.tool-ui-panel-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
  flex-shrink: 0;
}

.tool-ui-panel-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* ---------- Form Fields ---------- */
.tool-ui-field {
  margin-bottom: 1.1rem;
}

.tool-ui-field:last-child {
  margin-bottom: 0;
}

.tool-ui-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.tool-ui-label-hint {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(148, 163, 184, 0.8);
  font-family: var(--font-mono);
}

.tool-ui-input,
.tool-ui-textarea,
.tool-ui-select {
  width: 100%;
  background: rgba(5, 8, 22, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.tool-ui-input::placeholder,
.tool-ui-textarea::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.tool-ui-input:focus,
.tool-ui-textarea:focus,
.tool-ui-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tool-ui-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.tool-ui-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.tool-ui-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* ---------- Pill Selectors ---------- */
.tool-ui-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tool-ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tool-ui-pill:hover {
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--text-primary);
}

.tool-ui-pill.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.12));
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
}

.tool-ui-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------- Toggle Switch ---------- */
.tool-ui-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.tool-ui-toggle-row + .tool-ui-toggle-row {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.tool-ui-toggle-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-ui-toggle-label svg {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
}

.tool-ui-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.tool-ui-toggle.active {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  border-color: transparent;
}

.tool-ui-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tool-ui-toggle.active .tool-ui-toggle-thumb {
  transform: translateX(18px);
}

/* ---------- Bulk Mode Placeholder ---------- */
.tool-ui-bulk-placeholder {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.6rem;
  background: rgba(148, 163, 184, 0.06);
  border: 1px dashed rgba(148, 163, 184, 0.2);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.tool-ui-bulk-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-violet);
  white-space: nowrap;
}

/* ---------- Generate Button ---------- */
.tool-ui-generate-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 0.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--gradient-brand);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.tool-ui-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.tool-ui-generate-btn:active {
  transform: translateY(0);
}

.tool-ui-generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.tool-ui-generate-btn svg {
  width: 18px;
  height: 18px;
}

.tool-ui-generate-btn.loading .tool-ui-generate-text {
  opacity: 0.7;
}

.tool-ui-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.tool-ui-generate-btn.loading .tool-ui-spinner {
  display: block;
}

.tool-ui-generate-btn.loading .tool-ui-generate-icon {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Output Panel ---------- */
.tool-ui-output-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 1rem;
}

.tool-ui-output-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.1);
  color: rgba(37, 99, 235, 0.6);
}

.tool-ui-output-empty-icon svg {
  width: 32px;
  height: 32px;
}

.tool-ui-output-empty h4 {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.tool-ui-output-empty p {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.7);
  max-width: 280px;
}

/* ---------- Loading Skeleton ---------- */
.tool-ui-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
}

.tool-ui-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.06) 25%, rgba(148, 163, 184, 0.12) 50%, rgba(148, 163, 184, 0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.tool-ui-skeleton-line.w-100 { width: 100%; }
.tool-ui-skeleton-line.w-80 { width: 80%; }
.tool-ui-skeleton-line.w-60 { width: 60%; }
.tool-ui-skeleton-line.w-40 { width: 40%; }
.tool-ui-skeleton-line.h-20 { height: 20px; }
.tool-ui-skeleton-line.h-24 { height: 24px; }

.tool-ui-skeleton-block {
  border-radius: 0.6rem;
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

/* ---------- Variant Cards ---------- */
.tool-ui-variants {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-ui-variant {
  background: rgba(5, 8, 22, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
  animation: fadeUp 0.4s ease-out forwards;
}

.tool-ui-variant:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.tool-ui-variant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tool-ui-variant-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.tool-ui-variant-badge {
  width: 24px;
  height: 24px;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tool-ui-variant-content {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.tool-ui-variant-bullets {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tool-ui-variant-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tool-ui-variant-bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ---------- SEO Keywords ---------- */
.tool-ui-seo-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.tool-ui-seo-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tool-ui-seo-title svg {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

.tool-ui-seo-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tool-ui-seo-keyword {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

/* ---------- Character/Word Counter ---------- */
.tool-ui-counter-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.tool-ui-counter-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.tool-ui-counter-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-brand);
  transition: width 0.3s ease;
}

.tool-ui-counter-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.tool-ui-counter-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.tool-ui-counter-text span {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Action Buttons ---------- */
.tool-ui-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.tool-ui-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-ui-action-btn:hover {
  color: var(--text-primary);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.08);
}

.tool-ui-action-btn.copied {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.tool-ui-action-btn svg {
  width: 14px;
  height: 14px;
}

.tool-ui-action-btn.primary {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
}

.tool-ui-action-btn.primary:hover {
  background: rgba(37, 99, 235, 0.15);
}

/* ---------- Platform Preview Cards ---------- */
.tool-ui-platform-preview {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.6rem;
  background: rgba(5, 8, 22, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.tool-ui-platform-preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.tool-ui-platform-preview-header svg {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

/* Amazon preview */
.tool-ui-amazon-preview {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.tool-ui-amazon-preview .product-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.tool-ui-amazon-preview .product-rating {
  font-size: 0.72rem;
  color: #f59e0b;
  margin-bottom: 0.5rem;
}

.tool-ui-amazon-preview .product-price {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tool-ui-amazon-preview .product-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Shopify preview */
.tool-ui-shopify-preview {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.tool-ui-shopify-preview .product-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.tool-ui-shopify-preview .product-price {
  font-size: 1rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tool-ui-shopify-preview .product-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Etsy preview */
.tool-ui-etsy-preview {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.tool-ui-etsy-preview .product-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.tool-ui-etsy-preview .product-shop {
  font-size: 0.72rem;
  color: var(--accent-violet);
  margin-bottom: 0.4rem;
}

.tool-ui-etsy-preview .product-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* eBay preview */
.tool-ui-ebay-preview {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.tool-ui-ebay-preview .product-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.tool-ui-ebay-preview .product-condition {
  font-size: 0.72rem;
  color: #10b981;
  margin-bottom: 0.4rem;
}

.tool-ui-ebay-preview .product-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Ad Preview Mockups ---------- */
.tool-ui-ad-preview {
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.08);
  margin-top: 0.5rem;
}

/* Google Ads preview */
.tool-ui-google-ad {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.tool-ui-google-ad .ad-url {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
}

.tool-ui-google-ad .ad-headline {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.tool-ui-google-ad .ad-headline-2 {
  font-size: 1rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.tool-ui-google-ad .ad-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Facebook/Instagram preview */
.tool-ui-fb-ad {
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.tool-ui-fb-ad-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
}

.tool-ui-fb-ad-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.tool-ui-fb-ad-page-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-ui-fb-ad-sponsored {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.tool-ui-fb-ad-body {
  padding: 0 0.75rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.tool-ui-fb-ad-media {
  height: 120px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.tool-ui-fb-ad-media span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.tool-ui-fb-ad-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
}

.tool-ui-fb-ad-cta-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-ui-fb-ad-cta-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* LinkedIn preview */
.tool-ui-linkedin-ad {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.6rem;
}

.tool-ui-linkedin-ad-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.tool-ui-linkedin-ad-avatar {
  width: 36px;
  height: 36px;
  border-radius: 0.4rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light);
  flex-shrink: 0;
}

.tool-ui-linkedin-ad-company {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-ui-linkedin-ad-meta {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.tool-ui-linkedin-ad-body {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.tool-ui-linkedin-ad-cta {
  display: inline-flex;
  padding: 0.4rem 1rem;
  border-radius: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--gradient-brand);
  color: #fff;
}

/* ---------- Performance Prediction Placeholder ---------- */
.tool-ui-perf-prediction {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.6rem;
  background: rgba(139, 92, 246, 0.05);
  border: 1px dashed rgba(139, 92, 246, 0.2);
}

.tool-ui-perf-prediction-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.tool-ui-perf-prediction-header svg {
  width: 16px;
  height: 16px;
  color: var(--accent-violet);
}

.tool-ui-perf-prediction-header span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-violet);
}

.tool-ui-perf-prediction-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-violet);
}

.tool-ui-perf-prediction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.tool-ui-perf-metric {
  text-align: center;
  padding: 0.6rem 0.4rem;
  border-radius: 0.4rem;
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.08);
}

.tool-ui-perf-metric-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.tool-ui-perf-metric-label {
  font-size: 0.62rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* ---------- Character Limit Enforcement ---------- */
.tool-ui-char-limit {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.tool-ui-char-limit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.tool-ui-char-limit-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.tool-ui-char-limit-count {
  font-family: var(--font-mono);
  font-weight: 600;
}

.tool-ui-char-limit-count.ok {
  color: #10b981;
}

.tool-ui-char-limit-count.warning {
  color: #f59e0b;
}

.tool-ui-char-limit-count.over {
  color: #ef4444;
}

.tool-ui-char-limit-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.tool-ui-char-limit-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

.tool-ui-char-limit-fill.ok {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.tool-ui-char-limit-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.tool-ui-char-limit-fill.over {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* ---------- Tool UI How To Use ---------- */
.tool-ui-howto {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: rgba(5, 8, 22, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.06);
}

.tool-ui-howto-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
}

.tool-ui-howto-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.tool-ui-howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.tool-ui-howto-step {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.tool-ui-howto-step-num {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.tool-ui-howto-step-body h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.tool-ui-howto-step-body p {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Tool UI FAQ ---------- */
.tool-ui-faq {
  margin-top: 1.5rem;
}

.tool-ui-faq-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
}

.tool-ui-faq-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.tool-ui-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-ui-faq-item {
  border-radius: 0.6rem;
  background: rgba(5, 8, 22, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.06);
  overflow: hidden;
}

.tool-ui-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.tool-ui-faq-question:hover {
  background: rgba(148, 163, 184, 0.03);
}

.tool-ui-faq-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.tool-ui-faq-item.open .tool-ui-faq-chevron {
  transform: rotate(180deg);
}

.tool-ui-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.tool-ui-faq-item.open .tool-ui-faq-answer {
  max-height: 200px;
}

.tool-ui-faq-answer p {
  padding: 0 1rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Light theme overrides for tool UI ---------- */
[data-theme="light"] .tool-ui-panel {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .tool-ui-input,
[data-theme="light"] .tool-ui-textarea,
[data-theme="light"] .tool-ui-select {
  background: rgba(248, 250, 252, 0.8);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .tool-ui-variant {
  background: rgba(248, 250, 252, 0.5);
}

[data-theme="light"] .tool-ui-platform-preview,
[data-theme="light"] .tool-ui-amazon-preview,
[data-theme="light"] .tool-ui-shopify-preview,
[data-theme="light"] .tool-ui-etsy-preview,
[data-theme="light"] .tool-ui-ebay-preview {
  background: rgba(248, 250, 252, 0.5);
}

[data-theme="light"] .tool-ui-google-ad,
[data-theme="light"] .tool-ui-linkedin-ad {
  background: rgba(248, 250, 252, 0.6);
}

[data-theme="light"] .tool-ui-howto,
[data-theme="light"] .tool-ui-faq-item {
  background: rgba(248, 250, 252, 0.5);
}

[data-theme="light"] .tool-ui-output-empty-icon {
  background: rgba(37, 99, 235, 0.04);
}

/* ---------- Tool UI Locked Overlay (Paid Tools) ---------- */
.tool-ui-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  gap: 0.75rem;
}

[data-theme="light"] .tool-ui-locked-overlay {
  background: rgba(255, 255, 255, 0.85);
}

.tool-ui-locked-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--accent-violet);
  margin-bottom: 0.5rem;
}

.tool-ui-locked-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tool-ui-locked-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.6;
}

.tool-ui-locked-pricing {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.tool-ui-pricing-card {
  padding: 0.85rem 1.25rem;
  border-radius: 0.6rem;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
  min-width: 90px;
}

.tool-ui-pricing-card .price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tool-ui-pricing-card .credits {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.tool-ui-locked-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  border-radius: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--gradient-brand);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tool-ui-locked-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* ---------- Tool UI Input Counter ---------- */
.tool-ui-counter {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.tool-ui-counter .count-num {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   ENHANCED TOOL UI ΓÇö Software-grade Components
   ============================================ */

/* ---------- App Header Bar ---------- */
.tool-ui-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(11, 17, 32, 0.8), rgba(5, 8, 22, 0.6));
  border: 1px solid rgba(148, 163, 184, 0.1);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

[data-theme="light"] .tool-ui-app-header {
  background: linear-gradient(135deg, #fff, rgba(248, 250, 252, 0.8));
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-ui-app-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tool-ui-app-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
  flex-shrink: 0;
}

.tool-ui-app-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tool-ui-app-header-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.tool-ui-app-header-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.tool-ui-app-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- Model Selector ---------- */
.tool-ui-model-selector {
  display: flex;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

[data-theme="light"] .tool-ui-model-selector {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-ui-model-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tool-ui-model-btn:hover {
  background: rgba(148, 163, 184, 0.06);
}

.tool-ui-model-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.12));
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.1);
}

.tool-ui-model-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.tool-ui-model-btn.active .tool-ui-model-name {
  color: var(--text-primary);
}

.tool-ui-model-desc {
  font-size: 0.58rem;
  color: rgba(148, 163, 184, 0.7);
}

.tool-ui-model-btn.active .tool-ui-model-desc {
  color: var(--accent-cyan);
}

/* ---------- Document Type Grid ---------- */
.tool-ui-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
}

.tool-ui-doc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.6rem;
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

[data-theme="light"] .tool-ui-doc-card {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-ui-doc-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.04);
}

.tool-ui-doc-card.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.08));
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.1);
}

.tool-ui-doc-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.tool-ui-doc-card.active .tool-ui-doc-card-icon {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
}

.tool-ui-doc-card-icon svg {
  width: 18px;
  height: 18px;
}

.tool-ui-doc-card-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.tool-ui-doc-card.active .tool-ui-doc-card-label {
  color: var(--text-primary);
}

/* ---------- Collapsible Outline Sections ---------- */
.tool-ui-outline-section {
  border-radius: 0.6rem;
  background: rgba(5, 8, 22, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease;
  animation: fadeUp 0.3s ease-out forwards;
}

[data-theme="light"] .tool-ui-outline-section {
  background: rgba(248, 250, 252, 0.5);
}

.tool-ui-outline-section:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.tool-ui-outline-section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tool-ui-outline-section-header:hover {
  background: rgba(148, 163, 184, 0.03);
}

.tool-ui-outline-section-num {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.tool-ui-outline-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.tool-ui-outline-section-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.tool-ui-outline-section-words {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  background: rgba(148, 163, 184, 0.06);
}

.tool-ui-outline-collapse-icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.tool-ui-outline-section.expanded .tool-ui-outline-collapse-icon {
  transform: rotate(180deg);
}

.tool-ui-outline-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.tool-ui-outline-section.expanded .tool-ui-outline-section-body {
  max-height: 500px;
}

.tool-ui-outline-section-content {
  padding: 0 1rem 0.85rem 2.6rem;
}

.tool-ui-outline-key-points {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tool-ui-outline-key-point {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tool-ui-outline-key-point::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.tool-ui-outline-seo-keywords {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.tool-ui-outline-seo-keyword {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

/* ---------- Word Count Bar ---------- */
.tool-ui-word-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.08);
  overflow: hidden;
  margin-top: 0.4rem;
}

.tool-ui-word-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  transition: width 0.5s ease;
}

/* ---------- Action Bar ---------- */
.tool-ui-action-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  margin-top: 0.75rem;
}

.tool-ui-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .tool-ui-action-btn {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

.tool-ui-action-btn:hover {
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--text-primary);
  background: rgba(37, 99, 235, 0.05);
}

.tool-ui-action-btn.primary {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
}

.tool-ui-action-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  color: #fff;
}

.tool-ui-action-btn.copied {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.tool-ui-action-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------- Status Bar ---------- */
.tool-ui-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: rgba(5, 8, 22, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.06);
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

[data-theme="light"] .tool-ui-status-bar {
  background: rgba(248, 250, 252, 0.5);
}

.tool-ui-status-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tool-ui-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.tool-ui-status-dot.idle { background: rgba(148, 163, 184, 0.4); }
.tool-ui-status-dot.loading { background: #f59e0b; animation: statusPulse 1s ease-in-out infinite; }

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Score Card ---------- */
.tool-ui-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tool-ui-score-card {
  padding: 0.75rem;
  border-radius: 0.6rem;
  background: rgba(5, 8, 22, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.08);
  text-align: center;
}

[data-theme="light"] .tool-ui-score-card {
  background: rgba(248, 250, 252, 0.5);
}

.tool-ui-score-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.tool-ui-score-value.good { color: #10b981; }
.tool-ui-score-value.ok { color: #f59e0b; }
.tool-ui-score-value.poor { color: #ef4444; }

.tool-ui-score-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Comparison View ---------- */
.tool-ui-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tool-ui-comparison-panel {
  padding: 0.85rem;
  border-radius: 0.6rem;
  background: rgba(5, 8, 22, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .tool-ui-comparison-panel {
  background: rgba(248, 250, 252, 0.5);
}

.tool-ui-comparison-panel-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.tool-ui-comparison-panel-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
}

.tool-ui-comparison-panel-text.before {
  color: rgba(148, 163, 184, 0.7);
}

.tool-ui-comparison-panel-text.after {
  color: var(--text-primary);
}

/* ---------- SWOT Matrix ---------- */
.tool-ui-swot-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tool-ui-swot-quadrant {
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid;
  min-height: 180px;
}

.tool-ui-swot-quadrant.strengths {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}

.tool-ui-swot-quadrant.weaknesses {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
}

.tool-ui-swot-quadrant.opportunities {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.2);
}

.tool-ui-swot-quadrant.threats {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.2);
}

.tool-ui-swot-quadrant-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tool-ui-swot-quadrant-icon {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-ui-swot-quadrant.strengths .tool-ui-swot-quadrant-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.tool-ui-swot-quadrant.weaknesses .tool-ui-swot-quadrant-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.tool-ui-swot-quadrant.opportunities .tool-ui-swot-quadrant-icon {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
}

.tool-ui-swot-quadrant.threats .tool-ui-swot-quadrant-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.tool-ui-swot-quadrant-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tool-ui-swot-quadrant-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tool-ui-swot-quadrant-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tool-ui-swot-quadrant-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.tool-ui-swot-quadrant.strengths .tool-ui-swot-quadrant-item::before { background: #10b981; }
.tool-ui-swot-quadrant.weaknesses .tool-ui-swot-quadrant-item::before { background: #ef4444; }
.tool-ui-swot-quadrant.opportunities .tool-ui-swot-quadrant-item::before { background: var(--primary-light); }
.tool-ui-swot-quadrant.threats .tool-ui-swot-quadrant-item::before { background: #f59e0b; }

/* ---------- TOWS Matrix ---------- */
.tool-ui-tows-section {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.6rem;
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.12);
}

.tool-ui-tows-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-ui-tows-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-violet);
}

.tool-ui-tows-strategies {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-ui-tows-strategy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.45rem;
  background: rgba(5, 8, 22, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.06);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

[data-theme="light"] .tool-ui-tows-strategy {
  background: rgba(248, 250, 252, 0.4);
}

.tool-ui-tows-strategy-badge {
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.tool-ui-tows-strategy-badge.so { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.tool-ui-tows-strategy-badge.wo { background: rgba(37, 99, 235, 0.12); color: var(--primary-light); }
.tool-ui-tows-strategy-badge.st { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.tool-ui-tows-strategy-badge.wt { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

/* ---------- Rating Stars ---------- */
.tool-ui-rating {
  display: flex;
  gap: 0.15rem;
}

.tool-ui-rating-star {
  width: 16px;
  height: 16px;
  color: rgba(148, 163, 184, 0.3);
  cursor: pointer;
  transition: color 0.15s ease;
}

.tool-ui-rating-star.active {
  color: #f59e0b;
}

.tool-ui-rating-star:hover {
  color: #fbbf24;
}

/* ---------- Preview Mockup ---------- */
.tool-ui-preview-mockup {
  border-radius: 0.75rem;
  background: rgba(5, 8, 22, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

[data-theme="light"] .tool-ui-preview-mockup {
  background: #fff;
}

.tool-ui-preview-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: rgba(148, 163, 184, 0.04);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.tool-ui-preview-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tool-ui-preview-mockup-dot.red { background: #ef4444; }
.tool-ui-preview-mockup-dot.yellow { background: #f59e0b; }
.tool-ui-preview-mockup-dot.green { background: #10b981; }

.tool-ui-preview-mockup-url {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.tool-ui-preview-mockup-body {
  padding: 1.25rem;
}

.tool-ui-preview-headline {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tool-ui-preview-subheadline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tool-ui-preview-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Section Tabs ---------- */
.tool-ui-section-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.08);
  margin-bottom: 1rem;
}

[data-theme="light"] .tool-ui-section-tabs {
  background: rgba(15, 23, 42, 0.03);
}

.tool-ui-section-tab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.tool-ui-section-tab:hover {
  color: var(--text-primary);
}

.tool-ui-section-tab.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ---------- Slider (Enhanced) ---------- */
.tool-ui-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tool-ui-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tool-ui-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.12);
  outline: none;
}

.tool-ui-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
  transition: transform 0.15s ease;
}

.tool-ui-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.tool-ui-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

.tool-ui-slider-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 60px;
  text-align: right;
}

.tool-ui-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: rgba(148, 163, 184, 0.6);
  font-family: var(--font-mono);
}

/* ---------- Variant Card Enhanced ---------- */
.tool-ui-variant-card {
  background: rgba(5, 8, 22, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
  animation: fadeUp 0.4s ease-out forwards;
}

[data-theme="light"] .tool-ui-variant-card {
  background: rgba(248, 250, 252, 0.5);
}

.tool-ui-variant-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.tool-ui-variant-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tool-ui-variant-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.tool-ui-variant-card-actions {
  display: flex;
  gap: 0.3rem;
}

.tool-ui-variant-card-btn {
  width: 28px;
  height: 28px;
  border-radius: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tool-ui-variant-card-btn:hover {
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--text-primary);
}

.tool-ui-variant-card-btn.copied {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.tool-ui-variant-card-btn svg {
  width: 14px;
  height: 14px;
}

.tool-ui-variant-headline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.tool-ui-variant-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.tool-ui-variant-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tool-ui-variant-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tool-ui-variant-bullets li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* ---------- Progress Dots ---------- */
.tool-ui-progress-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 0.5rem 0;
}

.tool-ui-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  animation: progressPulse 1.4s ease-in-out infinite;
}

.tool-ui-progress-dot:nth-child(1) { animation-delay: 0s; }
.tool-ui-progress-dot:nth-child(2) { animation-delay: 0.2s; }
.tool-ui-progress-dot:nth-child(3) { animation-delay: 0.4s; }
.tool-ui-progress-dot:nth-child(4) { animation-delay: 0.6s; }
.tool-ui-progress-dot:nth-child(5) { animation-delay: 0.8s; }

@keyframes progressPulse {
  0%, 80%, 100% { background: rgba(148, 163, 184, 0.2); transform: scale(1); }
  40% { background: var(--primary-light); transform: scale(1.3); }
}

/* ---------- Empty State Enhanced ---------- */
.tool-ui-empty-illustration {
  width: 80px;
  height: 80px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(6, 182, 212, 0.04));
  border: 1px solid rgba(37, 99, 235, 0.08);
  margin-bottom: 0.5rem;
  position: relative;
}

.tool-ui-empty-illustration::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(6, 182, 212, 0.03));
  z-index: -1;
  filter: blur(8px);
}

.tool-ui-empty-illustration svg {
  width: 36px;
  height: 36px;
  color: rgba(37, 99, 235, 0.5);
}

.tool-ui-empty-example {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background: rgba(37, 99, 235, 0.04);
  border: 1px dashed rgba(37, 99, 235, 0.15);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  max-width: 320px;
}

.tool-ui-empty-example:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.06);
}

.tool-ui-empty-example-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

/* ---------- Two-column form row ---------- */
.tool-ui-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ---------- Output Scroll Area ---------- */
.tool-ui-output-scroll {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.tool-ui-output-scroll::-webkit-scrollbar {
  width: 4px;
}

.tool-ui-output-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.tool-ui-output-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.15);
  border-radius: 2px;
}

/* ---------- Keyboard Shortcut Hint ---------- */
.tool-ui-shortcut-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  color: rgba(148, 163, 184, 0.6);
  font-family: var(--font-mono);
}

.tool-ui-shortcut-key {
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---------- Responsive: Enhanced UI (max-width: 1023px) ---------- */
@media (max-width: 1023px) {
  .tool-ui-app-header {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .tool-ui-app-header-title {
    font-size: 0.9rem;
  }

  .tool-ui-model-selector {
    gap: 0.2rem;
  }

  .tool-ui-model-btn {
    padding: 0.3rem 0.55rem;
  }

  .tool-ui-model-name {
    font-size: 0.68rem;
  }

  .tool-ui-model-desc {
    font-size: 0.55rem;
  }

  .tool-ui-doc-grid {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  }

  .tool-ui-comparison {
    grid-template-columns: 1fr;
  }

  .tool-ui-swot-matrix {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .tool-ui-form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive: Enhanced UI (max-width: 640px) ---------- */
@media (max-width: 640px) {
  .tool-ui-app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .tool-ui-app-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .tool-ui-model-selector {
    flex: 1;
  }

  .tool-ui-model-btn {
    flex: 1;
  }

  .tool-ui-doc-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tool-ui-swot-matrix {
    grid-template-columns: 1fr;
  }

  .tool-ui-swot-quadrant {
    min-height: auto;
  }

  .tool-ui-comparison {
    grid-template-columns: 1fr;
  }

  .tool-ui-score-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-ui-section-tabs {
    flex-direction: column;
  }

  .tool-ui-action-bar {
    flex-direction: column;
  }

  .tool-ui-action-btn {
    width: 100%;
    justify-content: center;
  }

  .tool-ui-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .tool-ui-outline-section-header {
    padding: 0.6rem 0.75rem;
  }

  .tool-ui-outline-section-content {
    padding-left: 2rem;
  }

  .tool-ui-preview-mockup-body {
    padding: 1rem;
  }

  .tool-ui-preview-headline {
    font-size: 1.1rem;
  }
}

/* ---------- Responsive: Enhanced UI (max-width: 358px) ---------- */
@media (max-width: 358px) {
  .tool-ui-app-header {
    padding: 0.6rem 0.75rem;
  }

  .tool-ui-app-header-icon {
    width: 32px;
    height: 32px;
  }

  .tool-ui-app-header-title {
    font-size: 0.85rem;
  }

  .tool-ui-app-header-sub {
    font-size: 0.62rem;
  }

  .tool-ui-model-btn {
    padding: 0.25rem 0.45rem;
  }

  .tool-ui-model-name {
    font-size: 0.62rem;
  }

  .tool-ui-model-desc {
    font-size: 0.5rem;
  }

  .tool-ui-doc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .tool-ui-doc-card {
    padding: 0.6rem 0.4rem;
  }

  .tool-ui-doc-card-icon {
    width: 28px;
    height: 28px;
  }

  .tool-ui-doc-card-label {
    font-size: 0.65rem;
  }

  .tool-ui-outline-section-num {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }

  .tool-ui-outline-section-title {
    font-size: 0.78rem;
  }

  .tool-ui-outline-section-words {
    font-size: 0.6rem;
  }

  .tool-ui-outline-key-point {
    font-size: 0.72rem;
  }

  .tool-ui-outline-seo-keyword {
    font-size: 0.58rem;
  }

  .tool-ui-action-btn {
    font-size: 0.68rem;
    padding: 0.4rem 0.65rem;
  }

  .tool-ui-status-bar {
    font-size: 0.62rem;
    padding: 0.5rem 0.75rem;
  }

  .tool-ui-score-grid {
    grid-template-columns: 1fr;
  }

  .tool-ui-score-value {
    font-size: 1.25rem;
  }

  .tool-ui-swot-quadrant {
    padding: 0.75rem;
  }

  .tool-ui-swot-quadrant-title {
    font-size: 0.78rem;
  }

  .tool-ui-swot-quadrant-item {
    font-size: 0.72rem;
  }

  .tool-ui-tows-strategy {
    font-size: 0.72rem;
    padding: 0.5rem 0.6rem;
  }

  .tool-ui-tows-strategy-badge {
    font-size: 0.55rem;
  }

  .tool-ui-variant-card {
    padding: 1rem;
  }

  .tool-ui-variant-headline {
    font-size: 0.9rem;
  }

  .tool-ui-variant-sub {
    font-size: 0.76rem;
  }

  .tool-ui-variant-bullets li {
    font-size: 0.7rem;
  }

  .tool-ui-preview-headline {
    font-size: 1rem;
  }

  .tool-ui-preview-subheadline {
    font-size: 0.78rem;
  }

  .tool-ui-empty-example {
    font-size: 0.68rem;
  }

  .tool-ui-shortcut-hint {
    display: none;
  }

  .tool-ui-slider-value {
    font-size: 0.72rem;
    min-width: 50px;
  }

  .tool-ui-slider-ticks {
    font-size: 0.55rem;
  }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-top:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.15);
}

[data-theme="light"] #scroll-top {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] #scroll-top:hover {
  background: rgba(8, 145, 178, 0.06);
}

@media (max-width: 1023px) {
  #scroll-top {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 358px) {
  #scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}
