/* =========================================
   ZENTRIVEE — Premium Multi-Tool Platform
   style.css — Core Design System
   ========================================= */

/* ─── Design Tokens ─── */
:root {
  --navy:        #0B1220;
  --royal:       #3B82F6;
  --cyan:        #22D3EE;
  --slate:       #1E2D45;
  --bg:          #F8FAFC;
  --card:        #FFFFFF;
  --text:        #0F172A;
  --muted:       #64748B;
  --border:      #E2E8F0;
  --grad:        linear-gradient(135deg, #3B82F6 0%, #22D3EE 100%);
  --grad-dark:   linear-gradient(135deg, #1D4ED8 0%, #0891B2 100%);
  --shadow-sm:   0 1px 3px rgba(11,18,32,0.06), 0 1px 2px rgba(11,18,32,0.04);
  --shadow-md:   0 4px 16px rgba(11,18,32,0.08), 0 2px 6px rgba(11,18,32,0.04);
  --shadow-lg:   0 16px 48px rgba(11,18,32,0.12), 0 4px 16px rgba(11,18,32,0.06);
  --shadow-glow: 0 0 40px rgba(59,130,246,0.18);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --transition:  all 0.22s cubic-bezier(0.4,0,0.2,1);
  --font:        'Inter', 'Segoe UI', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:     #070D18;
  --card:   #0F1A2E;
  --text:   #F1F5F9;
  --muted:  #94A3B8;
  --border: #1E2D45;
  --navy:   #0B1220;
  --slate:  #142033;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}
a { color: var(--royal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cyan); }
img, svg { display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; outline: none; }
input, textarea, select { font-family: var(--font); outline: none; border: none; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { color: var(--muted); }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ─── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { max-width: 560px; margin: 12px auto 0; font-size: 1.05rem; }

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(248,250,252,0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: var(--transition);
}
[data-theme="dark"] .navbar {
  background: rgba(7,13,24,0.82);
  border-bottom-color: rgba(30,45,69,0.6);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { max-width: 1200px; width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 0; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 800; color: var(--text); letter-spacing: -0.04em; flex-shrink: 0; }
.nav-logo .logo-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--grad); display: flex; align-items: center; justify-content: center; }
.nav-logo .logo-icon svg { width: 18px; height: 18px; fill: white; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 32px; }
.nav-links a { padding: 6px 12px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--border); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 7px 14px; transition: var(--transition); min-width: 220px; }
.nav-search:focus-within { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.nav-search svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.nav-search input { background: none; color: var(--text); font-size: 0.85rem; width: 100%; }
.nav-search input::placeholder { color: var(--muted); }
.theme-toggle { width: 36px; height: 36px; border-radius: 8px; background: var(--card); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: var(--transition); }
.theme-toggle:hover { color: var(--text); border-color: var(--royal); }
.theme-toggle svg { width: 16px; height: 16px; }
.nav-cta { padding: 7px 16px; border-radius: var(--radius-sm); background: var(--grad); color: white; font-size: 0.85rem; font-weight: 600; transition: var(--transition); white-space: nowrap; }
.nav-cta:hover { opacity: 0.88; box-shadow: var(--shadow-glow); color: white; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 4px; padding: 6px; cursor: pointer; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 600; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--grad); color: white; }
.btn-primary:hover { opacity: 0.88; box-shadow: var(--shadow-glow); transform: translateY(-2px); color: white; }
.btn-secondary { background: var(--card); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--royal); color: var(--royal); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--royal); border: 1.5px solid rgba(59,130,246,0.3); }
.btn-ghost:hover { background: rgba(59,130,246,0.08); border-color: var(--royal); color: var(--royal); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }

/* ─── Cards ─── */
.card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: rgba(59,130,246,0.2); }
.glass-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
}
[data-theme="dark"] .glass-card {
  background: rgba(15,26,46,0.8);
  border-color: rgba(30,45,69,0.6);
}

/* ─── Badge ─── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.badge-primary { background: rgba(59,130,246,0.1); color: var(--royal); border: 1px solid rgba(59,130,246,0.2); }
.badge-cyan { background: rgba(34,211,238,0.1); color: #0891B2; border: 1px solid rgba(34,211,238,0.2); }

/* ─── Hero Section ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.hero-orb-1 { width: 600px; height: 600px; background: var(--royal); top: -100px; right: -100px; animation: orbFloat 12s ease-in-out infinite; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--cyan); bottom: 0; left: -80px; animation: orbFloat 10s ease-in-out infinite reverse; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
@keyframes orbFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.05); } }
.hero-inner { position: relative; z-index: 2; }
.hero-content { max-width: 760px; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.hero-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.3); } }
.hero-eyebrow span { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--royal); }
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.15rem; max-width: 540px; margin-bottom: 36px; line-height: 1.7; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; align-items: center; gap: 32px; }
.hero-stat { text-align: left; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.04em; }
.hero-stat span { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.hero-stat-divider { width: 1px; height: 32px; background: var(--border); }
.hero-tools-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.tool-pill { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--card); border: 1.5px solid var(--border); border-radius: 100px; font-size: 0.78rem; font-weight: 500; color: var(--muted); transition: var(--transition); cursor: pointer; }
.tool-pill:hover { border-color: var(--royal); color: var(--royal); transform: translateY(-1px); }
.tool-pill-icon { font-size: 14px; }

/* ─── Search Section ─── */
.search-section { padding: 0 0 80px; }
.search-bar-main {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: 12px 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  max-width: 680px; margin: 0 auto;
}
.search-bar-main:focus-within { border-color: var(--royal); box-shadow: 0 0 0 4px rgba(59,130,246,0.1), var(--shadow-md); }
.search-bar-main svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-bar-main input { flex: 1; background: none; color: var(--text); font-size: 1rem; }
.search-bar-main input::placeholder { color: var(--muted); }
.search-count { font-size: 0.78rem; color: var(--muted); white-space: nowrap; padding: 4px 10px; background: var(--bg); border-radius: 6px; }

/* ─── Category Filters ─── */
.category-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 28px 0; }
.filter-btn { padding: 7px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 500; background: var(--card); border: 1.5px solid var(--border); color: var(--muted); transition: var(--transition); }
.filter-btn:hover { border-color: var(--royal); color: var(--royal); }
.filter-btn.active { background: var(--grad); border-color: transparent; color: white; }

/* ─── Tools Grid ─── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tool-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.tool-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); opacity: 0; transition: var(--transition); }
.tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(59,130,246,0.25); }
.tool-card:hover::before { opacity: 1; }
.tool-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.tool-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.tool-card p { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.tool-card-tag { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: rgba(59,130,246,0.08); color: var(--royal); width: fit-content; margin-top: auto; }

/* ─── Features Section ─── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-md); border-color: rgba(59,130,246,0.2); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--grad); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 22px; height: 22px; fill: white; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { font-size: 0.88rem; }

/* ─── Tool Page ─── */
.tool-page { padding: 100px 0 60px; min-height: 100vh; }
.tool-header { margin-bottom: 36px; }
.tool-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }
.tool-breadcrumb a { color: var(--royal); }
.tool-breadcrumb-sep { color: var(--border); }
.tool-header h1 { font-size: 2rem; margin-bottom: 8px; }
.tool-header p { font-size: 1rem; max-width: 600px; }
.tool-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tool-panel { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.tool-panel-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.tool-panel-header h4 { font-size: 0.85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tool-panel textarea, .tool-panel .output-display {
  width: 100%; min-height: 280px; padding: 16px 20px;
  background: none; color: var(--text); font-size: 0.9rem;
  resize: vertical; line-height: 1.6;
  border: none;
}
.tool-panel .output-display { white-space: pre-wrap; word-break: break-all; }
.tool-actions { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.tool-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.option-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.option-group select, .option-group input[type="number"] {
  width: 100%; padding: 9px 12px; background: var(--card);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.88rem; transition: var(--transition);
}
.option-group select:focus, .option-group input:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.tool-single { grid-column: 1 / -1; }

/* ─── A–Z Navigator ─── */
.az-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.az-btn { width: 34px; height: 34px; border-radius: 8px; background: var(--card); border: 1.5px solid var(--border); color: var(--muted); font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.az-btn:hover, .az-btn.active { background: var(--grad); border-color: transparent; color: white; }

/* ─── Stats Banner ─── */
.stats-section { background: var(--navy); padding: 60px 0; }
[data-theme="dark"] .stats-section { background: #040A14; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item strong { display: block; font-size: 2.4rem; font-weight: 800; color: white; letter-spacing: -0.04em; margin-bottom: 4px; }
.stat-item span { font-size: 0.88rem; color: rgba(255,255,255,0.5); font-weight: 500; }

/* ─── About Section ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; }
.about-card-stack { position: relative; height: 380px; }
.about-card-bg { position: absolute; border-radius: var(--radius-xl); }
.about-card-bg-1 { inset: 30px 0 0 30px; background: rgba(59,130,246,0.08); border: 1.5px solid rgba(59,130,246,0.15); }
.about-card-bg-2 { inset: 15px 15px 15px 15px; background: rgba(34,211,238,0.06); border: 1.5px solid rgba(34,211,238,0.12); }
.about-card-main { position: absolute; inset: 0 30px 30px 0; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.about-metric { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg); border-radius: var(--radius-md); border: 1.5px solid var(--border); }
.about-metric-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--grad); display: flex; align-items: center; justify-content: center; }
.about-metric-icon svg { width: 20px; height: 20px; fill: white; }
.about-metric-text strong { display: block; font-size: 1.3rem; font-weight: 800; color: var(--text); }
.about-metric-text span { font-size: 0.78rem; color: var(--muted); }
.about-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.about-tag { padding: 6px 14px; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15); border-radius: 100px; font-size: 0.78rem; font-weight: 600; color: var(--royal); }

/* ─── Contact Form ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 14px; }
.contact-item-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(59,130,246,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 18px; height: 18px; color: var(--royal); }
.contact-item-text strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.contact-item-text span { font-size: 0.82rem; color: var(--muted); }
.contact-form { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); color: var(--text);
  font-size: 0.9rem; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--royal); background: var(--card);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── Footer ─── */
.footer { background: var(--navy); padding: 64px 0 32px; }
[data-theme="dark"] .footer { background: #040A14; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { color: white; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.88rem; max-width: 280px; line-height: 1.7; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-link { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); transition: var(--transition); border: 1px solid rgba(255,255,255,0.08); }
.social-link:hover { background: var(--royal); color: white; border-color: var(--royal); }
.social-link svg { width: 15px; height: 15px; }
.footer-col h5 { color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.4); font-size: 0.85rem; transition: var(--transition); }
.footer-col ul li a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ─── Legal Pages ─── */
.legal-page { padding: 100px 0 80px; max-width: 800px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 8px; }
.legal-date { color: var(--muted); font-size: 0.85rem; margin-bottom: 48px; }
.legal-page h2 { font-size: 1.25rem; margin: 36px 0 12px; color: var(--text); }
.legal-page p, .legal-page li { font-size: 0.93rem; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.legal-page li { margin-left: 20px; list-style: disc; }

/* ─── Toast ─── */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; padding: 12px 20px; background: var(--navy); color: white; border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 500; box-shadow: var(--shadow-lg); transform: translateY(80px); opacity: 0; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); display: flex; align-items: center; gap: 8px; }
.toast.show { transform: translateY(0); opacity: 1; }
[data-theme="dark"] .toast { background: var(--royal); }

/* ─── Page transitions ─── */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Search Overlay ─── */
.search-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(7,13,24,0.7); backdrop-filter: blur(8px); display: flex; align-items: flex-start; justify-content: center; padding-top: 120px; opacity: 0; pointer-events: none; transition: var(--transition); }
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-modal { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-xl); width: 100%; max-width: 640px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-modal-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.search-modal-input svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-modal-input input { flex: 1; background: none; color: var(--text); font-size: 1.05rem; }
.search-modal-input kbd { padding: 3px 7px; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; font-size: 0.72rem; color: var(--muted); font-family: inherit; }
.search-results { max-height: 360px; overflow-y: auto; padding: 8px; }
.search-result-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); }
.search-result-item:hover, .search-result-item.focused { background: var(--bg); }
.search-result-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.search-result-text strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.search-result-text span { font-size: 0.76rem; color: var(--muted); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-card-stack { height: 300px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-search, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 80px 0 40px; }
  .hero-stats { gap: 20px; }
  .tool-workspace { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .section { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Utility ─── */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ─── Mobile Menu ─── */
.mobile-menu { position: fixed; top: 64px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 16px 24px; z-index: 999; display: none; flex-direction: column; gap: 4px; box-shadow: var(--shadow-md); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.mobile-menu a:hover { background: var(--bg); color: var(--text); }
.mobile-menu-search { margin-top: 8px; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 9px 14px; }
.mobile-menu-search input { flex: 1; background: none; color: var(--text); font-size: 0.9rem; }

/* ─── No results ─── */
.no-results { text-align: center; padding: 80px 20px; color: var(--muted); }
.no-results svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--border); }
.no-results h3 { color: var(--text); margin-bottom: 8px; }

/* ─── Scroll to top ─── */
.scroll-top { position: fixed; bottom: 24px; left: 24px; width: 40px; height: 40px; border-radius: 10px; background: var(--card); border: 1.5px solid var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(20px); transition: var(--transition); pointer-events: none; }
.scroll-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top:hover { background: var(--grad); border-color: transparent; color: white; }
.scroll-top svg { width: 16px; height: 16px; }

/* ─── Active nav page indicators ─── */
.nav-links a.active { color: var(--text) !important; background: var(--border) !important; }

/* ─── Highlighted search match ─── */
.highlight { background: rgba(59,130,246,0.15); color: var(--royal); border-radius: 3px; padding: 0 2px; }
