/* ===================================
   LegalAligned Landing Page Styles
   Modern White & Sleek Design
   =================================== */

/* CSS Variables - From Main App Design System */
:root {
    /* Brand Colors - From Logo */
    --brand-navy: #0A0965;
    --brand-teal: #0FB9B3;

    /* Primary Palette */
    --primary-color: #0A0965;
    --primary-light: #1a1575;
    --primary-dark: #050433;
    --primary-50: #e8e7f5;
    --primary-100: #c5c3e6;

    /* Accent Colors */
    --accent-color: #0FB9B3;
    --accent-light: #2fd4ce;
    --accent-dark: #0a8a85;

    /* Neutral Colors */
    --gray-50: #fafbfc;
    --gray-100: #f4f6f8;
    --gray-200: #e5e9ed;
    --gray-300: #d1d7dd;
    --gray-400: #9aa5b1;
    --gray-500: #697386;
    --gray-600: #4f5d70;
    --gray-700: #3c4858;
    --gray-800: #2a3342;
    --gray-900: #1a202c;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
    --bg-tertiary: #f4f6f8;

    /* Border Colors */
    --border-light: #e5e9ed;
    --border-medium: #d1d7dd;

    /* Text Colors */
    --text-primary: #1a202c;
    --text-secondary: #4f5d70;
    --text-tertiary: #697386;
    --text-muted: #9aa5b1;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    letter-spacing: -0.02em;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.navbar-brand i {
    color: var(--accent-color);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color var(--transition-base);
    font-size: 0.9375rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-section .container {
    margin-top: 80px;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 185, 179, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section * {
    color: white !important;
}

.hero-section h1,
.hero-section .display-3 {
    color: white !important;
}

.hero-section p,
.hero-section .lead {
    color: rgba(255, 255, 255, 0.95) !important;
}

.parallax-section {
    position: relative;
    min-height: auto;
    padding: 100px 0;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.content-overlay {
    position: relative;
    z-index: 2;
}

/* Who Section */
.who-section {
    background: var(--bg-secondary);
}

.who-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

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

.who-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.who-card h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.who-card p {
    color: var(--text-tertiary);
    margin-bottom: 0;
}

/* Problem Section */
.problem-section {
    background: var(--bg-primary);
}

.problem-list {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.problem-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
}

.problem-bullet {
    font-size: 1.5rem;
    color: #dc3545;
    min-width: 40px;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.problem-item p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 0;
}

.problem-result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.problem-result p {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 0;
    font-weight: 600;
}

/* How It Works Section */
.how-it-works-section {
    background: var(--bg-tertiary);
}

.step-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    text-align: center;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-sm);
}

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

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
}

.step-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 2rem 0 1rem 0;
}

.step-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.step-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    background: var(--bg-secondary);
}

.feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.feature-card h3 i {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* AI Section */
.ai-section {
    background: var(--bg-primary);
}

.ai-capability {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.ai-capability:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.ai-capability h5 {
    color: var(--text-primary);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.ai-capability h5 i {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-capability p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Use Cases Section */
.use-cases-section {
    background: var(--bg-tertiary);
}

.use-case-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.use-case-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 60px;
    margin-right: 1.5rem;
}

.use-case-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.use-case-card p {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
}

.use-case-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    margin-top: 1rem;
}

.use-case-list li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9375rem;
}

.use-case-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 185, 179, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section * {
    color: white !important;
}

.cta-section h2,
.cta-section .display-4 {
    color: white !important;
}

.cta-section p,
.cta-section .lead {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h5 {
    color: white;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer a:hover {
    color: var(--accent-color);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    padding: 0.75rem 2rem;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    color: white;
}

.btn-lg {
    padding: 0.875rem 2.5rem;
    font-size: 1.0625rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

/* Typography */
.display-3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.display-5 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lead {
    font-weight: 400;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .step-card,
    .feature-card,
    .use-case-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .parallax-section {
        padding: 60px 0;
    }

    .hero-section {
        min-height: auto;
        padding: 100px 0;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .problem-list,
    .stats-card {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 80px 0;
    }

    .display-3 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.25rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .who-card,
    .step-card,
    .feature-card,
    .use-case-card {
        margin-bottom: 1rem;
    }
}

/* Smooth transitions for hover effects */
@media (hover: hover) {
    .card:hover,
    .who-card:hover,
    .step-card:hover,
    .feature-card:hover,
    .use-case-card:hover {
        transition: all var(--transition-base);
    }
}

/* Remove hover effects on touch devices */
@media (hover: none) {
    .who-card:hover,
    .step-card:hover,
    .feature-card:hover,
    .use-case-card:hover {
        transform: none;
    }
}
