/* ==========================================================================
   CSS Variables & Design System (Theme Support)
   ========================================================================== */
:root {
    /* Default: Light Theme */
    --bg-color: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-light: #f1f5f9;
    
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.1);
    
    --accent-color: #0ea5e9;
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --border-color: rgba(0, 0, 0, 0.08);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1280px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

[data-theme="dark"] {
    /* Dark Theme Override */
    --bg-color: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-light: #334155;
    
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.2);
    
    --accent-color: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --border-color: rgba(255, 255, 255, 0.1);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--primary-light);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100000;
    transition: all var(--transition-normal);
    padding: 20px 0;
    background: transparent;
}

.header.scrolled {
    padding: 12px 0;
    background: var(--bg-surface);
    opacity: 0.95;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    z-index: 1001;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    background: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    outline: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

[data-theme="dark"] .shape {
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
}

.shape-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-color);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
    color: var(--primary-color);
}

[data-theme="dark"] .hero-badge {
    color: var(--accent-color);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}
[data-theme="dark"] .badge-dot {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 90%;
    line-height: 1.6;
}

/* Search Box */
.hero-search-box {
    display: flex;
    background: var(--bg-surface);
    opacity: 0.95;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    margin-top: 10px;
    box-shadow: var(--shadow-md);
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    border-right: 1px solid var(--border-color);
}

.search-icon {
    color: var(--text-muted);
}

.hero-search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
}

.hero-search-input::placeholder {
    color: var(--text-muted);
}

.search-filters {
    display: flex;
}

.metric-select {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0 12px;
    font-size: 0.9rem;
    outline: none;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    appearance: none;
    font-weight: 500;
}

.metric-select option {
    background: var(--bg-surface);
    color: var(--text-main);
}

.btn-search {
    padding: 10px 24px;
    margin-left: 6px;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: var(--border-color);
}

/* Hero Visual & Mockup */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.dashboard-mockup {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-normal);
}

.dashboard-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    height: 35px;
    background: var(--bg-surface-light);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.mockup-dots span:nth-child(2) { background: #eab308; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-body {
    display: flex;
    height: 380px;
    border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
    overflow: hidden;
}

.mockup-sidebar {
    width: 60px;
    border-right: 1px solid var(--border-color);
    background: var(--bg-color);
}

.mockup-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-surface) 100%);
}

.mockup-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-normal);
    animation: slideUp 0.5s ease backwards;
    box-shadow: var(--shadow-sm);
}

.mockup-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
    border-color: var(--primary-light);
}

.card-1 { animation-delay: 0.1s; }
.card-2 { animation-delay: 0.2s; }
.card-3 { animation-delay: 0.3s; }

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.card-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.card-metrics {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

.card-price {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

[data-theme="dark"] .card-price {
    color: var(--accent-color);
}

.floating-badge {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
    color: var(--text-main);
}

.badge-dr {
    top: 30px;
    right: -15px;
}

.badge-dr i { color: #22c55e; }

.badge-traffic {
    bottom: 50px;
    left: -20px;
    animation-delay: 2s;
}

.badge-traffic i { color: #eab308; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   General Section Styles
   ========================================================================== */
.text-center { text-align: center; }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Trusted By Section
   ========================================================================== */
.trusted-by {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface-light);
}

.trusted-by .section-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.6;
    transition: opacity var(--transition-normal);
}

.logo-grid:hover {
    opacity: 1;
}

.brand-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    filter: grayscale(100%);
    transition: filter var(--transition-fast);
}

.brand-logo:hover {
    filter: grayscale(0%);
}

/* ==========================================================================
   Featured Websites Section
   ========================================================================== */
.featured-websites {
    padding: 100px 0;
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.website-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.website-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.site-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

[data-theme="dark"] .site-icon {
    background: rgba(99, 102, 241, 0.15);
}

.site-url {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.site-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-block;
    margin-top: 4px;
    background: var(--bg-surface-light);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 24px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.metric {
    text-align: center;
}

.metric .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.metric .value {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer .price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

[data-theme="dark"] .card-footer .price {
    color: var(--accent-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-surface-light) 0%, var(--bg-color) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    right: 15%;
    border-top: 2px dashed var(--border-color);
    z-index: 1;
}

[data-theme="dark"] .steps-grid::before {
    border-color: rgba(255,255,255,0.15);
}

.step-card {
    position: relative;
    z-index: 2;
    background: var(--bg-surface);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: var(--bg-surface-light);
    opacity: 0.6;
    z-index: -1;
    transition: color var(--transition-normal);
    line-height: 1;
}

.step-card:hover .step-number {
    color: var(--primary-light);
    opacity: 0.8;
}

.step-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: var(--accent-gradient);
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Publisher Benefits Section
   ========================================================================== */
.publisher-benefits {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.benefits-visual {
    position: relative;
    padding: 20px;
}

.revenue-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.rev-header {
    margin-bottom: 30px;
}

.rev-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 8px 0;
}

.rev-growth {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rev-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.rev-chart .bar {
    flex: 1;
    background: var(--primary-light);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease, background 0.3s ease;
}

.rev-chart .bar:hover {
    background: var(--primary-color);
}

.rev-recent {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rev-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-surface-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.text-green { color: #22c55e; font-weight: 600; }

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
    padding: 100px 0;
    background: var(--bg-surface-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.rating {
    color: #eab308;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
}

.quote {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
    flex-grow: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    background: var(--bg-surface);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand .logo {
    display: inline-flex;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface-light);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.newsletter-input {
    flex: 1;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    outline: none;
    font-family: inherit;
    width: 100%;
}

.newsletter-input:focus {
    border-color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-legal a:hover {
    color: var(--text-main);
}

/* ==========================================================================
   Auth Pages (Login & Sign Up)
   ========================================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    position: relative;
    overflow: hidden;
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 20px;
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.form-options label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    color: var(--text-muted);
}

.form-options a {
    color: var(--primary-color);
    font-weight: 500;
}

.form-options a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.05rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 10px;
}

.social-auth {
    display: flex;
    gap: 15px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-social:hover {
    background: var(--bg-surface);
    border-color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* User Type Selection for Sign Up */
.user-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.type-option {
    flex: 1;
    position: relative;
}

.type-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--bg-surface-light);
    position: relative;
    z-index: 1;
}

.type-card i {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.type-card span {
    font-weight: 600;
    color: var(--text-muted);
}

.type-option input:checked + .type-card {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.type-option input:checked + .type-card i,
.type-option input:checked + .type-card span {
    color: var(--primary-color);
}

/* ==========================================================================
   Marketplace Page
   ========================================================================== */
.page-header {
    background: var(--bg-surface-light);
    padding: 120px 0 40px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.marketplace-section {
    padding: 60px 0;
    background: var(--bg-color);
}

.marketplace-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar */
.sidebar-filters {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.mobile-filter-btn {
    display: none;
}

.close-filter-btn {
    display: none;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.filter-header h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-clear:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 18px;
}

.filter-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-wrapper .form-control {
    padding-left: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.9rem;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.see-more {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs .form-control {
    flex: 1;
    padding: 6px 10px;
    font-size: 0.85rem;
}

/* Marketplace Content */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-count {
    color: var(--text-muted);
}

.result-count strong {
    color: var(--text-main);
}

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

.sort-by select {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    outline: none;
    border-radius: var(--radius-md);
}

.website-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.marketplace-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all var(--transition-fast);
}

.marketplace-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.item-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 2;
}

.item-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.item-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.item-tags .tag {
    background: var(--bg-surface-light);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.item-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-metrics {
    display: flex;
    gap: 20px;
    flex: 1.5;
    justify-content: space-between;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric .val {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

.metric .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.item-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex: 1;
}

.item-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

.item-action .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.btn-page {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-page:hover {
    background: var(--bg-surface-light);
}

.btn-page.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-dots {
    color: var(--text-muted);
}

/* ==========================================================================
   Media Queries (Mobile Responsiveness) - COMPACT DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-container {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block !important;
        position: relative;
        z-index: 100001;
    }

    .nav-links, .auth-buttons {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .mobile-menu-wrapper {
        display: none;
        width: 100%;
        background: var(--bg-surface);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        gap: 15px;
        z-index: 9999;
    }
    
    .mobile-menu-wrapper.active {
        display: flex;
    }
    
    .mobile-menu-wrapper .nav-links,
    .mobile-menu-wrapper .auth-buttons {
        display: flex;
        justify-content: center;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
        align-items: center;
        gap: 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-search-box {
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        padding: 10px;
        gap: 8px;
    }

    .search-input-group {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 8px 0;
    }

    .search-filters {
        width: 100%;
        padding: 4px 0;
        border-bottom: 1px solid var(--border-color);
        justify-content: space-between;
    }

    .metric-select {
        flex: 1;
        text-align: center;
        padding: 6px;
        font-size: 0.85rem;
        border-right: none;
    }
    
    .metric-select:first-child {
        border-right: 1px solid var(--border-color);
    }

    .btn-search {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
        padding: 10px;
    }

    .hero-stats {
        justify-content: center;
        margin-top: 20px;
        padding-top: 20px;
        gap: 20px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .hero {
        padding-top: 90px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    
    .hero-title {
        font-size: 1.8rem; /* Compact one-line suitable size for mobile */
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        padding-top: 15px;
        border-top: none;
        width: 100%;
        justify-content: space-between;
    }
    
    .stat-item {
        flex: 1;
        text-align: center;
        background: var(--bg-surface-light);
        padding: 8px 4px;
        border-radius: var(--radius-sm);
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-divider {
        display: none;
    }

    .floating-badge {
        display: none;
    }
    
    .mockup-body {
        height: 280px;
    }
    
    .mockup-card {
        padding: 10px;
        gap: 10px;
    }
    
    .card-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    
    .card-price {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    .logo-grid {
        gap: 20px;
    }
    
    .brand-logo {
        font-size: 1.2rem;
    }

    .websites-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-websites {
        padding: 60px 0;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .steps-grid::before {
        display: none;
    }
    
    .how-it-works {
        padding: 60px 0;
    }
    
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .publisher-benefits, 
    .testimonials {
        padding: 60px 0;
    }
    
    .benefits-content {
        margin-bottom: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-page {
        padding-top: 80px;
    }
    
    .marketplace-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-filters {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        z-index: 1000;
        background: var(--bg-surface);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        padding: 24px;
        transition: left 0.3s ease;
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--border-color);
    }
    
    .sidebar-filters.active {
        left: 0;
    }
    
    .mobile-filter-btn {
        display: flex;
    }
    
    .close-filter-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.2rem;
        color: var(--text-main);
        cursor: pointer;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .marketplace-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .item-main {
        width: 100%;
    }
    
    .item-metrics {
        width: 100%;
        justify-content: space-between;
        padding: 12px 0;
        border-top: 1px dashed var(--border-color);
        border-bottom: 1px dashed var(--border-color);
    }
    
    .item-action {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

