/* Global Design System - "Warm Horizon" (Tech + Hope) */

:root {
    /* Colors - Light & Hopeful */
    --bg-base: #FAFAFA; /* Crisp Warm White */
    --bg-surface: #FFFFFF;
    --bg-subtle: #F3F4F6;
    
    --text-primary: #111827; /* Deep Charcoal */
    --text-secondary: #4B5563; /* Cool Gray */
    --text-tertiary: #9CA3AF;
    
    /* Accent: "Tech Hope" Gradient */
    --accent-primary: #2563EB; /* Royal Blue */
    --accent-warm: #F97316; /* Orange/Sunrise */
    --gradient-hero: linear-gradient(135deg, #2563EB 0%, #F97316 100%);
    --gradient-text: linear-gradient(135deg, #1E40AF 0%, #EA580C 100%);
    
    /* Shadows (Soft/Airy) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
    
    /* Spacing */
    --section-padding: 140px;
    --container-max: 1200px;
    
    /* Radius */
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-full: 999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.mb-large { margin-bottom: 64px; }

/* Navbar - Clean & Airy */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.nav-links.desktop-only {
    display: flex;
}

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

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

.btn-primary {
    background: var(--text-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary.small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-text {
    color: var(--text-secondary);
    margin-left: 24px;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--accent-primary);
}

/* Hero Section - "Morning Light" */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.badge-pill .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-warm);
    border-radius: 50%;
    margin-right: 8px;
}

.hero-title {
    font-size: clamp(3.5rem, 5vw, 6rem);
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 48px;
    font-weight: 400;
}

/* Hero Visual - Orbs (CSS) */
.hero-visual {
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.8;
    mix-blend-mode: multiply;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #E0F2FE; /* Light Blue */
    top: 5%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #FFEDD5; /* Light Orange */
    bottom: 10%;
    left: 10%;
    animation: float 12s ease-in-out infinite reverse;
}

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

/* Ticker */
.ticker-section {
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}

.ticker-label {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: ticker 40s linear infinite;
}

.ticker-item {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text-tertiary); /* Muted logos */
    margin: 0 40px;
    font-weight: 700;
    opacity: 0.6;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section Common */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 80px;
    max-width: 700px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 300;
}

/* Bento Grid - Card Style */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 32px;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.span-2 { grid-column: span 2; }
.row-2 { grid-row: span 2; }

.bento-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: auto;
}

.card-visual {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.visual-waves {
    background: radial-gradient(circle at bottom right, #DBEAFE, transparent 60%);
}

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

.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.mini-chart {
    width: 120px;
    height: 80px;
    background: repeating-linear-gradient(90deg, #F3F4F6 0px, #F3F4F6 10px, #E5E7EB 10px, #E5E7EB 20px);
    border-radius: 8px;
}

/* Feature Split (ZigZag) */
.feature-split {
    display: flex;
    align-items: center;
    gap: 100px;
    margin-bottom: 180px;
}

.feature-split.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-image {
    flex: 1;
    height: 560px;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

/* UI Placeholders (Clean) */
.placeholder-ui {
    width: 100%;
    height: 100%;
    background: #F8FAFC;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.ui-commerce {
    background: linear-gradient(to bottom right, #EFF6FF, #F8FAFC);
}

.ui-edu {
    background: linear-gradient(to bottom right, #FFF7ED, #F8FAFC);
}

.placeholder-ui::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.feature-tag {
    display: inline-block;
    color: var(--accent-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    background: rgba(37, 99, 235, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.feature-text h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 16px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--accent-primary);
    margin-right: 16px;
    font-weight: bold;
}

/* Stats */
.bg-subtle {
    background: var(--bg-subtle);
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: 64px;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat .label {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 600;
}

/* CTA Footer */
.footer-cta {
    padding: 120px 0 60px;
}

.cta-box {
    background: var(--text-primary); /* Dark contrast for footer */
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: #fff;
}

.cta-box p {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    margin-bottom: 48px;
}

.email-form {
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto 80px;
}

.email-form input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 16px 24px;
    border-radius: var(--radius-full);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.email-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

/* Fluid Canvas */
#fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6; /* Softer background */
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none; /* Simplify for mobile */
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .span-2, .row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .feature-split, .feature-split.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 100px;
    }
    
    .feature-image {
        width: 100%;
        height: 300px;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 40px;
    }
    
    .nav-links.desktop-only {
        display: none;
    }
    
    .cta-box h2 {
        font-size: 2.5rem;
    }
    
    .email-form {
        flex-direction: column;
    }
}