/* ===========================================
   ContractFlow - Website Styles (Modern)
   =========================================== */

:root {
    --primary-color: #4f6ef7;
    --primary-dark: #3d5bd9;
    --primary-light: #e8edff;
    --secondary-color: #6c757d;
    --accent-color: #fbbf24;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --light-bg: #f8fafc;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --card-hover-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* ===========================================
   Navbar
   =========================================== */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-bottom-color: #e2e8f0;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

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

.navbar .btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
}

.navbar .btn-outline-primary {
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
}

/* ===========================================
   Hero Section
   =========================================== */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e8edff 100%);
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.hero-bg-shapes .shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(79, 110, 247, 0.1), rgba(118, 75, 162, 0.1));
    top: -200px;
    right: -200px;
}

.hero-bg-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(249, 115, 22, 0.1));
    bottom: -100px;
    left: -100px;
}

.hero-bg-shapes .shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    top: 40%;
    left: 30%;
}

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

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-section h1 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 110, 247, 0.4);
    transition: all 0.3s;
}

.hero-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 110, 247, 0.5);
}

.hero-section .btn-outline-secondary {
    border: 2px solid #cbd5e1;
    border-radius: 30px;
    padding: 12px 26px;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===========================================
   Dashboard Mockup
   =========================================== */
.hero-dashboard {
    position: relative;
    z-index: 2;
}

.browser-frame {
    background: white;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: perspective(1500px) rotateY(-8deg) rotateX(3deg);
    transition: transform 0.5s ease;
}

.browser-frame:hover {
    transform: perspective(1500px) rotateY(-4deg) rotateX(2deg);
}

.browser-header {
    background: #f1f5f9;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}

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

.browser-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c940; }

.browser-url {
    flex: 1;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.browser-url i {
    color: #10b981;
}

.browser-content {
    display: flex;
    min-height: 380px;
}

.mock-sidebar {
    width: 60px;
    background: linear-gradient(180deg, var(--primary-color), #764ba2);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.sidebar-item {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
}

.sidebar-item.active,
.sidebar-item:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.mock-main {
    flex: 1;
    background: #f8fafc;
    padding: 20px;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mock-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
}

.mock-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mock-user i {
    color: var(--text-muted);
}

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

.mock-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.kpi-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.kpi-blue .kpi-icon { background: #dbeafe; color: #2563eb; }
.kpi-green .kpi-icon { background: #dcfce7; color: #16a34a; }
.kpi-orange .kpi-icon { background: #ffedd5; color: #ea580c; }
.kpi-purple .kpi-icon { background: #f3e8ff; color: #9333ea; }

.kpi-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.kpi-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.mock-chart-area {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
}

.chart-card, .activity-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.chart-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
}

.chart-bars .bar {
    flex: 1;
    background: #e2e8f0;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s;
}

.chart-bars .bar.active {
    background: var(--primary-color);
}

.chart-bars .bar span {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-muted);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.activity-dot.green { background: #10b981; }
.activity-dot.blue { background: var(--primary-color); }
.activity-dot.orange { background: #f59e0b; }

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.floating-card.card-1 {
    top: 20%;
    right: -30px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 25%;
    left: -20px;
    animation-delay: 1.5s;
}

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

/* ===========================================
   Section Badge
   =========================================== */
.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ===========================================
   Feature Cards
   =========================================== */
#features {
    background: var(--light-bg);
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.feature-icon.bg-primary { background: #ede9fe !important; color: #7c3aed !important; }
.feature-icon.bg-success { background: #dcfce7 !important; color: #16a34a !important; }
.feature-icon.bg-warning { background: #fef3c7 !important; color: #d97706 !important; }
.feature-icon.bg-danger { background: #fee2e2 !important; color: #dc2626 !important; }
.feature-icon.bg-info { background: #fce7f3 !important; color: #db2777 !important; }
.feature-icon.bg-secondary { background: #e0f2fe !important; color: #0284c7 !important; }

.feature-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

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

.feature-list li {
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

/* ===========================================
   Benefits Section
   =========================================== */
.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.benefit-item h5 {
    margin-bottom: 5px;
    font-weight: 700;
}

.benefit-item p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0 auto 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 0.9rem;
}

/* ===========================================
   Demo CTA Section
   =========================================== */
.demo-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
}

.demo-cta-section h2 {
    font-weight: 800;
}

.credential-card {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.demo-cta-section .btn-warning {
    background: var(--accent-color);
    border: none;
    color: #1e293b;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 30px;
}

/* ===========================================
   Quote Form / Pricing Section
   =========================================== */
#pricing {
    background: var(--light-bg);
}

#pricing .card {
    border: none;
    border-radius: 20px;
}

#pricing h4 {
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.module-card.included {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.module-card i { font-size: 1.3rem; }
.module-card div { display: flex; flex-direction: column; }
.module-card strong { font-size: 0.9rem; color: var(--text-color); }
.module-card small { color: var(--text-muted); font-size: 0.8rem; }

.module-option {
    padding: 16px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.module-option:hover {
    border-color: var(--primary-color);
    background: #f8faff;
}

.module-option .form-check-input { width: 1.2em; height: 1.2em; margin-top: 0.15em; }
.module-option .form-check-input:checked { background-color: var(--primary-color); border-color: var(--primary-color); }
.module-option .form-check-label { display: flex; flex-direction: column; padding-left: 10px; cursor: pointer; }
.module-option .form-check-label strong { font-size: 0.9rem; color: var(--text-color); }
.module-option .form-check-label small { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }

#quoteForm .form-control,
#quoteForm .form-select {
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}

#quoteForm .form-control:focus,
#quoteForm .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

#quoteForm .btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 30px;
    padding: 14px 40px;
    font-weight: 600;
}

/* ===========================================
   Footer
   =========================================== */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.footer h5, .footer h6 { margin-bottom: 20px; font-weight: 600; }

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: white; }

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .mock-kpis { grid-template-columns: 1fr; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
section { scroll-margin-top: 80px; }
