/* ═══════════════════════════════════════════════════════════════════════════
   Nexora Tools — Main Stylesheet
   Theme: Modern Minimalist | Light + Dark Mode | Mobile Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES (Light Mode) ─────────────────────────────────────────── */
:root {
    --bg:            #F8FAFC;
    --bg-card:       #FFFFFF;
    --bg-elevated:   #F1F5F9;
    --nav-bg:        rgba(255,255,255,0.96);
    --text:          #0F172A;
    --text-2:        #475569;
    --text-3:        #94A3B8;
    --border:        #E2E8F0;
    --border-focus:  #2563EB;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.07);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl:     0 20px 60px rgba(0,0,0,0.15);
    --primary:       #2563EB;
    --primary-dark:  #1D4ED8;
    --primary-light: #DBEAFE;
    --accent:        #7C3AED;
    --success:       #10B981;
    --warning:       #F59E0B;
    --danger:        #EF4444;
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --radius-xl:     28px;
    --transition:    0.2s ease;
    --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── DARK MODE ──────────────────────────────────────────────────────────── */
html[data-theme="dark"] {
    --bg:            #0B1120;
    --bg-card:       #1E293B;
    --bg-elevated:   #162032;
    --nav-bg:        rgba(11,17,32,0.96);
    --text:          #F1F5F9;
    --text-2:        #CBD5E1;
    --text-3:        #64748B;
    --border:        #334155;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.3);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.4);
    --shadow-xl:     0 20px 60px rgba(0,0,0,0.5);
    --primary-light: rgba(37,99,235,0.15);
}

/* ─── 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.6;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

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

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.main-content { padding-top: 64px; }  /* offset fixed navbar */

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem;    font-weight: 600; }

.gradient-text {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px; border-radius: 100px;
    margin-bottom: 12px;
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius-sm);
    font-size: 0.875rem; font-weight: 600; line-height: 1;
    cursor: pointer; border: none; white-space: nowrap;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.35); }

.btn-ghost {
    background: transparent; color: var(--text-2);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-outline {
    background: transparent; color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-icon { padding: 10px; }

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    height: 64px;
    backdrop-filter: blur(12px) saturate(180%);
    transition: box-shadow var(--transition), background var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; gap: 8px;
}

/* Logo */
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; flex-shrink: 0; margin-right: 8px;
}
.nav-logo-icon {
    width: 34px; height: 34px; border-radius: 8px;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: #fff; font-size: 1rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.nav-logo-text { display: flex; align-items: center; gap: 5px; }
.logo-nexora {
    font-size: 1.1rem; font-weight: 800; letter-spacing: -0.04em;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-badge {
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    background: linear-gradient(135deg, #2563EB, #7C3AED); color: #fff;
    padding: 2px 7px; border-radius: 100px; line-height: 1.6;
    -webkit-text-fill-color: #fff;
}

/* Nav Links */
.nav-links {
    display: flex; align-items: center; gap: 2px;
    flex: 1; list-style: none; padding: 0; margin: 0;
}
.nav-link {
    display: flex; align-items: center; gap: 4px;
    padding: 7px 12px; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 500; color: var(--text-2);
    white-space: nowrap; transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary); background: var(--primary-light);
}
.chevron { transition: transform 0.2s; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu   { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown:hover .chevron         { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-8px);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    min-width: 220px; max-height: 400px; overflow-y: auto;
    padding: 8px; z-index: 200;
    opacity: 0; visibility: hidden;
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 500; color: var(--text-2);
    transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover { background: var(--bg-elevated); color: var(--text); }
.dd-icon {
    width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.nav-icon-btn {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2); transition: background var(--transition), color var(--transition);
}
.nav-icon-btn:hover { background: var(--bg-elevated); color: var(--text); }

/* Theme Toggle icons */
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun  { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; border-radius: 6px; }
.hamburger span { width: 20px; height: 2px; background: var(--text-2); border-radius: 2px; transition: all 0.3s; display: block; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── SEARCH OVERLAY ─────────────────────────────────────────────────────── */
.search-overlay {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 900;
    padding: 16px 24px;
    background: var(--nav-bg); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transform: translateY(-100%); opacity: 0;
    transition: transform 0.25s, opacity 0.25s;
    pointer-events: none;
}
.search-overlay.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.search-overlay-inner { max-width: 680px; margin: 0 auto; }
.search-overlay-box {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-elevated); border: 1.5px solid var(--border);
    border-radius: var(--radius-md); padding: 10px 16px;
    transition: border-color var(--transition);
}
.search-overlay-box:focus-within { border-color: var(--primary); }
.search-overlay-input {
    flex: 1; background: none; border: none; outline: none;
    font-size: 1rem; color: var(--text);
}
.search-overlay-input::placeholder { color: var(--text-3); }
.search-close {
    color: var(--text-3); font-size: 1rem; padding: 0 4px;
    transition: color var(--transition);
}
.search-close:hover { color: var(--text); }
.search-results { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.search-result-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 0.82rem; font-weight: 500; color: var(--text-2);
    cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.search-result-item:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.search-result-icon { font-size: 1rem; }
.search-backdrop {
    position: fixed; inset: 0; z-index: 800; background: rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden; transition: all 0.25s;
}
.search-backdrop.open { opacity: 1; visibility: visible; }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #0D1B4B 0%, #1a3a8a 45%, #4c1d95 100%);
    position: relative; overflow: hidden;
    padding: 80px 0 64px; min-height: 580px;
    display: flex; align-items: center;
}
.hero::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}
.hero-blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.18;
    pointer-events: none;
}
.hero-blob-1 { width: 500px; height: 500px; background: #60A5FA; top: -200px; right: -100px; }
.hero-blob-2 { width: 400px; height: 400px; background: #A78BFA; bottom: -150px; left: -100px; }
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #BFDBFE; font-size: 0.8rem; font-weight: 600;
    padding: 6px 16px; border-radius: 100px; margin-bottom: 24px;
    backdrop-filter: blur(4px);
}
.hero-badge-dot { width: 7px; height: 7px; background: #4ADE80; border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

.hero h1 { color: #fff; margin-bottom: 16px; }
.hero-highlight { color: #60A5FA; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Hero Search */
.hero-search-wrap { max-width: 560px; margin: 0 auto 40px; }
.hero-search {
    display: flex; align-items: center; gap: 0;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.hero-search-icon { padding: 0 14px 0 18px; color: #94A3B8; flex-shrink: 0; }
.hero-search input {
    flex: 1; padding: 16px 0; font-size: 1rem; border: none; outline: none;
    color: #0F172A; background: transparent;
}
.hero-search input::placeholder { color: #94A3B8; }
.hero-search-btn {
    padding: 14px 28px; background: var(--primary);
    color: #fff; font-weight: 600; font-size: 0.9rem;
    border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: background var(--transition);
}
.hero-search-btn:hover { background: var(--primary-dark); }

/* Hero Stats */
.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.55); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

/* ─── SECTION LAYOUT ─────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { color: var(--text); margin-bottom: 10px; }
.section-header p { color: var(--text-2); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ─── CATEGORY TABS ──────────────────────────────────────────────────────── */
.cat-tabs {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 40px; justify-content: center;
}
.cat-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 100px;
    font-size: 0.85rem; font-weight: 600;
    border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-2);
    cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-tab .cat-count {
    font-size: 0.7rem; background: rgba(255,255,255,0.25);
    padding: 1px 6px; border-radius: 100px; font-weight: 700;
}
.cat-tab:not(.active) .cat-count { background: var(--bg-elevated); color: var(--text-3); }

/* ─── TOOL CARDS GRID ────────────────────────────────────────────────────── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.tool-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: var(--radius-md); padding: 18px;
    cursor: pointer; text-decoration: none; color: inherit;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative; overflow: hidden;
}
.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.tool-card-icon {
    width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; line-height: 1;
}
.tool-card-body { flex: 1; min-width: 0; }
.tool-card-name { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.tool-card-desc { font-size: 0.78rem; color: var(--text-3); line-height: 1.5; }
.tool-card-badges { display: flex; gap: 4px; margin-top: 8px; }
.badge {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 100px;
}
.badge-popular { background: #FEF3C7; color: #92400E; }
.badge-new     { background: #DCFCE7; color: #166534; }
.badge-soon    { background: #F1F5F9; color: #94A3B8; }
html[data-theme="dark"] .badge-popular { background: rgba(245,158,11,0.15); color: #FCD34D; }
html[data-theme="dark"] .badge-new     { background: rgba(16,185,129,0.15); color: #6EE7B7; }

/* Hidden tool cards (filtered) */
.tool-card.hidden { display: none; }

/* ─── FEATURE CARDS ──────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: var(--radius-md); padding: 28px 24px; text-align: center;
    transition: box-shadow var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--primary-light); color: var(--primary);
    font-size: 24px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

/* ─── STATS STRIP ────────────────────────────────────────────────────────── */
.stats-strip {
    background: var(--primary);
    padding: 48px 0;
}
.stats-row { display: flex; justify-content: space-evenly; flex-wrap: wrap; gap: 32px; }
.stat-item { text-align: center; color: #fff; }
.stat-num {
    font-size: 2.5rem; font-weight: 800; line-height: 1;
    margin-bottom: 4px; letter-spacing: -0.03em;
}
.stat-label { font-size: 0.85rem; opacity: 0.75; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── CTA BANNER ─────────────────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, #1e3a8a, #4c1d95);
    border-radius: var(--radius-xl); padding: 64px 40px; text-align: center;
    color: #fff; margin: 0 0 72px;
    position: relative; overflow: hidden;
}
.cta-banner h2  { color: #fff; margin-bottom: 12px; }
.cta-banner p   { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 32px; }
.cta-banner .btn-primary  { background: #fff; color: var(--primary); }
.cta-banner .btn-primary:hover { background: #F0F9FF; }
.cta-banner .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

/* ─── SUB-PAGE BANNER ────────────────────────────────────────────────────── */
.sub-banner {
    background: linear-gradient(135deg, #0D1B4B, #1a3a8a);
    padding: 56px 0 48px; text-align: center; position: relative; overflow: hidden;
}
.sub-banner::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}
.sub-banner-inner { position: relative; z-index: 1; }
.sub-banner h1   { font-size: clamp(1.75rem, 4vw, 2.75rem); color: #fff; margin-bottom: 10px; }
.sub-banner p    { color: rgba(255,255,255,0.7); font-size: 1.05rem; }
.breadcrumb {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 12px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }

/* ─── TOOL PAGE LAYOUT ───────────────────────────────────────────────────── */
.tool-page { padding: 48px 0 80px; }
.tool-wrap {
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px;
    box-shadow: var(--shadow-sm);
}
.tool-header { margin-bottom: 32px; }
.tool-header h2 { font-size: 1.5rem; margin-bottom: 6px; }
.tool-header p  { color: var(--text-2); font-size: 0.9rem; }

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border); background: var(--bg);
    color: var(--text); font-size: 0.9rem; outline: none;
    transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 140px; font-family: 'Courier New', monospace; }

/* Result box */
.result-box {
    background: var(--bg-elevated); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px;
    font-family: 'Courier New', monospace; font-size: 0.875rem;
    color: var(--text); white-space: pre-wrap; word-break: break-all;
    min-height: 120px; overflow: auto;
}

/* ─── CARDS (About / Info) ───────────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.info-card {
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: var(--radius-md); padding: 28px;
}
.info-card-icon { font-size: 2rem; margin-bottom: 14px; }
.info-card h3 { margin-bottom: 8px; }
.info-card p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
    background: #0B1120; color: #CBD5E1;
    padding: 72px 0 0; margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }

.footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 14px; }
.footer-logo .nav-logo-icon { width: 30px; height: 30px; font-size: 0.9rem; }
.footer-logo .logo-nexora   { color: #fff; -webkit-text-fill-color: #fff; font-size: 1rem; }
.footer-logo .logo-badge    { background: rgba(255,255,255,0.15); -webkit-text-fill-color: #fff; }
.footer-tagline { font-size: 0.875rem; color: #64748B; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,0.06); color: #64748B;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), color var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; }

.footer-heading { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #94A3B8; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: #64748B; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 0.82rem; color: #475569;
}
.footer-bottom a { color: #475569; }
.footer-bottom a:hover { color: #94A3B8; }

/* ─── 404 PAGE ───────────────────────────────────────────────────────────── */
.page-404 { text-align: center; padding: 120px 24px; }
.page-404 .err-num { font-size: clamp(6rem, 20vw, 10rem); font-weight: 900; line-height: 1; letter-spacing: -0.05em; }
.page-404 h2 { margin: 8px 0 14px; }
.page-404 p  { color: var(--text-2); margin-bottom: 32px; }

/* ─── ALERTS ─────────────────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; margin-bottom: 16px; }
.alert-success { background: #DCFCE7; color: #166534; border-left: 3px solid #10B981; }
.alert-error   { background: #FEE2E2; color: #991B1B; border-left: 3px solid #EF4444; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border-left: 3px solid #2563EB; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .nav-links { gap: 0; }
    .nav-link { padding: 6px 10px; font-size: 0.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    /* Mobile menu open */
    .nav-links.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: fixed; top: 64px; left: 0; right: 0;
        background: var(--nav-bg); backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 24px; gap: 2px; z-index: 999;
        overflow-y: auto; max-height: calc(100vh - 64px);
    }
    .nav-links.open .nav-link { padding: 10px 14px; }
    .nav-links.open .nav-dropdown { width: 100%; }
    .nav-links.open .dropdown-menu {
        position: static; transform: none; opacity: 1; visibility: visible;
        box-shadow: none; border: none; background: var(--bg-elevated);
        border-radius: var(--radius-sm); max-height: none;
        margin-top: 4px; margin-left: 16px;
    }
    .btn-ghost { display: none; }
}

@media (max-width: 640px) {
    .hero { padding: 60px 0 48px; min-height: 480px; }
    .hero-stats { gap: 16px; }
    .hero-stat-divider { display: none; }
    .section { padding: 48px 0; }
    .tools-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
    .tool-card { padding: 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cat-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .cta-banner { padding: 40px 24px; }
}

@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .tools-grid { grid-template-columns: 1fr; }
}

/* ─── SCROLLBAR ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ─── UTILITIES ──────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-2); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
