/* ==================================
   CSS Variables & Design System
   ================================== */
   :root {
    /* Colors */
    --c-primary: #0A2540; /* Stripe-like deep blue */
    --c-dark: #0F172A;
    --c-accent1: #7C3AED; /* Purple */
    --c-accent1-light: #F3E8FF;
    --c-accent2: #10B981; /* Green */
    --c-accent2-light: #D1FAE5;
    
    --c-bg: #FFFFFF;
    --c-bg-light: #F8FAFC;
    --c-text: #334155;
    --c-text-dark: #0F172A;
    --c-neutral: #64748B;
    --c-neutral-light: #CBD5E1;
    --c-border: #E2E8F0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* 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);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3);
    
    /* Spacing */
    --s-xs: 0.5rem;
    --s-sm: 1rem;
    --s-md: 1.5rem;
    --s-lg: 3rem;
    --s-xl: 5rem;
    --s-xxl: 8rem;
    
    /* Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --trans-fast: 0.15s ease-out;
    --trans-base: 0.3s ease-out;
    --trans-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--c-text);
    background-color: var(--c-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--c-text-dark);
    line-height: 1.2;
    margin-bottom: var(--s-sm);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p {
    margin-bottom: var(--s-sm);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--s-md);
}

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-dark { color: var(--c-dark) !important; }
.text-white { color: white !important; }
.text-neutral { color: var(--c-neutral); }
.text-neutral-light { color: var(--c-neutral-light); }
.text-primary { color: var(--c-primary); }
.text-accent1 { color: var(--c-accent1); }
.text-accent2 { color: var(--c-accent2); }

.bg-light { background-color: var(--c-bg-light); }
.bg-dark { background-color: var(--c-dark); }
.bg-primary-light { background-color: #E0E7FF; }
.bg-accent1-light { background-color: var(--c-accent1-light); }
.bg-accent2-light { background-color: var(--c-accent2-light); }
.bg-dark-light { background-color: #F1F5F9; }

.fw-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.mt-sm { margin-top: var(--s-sm); }
.mt-md { margin-top: var(--s-md); }
.mt-lg { margin-top: var(--s-lg); }
.mt-xl { margin-top: var(--s-xl); }
.mb-sm { margin-bottom: var(--s-sm); }
.mb-md { margin-bottom: var(--s-md); }
.mb-lg { margin-bottom: var(--s-lg); }

.py-md { padding-top: var(--s-md); padding-bottom: var(--s-md); }
.py-lg { padding-top: var(--s-lg); padding-bottom: var(--s-lg); }
.py-xl { padding-top: var(--s-xl); padding-bottom: var(--s-xl); }
.pt-xl { padding-top: var(--s-xl); }
.pb-md { padding-bottom: var(--s-md); }

.w-full { width: 100%; }
.d-block { display: block; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.overflow-hidden { overflow: hidden; }

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}
.col-6 { width: 50%; padding: 0 1rem; }
.align-center { align-items: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--c-primary);
    color: white;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    background-color: #0d1e30;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: white;
    color: var(--c-primary);
    border-color: var(--c-primary);
}
.btn-secondary:hover {
    background-color: var(--c-bg-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.cta-glow {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
    background-color: var(--c-accent1);
    border-color: var(--c-accent1);
}
.cta-glow:hover {
    background-color: #6D28D9;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.7);
}

/* ==================================
   Navigation
   ================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--c-border);
    transition: var(--trans-base);
}
.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--c-dark);
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent1));
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-mark svg {
    width: 20px;
    height: 20px;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--c-neutral);
}
.nav-links a:hover {
    color: var(--c-accent1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--c-dark);
}

/* ==================================
   Hero Section
   ================================== */
.hero {
    padding-top: 150px;
    padding-bottom: var(--s-xl);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, rgba(16,185,129,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background-color: var(--c-accent1-light);
    color: var(--c-accent1);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--s-md);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--s-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--c-neutral);
    margin-bottom: var(--s-lg);
    max-width: 500px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--s-lg);
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--c-neutral);
    font-size: 0.875rem;
}

.avatars {
    display: flex;
}
.avatars img {
    width: 32px;
    height: 32px;
    border: 2px solid white;
    border-radius: 50%;
    margin-left: -10px;
}
.avatars img:first-child { margin-left: 0; }

.hero-visual {
    flex: 1;
    position: relative;
}

/* Glass Panel Mockup */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.dashboard-mockup {
    padding: 2rem;
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--trans-slow);
}
.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--c-border);
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}
.stat-pill.success {
    background-color: var(--c-accent2-light);
    color: var(--c-accent2);
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 150px;
    margin-bottom: 2rem;
    gap: 4px;
}
.chart-bar {
    flex: 1;
    background-color: var(--c-bg-light);
    height: 100%;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, var(--c-accent1), #a78bfa);
    border-radius: 4px;
    transform-origin: bottom;
    animation: barGrow 1.5s ease-out forwards;
}

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.mockup-cards {
    display: flex;
    gap: 1rem;
}
.mini-card {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}
.mini-card i {
    font-size: 1.5rem;
    color: var(--c-accent1);
}
.mini-card:nth-child(2) i {
    color: var(--c-accent2);
}

/* Decor Blobs */
.blob {
    position: absolute;
    filter: blur(40px);
    z-index: 1;
    border-radius: 50%;
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
}
.blob-1 {
    top: -20px;
    right: -20px;
    width: 250px;
    height: 250px;
    background-color: rgba(124, 58, 237, 0.4);
}
.blob-2 {
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background-color: rgba(16, 185, 129, 0.3);
    animation-delay: -3s;
}

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

/* ==================================
   Trust Section
   ================================== */
.trust-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-neutral);
    margin-bottom: var(--s-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-cloud {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--trans-base);
}
.logo-cloud:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-neutral);
}

/* ==================================
   Services Section
   ================================== */
.section-header {
    max-width: 700px;
    margin: 0 auto var(--s-lg);
}
.section-title {
    font-size: 2.5rem;
}
.section-desc {
    font-size: 1.125rem;
    color: var(--c-neutral);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--c-border);
    transition: var(--trans-base);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--c-accent1-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.service-card p {
    color: var(--c-neutral);
    font-size: 0.95rem;
}

/* ==================================
   How It Works
   ================================== */
.steps-list {
    margin-top: 3rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: -30px;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--c-accent2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.step-content h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.step-content p {
    color: var(--c-neutral-light);
}

/* Abstract Visual in How it Works */
.mockup-container {
    display: flex;
    justify-content: center;
}
.abstract-visual {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30,41,59,0.8), rgba(15,23,42,0.9));
    border: 1px solid rgba(124,58,237,0.3);
}

.orbit {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

.planet {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.center-planet {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--c-accent1), var(--c-primary));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    animation: reverseSpin 30s linear infinite;
}

.floating {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    animation: reverseSpin 30s linear infinite;
}
.p-1 { top: 10%; left: 20%; background: var(--c-accent2); }
.p-2 { top: 60%; right: 10%; background: #0284c7; }
.p-3 { bottom: 10%; left: 40%; background: #f59e0b; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes reverseSpin { 100% { transform: rotate(-360deg); } }

/* ==================================
   Results Section
   ================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.metric-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--c-accent2);
}

.metric-value {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--c-accent2), var(--c-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.metric-card h4 { font-size: 1.25rem; }

/* ==================================
   Testimonials
   ================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--c-dark);
    margin-bottom: 2rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.client-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.client-info h5 { margin-bottom: 0.1rem; font-size: 1rem; }

/* ==================================
   CTA Section
   ================================== */
.cta-box {
    background: linear-gradient(135deg, rgba(243,232,255,0.8), rgba(209,250,229,0.8));
    padding: 5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid white;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}
.cta-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ==================================
   Footer
   ================================== */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    line-height: 1.8;
}

.footer h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links a, .contact-link {
    display: block;
    color: var(--c-neutral-light);
    margin-bottom: 0.75rem;
}
.footer-links a:hover, .contact-link:hover {
    color: var(--c-accent1-light);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}
.social-links a {
    color: var(--c-neutral-light);
}
.social-links a:hover {
    color: white;
}

.border-top {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==================================
   Animations
   ================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-anim {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==================================
   Media Queries
   ================================== */
@media (max-width: 992px) {
    .hero-grid { flex-direction: column; text-align: center; }
    .hero-subtitle { margin: 0 auto var(--s-lg); }
    .hero-ctas { justify-content: center; }
    .hero-social-proof { justify-content: center; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .lg-col-12 { width: 100%; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile menu fallback */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .d-sm-none { display: none; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-ctas { flex-direction: column; }
    
    .footer-grid { grid-template-columns: 1fr; }
}
