:root {
    /* Top-Tier Agency Color Palette */
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.7);
    --primary-cyan: #00f2ff;
    --primary-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --text-main: #f9fafb;
    --text-dim: #9ca3af;
    --accent-glow: rgba(0, 242, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glow-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
    z-index: -1;
    transition: opacity 0.4s;
    opacity: 0;
}

.glow-btn:hover::before {
    opacity: 1;
}

.glow-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px var(--accent-glow);
}

/* Background Effects */
.bg-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 242, 255, 0.05), transparent 40%);
    z-index: -2;
}

/* Floating Particles */
.bg-gradient-top::before,
.bg-gradient-top::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 10s ease-in-out infinite;
}

.bg-gradient-top::before {
    width: 300px;
    height: 300px;
    background: rgba(0, 242, 255, 0.15);
    top: 30%;
    left: 10%;
}

.bg-gradient-top::after {
    width: 200px;
    height: 200px;
    background: rgba(139, 92, 246, 0.15);
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(-30px) translateX(15px);
    }

    50% {
        transform: translateY(-15px) translateX(-15px);
    }

    75% {
        transform: translateY(-45px) translateX(10px);
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
section {
    padding: 120px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero */
.hero {
    text-align: center;
    padding: 180px 20px 100px;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff 30%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 40px;
    backdrop-filter: blur(10px);
}

/* =========================================
   ANIMATED DASHBOARD MOCKUP
========================================= */
.mockup-container {
    margin-top: 60px;
    padding: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 242, 255, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: rgba(10, 25, 47, 0.8);
    min-height: 400px;
    overflow: hidden;
}

/* Data Streams */
.data-stream {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    width: 200px;
    opacity: 0.5;
    z-index: 0;
}

.data-stream.d-1 {
    top: 30%;
    left: -200px;
    animation: flowData 4s infinite linear;
}

.data-stream.d-2 {
    top: 70%;
    left: -200px;
    animation: flowData 5s infinite linear 2s;
}

@keyframes flowData {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(1200px);
        opacity: 0;
    }
}

/* Mockup Panels */
.mockup-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 6px;
    border-radius: 12px 12px 0 0;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot.r {
    background: #ff5f56;
}

.mockup-dot.y {
    background: #ffbd2e;
}

.mockup-dot.g {
    background: #27c93f;
}

.mockup-content {
    padding: 20px;
}

/* Left Panel Specifics */
.mockup-left {
    max-width: 400px;
}

.mockup-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mockup-input-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 20px;
    line-height: 1.5;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
    /* Hide initial cursor */
    animation: typing 4s steps(40, end) infinite;
}

@keyframes typing {

    0%,
    10% {
        width: 0;
    }

    50%,
    90% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--primary-cyan);
    font-weight: bold;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.mockup-btn {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #030712;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 25px rgba(0, 242, 255, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    }
}

/* Central Core */
.mockup-core {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.core-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--accent-purple);
    border-radius: 50%;
    animation: spin 8s linear infinite;
    opacity: 0.7;
}

.core-icon {
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 20px var(--accent-purple);
    animation: core-pulse 2s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes core-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px var(--accent-purple));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px var(--accent-purple));
        color: var(--primary-cyan);
    }
}

/* Right Panel Specifics */
.mockup-right {
    max-width: 350px;
    background: rgba(255, 255, 255, 0.05);
}

.mockup-badge {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-cyan);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.mockup-post {
    margin: 15px;
    background: #ffffff;
    border-radius: 10px;
    color: #1c1e21;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slide-up {
    animation: slideUpFade 4s ease-in-out infinite;
}

@keyframes slideUpFade {

    0%,
    20% {
        opacity: 0;
        transform: translateY(50px);
    }

    50%,
    80% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

.post-header {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
}

.post-meta {
    line-height: 1.2;
}

.post-name {
    font-weight: 700;
    font-size: 0.85rem;
}

.post-time {
    color: #65676B;
    font-size: 0.75rem;
}

.post-image {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gradient-bg {
    background: linear-gradient(135deg, #0a192f 0%, #1a365d 30%, #0ea5e9 60%, #8b5cf6 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.post-caption {
    padding: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.post-actions {
    padding: 10px;
    border-top: 1px solid #ebedf0;
    display: flex;
    gap: 15px;
    color: #65676B;
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .mockup-container {
        flex-direction: column;
    }

    .mockup-left,
    .mockup-right {
        max-width: 100%;
        width: 100%;
    }

    .mockup-core {
        margin: 20px 0;
    }
}

/* Social Proof Marquee */
.social-proof {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.social-proof::before,
.social-proof::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.social-proof::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.social-proof::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dim);
    margin: 0 40px;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Bento Grid Features */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 24px;
    margin-top: 50px;
}

.bento-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
}

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

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bento-card.large {
    grid-column: span 2;
}

.bento-card.tall {
    grid-row: span 2;
}

.bento-card i {
    font-size: 2.5rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
    background: -webkit-linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.3));
    transition: filter 0.3s;
}

.bento-card:hover i {
    filter: drop-shadow(0 0 16px rgba(0, 242, 255, 0.6));
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.bento-card p {
    color: var(--text-dim);
    font-size: 1rem;
}

/* Header Override */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px max(40px, calc(50vw - 600px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s;
}

.header-scrolled {
    padding: 15px max(40px, calc(50vw - 600px));
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-cyan);
}

footer {
    padding: 60px 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
    position: relative;
    background: rgba(3, 7, 18, 0.5);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), var(--accent-purple), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-cyan);
}

/* Official Facebook Branding */
.fb-login-btn {
    background-color: #1877F2;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
    /* Meta's preferred font for button */
}

.fb-login-btn:hover {
    background-color: #166fe5;
}

.fb-logo {
    width: 20px;
    height: 20px;
    background: white;
    color: #1877F2;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-size: 14px;
}

/* Footer Compliance */
.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    margin: 40px auto 0;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary-cyan);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    header {
        padding: 15px 20px;
    }

    nav {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-nav {
        justify-content: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.large {
        grid-column: span 1;
    }
}

/* Shine Animation for Mockup Button */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    transform: rotate(30deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

/* Stat counter section styling */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}