/* ============================================
   BENTZY'S WORK — Ultra-Modern Enterprise Design System
   Inspired by: Linear, Vercel, Stripe, CrowdStrike
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Core palette */
    --bg-0: #000000;
    --bg-1: #050508;
    --bg-2: #0a0a0f;
    --bg-3: #0f0f17;
    --bg-surface: rgba(255,255,255,0.02);
    --bg-surface-hover: rgba(255,255,255,0.04);
    --bg-elevated: rgba(255,255,255,0.03);

    /* Borders */
    --border-dim: rgba(255,255,255,0.04);
    --border-subtle: rgba(255,255,255,0.07);
    --border-default: rgba(255,255,255,0.1);
    --border-bright: rgba(255,255,255,0.15);

    /* Accent system */
    --accent: #6366f1;
    --accent-2: #818cf8;
    --accent-cyan: #22d3ee;
    --accent-emerald: #34d399;
    --accent-amber: #fbbf24;
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    --gradient-warm: linear-gradient(135deg, #6366f1 0%, #a78bfa 50%, #22d3ee 100%);
    --gradient-text: linear-gradient(90deg, #818cf8 0%, #22d3ee 50%, #34d399 100%);

    /* Typography */
    --text-white: #ffffff;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-muted: #475569;

    /* Spacing & layout */
    --nav-h: 64px;
    --container: 1200px;
    --r-xs: 6px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-2xl: 24px;
    --r-full: 9999px;

    /* Shadows */
    --glow-sm: 0 0 20px rgba(99,102,241,0.15);
    --glow-md: 0 0 40px rgba(99,102,241,0.2);
    --glow-lg: 0 0 80px rgba(99,102,241,0.15);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
    --shadow-elevated: 0 8px 32px rgba(0,0,0,0.5);

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 150ms;
    --t-base: 250ms;
    --t-slow: 400ms;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-0);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-white);
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); line-height: 1.7; }

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   LAYOUT
   ============================================ */
.container { width: 90%; max-width: var(--container); margin: 0 auto; }
.section { padding: 7rem 0; position: relative; }

/* ============================================
   ANIMATED BACKGROUND ELEMENTS
   ============================================ */
.bg-grid {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 40%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 40%, transparent 70%);
}

.bg-glow {
    position: absolute; pointer-events: none; border-radius: 50%;
    filter: blur(120px); opacity: 0.4;
}
.bg-glow-1 { width: 600px; height: 600px; top: -200px; left: 50%; transform: translateX(-50%); background: rgba(99,102,241,0.15); }
.bg-glow-2 { width: 400px; height: 400px; top: 100px; right: -100px; background: rgba(34,211,238,0.1); }
.bg-glow-3 { width: 400px; height: 400px; bottom: -100px; left: -100px; background: rgba(139,92,246,0.08); }

.aurora {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.aurora::before {
    content: ''; position: absolute;
    width: 200%; height: 200%;
    top: -50%; left: -50%;
    background: conic-gradient(from 180deg at 50% 50%, rgba(99,102,241,0.06), rgba(34,211,238,0.04), rgba(52,211,153,0.03), transparent, rgba(99,102,241,0.06));
    animation: aurora-spin 20s linear infinite;
}
@keyframes aurora-spin { to { transform: rotate(360deg); } }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h); z-index: 1000;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all var(--t-base) var(--ease);
}
.navbar.scrolled {
    background: rgba(5,5,8,0.92);
    border-bottom-color: var(--border-subtle);
}

.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-h);
}

.nav-brand {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none; color: var(--text-white);
}
.nav-brand img { height: 32px; width: auto; }
.nav-brand span { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }

.nav-links {
    display: flex; align-items: center; gap: 0.15rem;
}

.nav-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--r-sm);
    transition: color var(--t-fast);
    position: relative;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--text-white); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: var(--text-white); color: var(--bg-0);
    font-weight: 600; font-size: 0.8rem;
    padding: 0.4rem 1rem; border-radius: var(--r-full);
    text-decoration: none; border: none; cursor: pointer;
    margin-left: 0.5rem;
    transition: all var(--t-base) var(--ease);
}
.nav-cta:hover { box-shadow: var(--glow-sm); transform: translateY(-1px); }
.nav-cta .material-icons { font-size: 0.9rem; }

.mobile-toggle {
    display: none; background: none; border: none;
    color: var(--text-white); cursor: pointer; padding: 0.5rem;
}
.hamburger { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.hamburger span { display: block; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px; transition: all var(--t-base) var(--ease); transform-origin: center; }
.mobile-toggle.active .hamburger span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-toggle.active .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + 6rem) 0 6rem;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
}

.hero-content { text-align: center; max-width: 850px; margin: 0 auto; position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    color: var(--accent-2);
    font-size: 0.8rem; font-weight: 600;
    padding: 0.35rem 0.9rem; border-radius: var(--r-full);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}
.hero-badge .material-icons { font-size: 0.9rem; }

.hero h1 { margin-bottom: 1.5rem; }
.hero p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 2.5rem; color: var(--text-secondary); }

.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Page Hero (inner pages) */
.page-hero {
    position: relative; overflow: hidden;
    padding: calc(var(--nav-h) + 5rem) 0 4rem;
    text-align: center;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { font-size: 1.05rem; max-width: 550px; margin: 0 auto; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-weight: 600; font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--r-full);
    text-decoration: none; border: none;
    cursor: pointer; transition: all var(--t-base) var(--ease);
    font-family: inherit; position: relative;
}

.btn-primary {
    background: var(--text-white); color: var(--bg-0);
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(255,255,255,0.15); transform: translateY(-2px); }

.btn-accent {
    background: var(--gradient-main); color: white;
}
.btn-accent:hover { box-shadow: var(--glow-md); transform: translateY(-2px); }

.btn-ghost {
    background: rgba(255,255,255,0.05); color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--text-white); border-color: var(--border-default); transform: translateY(-2px); }

.btn-link {
    background: none; color: var(--accent-2); padding: 0;
    font-size: 0.85rem; gap: 0.3rem;
}
.btn-link .material-icons { font-size: 1rem; transition: transform var(--t-fast); }
.btn-link:hover { color: var(--accent-cyan); }
.btn-link:hover .material-icons { transform: translateX(3px); }

.btn .material-icons { font-size: 1rem; }

/* ============================================
   CARDS — Modern glass card system
   ============================================ */
.card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-xl);
    padding: 2rem;
    transition: all var(--t-base) var(--ease);
    overflow: hidden;
}
.card::after {
    content: ''; position: absolute; inset: 0;
    border-radius: var(--r-xl);
    opacity: 0; transition: opacity var(--t-base);
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99,102,241,0.06), transparent 40%);
    pointer-events: none;
}
.card:hover { border-color: var(--border-default); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card:hover::after { opacity: 1; }

.card-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-main);
    border-radius: var(--r-md);
    margin-bottom: 1.25rem;
    box-shadow: var(--glow-sm);
}
.card-icon .material-icons { font-size: 1.3rem; color: white; }

.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.9rem; margin-bottom: 1rem; color: var(--text-secondary); }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }

.section-tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--accent-2); font-weight: 600; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 1rem;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.12);
    padding: 0.3rem 0.8rem; border-radius: var(--r-full);
}

.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.05rem; }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--border-dim);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-xl);
    overflow: hidden;
}
.stat-item {
    background: var(--bg-2);
    padding: 2rem 1.5rem; text-align: center;
    transition: background var(--t-base);
}
.stat-item:hover { background: var(--bg-3); }
.stat-number {
    font-size: 2.5rem; font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1.2; margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.8rem; color: var(--text-tertiary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-xl);
    padding: 2rem;
    transition: all var(--t-base) var(--ease);
    display: flex; flex-direction: column;
}
.testimonial-card:hover { border-color: var(--border-default); transform: translateY(-3px); }

.testimonial-stars { display: flex; gap: 1px; margin-bottom: 1.25rem; }
.testimonial-stars .material-icons { font-size: 0.9rem; color: var(--accent-amber); }

.testimonial-card blockquote {
    font-size: 0.95rem; font-style: normal;
    color: var(--text-secondary); line-height: 1.7;
    margin-bottom: 1.5rem; flex: 1;
}

.testimonial-author {
    display: flex; align-items: center; gap: 0.75rem;
    padding-top: 1.25rem; border-top: 1px solid var(--border-dim);
}
.testimonial-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gradient-main);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 0.8rem;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--text-white); }
.testimonial-author small { font-size: 0.75rem; color: var(--text-tertiary); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { position: relative; padding: 6rem 0; overflow: hidden; }

.cta-card {
    position: relative; z-index: 1;
    background: var(--bg-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-2xl);
    padding: 5rem 2rem; text-align: center;
    overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 50% 80% at 50% -20%, rgba(99,102,241,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.cta-card .container { position: relative; z-index: 1; }
.cta-card h2 { margin-bottom: 1rem; }
.cta-card p { max-width: 500px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: auto; padding: 5rem 0 2rem;
    background: var(--bg-1);
    border-top: 1px solid var(--border-dim);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 3rem; margin-bottom: 3rem;
}

.footer-brand p { margin: 1rem 0 0; font-size: 0.85rem; color: var(--text-tertiary); }

.footer-col h4 {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }

.footer-link {
    color: var(--text-tertiary); text-decoration: none;
    font-size: 0.85rem; transition: color var(--t-fast);
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.footer-link:hover { color: var(--text-primary); }
.footer-link .material-icons { font-size: 0.95rem; }

.footer-bottom {
    padding-top: 2rem; border-top: 1px solid var(--border-dim);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-muted); text-decoration: none; font-size: 0.75rem; transition: color var(--t-fast); }
.footer-bottom-links a:hover { color: var(--text-tertiary); }

/* ============================================
   GRIDS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 1.5rem; }

/* ============================================
   BENTO GRID (for features/services)
   ============================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-dim);
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--border-dim);
}
.bento-item {
    background: var(--bg-2);
    padding: 2.5rem 2rem;
    transition: all var(--t-base) var(--ease);
    position: relative; overflow: hidden;
}
.bento-item:hover { background: var(--bg-3); }
.bento-item::after {
    content: ''; position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99,102,241,0.04), transparent 40%);
    transition: opacity var(--t-base); pointer-events: none;
}
.bento-item:hover::after { opacity: 1; }

.bento-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gradient-main);
    border-radius: var(--r-sm);
    margin-bottom: 1.25rem;
    box-shadow: var(--glow-sm);
}
.bento-icon .material-icons { font-size: 1.2rem; color: white; }

.bento-item h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.bento-item p { font-size: 0.88rem; color: var(--text-tertiary); line-height: 1.6; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.8rem; font-weight: 500;
    color: var(--text-tertiary); margin-bottom: 0.35rem;
    text-transform: uppercase; letter-spacing: 0.04em;
}

.form-control {
    width: 100%; padding: 0.65rem 0.9rem;
    font-size: 0.9rem; font-family: inherit;
    background: var(--bg-surface); border: 1px solid var(--border-subtle);
    color: var(--text-primary); border-radius: var(--r-sm);
    transition: all var(--t-fast); outline: none;
    color-scheme: dark;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.12); background: var(--bg-surface-hover); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--bg-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item-icon {
    width: 42px; height: 42px; min-width: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-main); border-radius: var(--r-sm);
    box-shadow: var(--glow-sm);
}
.contact-item-icon .material-icons { font-size: 1.1rem; color: white; }
.contact-item h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-item p { font-size: 0.88rem; }

/* ============================================
   VALUE CARDS (About)
   ============================================ */
.value-card {
    display: flex; align-items: start; gap: 1.25rem;
    background: var(--bg-surface); border: 1px solid var(--border-dim);
    border-radius: var(--r-lg); padding: 1.5rem;
    transition: all var(--t-base) var(--ease);
}
.value-card:hover { border-color: var(--border-default); background: var(--bg-surface-hover); transform: translateY(-2px); }

.value-icon {
    width: 42px; height: 42px; min-width: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-main); border-radius: var(--r-sm);
    box-shadow: var(--glow-sm);
}
.value-icon .material-icons { font-size: 1.1rem; color: white; }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
    background: var(--bg-surface); border: 1px solid var(--border-dim);
    border-radius: var(--r-xl); padding: 3rem;
}
.legal-content h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; color: var(--text-white); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 1rem; font-size: 0.92rem; }

/* ============================================
   TOOLS PAGE — Premium Toolkit UI
   ============================================ */
.tools-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.tools-sidebar {
    position: sticky; top: calc(var(--nav-h) + 1.5rem);
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-xl);
    padding: 0.5rem;
    display: flex; flex-direction: column; gap: 2px;
}

.tool-nav-btn {
    display: flex; align-items: center; gap: 0.6rem;
    width: 100%; text-align: left;
    background: transparent; border: none;
    color: var(--text-tertiary);
    font-size: 0.85rem; font-weight: 500; font-family: inherit;
    padding: 0.6rem 0.85rem;
    border-radius: var(--r-sm);
    cursor: pointer; transition: all var(--t-fast);
}
.tool-nav-btn:hover { background: rgba(255,255,255,0.03); color: var(--text-secondary); }
.tool-nav-btn.active {
    background: var(--gradient-main); color: white;
    box-shadow: var(--glow-sm);
}
.tool-nav-btn .material-icons { font-size: 1.1rem; }

.tool-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-radius: var(--r-xl);
    padding: 2rem;
    min-height: 400px;
}

.tool-panel-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 2rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-dim);
}
.tool-panel-header .tool-header-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-main); border-radius: var(--r-sm);
    box-shadow: var(--glow-sm);
}
.tool-panel-header .tool-header-icon .material-icons { font-size: 1.2rem; color: white; }
.tool-panel-header h3 { font-size: 1.2rem; margin: 0; }
.tool-panel-header p { font-size: 0.8rem; color: var(--text-tertiary); margin: 0.15rem 0 0; }

.tool-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }

.tool-action-btn {
    background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.15);
    color: var(--accent-2); font-size: 0.8rem; font-weight: 500; font-family: inherit;
    padding: 0.4rem 0.85rem; border-radius: var(--r-full);
    cursor: pointer; transition: all var(--t-fast);
}
.tool-action-btn:hover { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.25); }

.input-group { display: flex; }
.input-group .form-control { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .btn, .input-group .btn-copy { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.btn-copy {
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); border-left: none;
    color: var(--text-tertiary); padding: 0.65rem 0.9rem;
    cursor: pointer; transition: all var(--t-fast);
    font-family: inherit; font-size: 0.8rem; white-space: nowrap;
}
.btn-copy:hover { background: rgba(255,255,255,0.07); color: var(--text-primary); }

.results-area {
    background: rgba(0,0,0,0.25); border: 1px solid var(--border-dim);
    padding: 1.25rem; border-radius: var(--r-md); margin-top: 1rem;
}

.checkbox-label {
    display: flex; align-items: center; gap: 0.5rem;
    cursor: pointer; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem;
}
.checkbox-input { width: 16px; height: 16px; accent-color: var(--accent); }

.hidden { display: none !important; }

table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
table th, table td { padding: 0.65rem 0.85rem; border: 1px solid var(--border-dim); text-align: left; font-size: 0.85rem; }
table th { background: rgba(0,0,0,0.3); font-weight: 600; color: var(--text-primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
table td { color: var(--text-secondary); }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up { opacity: 0; transform: translateY(25px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 60ms; }
.stagger > *:nth-child(3) { transition-delay: 120ms; }
.stagger > *:nth-child(4) { transition-delay: 180ms; }
.stagger > *:nth-child(5) { transition-delay: 240ms; }
.stagger > *:nth-child(6) { transition-delay: 300ms; }
.stagger > *:nth-child(7) { transition-delay: 360ms; }
.stagger > *:nth-child(8) { transition-delay: 420ms; }
.stagger > *:nth-child(9) { transition-delay: 480ms; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
    .bento-grid { grid-template-columns: repeat(2,1fr); }
    .stats-bar { grid-template-columns: repeat(2,1fr); }
    .tools-layout { grid-template-columns: 1fr; }
    .tools-sidebar { position: static; flex-direction: row; flex-wrap: wrap; padding: 0.4rem; }
    .tool-nav-btn { width: auto; padding: 0.45rem 0.75rem; font-size: 0.8rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute;
        top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        background: rgba(5,5,8,0.98);
        backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border-subtle);
        padding: 0.75rem; gap: 0.15rem;
    }
    .nav-links.open { display: flex; }
    .nav-link { padding: 0.65rem 1rem; width: 100%; }
    .nav-cta { margin: 0.5rem 1rem 0.25rem; justify-content: center; }
    .mobile-toggle { display: flex; align-items: center; }
    .hero { min-height: auto; padding: calc(var(--nav-h) + 4rem) 0 4rem; }
    .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2,1fr); }
    .stat-number { font-size: 2rem; }
    .section { padding: 4.5rem 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .cta-card { padding: 3.5rem 1.5rem; }
    .legal-content { padding: 2rem 1.25rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}
