/* Base Variables and Theme Setup - Meta Style Light Theme */
:root {
    --c-bg: #ffffff;
    --c-surface: #ffffff;
    --c-surface-hover: #f1f4f6;
    --c-border: #ced4da;

    --c-text-primary: #1c2b33;
    --c-text-secondary: #5e6b73;

    --c-primary: #0064e0;
    /* Meta Blue */
    --c-primary-light: #e7f3ff;
    --c-primary-glow: rgba(0, 100, 224, 0.2);

    --c-secondary: #000000;
    --c-secondary-light: #333333;
    --c-secondary-glow: rgba(0, 0, 0, 0.1);

    --c-warn: #ef4444;

    /* Typography */
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Outfit', -apple-system, sans-serif;

    /* Spacing */
    --sp-xs: 0.5rem;
    --sp-s: 1rem;
    --sp-m: 2rem;
    --sp-l: 4rem;
    --sp-xl: 8rem;

    /* Transitions */
    --tr-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --tr-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --tr-slow: 0.8s 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 {
    background-color: var(--c-bg);
    color: var(--c-text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Typography Elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: var(--sp-s);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
    color: var(--c-text-secondary);
    margin-bottom: var(--sp-s);
    font-size: 1.05rem;
}

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

a:hover {
    color: var(--c-text-primary);
}

/* Layout & Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--sp-m);
}

.section {
    padding: var(--sp-xl) 0;
    position: relative;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-m {
    margin-top: var(--sp-m);
}

.mt-l {
    margin-top: var(--sp-l);
}

.mt-xl {
    margin-top: var(--sp-xl);
}

.mb-m {
    margin-bottom: var(--sp-m);
}

.mb-l {
    margin-bottom: var(--sp-l);
}

.pb-m {
    padding-bottom: var(--sp-m);
}

.pb-xl {
    padding-bottom: var(--sp-xl);
}

.pt-xl {
    padding-top: var(--sp-xl);
}

.max-w-800 {
    max-width: 800px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-light {
    font-weight: 300;
}

.align-center {
    align-items: center;
}

/* Dynamic Gradients & Glassmorphism */
.gradient-text {
    color: var(--c-primary);
    font-weight: 800;
}

.gradient-secondary {
    color: var(--c-secondary);
}

.glass-panel {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: var(--sp-m);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform var(--tr-medium), box-shadow var(--tr-fast);
}

.glass-panel:hover {
    border-color: var(--c-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    background: var(--c-primary-light);
    color: var(--c-primary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: var(--sp-m);
}

/* Background Effects */
#noise-overlay {
    display: none;
}

.glow-orb {
    display: none;
}

.primary-orb {
    background: var(--c-primary);
    top: 10%;
    left: -10%;
}

.secondary-orb {
    background: var(--c-secondary);
    top: 40%;
    right: -10%;
}

.large-orb {
    width: 800px;
    height: 800px;
    opacity: 0.1;
}

.centered-orb {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    /* Pillow Shape for Meta */
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--tr-fast);
    border: 1px solid transparent;
}

.btn-large {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--c-primary);
    color: white;
    box-shadow: none;
}

.btn-primary:hover {
    background: #0056c2;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 12px var(--c-primary-glow);
}

.btn-secondary {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    color: var(--c-text-primary);
}

.btn-secondary:hover {
    background: var(--c-surface-hover);
    border-color: var(--c-primary-light);
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: all var(--tr-medium);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
    padding: 0.8rem 0;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--c-text-primary);
}

.logo-text.slim {
    font-weight: 400;
    font-size: 1.8rem;
}

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

.nav-links a {
    color: var(--c-text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

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

.mobile-menu-btn {
    display: none;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: -2;
}

.hero-brain-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero-brain-grey.png');
    background-size: 65%;
    background-position: right 5% center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.6) 100%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0.9) 100%);
}

.hero-content {
    max-width: 850px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--sp-m);
    line-height: 1.7;
    max-width: 750px;
}

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

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: var(--sp-xl);
}

.stat-card {
    border-left: 2px solid var(--c-border);
    padding-left: 1.5rem;
}

.stat-card:hover {
    border-left-color: var(--c-primary);
}

.stat-value {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 1.1rem;
    color: var(--c-text-primary);
    margin-bottom: 0.5rem;
}

/* Table Design */
.comparison-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: var(--sp-m);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.header-row {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 700;
    color: var(--c-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.comparison-row .col p {
    margin: 0;
}

/* Grid Layouts */
.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
}

.reverse-desktop {
    grid-template-columns: 0.9fr 1.1fr;
    direction: rtl;
}

.reverse-desktop>* {
    direction: ltr;
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    opacity: 0.6;
    transition: opacity var(--tr-fast);
}

.step-item:hover,
.active-step {
    opacity: 1;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-border);
    line-height: 1;
}

.step-num.highlight {
    color: var(--c-secondary);
    text-shadow: 0 0 20px var(--c-secondary-glow);
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--c-text-primary);
}

.step-content ul {
    padding-left: 1.5rem;
    color: var(--c-text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary-light);
    margin-bottom: 1.5rem;
}

.feature-icon .icon {
    width: 24px;
    height: 24px;
}

.active-glow {
    border-color: rgba(6, 182, 212, 0.3);
}

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

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

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--c-text-secondary);
}

.check-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--c-secondary);
    font-weight: bold;
}

/* Architecture Custom Graphics */
.tech-box {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid transparent;
    border-radius: 12px;
    transition: var(--tr-fast);
}

.tech-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--c-secondary);
}

.icon-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.icon-bg {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.icon-bg.primary {
    background: var(--c-primary);
    box-shadow: 0 0 10px var(--c-primary);
}

.icon-bg.secondary {
    background: var(--c-secondary);
    box-shadow: 0 0 10px var(--c-secondary);
}

.architecture-graphics {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.node-system {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.node {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--c-border);
    border-radius: 50px;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.pulsate {
    animation: pulse 3s infinite;
}

.cloud-node {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--c-primary);
}

.glow-dest {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
    border-color: var(--c-secondary);
}

.pathway {
    width: 2px;
    height: 40px;
    background: var(--c-border);
    position: relative;
}

.pathway::after {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 4px;
    height: 10px;
    background: var(--c-primary-light);
    animation: flow 2s infinite linear;
}

/* Business Section */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.b-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 2px solid var(--c-border);
    border-radius: 16px;
    transition: var(--tr-fast);
}

.b-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.highlight-card {
    border-top-color: var(--c-secondary);
    background: rgba(6, 182, 212, 0.05);
}

.accent-quote {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--c-text-primary);
    border-left: 2px solid var(--c-secondary);
    padding-left: 1rem;
    margin-top: 1rem;
}

/* Vision Section */
.massive-quote {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.3;
    font-style: italic;
}

/* Contact/Footer */
.footer-cta {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    top: -40px;
}

.contact-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.input-modern {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--c-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: white;
    outline: none;
    flex: 1;
    min-width: 200px;
}

.input-modern:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--c-border);
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.copyright {
    color: var(--c-text-secondary);
    font-size: 0.9rem;
}

/* Images */
.responsive-img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.image-wrapper {
    position: relative;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
}

.glass-border {
    border: 1px solid var(--c-border);
}

/* Animations */
@keyframes flow {
    0% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Scroll Reveal Initial States */
.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.left {
    transform: translateX(-40px);
}

.reveal.right {
    transform: translateX(40px) translateY(0);
}

.reveal.left.active,
.reveal.right.active {
    transform: translate(0, 0);
}

.reveal.shrink {
    transform: scale(0.95) translateY(20px);
}

.reveal.shrink.active {
    transform: scale(1) translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .reverse-desktop {
        direction: ltr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--c-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        width: 25px;
        height: 2px;
        background: var(--c-black);
        transition: 0.3s;
    }

    .navbar .btn-primary {
        display: none;
    }
}

@media (max-width: 500px) {
    .contact-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


