:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow: hidden;
    background-color: #030305;
}

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

#vanta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: saturate(1.2) contrast(1.1);
}

/* Smooth Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* GSAP will animate left/top. No transition on left/top to avoid lag */
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.3s, 
                border-color 0.3s;
    will-change: transform, width, height, left, top;
}

.cursor-outline.hovering {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
}

.cursor-dot.hovering {
    opacity: 0;
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.tilt-wrap {
    transform-style: preserve-3d;
}

/* Premium VisionOS style Glass Panel */
.glass-panel {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.4) 0%, rgba(10, 10, 15, 0.6) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    padding: 3.5rem;
    width: 100%;
    min-width: 420px;
    max-width: 440px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                inset 0 -1px 0 rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
}

.glass-border {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.08) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.5rem;
    transform: translateZ(60px);
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.logo-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #a5b4fc, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(165, 180, 252, 0.3));
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    transform: translateZ(40px);
    letter-spacing: -0.01em;
}

/* Primary Button Container for Magnetic Effect */
.btn-container {
    width: 100%;
    transform: translateZ(70px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guard-btn {
    position: relative;
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5),
                inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.guard-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    opacity: 0.85;
    transition: opacity 0.4s;
    z-index: 0;
}

.guard-btn:hover::before {
    opacity: 1;
}

.guard-btn .btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.guard-btn i {
    font-size: 1.4rem;
}

.guard-btn:hover {
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.5),
                inset 0 1px 1px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hover gradient following mouse */
.hover-gradient {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.guard-btn:hover .hover-gradient {
    opacity: 1;
}

/* Divider */
.divider {
    width: 100%;
    margin: 2.5rem 0 1.5rem;
    display: flex;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 500;
    transform: translateZ(30px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.divider span {
    padding: 0 1.5rem;
}

/* Platform Buttons */
.platforms {
    display: flex;
    width: 100%;
    gap: 0.8rem;
    transform: translateZ(50px);
}

.platform-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.2rem 0.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.platform-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.platform-btn i {
    font-size: 1.7rem;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-btn span {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.4s;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.platform-btn:hover::before {
    opacity: 1;
}

.platform-btn:hover span {
    opacity: 1;
}

/* Subtle glowing effects for brands */
.platform-btn.item-shop:hover i { 
    color: #f97316; 
    filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.4));
}
.platform-btn.gamesatis:hover i { 
    color: #3b82f6; 
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
}
.platform-btn.kabasakal:hover i { 
    color: #10b981; 
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.4));
}

@media (max-width: 480px) {
    .glass-panel {
        padding: 2.5rem 1.5rem;
        min-width: unset;
    }
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    * {
        cursor: auto !important;
    }
}
