/* =========================================================================
   CSS VARIABLES - Ultra Modern Aesthetics 
   ========================================================================= */
:root {
    /* Vibrant Modern Palette */
    --color-primary: #4F46E5;       /* Indigo */
    --color-primary-light: #EEF2FF;
    --color-primary-hover: #4338CA;
    --color-secondary: #7C3AED;     /* Violet */
    --color-accent: #EC4899;        /* Pink */
    --color-success: #10B981;       /* Emerald */
    --color-warning: #F59E0B;       /* Amber */
    --color-info: #0EA5E9;          /* Sky */
    
    /* Backgrounds: Mesh / Glass inspired - Psychology based warm off-white (#FAF9F6 Alabaster) to reduce eye strain */
    --bg-body: #FAF9F6;
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-glass-strong: rgba(255, 255, 255, 0.85);
    
    /* Typography */
    --text-heading: #111827;
    --text-body: #4B5563;
    --text-muted: #9CA3AF;
    
    /* Soft & Deep Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-glass: 0 30px 60px -15px rgba(79, 70, 229, 0.15);
    
    /* Typography fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* Massive friendly border radii */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 9999px;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================================================================
    BASE STYLES & RESET 
    ========================================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Glowing Orbs Background (Pure CSS) */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-body); /* Matched to warm off-white */
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px; height: 500px;
    background: #4F46E5;
    top: -100px; left: -100px;
}

.orb-2 {
    width: 600px; height: 600px;
    background: #EC4899;
    bottom: -100px; right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px; height: 400px;
    background: #0EA5E9;
    top: 40%; left: 40%;
    animation-delay: -10s;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
section { padding: 8rem 5%; position: relative; z-index: 10; }

/* =========================================================================
    UTILITIES & MICRO-ANIMATIONS 
    ========================================================================= */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textFlow 5s linear infinite;
}

@keyframes textFlow {
    to { background-position: 200% center; }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--color-primary);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: var(--shadow-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 10px 25px -10px var(--color-primary);
}

.btn-primary::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.2);
    opacity: 0; transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -10px var(--color-secondary);
}

.btn-primary:hover::before { opacity: 1; }

.btn-outline {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text-heading);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes floatEffect {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-fade-up { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================================================
    NAVBAR 
    ========================================================================= */
nav {
    position: fixed;
    top: 1.5rem; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 1200px;
    padding: 1rem 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand i {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0; padding: 0;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-body);
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

/* Modern underline hover */
.nav-links a:not(.btn)::after {
    content: ''; position: absolute; bottom: -6px; left: 50%;
    width: 0%; height: 4px; background: var(--color-primary);
    transition: var(--transition); border-radius: 4px;
    transform: translateX(-50%);
}
.nav-links a:not(.btn):hover::after { width: 20px; }

.nav-actions { display: flex; gap: 1rem; align-items: center; }

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    background: rgba(0,0,0,0.04);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}
.lang-switch a {
    color: var(--text-muted);
    transition: var(--transition);
}
.lang-switch a.active {
    color: var(--color-primary);
}
.lang-switch a:hover {
    color: var(--color-primary-hover);
}

.mobile-menu-btn { display: none; font-size: 1.5rem; color: var(--text-heading); cursor: pointer; border: none; background: transparent; }
.mobile-only-actions { display: none; }

/* =========================================================================
    HERO SECTION 
    ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-top: 160px; /* Offset for floating nav */
    margin-bottom: -4rem;
}

.hero-content { flex: 1; max-width: 650px; z-index: 2; }

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.trusted-by {
    display: flex; align-items: center; gap: 1rem;
    font-size: 0.9rem; color: var(--text-muted); font-weight: 500;
}

.avatars { display: flex; }
.avatars img { 
    width: 40px; height: 40px; border-radius: 50%; 
    border: 3px solid white; margin-left: -15px; 
    box-shadow: var(--shadow-sm); background: #eee;
}
.avatars img:first-child { margin-left: 0; }

.hero-visual {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1rem;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: var(--shadow-glass);
    animation: floatEffect 8s ease-in-out infinite;
}

.hero-image-wrapper img {
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 600px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

/* Floating Stats Card in Hero */
.glass-card-float {
    position: absolute;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    border: 1px solid rgba(255,255,255,1);
    animation: floatEffect 6s ease-in-out infinite alternate-reverse;
}

.gcf-1 {
    bottom: -20px; left: -40px;
}

.gcf-2 {
    top: 40px; right: -30px;
    animation-duration: 7s;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

/* =========================================================================
    FEATURES (BENTO GRID) SECTION
    ========================================================================= */
.features { 
    background: transparent;
    position: relative;
}

.section-header { text-align: center; max-width: 700px; margin: 0 auto 5rem; }
.section-header h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 1.5rem; }

/* Modern Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(250px, auto));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.1);
}

.bento-large { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, var(--color-primary-light), white); }
.bento-wide { grid-column: span 2; }

.bento-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 2rem;
}

.bento-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.bento-card p { color: var(--text-body); font-size: 1rem; line-height: 1.6; }

/* Specific Colors for Bento */
.ic-purple { background: #F3E8FF; color: #9333EA; }
.ic-green { background: #D1FAE5; color: #10B981; }
.ic-pink { background: #FCE7F3; color: #EC4899; }
.ic-blue { background: #E0F2FE; color: #0EA5E9; }

.bento-visual {
    margin-top: 2rem;
    height: 150px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
    flex-grow: 1;
}

/* Abstract UI shapes inside bento */
.b-shape { position: absolute; background: white; border-radius: 8px; box-shadow: var(--shadow-sm); }

/* =========================================================================
    INTERACTIVE COMPUTING (IDE MOCKUP)
    ========================================================================= */
.computing-section {
    background: #0F172A; /* Dark space for contrast */
    border-radius: 40px;
    margin: 4rem 5%;
    padding: 6rem 4rem;
    display: flex; align-items: center; gap: 5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.4);
}

/* Dark Glowing Orbs */
.computing-section::before {
    content: ''; position: absolute; top: -200px; right: -100px;
    width: 500px; height: 500px; background: rgba(124, 58, 237, 0.4);
    filter: blur(100px); border-radius: 50%; z-index: 0;
}

.comp-content { flex: 1; z-index: 1; }
.comp-content h2 { color: white; font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 1.5rem; }
.comp-content p { color: #94A3B8; font-size: 1.15rem; margin-bottom: 2rem; }

.feature-list-dark { list-style: none; margin-bottom: 3rem; padding: 0; }
.feature-list-dark li {
    margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 1rem;
    font-size: 1.1rem; color: #E2E8F0;
}
.feature-list-dark i { color: var(--color-accent); margin-top: 4px; font-size: 1.25rem; }

.comp-visual { flex: 1.2; position: relative; z-index: 1; }

.code-window {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    overflow: hidden;
    font-family: var(--font-code);
    font-size: 0.95rem;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

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

.window-header {
    background: rgba(30, 41, 59, 0.8); padding: 1rem 1.5rem;
    display: flex; gap: 8px; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mac-btn { width: 12px; height: 12px; border-radius: 50%; }
.cb-red { background: #FF5F56; }
.cb-yel { background: #FFBD2E; }
.cb-grn { background: #27C93F; }

.window-title { margin-left: auto; margin-right: auto; font-size: 0.85rem; color: #64748B; font-family: var(--font-body); font-weight: 500; }

.code-content { padding: 2rem; line-height: 1.7; color: #E2E8F0; }

.tok-kw { color: #C678DD; } /* Magenta */
.tok-fn { color: #61AFEF; } /* Blue */
.tok-str { color: #98C379; } /* Green */
.tok-cm { color: #7F848E; font-style: italic; } /* Gray */
.tok-op { color: #56B6C2; } /* Cyan */

/* Floating Data Viz inside dark area */
.data-viz-dark {
    position: absolute; right: -30px; bottom: -40px;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem; border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); z-index: 10;
    width: 300px;
}

.wave-container {
    width: 100%; height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"><path d="M 0 50 Q 50 0 100 50 T 200 50" fill="none" stroke="%23EC4899" stroke-width="4" stroke-linecap="round"/><path d="M 0 50 Q 50 100 100 50 T 200 50" fill="none" stroke="%230EA5E9" stroke-dasharray="6,6" stroke-width="2" stroke-linecap="round"/></svg>');
    background-size: 200px 100px;
    animation: waveMove 3s linear infinite;
}
@keyframes waveMove { from { background-position: 0 0; } to { background-position: -200px 0; } }

/* =========================================================================
    CALL TO ACTION 
    ========================================================================= */
.cta-section {
    text-align: center; 
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); 
    color: white;
    border-radius: 40px; margin: 0 5% 4rem; padding: 7rem 2rem;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-glass);
}

/* Abstract CTA Shapes */
.cta-shape { position: absolute; background: rgba(255,255,255,0.1); border-radius: 50%; top:-50%; right: -10%; width: 600px; height: 600px; }

.cta-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.cta-content h2 { color: white; font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.cta-content p { font-size: 1.25rem; color: rgba(255,255,255,0.9); margin-bottom: 3rem; line-height: 1.6; }

.btn-white { background: white; color: var(--color-primary); }
.btn-white:hover { background: #FAFAFA; transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 30px rgba(0,0,0,0.1); }

/* =========================================================================
    FOOTER
    ========================================================================= */
footer { padding: 4rem 5%; background: white; text-align: center; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 1.5rem; font-family: var(--font-heading); font-weight: 800; color: var(--text-heading); margin-bottom: 1rem; }
footer p { color: var(--text-muted); font-size: 1rem; }

/* =========================================================================
    RESPONSIVE DESIGN (Tablets & Phones)
    ========================================================================= */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .hero, .computing-section { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 3rem; }
    .hero-actions, .trusted-by { justify-content: center; }
    .hero-visual { margin-top: 3rem; }
    .computing-section { padding: 4rem 2rem; gap: 3rem; }
    .feature-list-dark li { justify-content: center; text-align: left; }
    .code-window { transform: none; }
    .code-window:hover { transform: none; }
}

@media (max-width: 768px) {
    nav { width: 95%; padding: 1rem; border-radius: 20px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-wide { grid-column: span 1; }
    .nav-links {
        position: absolute; top: calc(100% + 10px); left: 0; right: 0;
        background: var(--bg-surface); border-radius: var(--radius-md);
        flex-direction: column; padding: 2rem; box-shadow: var(--shadow-lg);
        display: none; text-align: center; gap: 1.5rem; border: 1px solid rgba(0,0,0,0.05);
    }
    .mobile-only-actions { display: flex; flex-direction: column; gap: 1rem; width: 100%; padding-top: 1.5rem; border-top: 1px solid #f1f5f9; }
    .mobile-only-actions .btn { width: 100%; }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .nav-actions { display: none; }
    .glass-card-float { display: none; } /* Hide floats on very small screens */
    .data-viz-dark { right: 0; bottom: -20px; width: 90%; margin: 0 auto; left: 0; }
}
