@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #a855f7;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent-gold: #f59e0b;
    --glass: rgba(24, 24, 27, 0.7);
    --border: rgba(39, 39, 42, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hide system cursor ONLY when custom cursor is active (Desktop) */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {

    body,
    a,
    button,
    .btn,
    .glass-card {
        cursor: none !important;
    }
}




h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding-inline: 2rem;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

@media (hover: hover) {
    .glass-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(59, 130, 246, 0.1),
                transparent 40%);
        opacity: 0;
        transition: opacity 0.5s;
        pointer-events: none;
    }

    .glass-card:hover::before {
        opacity: 1;
    }

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

/* Flat state for touch devices */
@media (hover: none) {
    .glass-card {
        border-color: var(--border);
    }
}



/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--border);
}

/* Sections */
section {
    padding: 1rem 0;
    margin-top: 0;
}

.stack-vertical {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.stack-vertical .glass-card {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Specific Component Styles */
.badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hardware-card {
    border-left: 4px solid var(--accent-gold);
}

.hardware-spec {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

/* Custom Cursor - Hidden by Default */
#cursor-dot {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: width 0.3s ease, height 0.3s ease, transform 0.1s ease-out;
}

/* Enable Cursor Only on Desktop (Large Screen + Hover Support) */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    #cursor-dot {
        display: block;
    }

    .cursor-hover #cursor-dot {
        width: 20px;
        height: 20px;
        background: var(--primary);
        box-shadow: 0 0 20px var(--primary-glow);
    }
}





/* Click Ripple */
.ripple {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    z-index: 9998;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Background Glow */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.15), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1), transparent 30%);
    z-index: -1;
    pointer-events: none;
}

/* Unbox Logic */
.unboxable {
    position: relative;
    overflow: hidden;
}

.unbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.unbox-content {
    filter: blur(10px);
    transition: all 0.5s ease;
    transform: scale(0.95);
}

.unboxed .unbox-overlay {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.unboxed .unbox-content {
    filter: blur(0);
    transform: scale(1);
}


/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-inline: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 6rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .glass-card {
        padding: 1.5rem;
    }
}