/* ===================================
   MODERN B2B SAAS WEBSITE STYLESHEET
   Complete Version with Navigation & Animated Vector Background
   =================================== */

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

:root {
    /* Modern light color palette */
    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
    --bg-tertiary: #f6f8fa;
    --bg-accent: #f0f4f8;
    
    /* Text colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Accent colors */
    --accent-primary: #9a181c; /* Red */
    --accent-secondary: #ac1b20; /* Lighter Red */
    --accent-tertiary: #df3035; /* Even lighter Red */
    --accent-gradient-start: #ac1b20; /* Gradient Start */
    --accent-gradient-end: #df3035;   /* Gradient End */
    
    /* Borders and shadows */
    --border-light: #e2e8f0;
    --border-ultra-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-size-7xl: 4.5rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* Base styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

h1 {
    font-size: clamp(var(--font-size-4xl), 6vw, var(--font-size-6xl));
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
}

h3 {
    font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-3xl));
}

p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
}

/* Container */
.container, .content-wrapper, .main-content, main {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ===================================
   NAVIGATION MENU
   =================================== */
nav, .navbar, .header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-ultra-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
}

nav.scrolled, .navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */        .nav-logo, .logo-nav {
            display: flex;
            align-items: center;
            gap: var(--space-sm);
            font-size: var(--font-size-xl);
            font-weight: 700;
            color: var(--text-primary);
            text-decoration: none;
            z-index: 1002;
        }

        .nav-logo img {
            width: 240px;
            height: auto;
            max-height: 40px;
            object-fit: contain;
            flex-shrink: 0;
        }        /* Desktop Navigation */
        .nav-menu {
            display: flex;
            list-style: none;
            gap: var(--space-lg);
            margin: 0;
            padding: 0;
            align-items: center;
        }

        .nav-item, .nav-menu li {
            position: relative;
        }

        .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            padding: var(--space-sm) var(--space-sm);
            font-weight: 500;
            transition: color 0.2s ease;
            position: relative;
            display: block;
            font-size: var(--font-size-base);
        }        .nav-link:hover {
            color: var(--accent-primary);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--accent-primary);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

.nav-link:hover::after {
    width: 80%;
}

/* CTA Button in Nav */
.nav-cta {
    margin-left: var(--space-lg);
}

/* Hamburger Menu */
.hamburger, .mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1002;
    background: transparent;
    border: none;
    font-size: 1.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   HERO SECTION WITH ANIMATED VECTOR BACKGROUND
   =================================== */
.hero, .hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-5xl) var(--space-xl) var(--space-4xl);
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.content-header {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(80px + var(--space-5xl)) var(--space-xl) var(--space-4xl);
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    flex-direction: column;
}

/* Vector Network Background */
.vector-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.vector-network svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Network nodes (connection points) */
.network-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    z-index: 1;
}

.network-node.pulse {
    animation: nodePulse 3s ease-in-out infinite;
}

/* Floating gradient orb for depth */
.gradient-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 80%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat 20s ease-in-out infinite;
    z-index: 0;
}

/* Subtle grid overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: slideGrid 30s linear infinite;
    z-index: 0;
}

/* Animations */
@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    33% {
        transform: translate(-60%, -40%) scale(1.1);
    }
    66% {
        transform: translate(-40%, -60%) scale(0.9);
    }
}

@keyframes slideGrid {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title, .section-title {
    margin-bottom: var(--space-xl);
}

.hero-subtitle, .section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   BUTTONS
   =================================== */
.btn, button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gradient-start) 0%, var(--accent-gradient-end) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(80, 70, 229, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(80, 70, 229, 0.35);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   PROBLEM SECTION
   =================================== */
.problem-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

/* ===================================
   CARDS & FEATURES
   =================================== */
.card, .feature-card, .pricing-card, .problem-card, .founder-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(249, 250, 251, 0.7) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-ultra-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover, .problem-card:hover, .founder-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-light);
}

.problem-card {
    text-align: left;
}

.problem-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-gradient-start) 0%, var(--accent-gradient-end) 100%);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-lg);
}

.problem-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.problem-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--font-size-base);
}

/* ===================================
   SOLUTION SECTION
   =================================== */
.solution-section {
    padding: var(--space-5xl) 0;
    background: var(--bg-primary);
    position: relative;
}

.solution-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-left: 4px solid var(--accent-primary);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    margin: var(--space-2xl) 0;
}

/* ===================================
   FOUNDERS SECTION
   =================================== */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.founder-card {
    text-align: center;
}

.founder-image {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--space-xl);
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
}

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

.founder-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.founder-title {
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.founder-bio {
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--font-size-base);
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-gradient-start) 0%, var(--accent-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--accent-primary); /* Fallback */
}

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

/* ===================================
   LAPTOP IFRAME STYLES
   =================================== */
/* Laptop Landing Page Iframe */
.laptop-iframe-container {
    margin: var(--space-4xl) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 850px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
}

.laptop-iframe {
    width: 100%;
    height: 600px;
    display: block;
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-ultra-light);
    padding: var(--space-4xl) 0 var(--space-2xl);
    margin-top: var(--space-5xl);
    text-align: center;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 992px) {
    .nav-logo img {
        width: 160px;
    }
    
    .nav-menu {
        gap: var(--space-md);
    }
    
    .nav-link {
        padding: var(--space-xs) var(--space-xs);
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .hamburger, .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: left 0.3s ease;
        gap: 0;
        padding: var(--space-2xl) 0;
        overflow-y: auto;
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item, .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-ultra-light);
    }
    
    .nav-link {
        padding: var(--space-lg) var(--space-xl);
        font-size: var(--font-size-lg);
        width: 100%;
        display: block;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    .nav-cta {
        margin: var(--space-xl) var(--space-xl) 0;
        width: calc(100% - var(--space-xl) * 2);
    }
    
    .nav-cta .btn {
        width: 100%;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Mobile adjustments */
    :root {
        --font-size-base: 0.875rem;
    }
    
    .container, .nav-container {
        padding: 0 var(--space-md);
    }
    
    .hero {
        min-height: 80vh;
        padding: var(--space-4xl) var(--space-md) var(--space-3xl);
    }
    
    .content-header {
        min-height: 60vh;
        padding: calc(80px + var(--space-3xl)) var(--space-md) var(--space-3xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .founder-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .laptop-iframe-container {
        margin: var(--space-2xl) 0;
        max-width: 100%;
    }
    
    .laptop-iframe {
        height: 500px;
    }
}