/* Design Tokens v2 - Human & Premium */
:root {
    /* Backgrounds - Deep Slate/Midnight, not Pure Black */
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;

    /* Typography */
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --text-accent: #e2e8f0;

    /* Brand Colors - "Tech meets Human" */
    --primary-color: #6366f1;
    /* Indigo 500 */
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    /* Pink 500 - Human warmth */
    --accent-color: #2dd4bf;
    /* Teal 400 - Freshness */

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --grad-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

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

    /* Glassmorphism v2 - More refined */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);

    --section-spacing: 120px;
}

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

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    /* Subtle noise texture overlay could be added here */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

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

img,
svg {
    display: block;
    max-width: 100%;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-gradient {
    background: linear-gradient(to right, #818cf8, #e879f9, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button v2 - Pill shaped, subtle */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    background: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Glass Card v2 */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top-color: var(--glass-highlight);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
}

/* Stat Card (Hesitation Section) */
.stat-card {
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--grad-primary);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-unit {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.stat-sub {
    font-size: 0.95rem;
    color: var(--text-accent);
    opacity: 0.8;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

nav a:not(.btn) {
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

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

/* Aurora Background */
.aurora-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1), transparent 30%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* METHODOLOGY (Steps) */
.steps-container {
    position: relative;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.step-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--glass-border);
    line-height: 0.8;
}

/* BENTO GRID (Use Cases) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-large {
    grid-column: span 2;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

/* TEAM */
.team-lockup {
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    position: relative;
}

.team-divider {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-column: span 1;
    }

    .team-lockup {
        flex-direction: column;
        gap: 2rem;
    }

    .team-divider {
        width: 100px;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--glass-border), transparent);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    nav ul {
        display: none;
        /* Hide default nav */
    }

    .mobile-menu-btn {
        display: flex;
        /* Show burger */
    }
}

/* Scroll Offset Fix */
section[id] {
    scroll-margin-top: 100px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Above mobile nav */
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

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