:root {
    /* Color Palette */
    --bs-primary: #2563EB;
    --bs-primary-rgb: 37, 99, 235;
    --bs-secondary: #10B981;
    --bs-secondary-rgb: 16, 185, 129;
    --bs-accent: #F59E0B;
    --bs-accent-rgb: 245, 158, 11;
    --bs-dark: #0F172A;
    --bs-dark-rgb: 15, 23, 42;
    --bs-light: #F8FAFC;
    --bs-light-rgb: 248, 250, 252;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --bg-body: #F8FAFC;
    --bg-surface: #FFFFFF;
    
    /* Typography */
    --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--bs-font-sans-serif);
    color: var(--text-primary);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout & Spacing */
.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}
@media (min-width: 992px) {
    .section-padding {
        padding-top: 120px;
        padding-bottom: 120px;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: transparent;
}
.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--bs-dark);
}
.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--bs-primary);
}

/* Buttons */
.btn-custom {
    border-radius: 50rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary.btn-custom {
    box-shadow: 0 10px 20px -10px var(--bs-primary);
}
.btn-primary.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px var(--bs-primary);
}
.glass-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.1);
}
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
}
.background-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.08) 0%, rgba(16, 185, 129, 0.05) 25%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* Hero Illustration Animation */
.hero-illustration-wrapper {
    perspective: 1000px;
}
.hero-illustration {
    transform: rotateX(5deg);
    transition: transform 0.5s ease;
}
.hero-illustration:hover {
    transform: rotateX(0deg) scale(1.02);
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.node {
    animation: float 4s ease-in-out infinite;
}
.float-1 { animation-delay: 0s; }
.float-2 { animation-delay: 0.5s; }
.float-3 { animation-delay: 1s; }
.float-4 { animation-delay: 1.5s; }
.float-5 { animation-delay: 2s; }
.float-6 { animation-delay: 2.5s; }

.network-lines {
    animation: dash 20s linear infinite;
}
@keyframes dash {
    to { stroke-dashoffset: 1000; }
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(37, 99, 235, 0.1);
}
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.feature-card:hover .icon-box {
    transform: scale(1.1);
}

/* Timeline/How it Works */
.timeline {
    position: relative;
    padding-left: 3rem;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    height: 100%;
    width: 2px;
    background: var(--bs-primary);
    opacity: 0.2;
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-icon {
    position: absolute;
    left: -3rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px white;
    z-index: 1;
}

/* App Mockups */
.app-mockup {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.app-mockup:hover {
    transform: translateY(-10px);
}
.mockup-img-wrapper {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
}

/* Hero Scroller */
.scroller-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}
.scroller-container::before, .scroller-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.scroller-container::before {
    left: 0;
    background: linear-gradient(to right, #F8FAFC, rgba(248,250,252,0));
}
.scroller-container::after {
    right: 0;
    background: linear-gradient(to left, #F8FAFC, rgba(248,250,252,0));
}
.scroller-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}
.scroller-track:hover {
    animation-play-state: paused;
}
.scroller-item {
    display: flex;
    align-items: center;
    margin-right: 4rem;
}
.scroller-item img {
    height: 200px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 0 0 6px #ffffff;
    margin-right: 1.5rem;
    background-color: white;
}
.scroller-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-dark);
    white-space: nowrap;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Testimonials */
.testimonial-card {
    transition: transform 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Call to Action */
.cta-bg {
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(255,255,255,0.1) 0%, transparent 40%);
}

/* Utilities */
.hover-opacity-100 {
    opacity: 0.75;
}
.hover-opacity-100:hover {
    opacity: 1 !important;
}
.hover-text-white:hover {
    color: white !important;
}
.transition {
    transition: all 0.2s ease;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
