:root {
    --bg-main: #05050d;
    --bg-card: rgba(14, 15, 30, 0.65);
    --bg-card-hover: rgba(22, 24, 48, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);

    --gold-primary: #ffb703;
    --gold-secondary: #fb8500;
    --gold-light: #ffe49e;
    --gold-glow: rgba(255, 183, 3, 0.25);

    --cyan: #00f2fe;
    --cyan-glow: rgba(0, 242, 254, 0.2);
    --purple: #7928ca;
    --pink: #ff0080;
    --emerald: #00e676;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.48);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(255, 183, 3, 0.3);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;

    --shadow-glow: 0 0 40px rgba(255, 183, 3, 0.15);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    background: radial-gradient(circle at 50% 0%, #0d0e26 0%, #05050d 70%);
}

/* Container Wrapper for Ultra-Wide Screens */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 32px;
    }
}

/* ==========================================================================
    BACKGROUND ANIMATIONS & CANVAS
    ========================================================================== */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    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: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 100%);
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    animation: floatOrb 20s infinite alternate ease-in-out;
}
.orb-1 { width: 500px; height: 500px; background: var(--gold-primary); top: -100px; left: -100px; }
.orb-2 { width: 600px; height: 600px; background: var(--purple); bottom: -150px; right: -150px; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: var(--cyan); top: 40%; left: 60%; animation-delay: -10s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* ==========================================================================
    NAVIGATION BAR
    ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(5, 5, 13, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(5, 5, 13, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border-bottom-color: rgba(255, 183, 3, 0.2);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
    box-shadow: 0 0 20px var(--gold-glow);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: #000 !important;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 183, 3, 0.4);
}

/* Mobile Hamburger Menu */
.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-drawer {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(8, 9, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.mobile-drawer.active {
    transform: translateY(0);
}

.mobile-drawer .nav-link {
    font-size: 1.05rem;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
    HERO SECTION
    ========================================================================== */
.hero-section {
    position: relative;
    z-index: 1;
    padding-top: 160px;
    padding-bottom: 90px;
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--emerald);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: #000;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 10px 30px var(--gold-glow);
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 183, 3, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-3px);
}

/* ==========================================================================
    MARQUEE TRUST STRIP
    ========================================================================== */
.marquee-container {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    background: rgba(14, 15, 30, 0.5);
    border-y: 1px solid var(--border-color);
    padding: 16px 0;
    margin-bottom: 70px;
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.marquee-item i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
    STATS SECTION
    ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 100px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--gold-glow), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* ==========================================================================
    SERVICES & BOTS GRID
    ========================================================================== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.section-tag {
    color: var(--gold-primary);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
    margin-bottom: 110px;
}

.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.bot-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

/* Image Wrapper with Aspect Ratio & Fallback handling */
.bot-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.1), rgba(121, 40, 202, 0.1));
    overflow: hidden;
}

.bot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.bot-card:hover .bot-img {
    transform: scale(1.06);
}

/* Gradient fallback when image fails to load */
.bot-fallback-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--gold-primary);
    background: radial-gradient(circle at center, rgba(255, 183, 3, 0.15) 0%, rgba(5, 5, 13, 0.9) 80%);
}

.bot-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bot-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.badge-pill {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-tg { background: rgba(0, 136, 204, 0.15); color: #00aff0; border: 1px solid rgba(0, 136, 204, 0.3); }
.badge-dl { background: rgba(255, 183, 3, 0.15); color: var(--gold-primary); border: 1px solid rgba(255, 183, 3, 0.3); }
.badge-api { background: rgba(0, 230, 118, 0.15); color: var(--emerald); border: 1px solid rgba(0, 230, 118, 0.3); }

.bot-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.bot-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.btn-bot-action {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: #000;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.2);
}

.btn-bot-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 183, 3, 0.4);
}

.btn-bot-action.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-bot-action.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Featured Card Span */
.bot-card.featured {
    grid-column: span 2;
}

/* ==========================================================================
    FEATURES / WHY CHOOSE US
    ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 183, 3, 0.1);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Code Window Visual */
.code-window {
    background: #090a1a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.code-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-title {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    margin-left: 10px;
}

.code-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.8;
    color: #d4d4d4;
    overflow-x: auto;
}

.code-keyword { color: #569cd6; }
.code-string { color: #ce9178; }
.code-function { color: #dcdcaa; }
.code-comment { color: #6a9955; }

/* ==========================================================================
    CREATOR / ABOUT SECTION
    ========================================================================== */
.about-card {
    background: linear-gradient(135deg, rgba(14, 15, 30, 0.8), rgba(8, 9, 20, 0.95));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-bottom: 100px;
}

.creator-avatar-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.creator-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 30px var(--gold-glow);
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ==========================================================================
    CTA BANNER
    ========================================================================== */
.cta-banner {
    background: radial-gradient(circle at center, rgba(255, 183, 3, 0.12) 0%, rgba(5, 5, 13, 0.95) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 100px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 36px;
}

/* ==========================================================================
    FOOTER
    ========================================================================== */
footer {
    background: #030308;
    border-top: 1px solid var(--border-color);
    padding: 70px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 16px;
    max-width: 300px;
}

.footer-title {
    color: var(--gold-primary);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-primary);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ==========================================================================
    RESPONSIVE MEDIA QUERIES (MOBILE, TABLETS & DESKTOPS)
    ========================================================================== */
@media (max-width: 1024px) {
    .bots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bot-card.featured {
        grid-column: span 2;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .about-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .bots-grid {
        grid-template-columns: 1fr;
    }
    .bot-card.featured {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}
