/* CSS Reset & Variables */
:root {
    /* Colors - Premium Dark Palette */
    --bg-dark: #050507;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-glass: rgba(10, 10, 12, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);

    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    /* Slate-400 for better readability */
    --text-muted: #64748B;

    --accent-glow: rgba(59, 130, 246, 0.5);
    /* Blue-500 */
    --accent-blue: #3B82F6;
    --accent-cyan: #22D3EE;

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

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Animation */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

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

/* --- Advanced Background Effects --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.ambient-glow {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    fill: var(--accent-blue);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    animation: slowPulse 15s infinite alternate ease-in-out;
}

@keyframes slowPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

p {
    color: var(--text-secondary);
    max-width: 65ch;
}

.lead {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 10;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.grid-2-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

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

.center-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) 0;
    z-index: 100;
    background: transparent;
    transition: all 0.4s ease;
}

.glass-nav.scrolled {
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
}

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

.brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color var(--transition-fast);
}

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

/* --- Buttons --- */
.btn-primary,
.btn-glass {
    padding: 0.9em 2em;
    border-radius: 4px;
    /* Brutalist/Sharp */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.btn-primary {
    background: #E0F2FE;
    color: #020617;
    border: 1px solid #E0F2FE;
}

.btn-primary:hover {
    background: transparent;
    color: #E0F2FE;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(4px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
}

/* --- Glass Cards --- */
.glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    height: 100%;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    /* Glow sheen */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 0;
    /* Centered vertically */
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    position: relative;
    width: 100%;
    pointer-events: none;
    /* Let clicks pass through to canvas if needed, but text needs pointer-events auto */
}

.hero-content>* {
    pointer-events: auto;
}

.hero-label {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.hero-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent-blue);
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 0;
    height: 100vh;
    width: 55%;
    /* Slightly larger */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-canvas {
    width: 100%;
    height: 100%;
}

/* --- Stats List (AEO/GEO) --- */
.stats-list {
    list-style: none;
    width: 100%;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-glass);
}

.stats-list li:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.stat-value {
    font-weight: 500;
    text-align: right;
    color: var(--text-primary);
}

.stat-value.highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
    mask-composite: exclude;
}

/* --- Padaion Features --- */
.feature-card {
    border-top: 1px solid var(--border-glass);
    padding-top: var(--spacing-md);
    transition: opacity 0.3s;
}

.feature-card:hover h3 {
    color: var(--accent-blue);
}

.feature-card h3 {
    font-size: 1.5rem;
    transition: color 0.3s;
}

.highlight-card {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 60%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: var(--spacing-md);
    border-radius: 12px;
}

/* --- Services List --- */
.services-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.3s;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-content h3 {
    margin: 0 0 0.5rem 0;
}

.service-content p {
    margin: 0;
    font-size: 0.95rem;
}

.service-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5em 1.25em;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.1);
    white-space: nowrap;
    margin-left: 2rem;
}

/* --- Footer --- */
.footer {
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    border-top: 1px solid var(--border-glass);
    margin-top: var(--spacing-xl);
    background: #020202;
}

.footer-brand h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--spacing-lg);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
    transition-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
    transition-delay: 0.45s;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-visual {
        position: relative;
        width: 100%;
        height: 300px;
        margin-top: 2rem;
        display: none;
    }

    /* Hide 3D on mobile for now as per robust practice */
    .hero-content {
        text-align: center;
    }

    .hero-label {
        justify-content: center;
    }

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

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .nav-links {
        display: none;
    }

    /* Could add hamburger menu if needed */
    .glass-nav {
        padding: 1rem 0;
        background: rgba(5, 5, 7, 0.9);
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .service-meta {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}