/* JustLaw Landing Page - Modern Dark Theme */

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #22d3ee;

    --bg-dark: #0a0a0f;
    --bg-surface: #12121a;
    --bg-card: #1a1a2e;
    --bg-hover: #252540;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));

    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Light Theme */
:root.light {
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #f1f5f9;
    --bg-hover: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border: rgba(0, 0, 0, 0.1);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

:root.light .navbar {
    background: rgba(255, 255, 255, 0.9);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.theme-toggle:hover {
    border-color: var(--primary);
    background: var(--gradient-glow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--gradient-glow);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn-arrow {
    transition: transform 0.2s;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gradient-glow);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Hero Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-mockup {
    width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.mockup-dots span:first-child {
    background: #ef4444;
}

.mockup-dots span:nth-child(2) {
    background: #eab308;
}

.mockup-dots span:last-child {
    background: #22c55e;
}

/* Feature Showcase Carousel */
.feature-showcase {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
}

.feature-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.feature-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.mockup-content {
    padding: 24px;
    height: 300px;
    position: relative;
}

/* Slide 2: Precedent Finder Styles */
.search-bar-mockup {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.search-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.result-card-mockup {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.result-card-mockup.opaque {
    opacity: 0.5;
}

.result-line {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 8px;
}

.result-line.title {
    width: 60%;
    background: var(--primary);
    opacity: 0.3;
    height: 10px;
}

.result-line.short {
    width: 40%;
}

/* Slide 3: Analysis Styles */
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.doc-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: scan 2s infinite linear;
}

@keyframes scan {
    0% {
        top: 20%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 80%;
        opacity: 0;
    }
}

.analysis-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    width: 180px;
    text-align: center;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.analysis-badge.warning {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
    animation-delay: 1s;
}

.analysis-badge.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    animation-delay: 1.5s;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slide 4: Creation Styles */
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.form-label {
    width: 30%;
    height: 8px;
    background: var(--text-muted);
    opacity: 0.3;
    border-radius: 2px;
    margin-top: 6px;
}

.form-input {
    flex: 1;
    height: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.form-text-area {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px;
    height: 100px;
    margin-top: 10px;
}

.text-line {
    height: 6px;
    background: var(--text-muted);
    opacity: 0.2;
    margin-bottom: 8px;
    border-radius: 2px;
    animation: typeLine 2s infinite ease-in-out;
}

@keyframes typeLine {

    0%,
    100% {
        width: 0;
    }

    50% {
        width: 90%;
    }
}

.mockup-content.padding-lg {
    padding: 24px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    max-width: 80%;
    font-size: 14px;
}

.chat-bubble.user {
    background: var(--gradient-primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
    background: var(--bg-hover);
    border-bottom-left-radius: 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Features */
.features {
    padding: 120px 0;
    background: var(--bg-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.feature-card.featured {
    border-color: var(--primary);
    background: var(--gradient-glow);
}

.feature-badge {
    position: absolute;
    top: -10px;
    left: 24px;
    background: var(--gradient-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
    border-top: 1px solid var(--border);
}

.feature-list li:first-child {
    border-top: none;
}

/* Feature Stats */
.feature-stats {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.feature-stats span {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    background: var(--gradient-glow);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Features Banner */
.features-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
    padding: 32px;
    background: var(--gradient-glow);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

@media (max-width: 1024px) {
    .features-banner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-banner {
        grid-template-columns: 1fr;
    }
}

.banner-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.banner-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.banner-item strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.banner-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* How It Works */
.how-it-works {
    padding: 120px 0;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step {
    text-align: center;
    padding: 40px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 14px;
}

.step-line {
    width: 100px;
    height: 2px;
    background: var(--border);
}

/* Pricing */
.pricing {
    padding: 120px 0;
    background: var(--bg-surface);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-check,
.icon-cross {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.icon-check {
    color: #10b981;
    /* Green */
}

.icon-cross {
    color: var(--text-muted);
    /* Gray */
    opacity: 0.5;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
}

/* CTA Section */
/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 14px;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}



.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-bottom .disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-hover);
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-secondary);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.checkbox input {
    width: 16px;
    height: 16px;
}

.form-options a {
    color: var(--primary);
    text-decoration: none;
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 36px;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
    }

    .step-line {
        width: 2px;
        height: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============== TRUSTED SOURCES ============== */
.trusted-sources {
    padding: 60px 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.trusted-label {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sources-marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.sources-track {
    display: flex;
    gap: 60px;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.sources-track:hover {
    animation-play-state: paused;
}

.source-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    opacity: 0.6;
    transition: all 0.4s ease;
    cursor: pointer;
}

.source-item:hover {
    opacity: 1;
    transform: scale(1.15);
}

.source-item img {
    height: 56px;
    width: auto;
    max-width: 160px;
    filter: grayscale(100%) brightness(0.8) contrast(1.2);
    transition: all 0.4s ease;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.source-item:hover img {
    filter: grayscale(0%) brightness(1) contrast(1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.source-fallback {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.source-item span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.source-item:hover span {
    color: var(--text-primary);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============== SCROLL REVEAL ANIMATIONS ============== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.feature-card {
    transition-delay: 0s;
}

.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* ============== FLOATING ANIMATIONS ============== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
    }
}

.hero-mockup {
    animation: float 6s ease-in-out infinite;
}

.btn-primary {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ============== GRADIENT ANIMATIONS ============== */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

.cta-section {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* ============== PARTICLES BACKGROUND ============== */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.08) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* ============== ENHANCED HOVER EFFECTS ============== */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.pricing-card:hover::before {
    left: 100%;
}

/* ============== STAT COUNTER ANIMATION ============== */
.stat-number {
    display: inline-block;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat.visible .stat-number {
    animation: countUp 0.6s ease forwards;
}

/* ============== SOURCE CARDS (NEW GRID LAYOUT) ============== */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .sources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sources-grid {
        grid-template-columns: 1fr;
    }
}

.source-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.source-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.source-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    border-radius: var(--radius);
    overflow: hidden;
}

.source-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.source-logo .emoji {
    font-size: 32px;
}

.source-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.source-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Remove white backgrounds from logos */
.source-logo.no-bg {
    background: transparent;
}

.source-logo.no-bg img {
    mix-blend-mode: multiply;
    background: white;
    border-radius: 8px;
    padding: 4px;
}

:root.light .source-logo.no-bg img {
    mix-blend-mode: normal;
}

/* ============== UPCOMING FEATURES / ROADMAP ============== */
.upcoming-features {
    padding: 120px 0;
    background: var(--bg-surface);
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gradient-glow);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

@media (max-width: 1024px) {
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
}

.roadmap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: all 0.3s ease;
}

.roadmap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.roadmap-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
}

.roadmap-card.coming-soon .roadmap-status {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.roadmap-card.in-development .roadmap-status {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.1));
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.roadmap-card.planned .roadmap-status {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.roadmap-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.roadmap-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.roadmap-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.roadmap-eta {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.roadmap-cta {
    text-align: center;
    margin-top: 60px;
    padding: 32px;
    background: var(--gradient-glow);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.roadmap-cta p {
    font-size: 16px;
    margin-bottom: 16px;
}

.roadmap-cta .btn {
    display: inline-flex;
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
    background: var(--bg-surface);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: all 0.3s;
}

.faq-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Roadmap Visuals Upgrade */
.roadmap-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
    transition: all 0.3s ease;
}

.roadmap-card:hover .roadmap-icon svg {
    transform: scale(1.1);
    color: #fff;
    filter: drop-shadow(0 0 12px var(--primary));
}

.roadmap-icon {
    font-size: 0;
    /* Hide any emoji fallback logic if present */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 20px;
}

/* Pricing Tooltips */
.tooltip-container {
    position: relative;
    display: inline-flex;
    margin-left: 6px;
    cursor: help;
}

.info-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tooltip-container:hover .info-icon {
    background: var(--primary);
    color: white;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Shine Effect for Primary Button */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    20% {
        transform: translateX(100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--primary);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ============== Auth Styles ============== */

/* Google Sign-In Button */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-google:hover {
    background: var(--bg-hover);
    border-color: var(--text-secondary);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Auth Error Message */
.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-top: 16px;
    text-align: center;
}

/* Auth Success Message */
.auth-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-top: 16px;
    text-align: center;
}

/* User Badge in Navbar (when logged in) */
.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--gradient-glow);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.user-badge:hover {
    border-color: var(--primary);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

/* Plan Badge */
.plan-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-badge.trial {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.plan-badge.premium {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.plan-badge.enterprise {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.plan-badge.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============== MOBILE RESPONSIVE STYLES ============== */
@media (max-width: 768px) {

    /* Navbar Mobile Styles */
    .navbar-content {
        height: 60px;
        padding: 0 16px;
    }

    .nav-links,
    .nav-actions .btn {
        display: none;
        /* Hide standard nav items */
    }

    .mobile-menu-btn {
        display: flex;
        /* Show hamburger menu */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        z-index: 1001;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        display: none;
        padding: 40px;
    }

    .mobile-menu.active {
        display: flex;
        animation: fadeIn 0.3s ease-out;
    }

    .mobile-nav-link {
        font-size: 20px;
        margin: 15px 0;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
    }

    .mobile-btn-container {
        margin-top: 30px;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Hero Section Mobile */
    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        order: 2;
        /* Visual below content on mobile? adjust as needed, usually content first */
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin-top: 20px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 16px;
        margin: 0 auto 24px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-stats {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 24px;
    }

    /* Features Section Mobile */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Trusted Sources Mobile */
    .sources-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    /* Pricing Section Mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Modals Mobile */
    .modal-content {
        width: 95%;
        padding: 24px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .hero-mockup {
        width: 100%;
        max-width: 350px;
    }
}