/* =========================================
   Antigravity Visual Language - SUBPLANRJ
   ========================================= */

   :root {
    /* Color Palette - Blue Tones & Antigravity System */
    --surface: #f7f9fb;
    --surface-dim: #d8dadc;
    --surface-bright: #ffffff;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f2f4f6;
    --surface-container: #f0f2f5;
    --surface-container-high: #eaedf1;
    --surface-container-highest: #e4e8ec;
    
    --on-surface: #191c1f;
    --on-surface-variant: #43474e;
    
    --outline: #73777f;
    --outline-variant: #c3c7cf;
    
    /* Blues (Primary) */
    --primary: #3222a0; /* Deep blue from Antigravity */
    --primary-light: #4b3cbd;
    --primary-dark: #1f146e;
    --on-primary: #ffffff;
    
    --primary-container: #e2dfff;
    --on-primary-container: #0d006a;
    
    /* Secondary (Accents & Blue variations) */
    --secondary: #0066cc; /* Added vibrant blue for accents */
    --on-secondary: #ffffff;
    --secondary-container: #cce0ff;
    --on-secondary-container: #001f4d;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--primary) 0%, #0a4dae 50%, #0088ff 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Typography */
    --font-family: 'Outfit', sans-serif;
    
    /* Shape */
    --border-radius-sm: 4px;
    --border-radius: 8px; /* Antigravity standard */
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Elevation / Shadows */
    --shadow-sm: 0 2px 4px rgba(25, 28, 31, 0.05);
    --shadow-md: 0 4px 12px rgba(25, 28, 31, 0.08);
    --shadow-lg: 0 12px 32px rgba(50, 34, 160, 0.15);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--on-surface);
    line-height: 1.2;
}

p {
    color: var(--on-surface-variant);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition-fast);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

/* =========================================
   Components
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 4px 14px rgba(50, 34, 160, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 34, 160, 0.4);
    color: var(--on-primary);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--on-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* =========================================
   Layout & Sections
   ========================================= */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
}

.navbar.scrolled .logo {
    color: var(--primary);
}

.logo span {
    color: #8bb8ff; /* Light blue accent */
}

.navbar.scrolled .logo span {
    color: var(--secondary);
}

.logo i {
    font-size: 1.75rem;
    color: white;
}

.navbar.scrolled .logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--on-surface-variant);
}

.nav-link:hover {
    color: white;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width var(--transition-fast);
}

.navbar.scrolled .nav-link::after {
    background-color: var(--primary);
}

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

.navbar .btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar .btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

.navbar.scrolled .btn-outline {
    color: var(--primary);
    border-color: var(--primary);
}

.navbar.scrolled .btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .mobile-toggle {
    color: var(--on-surface);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    color: white;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background-color: rgba(0, 153, 255, 0.4);
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background-color: rgba(50, 34, 160, 0.6);
    animation: float 12s ease-in-out infinite reverse;
}

.shape-3 {
    top: 40%;
    right: 20%;
    width: 300px;
    height: 300px;
    background-color: rgba(0, 255, 204, 0.2);
    animation: float 8s ease-in-out infinite 2s;
}

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

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    color: white;
    line-height: 1.1;
}

.hero-content h1 span {
    color: #a3cfff; /* Soft blue highlight */
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Visual (Glassmorphism Mockup) */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.glass-panel {
    background: var(--gradient-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-glass);
}

.main-panel {
    width: 100%;
    height: 350px;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.main-panel:hover {
    transform: rotateY(0) rotateX(0);
}

.panel-header {
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
}

.panel-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chart-mockup {
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.bar {
    flex: 1;
    background: linear-gradient(to top, rgba(255,255,255,0.2), rgba(255,255,255,0.8));
    border-radius: 4px 4px 0 0;
    animation: riseUp 1.5s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.bar-1 { height: 40%; animation-delay: 0.1s; }
.bar-2 { height: 70%; animation-delay: 0.2s; }
.bar-3 { height: 50%; animation-delay: 0.3s; }
.bar-4 { height: 90%; animation-delay: 0.4s; }
.bar-5 { height: 65%; animation-delay: 0.5s; }

.data-cards-mockup {
    display: flex;
    gap: 16px;
}

.mockup-card {
    flex: 1;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.floating-panel {
    position: absolute;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 6s ease-in-out infinite;
}

.floating-panel i {
    font-size: 2rem;
    color: white;
}

.panel-left {
    bottom: -30px;
    left: -40px;
    width: 200px;
    animation-delay: 1s;
}

.panel-right {
    top: 40px;
    right: -30px;
    width: 180px;
    animation-delay: 2s;
}

.panel-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-lines .line {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}

.panel-lines .line.short {
    width: 60%;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Features Section */
.features {
    background-color: var(--surface-bright);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--surface-container-highest);
    padding: 40px 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-container);
    color: var(--primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--on-surface);
}

/* CTA Section */
.cta {
    background-color: var(--surface-container-low);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--border-radius-xl);
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}

.cta-box .btn-primary {
    background-color: white;
    color: var(--primary);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.cta-box .btn-primary:hover {
    background-color: var(--surface-container-lowest);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background-color: var(--on-surface);
    color: white;
    padding: 80px 0 24px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand p {
    color: var(--outline-variant);
    margin-top: 16px;
    max-width: 300px;
}

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

.footer-links a {
    display: block;
    color: var(--outline-variant);
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--outline);
    font-size: 0.875rem;
}

/* =========================================
   Animations
   ========================================= */

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

@keyframes riseUp {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        margin: 0 auto 40px;
    }
    
    .hero-actions {
        justify-content: center;
        margin-bottom: 64px;
    }
    
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 48px 32px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, implement mobile menu */
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 64px 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
