/* --- CSS Variables --- */
:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --color-bg-dark: #0f172a;
    
    --color-text: #334155;
    --color-text-dark: #0f172a;
    --color-text-light: #94a3b8;
    
    --color-primary: #0ea5e9;
    --color-primary-hover: #0284c7;
    
    --color-accent: #f97316;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 5rem 0;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 1.05rem;
    position: relative;
}

/* Global Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* --- Layout & Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
    color: white;
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: white;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.align-center { align-items: center; }
.center { text-align: center; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--color-text-dark);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-dark);
    color: var(--color-text-dark);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
}

/* --- Header --- */
.header {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-dark);
}

/* --- Hero Section --- */
.hero {
    padding: 8rem 0 10rem;
    overflow: hidden;
    position: relative;
    background-color: #f0f9ff;
    background-image: linear-gradient(to bottom, transparent 60%, var(--color-bg) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Use the provided wave texture image */
    background-image: url("./abstract-wave-texture-background-line-style-vector.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Vibrant corner-to-corner gradient overlay */
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.8) 0%, rgba(59, 130, 246, 0.4) 50%, rgba(249, 115, 22, 0.5) 100%);
    mix-blend-mode: overlay;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--color-text);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: var(--color-bg-light);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dots {
    display: flex;
    gap: 0.375rem;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
}

.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #22c55e; }

.mockup-title {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-family: monospace;
}

.mockup-body {
    display: flex;
    height: 400px;
}

.sidebar {
    width: 60px;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1.5rem;
    background: #f8fafc;
}

.nav-item {
    color: var(--color-text-light);
}

.nav-item.active {
    color: var(--color-primary);
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    background: white;
    overflow-y: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-text-light);
    width: 250px;
}

.search-bar i {
    width: 16px;
    height: 16px;
}

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

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    border: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.new-lead { background: #e0f2fe; color: #0284c7; }
.stat-icon.estimate { background: #fef3c7; color: #d97706; }
.stat-icon.scheduled { background: #dcfce7; color: #16a34a; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.recent-activity h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease;
}

.activity-item:hover {
    border-color: var(--color-primary);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.activity-icon i { width: 16px; height: 16px; }

.activity-icon.blue { background: #e0f2fe; color: #0284c7; }
.activity-icon.green { background: #dcfce7; color: #16a34a; }
.activity-icon.orange { background: #ffedd5; color: #ea580c; }

.activity-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-text strong {
    font-size: 0.875rem;
    color: var(--color-text-dark);
}

.activity-text span {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.activity-action a {
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- Section Headers --- */
.section-header {
    max-width: 800px;
    margin: 0 auto 3.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text);
}

/* --- Problem Section --- */
.problem-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-card .card-icon {
    width: 56px;
    height: 56px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.problem-card .card-icon i {
    width: 28px;
    height: 28px;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* --- Solution Section (Tools) --- */
.tool-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.tool-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: #f0f9ff;
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.tool-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--color-text);
}

/* --- Industries Section --- */
.industries-section {
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.industries-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.industries-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
}

.relative-z {
    position: relative;
    z-index: 1;
}

.industries-content {
    max-width: 900px;
    margin: 0 auto;
}

.industries-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 1.125rem;
    backdrop-filter: blur(4px);
}

/* --- How It Works Section --- */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 4rem;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 8px white, var(--shadow-md);
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background: var(--color-border);
    margin-top: 32px;
    position: relative;
    z-index: 0;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* --- Value Proposition Section --- */
.benefits-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.benefits-list li i {
    color: var(--color-success);
    flex-shrink: 0;
}

.value-image {
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.image-wrapper {
    position: absolute;
    top: 0; left: 10%; width: 80%; height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    z-index: 0;
}

.feature-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.texture-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.2), transparent 50%);
    mix-blend-mode: overlay;
}

.value-card-floating {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 320px;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.value-card-floating:nth-child(2) {
    align-self: flex-start;
    margin-left: -2rem;
    margin-top: 2rem;
}

.value-card-floating.delay {
    animation-delay: -3s;
    align-self: flex-end;
    margin-right: -2rem;
    margin-top: auto;
    margin-bottom: 2rem;
}

.value-card-floating h4 {
    margin: 0;
    font-size: 1.125rem;
}

.value-card-floating p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--color-text-light);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: #ecfdf5;
    color: var(--color-success);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper.blue { background: #f0f9ff; color: var(--color-primary); }

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

/* --- CTA Section --- */
.cta-box {
    background: var(--color-bg-dark);
    color: white;
    border-radius: var(--radius-lg);
    padding: 5rem 3rem;
    text-align: center;
    background-image: radial-gradient(circle at top right, #1e293b, transparent 50%), radial-gradient(circle at bottom left, #0f172a, transparent 50%);
}

.cta-box .cta-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-box .cta-desc {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #cbd5e1;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.cta-link {
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-link:hover {
    color: var(--color-primary);
}

.cta-link i {
    transition: transform 0.2s;
}

.cta-link:hover i {
    transform: translateX(4px);
}

/* --- Footer --- */
.footer {
    background: white;
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text);
    font-weight: 500;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
}
