:root {
    --bg-midnight: #030712;
    --accent-violet: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-midnight);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin: 0;
    cursor: none;
    /* Custom cursor implementation */
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-midnight);
}

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.1s ease-out, background 0.3s ease;
    transform: translate(-50%, -50%);
    filter: blur(2px);
}

.cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-out;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.05;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E")
}

/* Midnight Prism Glows */
.prism-glow {
    position: fixed;
    width: 60vw;
    height: 60vh;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: var(--accent-violet);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    background: var(--accent-cyan);
}

/* Typography */
h1,
h2,
h3 {
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.text-huge {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
}

.text-gradient-prism {
    background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 60%, var(--accent-violet) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.25rem;
    max-width: 1300px;
    margin: 0 auto;
}

.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.bento-item.col-2 {
    grid-column: span 2;
}

.bento-item.row-2 {
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.col-2 {
        grid-column: span 1;
    }
}

/* Logo Ticker */
.ticker-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 1.5rem 0;
}

.ticker-wrapper {
    display: inline-flex;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    height: 32px;
    margin: 0 2.5rem;
    opacity: 0.5;
    filter: grayscale(100%) brightness(2);
    transition: all 0.3s;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

/* Buttons */
.btn-prism {
    background: #fff;
    color: #000;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
    z-index: 10;
}

.btn-prism:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s cubic-bezier(0.16, 1, 0.3, 1)
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0)
}