:root {
    --bg: #05070a;
    --card-bg: rgba(17, 25, 40, 0.75);
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.3);
    --secondary: #10b981;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.125);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Styles */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    color: var(--primary);
}

.highlight {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--primary-glow);
}

.btn-primary.loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

.btn-primary.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rotate 0.8s infinite linear;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.audit-input-group {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    max-width: 500px;
    margin-bottom: 1rem;
    transition: focus-within 0.3s, border-color 0.3s;
}

.audit-input-group:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.audit-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.status-msg {
    font-size: 0.875rem;
    color: var(--text-dim);
    min-height: 1.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Hero Visuals */
.hero-visual {
    position: relative;
    height: 400px;
}

.main-viz {
    padding: 2rem;
    height: 300px;
    width: 90%;
}

.viz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.chart-mockup {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 150px;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary), transparent);
    border-radius: 4px 4px 0 0;
    animation: grow 2s ease-out;
}

@keyframes grow {
    from {
        height: 0;
    }
}

.stat-card {
    position: absolute;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 200px;
}

.stat-card.s1 {
    top: -20px;
    right: 0;
    animation: float 4s infinite ease-in-out;
}

.stat-card.s2 {
    bottom: 20px;
    left: -40px;
    animation: float 4s infinite ease-in-out 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stat-card i {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.stat-info .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.stat-info .value {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Features */
.features {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.icon-box.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.icon-box.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Dashboard Frame */
.live-dashboard {
    padding-bottom: 8rem;
}

.dashboard-frame {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 500px;
    overflow: hidden;
}

.dash-sidebar {
    padding: 2rem;
    border-right: 1px solid var(--border);
}

.dash-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.3s;
}

.dash-item:hover,
.dash-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.dash-content {
    padding: 2rem;
}

.dash-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 99px;
}

.user-pill img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mini-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.mini-card .label {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: block;
}

.mini-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.mini-card .trend {
    font-size: 0.8rem;
    font-weight: 600;
}

.trend.up {
    color: var(--secondary);
}

.trend.warning {
    color: #f59e0b;
}

.trend.down {
    color: #ef4444;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 1rem;
}

.progress {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.main-chart-area {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 2rem;
    min-height: 300px;
    height: auto;
}

.keyword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.keyword-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.keyword-item span {
    color: var(--secondary);
    font-weight: 600;
}

.preview-mockup {
    height: 150px;
    width: 100%;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

/* Advertisement Styles */
.ad-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    width: 100%;
    position: relative;
}

.top-leaderboard {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

.sidebar-ad {
    margin-top: 3rem;
    padding: 0;
}

.ad-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    opacity: 0.5;
}

.ad-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.top-leaderboard .ad-placeholder {
    width: 728px;
    height: 90px;
    max-width: 90%;
}

.sidebar-ad .ad-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
}

.mid-page-ad .ad-placeholder {
    width: 100%;
    height: 250px;
    max-width: 970px;
}

.ad-placeholder:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

/* Consultation & Lead Gen */
.consultation-section {
    padding: 6rem 0;
}

.consult-card {
    padding: 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid var(--primary-glow);
}

.consult-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.consult-content p {
    color: var(--text-dim);
    margin: 0 auto 2.5rem;
    max-width: 600px;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-pill:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.contact-pill.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

/* Floating Contact FAB */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--primary-glow);
    z-index: 9999;
    text-decoration: none;
    transition: width 0.3s ease, transform 0.3s;
    overflow: hidden;
}

.floating-contact:hover {
    width: 170px;
    transform: scale(1.05);
}

.fab-label {
    margin-left: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.floating-contact:hover .fab-label {
    opacity: 1;
}

footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
}

/* Responsiveness */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .cta-group {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-frame {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        display: none;
    }
}