/* AI Landing Page - Reference Fidelity */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --bg-light-gradient: linear-gradient(135deg, #7c7ff1 0%, #8b5cf6 100%);
    --bg-light: #f8f9fa;
    --primary: #6366f1;
    --primary-glow: #818cf8;
    --secondary: #8b5cf6;
    --glass-border: rgba(99, 102, 241, 0.15);
    --text-dark: #1f2937;
    --text-muted-dark: #6b7280;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #7c7ff1 0%, #8b5cf6 100%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

.backdrop-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.text-gradient-purple {
    background: linear-gradient(135deg, #a78bfa 0%, #e879f9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Cards --- */
.nav-card,
.agency-card,
.feature-card,
.logo-card {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    background: rgba(99, 102, 241, 0.05) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
    border-color: var(--primary) !important;
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(99, 102, 241, 0.1);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5558e3, #7c4ee4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-white {
    background: #fff;
    color: var(--text-dark);
    border: none;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.75rem;
    padding: 6px 16px;
    border-radius: 20px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: transparent;
    font-weight: 600;
}

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

/* --- Utilities --- */
.tracking-tight {
    letter-spacing: -0.03em;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.blur-xl {
    filter: blur(40px);
}

.grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s;
}

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

.icon-circle,
.icon-square {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* Contrast Updates */
.text-muted {
    color: var(--text-muted-dark) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
}

p {
    color: var(--text-dark);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Ensure placeholder contrast */
.ai-search-input::placeholder {
    color: rgba(31, 41, 55, 0.5);
}

/* Hero section text should remain white on purple gradient */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section .text-white {
    color: #ffffff !important;
}

.hero-section .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Navbar styling for light theme */
.navbar-light {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar-light .navbar-brand {
    color: var(--text-dark) !important;
}

/* Button glow effect */
.btn-glow {
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* Background gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary), #a78bfa) !important;
}

/* Text color utilities */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

/* Icon backgrounds */
.icon-square.bg-white {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Search button in hero */
.hero-section .btn-primary {
    background: white;
    color: var(--primary);
}

.hero-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
}