:root {
    --bg-deep: #0a0e1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --accent: #a78bfa;
    --accent-glow: rgba(167, 139, 250, 0.3);
    --cyan: #22d3ee;
    --green: #34d399;
    --pink: #f472b6;
    --orange: #fb923c;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

body {
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ======= NAVBAR ======= */
.navbar {
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    position: sticky; top: 0; z-index: 1000;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.brand-logo:hover {
    transform: scale(1.04);
}
.nav-link-item {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.nav-link-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}
.creator-tools-link {
    color: #c4b5fd;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.25);
}
.creator-tools-link:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.25);
}
.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-auth-btn {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-auth-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.nav-staff-btn {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.25);
}
.nav-staff-btn:hover {
    background: rgba(167, 139, 250, 0.2);
    color: #ffffff;
}
.nav-logout-btn {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}
.nav-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ffffff;
}

/* ======= BUTTONS ======= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.7rem 1.5rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9rem; text-align: center;
    cursor: pointer; transition: all 0.3s; border: none; font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white; box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px); color: white;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
}
.btn-outline {
    background: transparent; color: var(--text-main);
    border: 1px solid var(--glass-border-hover);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05); border-color: var(--accent);
    color: var(--accent);
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 12px; }

/* ======= HERO ======= */
.hero {
    padding: 8rem 0 6rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 70%);
    z-index: 0;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 60%);
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero .badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; color: var(--accent);
    margin-bottom: 1.5rem; font-weight: 500;
}
.hero .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 { font-size: 3.8rem; margin-bottom: 1.5rem; font-weight: 900; letter-spacing: -1px; }
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 50%, var(--pink) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ======= STATS BAR ======= */
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--glass-border); border-radius: var(--radius);
    overflow: hidden; margin: 5rem 0 0;
}
.stat-item {
    background: var(--bg-card); padding: 2rem; text-align: center;
}
.stat-item .number { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; }
.stat-item .label { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; }

/* ======= SECTION HEADERS ======= */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .tag {
    display: inline-block; background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15); padding: 4px 14px;
    border-radius: 50px; font-size: 0.75rem; color: var(--primary-hover);
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 1rem;
}
.section-header h2 { font-size: 2.5rem; font-weight: 800; }
.section-header p { color: var(--text-muted); max-width: 550px; margin: 0 auto; }

/* ======= HOW IT WORKS ======= */
.how-it-works { padding: 5rem 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
    position: relative; transition: all 0.4s;
}
.step-card:hover { border-color: var(--glass-border-hover); transform: translateY(-4px); }
.step-card .step-num {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem; margin-bottom: 1.2rem;
}
.step-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }

/* ======= SERVICES / CATEGORIES ======= */
.category-section { padding: 5rem 0; }
.category-block { margin-bottom: 4rem; }
.category-title-row {
    display: flex; align-items: center; gap: 12px; margin-bottom: 2rem;
    padding-bottom: 1rem; border-bottom: 1px solid var(--glass-border);
}
.category-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.category-title { font-size: 1.5rem; margin: 0; }
.subcategory-label {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--text-dim); font-weight: 600; margin: 1.5rem 0 1rem;
}
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.service-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); overflow: hidden;
    transition: all 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px); border-color: var(--glass-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.service-card .card-img {
    width: 100%; height: 190px; object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}
.service-card .card-body { padding: 1.2rem 1.4rem 1.4rem; }
.service-card .card-body h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--text-main); }
.service-card .card-body p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1rem; line-height: 1.5; }
.service-card .card-footer {
    display: flex; align-items: center; justify-content: space-between;
}
.service-card .card-type {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
    padding: 3px 10px; border-radius: 50px; font-weight: 600;
}
.type-template { background: rgba(99, 102, 241, 0.1); color: var(--primary-hover); }
.type-direct { background: rgba(34, 211, 238, 0.1); color: var(--cyan); }
.type-pricing_card { background: rgba(244, 114, 182, 0.1); color: var(--pink); }
.type-free { background: rgba(52, 211, 153, 0.1); color: var(--green); }

/* ======= WHY CHOOSE US ======= */
.features-section { padding: 5rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2rem;
    transition: all 0.3s;
}
.feature-card:hover { border-color: var(--glass-border-hover); }
.feature-card .icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 1.2rem;
}
.feature-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }

/* ======= CTA BANNER ======= */
.cta-banner {
    margin: 3rem 0 5rem; padding: 4rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius); text-align: center;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.cta-banner p { color: var(--text-muted); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ======= FOOTER ======= */
footer {
    margin-top: auto; padding: 3rem 0 2rem;
    border-top: 1px solid var(--glass-border); color: var(--text-dim);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
    margin-bottom: 2rem;
}
.footer-brand { font-size: 0.9rem; line-height: 1.7; }
.footer-brand .brand-name { font-size: 1.2rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.8rem; display: block; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-dim); font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); font-size: 0.8rem; }

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .services-grid { grid-template-columns: 1fr; }
}

/* ======= FORM INPUTS ======= */
input, textarea, select {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    color: var(--text-main); padding: 0.8rem 1rem; border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.95rem; width: 100%;
    transition: border-color 0.3s;
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--primary);
}

/* ======= ANIMATIONS ======= */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Added for tools preview checkerboard */
.checkerboard { background-color: #e5e7eb; background-image: linear-gradient(45deg, #d1d5db 25%, transparent 25%, transparent 75%, #d1d5db 75%, #d1d5db), linear-gradient(45deg, #d1d5db 25%, transparent 25%, transparent 75%, #d1d5db 75%, #d1d5db); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
