/* ===== ULTRA-PREMIUM FUTURISTIC DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #08060f;
  --bg-navy: #0c0a14;
  --bg-card: rgba(18, 22, 42, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.25);
  --text: #eef2f7;
  --text-muted: #8b95a8;
  --neon-cyan: #38bdf8;
  --neon-blue: #0ea5e9;
  --electric-blue: #60a5fa;
  --neon-purple: #a78bfa;
  --neon-pink: #f472b6;
  --glow-cyan: 0 0 24px rgba(56, 189, 248, 0.35), 0 0 48px rgba(56, 189, 248, 0.12);
  --glow-cyan-soft: 0 0 32px rgba(56, 189, 248, 0.12);
  --glow-purple: 0 0 24px rgba(167, 139, 250, 0.25);
  --gradient-bg: linear-gradient(180deg, #0a0812 0%, #12101c 40%, #0c0a14 80%, #0e0c18 100%);
  --gradient-hero: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(167, 139, 250, 0.06) 50%, rgba(14, 165, 233, 0.04) 100%);
  --gradient-text: linear-gradient(135deg, #f8fafc 0%, #38bdf8 45%, #a78bfa 100%);
  --font-head: 'Space Grotesk', 'Sora', sans-serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --radius: 20px;
  --radius-xl: 24px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-butter: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: #0a0812;
  overscroll-behavior-y: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(167, 139, 250, 0.04) 0%, transparent 45%),
    linear-gradient(180deg, #0a0812 0%, #0e0c18 35%, #0c0a14 70%, #0a0814 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  position: relative;
}

/* Subtle hex grid - faded overlay in front, content stays readable */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cdefs%3E%3Cpattern id='h' width='56' height='97' patternUnits='userSpaceOnUse'%3E%3Cpath d='M28 0L56 24.25L56 48.5L28 48.5L0 48.5L0 24.25Z' fill='none' stroke='%23c4b5fd' stroke-width='0.6' stroke-opacity='0.12' stroke-linejoin='round'/%3E%3Cpath d='M0 48.5L28 72.75L28 97L0 97L-28 97L-28 72.75Z' fill='none' stroke='%23c4b5fd' stroke-width='0.6' stroke-opacity='0.12' stroke-linejoin='round'/%3E%3Cpath d='M56 48.5L84 72.75L84 97L56 97L28 97L28 72.75Z' fill='none' stroke='%23c4b5fd' stroke-width='0.6' stroke-opacity='0.12' stroke-linejoin='round'/%3E%3Ccircle cx='28' cy='0' r='0.8' fill='%23c4b5fd' opacity='0.14'/%3E%3Ccircle cx='28' cy='48.5' r='0.8' fill='%23c4b5fd' opacity='0.14'/%3E%3Ccircle cx='0' cy='24.25' r='0.8' fill='%23c4b5fd' opacity='0.14'/%3E%3Ccircle cx='56' cy='24.25' r='0.8' fill='%23c4b5fd' opacity='0.14'/%3E%3Ccircle cx='0' cy='72.75' r='0.8' fill='%23c4b5fd' opacity='0.14'/%3E%3Ccircle cx='56' cy='72.75' r='0.8' fill='%23c4b5fd' opacity='0.14'/%3E%3Ccircle cx='28' cy='97' r='0.8' fill='%23c4b5fd' opacity='0.14'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23h)'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  opacity: 0.85;
  pointer-events: none;
}

body.using-mouse { cursor: auto; }

/* ----- Page loader ----- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-ring {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: loaderSpin 1s linear infinite;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

/* ----- Custom cursor ----- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}
body.using-mouse .cursor-glow { display: none; }

/* ----- Tools-themed background (on body = always visible) ----- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: transparent;
  pointer-events: none;
}

.bg-gradient,
.bg-grid,
.bg-lines,
.bg-particles {
  display: none;
}

/* ----- Page content transition ----- */
body.page-loading .page-content {
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(0.98);
}
body:not(.page-loading) .page-content {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
}
.page-content { position: relative; z-index: 2; min-height: 50vh; }

/* ----- Nav devices (between logo and shortcuts) ----- */
.nav-devices {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-sm);
}
.nav-devices-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-devices-icon {
  width: 16px;
  height: 16px;
  color: var(--neon-cyan);
  opacity: 0.9;
}
.nav-devices-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav-devices-preview {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.nav-device-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-device-laptop .nav-device-screen {
  width: 56px;
  height: 34px;
  background: #0a0812;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 3px;
  overflow: hidden;
}
.nav-device-phone .nav-device-screen {
  width: 24px;
  height: 42px;
  background: #0a0812;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  overflow: hidden;
}
.nav-device-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px;
  background: #0a0812;
  position: relative;
}
.nav-device-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20'%3E%3Cpath d='M6 0L12 5L12 15L6 20L0 15L0 5Z' fill='none' stroke='%23a78bfa' stroke-width='0.3' stroke-opacity='0.2'/%3E%3C/svg%3E");
  background-size: 12px 20px;
  pointer-events: none;
}
.nav-device-title {
  font-size: 5px;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.nav-device-inner span:not(.nav-device-title) {
  width: 80%;
  height: 3px;
  background: rgba(10, 14, 28, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 1px;
  position: relative;
  z-index: 1;
}
.nav-device-phone .nav-device-inner span:not(.nav-device-title) {
  width: 70%;
  height: 2px;
}

@media (max-width: 768px) {
  .nav-devices { display: none; }
}

/* ----- Sticky glass navbar ----- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(6, 8, 18, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.5s var(--ease-smooth);
}

.nav-wrap::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}
.nav-wrap:hover::after { opacity: 1; }

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

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  transition: all 0.4s var(--ease-smooth);
}

.nav-logo:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-smooth);
}
.nav-logo:hover .nav-logo-icon {
  transform: rotate(15deg) scale(1.05);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.nav-logo-icon svg { width: 100%; height: 100%; }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
}
.nav-dropdown-trigger:hover {
  color: var(--neon-cyan);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

.nav-dropdown-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease-smooth);
}
.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 720px;
  max-width: 95vw;
  background: rgba(8, 10, 22, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(56, 189, 248, 0.08);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-16px);
  visibility: hidden;
  transition: all 0.5s var(--ease-smooth);
}
.nav-dropdown-panel[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-grid { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.nav-dropdown-col { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0; border-bottom: 1px solid var(--border-subtle); }
.nav-dropdown-col:last-child { border-bottom: none; }
.nav-dropdown-cat {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin: 0 0 0.5rem;
  width: 100%;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-smooth);
}
.nav-dropdown-item:hover {
  color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.08);
  transform: translateX(4px);
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.05);
}
.nav-dropdown-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-dropdown-icon svg { width: 100%; height: 100%; }

.nav-shortcuts { display: flex; align-items: center; gap: 0.5rem; }
.nav-shortcut {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.4s var(--ease-smooth);
}
.nav-shortcut:hover {
  color: var(--neon-cyan);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  html { scroll-padding-top: 6rem; }
  .nav-shortcuts { display: none; }
  .nav-dropdown-panel {
    min-width: 280px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-dropdown-panel[data-open="true"] { transform: translateX(-50%) translateY(0); }
  .category-title { scroll-margin-top: 6rem; }
}

/* ----- Hero ----- */
.hero {
  text-align: center;
  padding: 6rem 2rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  transition: transform 0.1s linear;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.05);
  animation: badgePulse 3s var(--ease-smooth) infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.2); }
  50% { box-shadow: 0 0 20px 2px rgba(56, 189, 248, 0.1); }
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-stats span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* ----- Live stats section ----- */
.live-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 4rem;
  padding: 2rem 2rem;
  margin: 1.5rem auto 1.5rem;
  max-width: 900px;
}
.live-stat {
  text-align: center;
}
.live-stat-value {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.25rem;
}
.live-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ----- CTA button with magnetic/ripple ----- */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 1rem 2.5rem;
  color: var(--text);
  background: rgba(10, 14, 28, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-cta:hover {
  transform: translateY(-4px) scale(1.02);
  color: var(--neon-cyan);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-cta:active {
  transform: translateY(-2px) scale(0.98);
}

.hero-search-wrap {
  position: relative;
  z-index: 10;
  margin-top: 0.75rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.hero-search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.75rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text);
  background: rgba(10, 14, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238b95a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
  background-size: 18px;
}
.hero-search-input::placeholder { color: var(--text-muted); }
.hero-search-input:focus {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}
.hero-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(8, 10, 22, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: none;
}
.hero-search-results.open { display: block; }

body.hero-search-active .tools-section { visibility: hidden; }

body.nav-dropdown-open,
body.hero-search-active { overflow: hidden; }
.hero-search-results a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}
.hero-search-results a:hover { background: rgba(56, 189, 248, 0.1); color: var(--neon-cyan); }

/* ----- Tools section ----- */
.tools-section {
  padding: 2rem 2rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.tools-section > h2 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 3rem;
  text-align: center;
}

.category-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin: 3rem 0 1.5rem;
  opacity: 0.95;
}
.category-title:first-of-type { margin-top: 0; }

.category-block { scroll-margin-top: 5.5rem; }
.category-title { scroll-margin-top: 5.5rem; }
.category-block + .category-block { margin-top: 4rem; }

/* ----- Floating tool cards with spotlight ----- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  position: relative;
  z-index: 2;
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(10, 14, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: translateY(0);
  transition: all 0.5s var(--ease-smooth);
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(167, 139, 250, 0.2), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

/* Spotlight effect container */
.tool-card .spotlight {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tool-card:hover::before { opacity: 1; }

.tool-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  z-index: 1;
  animation: badgeGlow 2s var(--ease-smooth) infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.2); }
  50% { box-shadow: 0 0 12px 1px rgba(56, 189, 248, 0.3); }
}

.tool-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--neon-cyan);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.1), rgba(167, 139, 250, 0.06));
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.5s var(--ease-smooth);
}
.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--neon-cyan);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(167, 139, 250, 0.1));
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tool-icon svg { width: 28px; height: 28px; }

.tool-card h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.tool-card p, .tool-card .tool-label {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  margin: 0 0 1.25rem !important;
  line-height: 1.5 !important;
  display: block !important;
}

.btn-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
}

.btn-tool:hover {
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
}

.tool-card:hover .btn-tool {
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
  border-color: var(--neon-cyan);
}

/* Scroll reveal - smooth GPU-accelerated */
.tools-section > h2, .tools-section .category-title {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}
.tools-section > h2.scroll-revealed, .tools-section .category-title.scroll-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.tools-grid .tool-card {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth), box-shadow 0.5s, border-color 0.5s;
}
.tools-grid .tool-card.scroll-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.tools-grid .tool-card.scroll-revealed:nth-child(1) { transition-delay: 0s; }
.tools-grid .tool-card.scroll-revealed:nth-child(2) { transition-delay: 0.05s; }
.tools-grid .tool-card.scroll-revealed:nth-child(3) { transition-delay: 0.1s; }
.tools-grid .tool-card.scroll-revealed:nth-child(4) { transition-delay: 0.15s; }
.tools-grid .tool-card.scroll-revealed:nth-child(5) { transition-delay: 0.2s; }
.tools-grid .tool-card.scroll-revealed:nth-child(6) { transition-delay: 0.25s; }
.tools-grid .tool-card.scroll-revealed:nth-child(7) { transition-delay: 0.3s; }
.tools-grid .tool-card.scroll-revealed:nth-child(8) { transition-delay: 0.35s; }
.tools-grid .tool-card.scroll-revealed:nth-child(9) { transition-delay: 0.4s; }
.tools-grid .tool-card.scroll-revealed:nth-child(10) { transition-delay: 0.45s; }
.tools-grid .tool-card.scroll-revealed:nth-child(11) { transition-delay: 0.5s; }
.tools-grid .tool-card.scroll-revealed:nth-child(12) { transition-delay: 0.55s; }

.tools-seo-text {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ----- Command palette ----- */
.command-palette {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 15vh 2rem;
  background: rgba(6, 8, 18, 0.97);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-smooth);
}
.command-palette.open {
  opacity: 1;
  visibility: visible;
}

.command-palette-inner {
  width: 100%;
  max-width: 560px;
  background: rgba(10, 14, 28, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 189, 248, 0.1);
  overflow: hidden;
  transform: scale(0.95) translateY(-20px);
  transition: transform 0.3s var(--ease-smooth);
}
.command-palette.open .command-palette-inner {
  transform: scale(1) translateY(0);
}

.command-palette input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  outline: none;
}
.command-palette input::placeholder { color: var(--text-muted); }

.command-palette-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem;
}
.command-palette-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
}
.command-palette-item:hover, .command-palette-item.focused {
  background: rgba(56, 189, 248, 0.1);
  color: var(--neon-cyan);
}

/* ----- Footer ----- */
.site-footer {
  margin-top: 5rem;
  padding: 4rem 2rem 2.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 10, 22, 0.9);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.footer-tagline { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s, text-shadow 0.3s;
}
.footer-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-logo-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; vertical-align: middle; }
.footer-logo-icon svg { width: 100%; height: 100%; }

/* ----- Overlay & modal ----- */
.overlay[hidden] { display: none !important; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.5s var(--ease-smooth);
}

.modal {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(18, 22, 42, 0.92);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(56, 189, 248, 0.08);
}

.modal h2 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--text); margin: 0 0 0.5rem; }
.modal p { color: var(--text-muted); margin: 0 0 1rem; font-size: 0.95rem; }

.ad-slot {
  min-height: 90px;
  margin: 1rem 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
}

/* ----- Tool pages (shared) ----- */
body.tool-page { display: flex; flex-direction: column; min-height: 100vh; }
body.tool-page .page-content { display: flex; flex-direction: column; flex: 1; }
.tool-page .site-footer { margin-top: auto; }
.tool-page .nav-wrap { border-bottom: 1px solid var(--border-subtle); }
.tool-page main {
  flex: 1;
  max-width: 580px;
  margin: 2rem auto 4rem;
  padding: 2.5rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tool-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s, text-shadow 0.3s;
}
.tool-page .back-link:hover { color: var(--neon-cyan); text-shadow: 0 0 12px rgba(56, 189, 248, 0.35); }

.tool-page main h2 { font-family: var(--font-head); font-size: 1.65rem; font-weight: 600; color: var(--text); margin: 0 0 0.5rem; }
.tool-page main > p { color: var(--text-muted); margin: 0 0 1.75rem; font-size: 0.95rem; }

/* ----- Custom themed dropdown (glass + neon) ----- */
.custom-select-wrap {
  position: relative;
  width: 100%;
}

.custom-select-wrap .custom-select-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 44px;
}

.custom-select-trigger {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  appearance: none;
}

.custom-select-trigger:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.custom-select-trigger::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--neon-cyan);
  opacity: 0.8;
}

.custom-select-wrap.open .custom-select-trigger {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.custom-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.1);
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}

.custom-select-panel.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.custom-select-option {
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.custom-select-option:hover {
  background: rgba(56, 189, 248, 0.1);
  border-left-color: var(--neon-cyan);
}

.custom-select-option.selected {
  background: rgba(56, 189, 248, 0.12);
  color: var(--neon-cyan);
  border-left-color: var(--neon-cyan);
}

/* Forms */
.tool-form label { display: block; margin: 0.5rem 0 0.35rem; font-weight: 500; font-size: 0.9rem; color: var(--text); }
.tool-form input[type="text"],
.tool-form input[type="number"],
.tool-form input[type="email"],
.tool-form input[type="password"],
.tool-form input[type="url"],
.tool-form input[type="file"],
.tool-form input[type="color"],
.tool-form select,
.tool-form textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.tool-form input::placeholder,
.tool-form textarea::placeholder {
  color: var(--text-muted);
}

/* Style file input "Choose Files" button to match theme */
.tool-form input[type="file"]::file-selector-button {
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}
.tool-form input[type="file"]::file-selector-button:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}
.tool-form input[type="file"]::-webkit-file-upload-button {
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neon-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}
.tool-form input[type="file"]::-webkit-file-upload-button:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.tool-form input:hover,
.tool-form select:hover,
.tool-form textarea:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.tool-form input:focus,
.tool-form select:focus,
.tool-form textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Override browser autofill light background so inputs stay blueish */
.tool-form input:-webkit-autofill,
.tool-form input:-webkit-autofill:hover,
.tool-form input:-webkit-autofill:focus,
.tool-form input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.85) inset;
  box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.85) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.btn-generate, .btn-copy {
  margin-top: 0.75rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
}
.btn-generate:hover, .btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
}

.result-box {
  margin-top: 1.75rem;
  padding: 1.35rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
}

/* ----- Password strength bar (colorful status) ----- */
.strength-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0 0.5rem;
}

.strength-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s var(--ease-smooth), background 0.3s;
}

.strength-fill.strength-0 { background: linear-gradient(90deg, #ef4444, #dc2626); box-shadow: 0 0 12px rgba(239, 68, 68, 0.5); }
.strength-fill.strength-1 { background: linear-gradient(90deg, #f97316, #ea580c); box-shadow: 0 0 12px rgba(249, 115, 22, 0.5); }
.strength-fill.strength-2 { background: linear-gradient(90deg, #eab308, #ca8a04); box-shadow: 0 0 12px rgba(234, 179, 8, 0.5); }
.strength-fill.strength-3 { background: linear-gradient(90deg, #84cc16, #65a30d); box-shadow: 0 0 12px rgba(132, 204, 22, 0.5); }
.strength-fill.strength-4 { background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue)); box-shadow: 0 0 12px rgba(56, 189, 248, 0.5); }
.strength-fill.strength-5 { background: linear-gradient(90deg, #22c55e, #16a34a); box-shadow: 0 0 12px rgba(34, 197, 94, 0.5); }

.strength-meter { font-weight: 600; font-size: 1rem; margin: 0.25rem 0; }
.strength-meter.strength-0 { color: #ef4444; }
.strength-meter.strength-1 { color: #f97316; }
.strength-meter.strength-2 { color: #eab308; }
.strength-meter.strength-3 { color: #84cc16; }
.strength-meter.strength-4 { color: var(--neon-cyan); }
.strength-meter.strength-5 { color: #22c55e; }

.strength-tips { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.5; }
.strength-tips.strength-ok { color: #22c55e; }

/* Legal, premium, etc. - keep minimal overrides */
.legal-page { max-width: 680px !important; }
.legal-page h1 { font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--text); }
.legal-page section p, .legal-page section li { color: var(--text-muted); }
.legal-page a { color: var(--neon-cyan); }

.premium-page { max-width: 720px; margin: 0 auto; padding: 2rem; }
.premium-plan-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
}

@keyframes ripple {
  to { width: 300px; height: 300px; opacity: 0; }
}

@media (max-width: 768px) {
  .tools-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .tool-page main { margin-left: 1rem; margin-right: 1rem; padding: 1.75rem; }
}
