:root {
    --c-bg: #06060b;
    --c-surface: #0d0d14;
    --c-blue: #3b82f6;
    --c-indigo: #6366f1;
    --c-violet: #8b5cf6;
    --c-cyan: #06b6d4;
    --c-pink: #ec4899;
    --c-text: #e2e8f0;
    --c-muted: rgba(255,255,255,0.45);
    --radius: 24px;
    --glass: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.08);
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--c-bg);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--c-text);
    cursor: default;
}

/* ─── Canvas Background ─── */
#bgCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ─── Video Background ─── */
.video-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.video-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,6,11,0.55) 0%, rgba(6,6,11,0.8) 100%);
    pointer-events: none;
}
.video-background video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%,-50%);
    object-fit: cover;
}

/* ─── Grain overlay ─── */
.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* ─── Aurora blobs ─── */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    filter: blur(120px) saturate(1.6);
    opacity: 0.4;
}
.aurora span {
    position: absolute;
    border-radius: 50%;
}
.aurora .a1 {
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, var(--c-indigo), transparent 70%);
    top: -20%; right: -10%;
    animation: drift 22s ease-in-out infinite alternate;
}
.aurora .a2 {
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, var(--c-violet), transparent 70%);
    bottom: -15%; left: -8%;
    animation: drift 26s ease-in-out infinite alternate-reverse;
}
.aurora .a3 {
    width: 35vw; height: 35vw;
    background: radial-gradient(circle, var(--c-cyan), transparent 70%);
    top: 40%; left: 30%;
    animation: drift 30s ease-in-out infinite alternate;
}
.aurora .a4 {
    width: 25vw; height: 25vw;
    background: radial-gradient(circle, var(--c-pink), transparent 70%);
    top: 10%; left: 60%;
    animation: drift 18s ease-in-out infinite alternate-reverse;
    opacity: 0.5;
}

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(-30px, 25px) scale(0.95); }
}

/* ─── Mesh grid lines ─── */
.mesh-grid {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

/* ─── Floating particles (canvas driven) ─── */
.particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* ─── Hero section ─── */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.2rem;
    border-radius: 100px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: 0.1s;
}
.badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-cyan);
    box-shadow: 0 0 8px var(--c-cyan);
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
    0%,100% { opacity:1; }
    50% { opacity:0.3; }
}

/* Title */
.main-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(4.5rem, 14vw, 13rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    padding-bottom: 0.14em;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: 0.3s;
    position: relative;
}
.main-title .name {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 40%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 60px rgba(99,102,241,0.2));
}
.main-title .highlight-u {
    background: linear-gradient(135deg, var(--c-blue), var(--c-violet), var(--c-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: chromaShift 6s ease infinite;
    font-weight: 900;
}

@keyframes chromaShift {
    0%,100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Subtitle */
.philosophy {
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    font-weight: 300;
    color: var(--c-muted);
    letter-spacing: 0.06em;
    line-height: 1.8;
    max-width: 520px;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: 0.55s;
}
.philosophy em {
    font-style: normal;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}
.philosophy .sep {
    display: inline-block;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, var(--c-violet), var(--c-cyan));
    vertical-align: middle;
    margin: 0 0.6rem;
    border-radius: 1px;
}

/* Divider */
.divider-line {
    width: 180px;
    height: 1px;
    margin: 2.5rem auto;
    background: linear-gradient(90deg, transparent, var(--c-indigo), var(--c-violet), transparent);
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: 0.7s;
    position: relative;
}
.divider-line::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-violet);
    box-shadow: 0 0 12px var(--c-violet);
    animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse {
    0%,100% { transform: translate(-50%,-50%) scale(1); box-shadow: 0 0 12px var(--c-violet); }
    50% { transform: translate(-50%,-50%) scale(1.4); box-shadow: 0 0 24px var(--c-violet), 0 0 48px rgba(139,92,246,0.3); }
}

/* CTA tagline */
.tagline {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: 0.9s;
    position: relative;
}
.tagline::before,
.tagline::after {
    content: '—';
    margin: 0 0.8rem;
    opacity: 0.4;
}

/* Glass card link */
.nav-cards {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: 1.1s;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--c-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all 0.35s cubic-bezier(.22,1,.36,1);
    position: relative;
    overflow: hidden;
}
.nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.1));
    opacity: 0;
    transition: opacity 0.35s ease;
}
.nav-card:hover {
    border-color: rgba(99,102,241,0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99,102,241,0.15), 0 0 0 1px rgba(99,102,241,0.1);
}
.nav-card:hover::before { opacity: 1; }
.nav-card .icon {
    font-size: 1.1rem;
    position: relative;
}
.nav-card .label { position: relative; }
.nav-card .arrow {
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
    position: relative;
}
.nav-card:hover .arrow {
    opacity: 0.7;
    transform: translateX(0);
}

/* Scroll indicator */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: 1.6s;
}
.scroll-hint .line {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, var(--c-indigo), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%,100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(0.4); opacity: 0.15; }
}

/* ─── Glow cursor follow ─── */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.08), transparent 70%);
    pointer-events: none;
    z-index: 3;
    transform: translate(-50%, -50%);
    transition: left 0.5s ease, top 0.5s ease;
    will-change: left, top;
}

/* ─── Keyframes ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nav-cards { flex-direction: column; align-items: center; }
    .nav-card { width: 100%; max-width: 260px; justify-content: center; }
    .philosophy { padding: 0 1rem; }
    .aurora { filter: blur(80px) saturate(1.4); opacity: 0.3; }
}

@media (max-width: 480px) {
    .badge { font-size: 0.68rem; padding: 0.35rem 0.9rem; }
}
