/* ==========================================================================
   Contract Risk Analysis System (CRAS) - Landing Page Stylesheet
   Design System: Deep Navy (#1B2A4A) & Teal/Cyan (#17A2B8)
   ========================================================================== */

:root {
    --cras-navy: #1B2A4A;
    --cras-navy-dark: #0F1A30;
    --cras-navy-light: #2C3E6B;
    --cras-teal: #17A2B8;
    --cras-teal-light: #20C5D9;
    --cras-teal-glow: rgba(23, 162, 184, 0.25);
    
    --cras-bg-light: #F8FAFC;
    --cras-surface: #FFFFFF;
    --cras-text-main: #1E293B;
    --cras-text-muted: #64748B;
    --cras-border: #E2E8F0;
    
    --cras-risk-critical: #EF4444;
    --cras-risk-high: #F97316;
    --cras-risk-medium: #F59E0B;
    --cras-risk-low: #3B82F6;
    --cras-risk-minimal: #10B981;
}

/* Base Adjustments for Landing Page */
body.landing-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cras-bg-light);
    color: var(--cras-text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Gradient Text Helper */
.text-gradient-teal {
    background: linear-gradient(135deg, var(--cras-teal-light) 0%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* ==========================================================================
   Sticky Glass Navbar
   ========================================================================== */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: rgba(27, 42, 74, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-nav.scrolled {
    padding: 0.6rem 0;
    background: rgba(15, 26, 48, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(23, 162, 184, 0.2);
}

.landing-nav .navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.landing-nav .navbar-brand img {
    height: 38px;
    width: auto;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px;
}

.landing-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.25s ease;
}

.landing-nav .nav-link:hover,
.landing-nav .nav-link.active {
    color: var(--cras-teal-light);
}

.btn-nav-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.45rem 1.25rem;
    transition: all 0.25s ease;
}

.btn-nav-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.btn-nav-primary {
    background: linear-gradient(135deg, var(--cras-teal) 0%, #007791 100%);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1.35rem;
    box-shadow: 0 4px 14px rgba(23, 162, 184, 0.35);
    transition: all 0.25s ease;
}

.btn-nav-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.5);
    color: #FFFFFF;
}

/* Logged in Top Notification Bar */
.user-status-bar {
    background: linear-gradient(90deg, #1E293B 0%, var(--cras-navy) 100%);
    color: #E2E8F0;
    padding: 0.5rem 0;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(23, 162, 184, 0.3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 70% 20%, #1E3A6E 0%, var(--cras-navy-dark) 70%);
    color: #FFFFFF;
    padding: 6.5rem 0 3.5rem 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(23, 162, 184, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(23, 162, 184, 0.15);
    border: 1px solid rgba(23, 162, 184, 0.4);
    color: var(--cras-teal-light);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-section h1,
.hero-title {
    color: #FFFFFF !important;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
}

.hero-section h2, .hero-section h3, .hero-section h4, .hero-section h5, .hero-section h6,
.security-banner-box h1, .security-banner-box h2, .security-banner-box h3, .security-banner-box h4, .security-banner-box h5, .security-banner-box h6,
.cta-banner-section h1, .cta-banner-section h2, .cta-banner-section h3, .cta-banner-section h4, .cta-banner-section h5, .cta-banner-section h6,
.landing-footer h1, .landing-footer h2, .landing-footer h3, .landing-footer h4, .landing-footer h5, .landing-footer h6 {
    color: #FFFFFF !important;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94A3B8;
    max-width: 600px;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-btn-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    gap: 12px;
    align-items: center;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--cras-teal) 0%, #007791 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(23, 162, 184, 0.6);
    color: #FFFFFF;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .hero-btn-group {
        gap: 8px;
    }
    
    .hero-btn-group .btn-hero-primary,
    .hero-btn-group .btn-hero-secondary {
        flex: 1 1 50%;
        min-width: 0;
        padding: 0.65rem 0.5rem;
        font-size: 0.82rem;
        letter-spacing: -0.2px;
    }
}

/* Floating Hero Mockup Card */
.hero-mockup-container {
    position: relative;
    z-index: 2;
}

.hero-mockup-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(23, 162, 184, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-mockup-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-5px);
}

.mockup-header {
    background: rgba(30, 41, 59, 0.9);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background-color: #EF4444; }
.dot-yellow { background-color: #F59E0B; }
.dot-green { background-color: #10B981; }

.mockup-body {
    padding: 1.5rem;
}

.scanner-status-chip {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.scanner-status-chip .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #EF4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.risk-gauge-box {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.risk-gauge-score {
    font-size: 2.2rem;
    font-weight: 800;
    color: #EF4444;
    line-height: 1;
}

.finding-preview-item {
    background: rgba(30, 41, 59, 0.5);
    border-left: 4px solid #EF4444;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

/* Floating badge accent */
.hero-floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: linear-gradient(135deg, #1E293B 0%, var(--cras-navy) 100%);
    border: 1px solid rgba(23, 162, 184, 0.4);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

/* ==========================================================================
   Metrics Bar Section
   ========================================================================== */
.metrics-section {
    margin-top: -3rem;
    position: relative;
    z-index: 20;
}

.metrics-card {
    background: var(--cras-surface);
    border: 1px solid var(--cras-border);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(27, 42, 74, 0.08);
    padding: 2rem 1.5rem;
}

.metric-item {
    text-align: center;
    padding: 0.5rem 1rem;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cras-navy);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cras-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
.section-padding {
    padding: 5.5rem 0;
}

.section-tag {
    display: inline-block;
    color: var(--cras-teal);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--cras-navy);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--cras-text-muted);
    max-width: 650px;
    margin: 0 auto 3rem auto;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.feature-card {
    background: var(--cras-surface);
    border: 1px solid var(--cras-border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(27, 42, 74, 0.03);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(27, 42, 74, 0.1);
    border-color: rgba(23, 162, 184, 0.4);
}

.feature-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(23, 162, 184, 0.1);
    color: var(--cras-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--cras-teal);
    color: #FFFFFF;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cras-navy);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--cras-text-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Interactive Contract Risk Simulator
   ========================================================================== */
.simulator-section {
    background: linear-gradient(180deg, #F1F5F9 0%, #E2E8F0 100%);
    border-top: 1px solid var(--cras-border);
    border-bottom: 1px solid var(--cras-border);
}

.simulator-card {
    background: var(--cras-surface);
    border: 1px solid var(--cras-border);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(27, 42, 74, 0.08);
    overflow: hidden;
}

.simulator-tabs {
    background: var(--cras-navy-dark);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.sim-tab-btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.sim-tab-btn.active {
    background: var(--cras-teal);
    color: #FFFFFF;
    border-color: var(--cras-teal-light);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.simulator-viewport {
    padding: 1.75rem;
}

.contract-code-panel {
    background: #0F172A;
    color: #94A3B8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 1.25rem;
    border-radius: 12px;
    height: 100%;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #1E293B;
}

.code-line {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 2px;
}

.code-line.highlight-critical {
    background: rgba(239, 68, 68, 0.2);
    border-left: 3px solid #EF4444;
    color: #FECACA;
}

.code-line.highlight-high {
    background: rgba(249, 115, 22, 0.2);
    border-left: 3px solid #F97316;
    color: #FFEDD5;
}

.code-line.highlight-medium {
    background: rgba(245, 158, 11, 0.2);
    border-left: 3px solid #F59E0B;
    color: #FEF3C7;
}

.sim-finding-card {
    background: #F8FAFC;
    border: 1px solid var(--cras-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.25s ease;
}

.sim-finding-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.risk-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
}

.risk-pill.critical { background: #FEE2E2; color: #DC2626; }
.risk-pill.high { background: #FFEDD5; color: #EA580C; }
.risk-pill.medium { background: #FEF3C7; color: #D97706; }
.risk-pill.low { background: #DBEAFE; color: #2563EB; }

/* ==========================================================================
   How It Works (Workflow Steps)
   ========================================================================== */
.step-card {
    position: relative;
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-number-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cras-navy) 0%, var(--cras-navy-light) 100%);
    color: var(--cras-teal-light);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 8px 20px rgba(27, 42, 74, 0.2);
    border: 2px solid var(--cras-teal);
}

.step-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cras-navy);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--cras-text-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* Step Connector Lines */
.steps-row {
    position: relative;
}

@media (min-width: 992px) {
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50px;
        right: -30%;
        width: 60%;
        height: 2px;
        background: border-box;
        border-top: 2px dashed #CBD5E1;
        z-index: 1;
    }
}

/* ==========================================================================
   Security & Enterprise Box
   ========================================================================== */
.security-banner-box {
    background: linear-gradient(135deg, var(--cras-navy-dark) 0%, var(--cras-navy) 100%);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    color: #FFFFFF;
    box-shadow: 0 20px 50px rgba(15, 26, 48, 0.4);
    border: 1px solid rgba(23, 162, 184, 0.3);
    position: relative;
    overflow: hidden;
}

.security-banner-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(23, 162, 184, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
}

.security-badge-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    height: 100%;
}

.security-badge-item i {
    font-size: 1.75rem;
    color: var(--cras-teal-light);
    margin-bottom: 0.75rem;
    display: block;
}

.security-badge-item h5 {
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.security-badge-item p {
    color: #94A3B8;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion .accordion-item {
    background: var(--cras-surface);
    border: 1px solid var(--cras-border);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--cras-navy);
    background: var(--cras-surface);
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--cras-teal);
    background: rgba(23, 162, 184, 0.05);
}

.faq-accordion .accordion-body {
    color: var(--cras-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */
.cta-banner-section {
    background: linear-gradient(135deg, var(--cras-teal) 0%, var(--cras-navy) 100%);
    color: #FFFFFF;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner-section h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-banner-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.landing-footer {
    background: var(--cras-navy-dark);
    color: #94A3B8;
    padding: 4.5rem 0 2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-footer h5 {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--cras-teal-light);
}

.footer-disclaimer-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.82rem;
    color: #64748B;
    margin-top: 2rem;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.35rem;
    }
    
    .hero-section {
        padding: 7.5rem 0 4rem 0;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-mockup-card {
        margin-top: 3rem;
        transform: none !important;
    }
    
    .metrics-section {
        margin-top: 2rem;
    }
    
    .metric-number {
        font-size: 2rem;
    }
}
