/* =============================================
   DigitalOfferte.ch - Light/Dark Theme
   ============================================= */

/* Light Theme (Default) */
:root,
[data-theme="light"] {
    --bg-body: #ffffff;
    --bg-card: #f8fafc;
    --bg-card-hover: #f1f5f9;
    --bg-elevated: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.08);

    --accent: #8b5cf6;
    --accent-light: rgba(139, 92, 246, 0.08);

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    --header-bg: rgba(255, 255, 255, 0.9);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-body: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-elevated: #16161f;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-light: rgba(99, 102, 241, 0.1);

    --accent: #8b5cf6;
    --accent-light: rgba(139, 92, 246, 0.1);

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --header-bg: rgba(10, 10, 15, 0.8);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

/* Common Variables */
:root {
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =============================================
   Header
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo svg {
    width: 36px;
    height: 36px;
}

.logo .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
}

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

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

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

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    transition: all 0.2s;
}

.theme-toggle:hover svg {
    stroke: var(--primary);
}

/* Show/hide icons based on theme */
[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-sun,
[data-theme="dark"] .icon-moon {
    display: block;
}

.btn-ghost {
    padding: 10px 20px;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient);
    color: white;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
    transition: transform 0.2s;
}

.user-menu.open .user-menu-btn svg {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.user-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.user-dropdown-item:hover {
    background: var(--bg-card);
}

.user-dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
}

.user-dropdown-item.text-danger {
    color: var(--danger);
}

.user-dropdown-item.text-danger svg {
    stroke: var(--danger);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

.mobile-menu-btn .icon-close {
    display: none;
}

.mobile-menu-btn.open .icon-menu {
    display: none;
}

.mobile-menu-btn.open .icon-close {
    display: block;
}

/* Mobile Menu Panel */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-body);
    z-index: 999;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

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

.mobile-nav-link.text-danger {
    color: var(--danger);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.mobile-menu-footer {
    padding: 24px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1rem;
}

.mobile-theme-toggle svg {
    width: 20px;
    height: 20px;
}

.mobile-theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .mobile-theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .mobile-theme-toggle .icon-moon {
    display: block;
}

.mobile-cta {
    width: 100%;
    text-align: center;
    padding: 16px !important;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .hero-gradient {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

[data-theme="dark"] .hero-grid {
    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);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

[data-theme="dark"] .hero-badge {
    color: var(--primary-hover);
    border-color: rgba(99, 102, 241, 0.2);
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .category-chip {
    background: var(--bg-card);
    box-shadow: none;
}

.category-chip svg {
    width: 18px;
    height: 18px;
}

.category-chip:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--text-primary);
}

[data-theme="dark"] .category-chip:hover {
    background: var(--bg-card-hover);
}

.category-chip.more {
    background: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

[data-theme="dark"] .category-chip.more {
    color: var(--primary-hover);
    border-color: rgba(99, 102, 241, 0.3);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--gradient);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    box-shadow: var(--shadow-glow);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .btn-hero:hover {
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.4);
}

.btn-hero svg {
    width: 22px;
    height: 22px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-trust svg {
    width: 18px;
    height: 18px;
    stroke: var(--success);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 450px;
}

/* Browser Window Card */
.illustration-card {
    position: absolute;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .illustration-card {
    background: var(--bg-card);
}

.illustration-card.main-card {
    width: 340px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .card-header {
    background: var(--bg-elevated);
}

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

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.dots span:first-child { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:last-child { background: #22c55e; }

.card-title-bar {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.card-body {
    padding: 20px;
}

.form-preview {
    margin-bottom: 16px;
}

.form-field {
    padding: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 10px;
}

[data-theme="dark"] .form-field {
    background: var(--bg-elevated);
}

.form-field.filled {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.field-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.field-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge svg {
    width: 16px;
    height: 16px;
}

/* Floating Offer Cards */
.floating-card {
    position: absolute;
    width: 200px;
    padding: 16px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 5s ease-in-out infinite;
}

[data-theme="dark"] .floating-card {
    background: var(--bg-card);
}

.floating-card.offer-1 {
    top: 10%;
    right: 0;
    animation-delay: 0s;
}

.floating-card.offer-2 {
    bottom: 15%;
    left: 0;
    animation-delay: 2s;
}

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

.mini-offer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

.avatar.blue { background: #3b82f6; }
.avatar.green { background: #22c55e; }

.offer-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.offer-rating {
    font-size: 0.8rem;
    color: #f59e0b;
}

.offer-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

[data-theme="dark"] .offer-price {
    color: var(--primary-hover);
}

.stars {
    color: #f59e0b;
}

/* =============================================
   Section Styles
   ============================================= */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

[data-theme="dark"] .section-badge {
    color: var(--primary-hover);
    border-color: rgba(99, 102, 241, 0.2);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* =============================================
   Categories Section
   ============================================= */
.categories {
    padding: 120px 0;
    background: var(--bg-card);
}

[data-theme="dark"] .categories {
    background: var(--bg-body);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .category-card {
    background: var(--bg-card);
    box-shadow: none;
}

.category-card:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .category-card:hover {
    background: var(--bg-card-hover);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.category-icon svg {
    width: 28px;
    height: 28px;
}

/* Category Icon Colors */
.category-icon.webdesign { background: rgba(59, 130, 246, 0.1); }
.category-icon.webdesign svg { stroke: #3b82f6; }

.category-icon.programmierung { background: rgba(139, 92, 246, 0.1); }
.category-icon.programmierung svg { stroke: #8b5cf6; }

.category-icon.shop { background: rgba(34, 197, 94, 0.1); }
.category-icon.shop svg { stroke: #22c55e; }

.category-icon.seo { background: rgba(245, 158, 11, 0.1); }
.category-icon.seo svg { stroke: #f59e0b; }

.category-icon.grafik { background: rgba(236, 72, 153, 0.1); }
.category-icon.grafik svg { stroke: #ec4899; }

.category-icon.hosting { background: rgba(6, 182, 212, 0.1); }
.category-icon.hosting svg { stroke: #06b6d4; }

.category-icon.app { background: rgba(239, 68, 68, 0.1); }
.category-icon.app svg { stroke: #ef4444; }

.category-icon.content { background: rgba(20, 184, 166, 0.1); }
.category-icon.content svg { stroke: #14b8a6; }

.category-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.category-count {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

[data-theme="dark"] .category-count {
    color: var(--primary-hover);
}

/* =============================================
   How It Works
   ============================================= */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-card);
}

[data-theme="dark"] .how-it-works {
    background: var(--bg-card);
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.step {
    flex: 1;
    max-width: 280px;
    text-align: center;
}

.step-visual {
    position: relative;
    margin-bottom: 24px;
}

.step-number {
    position: absolute;
    top: -10px;
    right: calc(50% - 60px);
    width: 28px;
    height: 28px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-body);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

[data-theme="dark"] .step-icon {
    background: var(--primary-light);
    border-color: transparent;
}

.step-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--primary);
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-line {
    width: 80px;
    height: 2px;
    background: var(--border);
    margin-top: 50px;
}

/* CTA Box */
.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 48px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .cta-box {
    background: var(--bg-elevated);
    box-shadow: none;
}

.cta-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-content p {
    color: var(--text-secondary);
}

/* =============================================
   Stats Section
   ============================================= */
.stats {
    padding: 80px 0;
    background: var(--bg-body);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

.stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

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

/* =============================================
   For Providers Section
   ============================================= */
.for-providers {
    padding: 120px 0;
    background: var(--bg-card);
}

[data-theme="dark"] .for-providers {
    background: var(--bg-body);
}

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

.provider-content .section-badge {
    margin-bottom: 16px;
}

.provider-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.provider-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.benefits-list {
    list-style: none;
    margin-bottom: 32px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.benefits-list li svg {
    width: 22px;
    height: 22px;
    stroke: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-body);
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.2s;
}

[data-theme="dark"] .btn-secondary {
    background: var(--bg-card);
    border-width: 1px;
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}

/* Provider Card */
.provider-visual {
    display: flex;
    justify-content: center;
}

.provider-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .provider-card {
    background: var(--bg-card);
}

.provider-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    position: relative;
}

.provider-avatar {
    width: 52px;
    height: 52px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.provider-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.provider-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.provider-meta .stars {
    color: #f59e0b;
}

.verified-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.provider-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.pstat {
    text-align: center;
}

.pstat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

[data-theme="dark"] .pstat-value {
    color: var(--primary-hover);
}

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

.provider-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.provider-tags span {
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

[data-theme="dark"] .provider-tags span {
    background: var(--primary-light);
    color: var(--primary-hover);
}

/* =============================================
   FAQ Section
   ============================================= */
.faq {
    padding: 120px 0;
    background: var(--bg-body);
}

[data-theme="dark"] .faq {
    background: var(--bg-card);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

[data-theme="dark"] .faq-item {
    background: var(--bg-elevated);
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   Final CTA
   ============================================= */
.final-cta {
    padding: 120px 0;
    background: var(--bg-card);
}

[data-theme="dark"] .final-cta {
    background: var(--bg-body);
}

.cta-card {
    text-align: center;
    padding: 80px 40px;
    background: var(--gradient);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 50%);
}

[data-theme="dark"] .cta-card::before {
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 50%);
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    color: white;
}

.cta-card p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    position: relative;
    color: white;
}

.cta-card .btn-hero {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.cta-card .btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .cta-card .btn-hero:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

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

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

[data-theme="dark"] .footer-social a {
    background: var(--bg-elevated);
}

.footer-social a:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
}

.footer-social a:hover svg {
    fill: var(--primary);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-categories {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .provider-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none !important;
    }

    .header-actions {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-line {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* =============================================
   AI Features Section
   ============================================= */
.ai-features {
    padding: 100px 0;
    background: var(--bg-card);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-icon.ai {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--primary);
}

.feature-icon.match {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
    color: var(--success);
}

.feature-icon.analyze {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.15));
    color: var(--accent);
}

.feature-icon.email {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.15));
    color: #3b82f6;
}

.feature-icon.profile {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.15));
    color: var(--warning);
}

.feature-icon.content {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(244, 114, 182, 0.15));
    color: #ec4899;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

@media (max-width: 640px) {
    .ai-features {
        padding: 60px 0;
    }

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

    .feature-card {
        padding: 24px;
    }
}
