:root {
    --bg-color: #050508;
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff00ff;
    --glass-bg: rgba(10, 10, 15, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: #fff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 2rem 0;
}

/* ========================================= */
/* Boot Screen (Loading) */
/* ========================================= */
.site-boot {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #020203;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s cubic-bezier(0.8, 0, 0.2, 1), visibility 1.5s ease-out;
}

.site-boot.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-boot__inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gaspar-brand {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 10vw;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    opacity: 0;
    animation: voidStrobe 1.3s steps(1) forwards;
    animation-delay: 1.2s;
}

.gaspar-product {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 12vw;
    text-transform: uppercase;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 3px #ff0033;
    text-shadow: 0 0 40px rgba(255, 0, 51, 0.8), 0 0 10px rgba(255,0,51,0.5);
    margin: 0;
    opacity: 0;
    animation: loveZoom 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 2.5s;
}

@keyframes voidStrobe {
    0%   { opacity: 1; color: #ff0055; transform: scale(1); }
    5%   { opacity: 1; color: #00f3ff; transform: scale(1.1); font-family: 'Orbitron', sans-serif;}
    10%  { opacity: 0; }
    15%  { opacity: 1; color: #fff; transform: scale(0.9); }
    20%  { opacity: 1; color: #ffeb3b; transform: scale(1.2); letter-spacing: -2px; }
    25%  { opacity: 0; }
    30%  { opacity: 1; color: #ff0055; transform: scale(1); font-family: 'Inter', sans-serif;}
    35%  { opacity: 1; color: transparent; -webkit-text-stroke: 4px #00f3ff; transform: scale(1.5); }
    40%  { opacity: 0; }
    45%  { opacity: 1; color: #fff; transform: scale(1); }
    50%  { opacity: 1; color: #ff0055; transform: scale(1.3); }
    55%  { opacity: 0; }
    60%  { opacity: 1; color: #00f3ff; transform: scale(0.8); font-family: 'Orbitron', sans-serif;}
    65%  { opacity: 1; color: #fff; transform: scale(1.1); letter-spacing: 10px;}
    70%  { opacity: 0; }
    75%  { opacity: 1; color: #ffeb3b; transform: scale(1); letter-spacing: 0px;}
    80%  { opacity: 1; color: transparent; -webkit-text-stroke: 4px #ff0055; transform: scale(1.4); font-family: 'Inter', sans-serif;}
    85%  { opacity: 0; }
    90%  { opacity: 1; color: #fff; transform: scale(1.2); text-shadow: 0 0 20px #fff; }
    95%  { opacity: 1; color: #00f3ff; transform: scale(1); text-shadow: 0 0 40px #00f3ff; }
    100% { opacity: 0; }
}

@keyframes loveZoom {
    0% { opacity: 0; transform: scale(0.7); filter: blur(10px) brightness(3); }
    15% { opacity: 1; filter: blur(0px) brightness(1.5); }
    100% { opacity: 1; transform: scale(1.1); filter: blur(0px) brightness(1); }
}

.seq-text {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 8vw;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    opacity: 0;
}

.seq-1 { color: #00f3ff; animation: seqFlash 0.2s forwards; animation-delay: 0.0s; }
.seq-2 { color: #ffeb3b; animation: seqFlash 0.2s forwards; animation-delay: 0.2s; font-family: 'Inter', sans-serif; }
.seq-3 { color: transparent; -webkit-text-stroke: 2px #ff0055; animation: seqFlash 0.2s forwards; animation-delay: 0.4s; font-size: 9vw; }
.seq-4 { color: #fff; animation: seqFlash 0.2s forwards; animation-delay: 0.6s; }
.seq-5 { color: #ff0055; animation: seqFlash 0.2s forwards; animation-delay: 0.8s; font-family: 'Inter', sans-serif; font-size: 9vw; }
.seq-6 { color: transparent; -webkit-text-stroke: 2px #00f3ff; animation: seqFlash 0.2s forwards; animation-delay: 1.0s; }

@keyframes seqFlash {
    0% { opacity: 1; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    99% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; }
}

/* ========================================= */
/* Top Navigation */
/* ========================================= */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    z-index: 100;
    pointer-events: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-btn-text {
    color: #bbb;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-btn-text:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.nav-btn-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn-download:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.apple-logo {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* ========================================= */
/* Symmetrical LED Background System */
/* ========================================= */

.led-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.led {
    position: absolute;
    top: -10%;
    width: 4px;
    height: 120%;
    opacity: 0.7;
    will-change: transform, opacity;
}

.led-cyan {
    background: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
}

.led-magenta {
    background: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
}

/* Animations restored with GPU acceleration */
.led-fast {
    animation: pulse-fast 2s infinite alternate;
}
.led-slow {
    animation: pulse-slow 6s infinite alternate;
}
.led-flicker {
    animation: flicker 4s infinite;
}

@keyframes pulse-fast {
    0% { opacity: 0.3; transform: scaleX(1) translateZ(0); }
    100% { opacity: 0.9; transform: scaleX(2) translateZ(0); }
}

@keyframes pulse-slow {
    0% { opacity: 0.4; transform: translateZ(0); }
    100% { opacity: 0.8; transform: translateZ(0); }
}

@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 0.9; transform: translateZ(0); }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.2; transform: translateZ(0); }
}

.cyber-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    perspective: 1000px;
    transform: rotateX(60deg) translateY(-100px) scale(2);
    transform-origin: top;
    /* Animation removed for performance (prevents heavy GPU usage on Macs) */
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

/* ========================================= */
/* Glassmorphism Main Content */
/* ========================================= */

.glass-panel {
    position: relative;
    z-index: 10;
    /* Original Fake Glassmorphism */
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.9),
        rgba(5, 5, 10, 0.95)
    );
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 4rem;
    text-align: center;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

/* ========================================= */
/* WebGL Liquid Glass Override */
/* ========================================= */
.liquid-panel {
    background: transparent !important;
    overflow: hidden;
}

/* Ensure all children sit above the WebGL canvas */
.liquid-panel > * {
    position: relative;
    z-index: 1;
}

/* Apply text distortion ONLY to the inner panel wrapper */
.liquid-panel > .panel-inner {
    filter: url(#liquid-text-filter);
    transform: translateZ(0); /* Hardware acceleration for smooth filter render */
}

/* SAFARI HOTFIX: Disable the SVG filter ONLY on Safari to prevent text disappearance */
@supports (background: -webkit-named-image(i)) {
    .liquid-panel > .panel-inner {
        filter: none !important;
    }
}

.top-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.1);
    margin: 0 auto 1.5rem auto;
    background: #000;
}
.top-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@font-face {
    font-family: 'SEGA';
    src: url('SEGA.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.logo-text {
    font-family: 'SEGA', sans-serif;
    font-size: 2rem;
    letter-spacing: 4px;
    color: #ff003c;
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.6);
    margin-bottom: 0.5rem;
}

h1.glitch {
    font-family: 'SEGA', sans-serif;
    font-size: 4rem;
    font-weight: normal;
    margin: 0;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
    position: relative;
    display: inline-block;
    color: #fff;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: #aaa;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.content p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-magenta);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ========================================= */
/* App Store Badge */
/* ========================================= */

.app-store-badge {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.app-store-badge:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.app-store-badge svg {
    width: 28px;
    height: 35px;
    fill: #fff;
    margin-right: 12px;
}

.app-store-badge .badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.app-store-badge .small-text {
    font-size: 0.65rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2px;
}

.app-store-badge .big-text {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.5px;
}

.platforms {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 2px;
}

/* ========================================= */
/* Screenshots Slider */
/* ========================================= */

.app-screenshots {
    margin: 3rem 0 2rem 0;
    width: 100%;
    position: relative;
}

.screenshots-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.screenshots-container::-webkit-scrollbar {
    display: none;
}

.promo-card {
    flex: 0 0 85%;
    border-radius: 20px;
    padding: 30px 20px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    scroll-snap-align: center;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.promo-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.2);
}

.promo-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    text-align: center;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.promo-text p {
    color: var(--neon-cyan);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.promo-device {
    width: 95%;
    max-width: 320px;
    background: #050505;
    border-radius: 20px 20px 0 0;
    border: 6px solid #1a1a2e;
    border-bottom: none;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    min-height: 250px;
}

/* Single Screenshot Overrides */
.single-screenshot-view .screenshots-container {
    justify-content: center;
    padding-bottom: 0;
}
.single-screenshot-view .promo-card {
    flex: 0 0 95%;
    max-width: 700px;
}
.single-device {
    max-width: 90%;
    border-radius: 20px;
    border-bottom: 6px solid #1a1a2e;
    margin-bottom: 30px;
}

.promo-device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.slider-hint {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--neon-magenta);
    letter-spacing: 4px;
    margin-top: 5px;
    opacity: 0.7;
    animation: pulse-slow 3s infinite alternate;
}

/* ========================================= */
/* Tech Specs & Footer */
/* ========================================= */

.tech-specs {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
    font-size: 0.85rem;
    color: #888;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border-left: 2px solid var(--neon-cyan);
}

.spec-val {
    color: #ddd;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

/* ========================================= */
/* Pricing Cards */
/* ========================================= */

.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background-color: var(--neon-cyan);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

input:checked + .slider {
    background-color: rgba(255, 235, 59, 0.1);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #ffeb3b;
    box-shadow: 0 0 10px #ffeb3b;
}

.pricing-cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    width: 280px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.2);
}

.card-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.price span {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}

#basic-price, #pro-price {
    font-size: 3rem;
    color: #fff;
    font-weight: 700;
}

.or-yearly {
    display: block;
    font-size: 0.8rem !important;
    color: var(--neon-cyan) !important;
    margin-top: 0.5rem;
}

.card-features {
    text-align: left;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.card-features p {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.basic-btn {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}
.basic-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.pro-btn {
    background: #ffeb3b;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.4);
}
.pro-btn:hover {
    box-shadow: 0 0 30px rgba(255, 235, 59, 0.8);
    transform: scale(1.05);
}

.token-btn {
    background: transparent;
    color: #ff9800;
    border: 1px solid #ff9800;
}
.token-btn:hover {
    background: #ff9800;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
}

.badge {
    display: inline-block;
    background: #ffeb3b;
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

/* Glow Borders */
.basic-card { border-color: rgba(0, 243, 255, 0.3); }
.basic-card:hover { border-color: var(--neon-cyan); }
.pro-card { border-color: rgba(255, 235, 59, 0.3); }
.pro-card:hover { border-color: #ffeb3b; }
.token-card { border-color: rgba(255, 152, 0, 0.3); }
.token-card:hover { border-color: #ff9800; }

footer {
    margin-top: 3rem;
    padding-bottom: 1.5rem;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: #ccc;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.footer-link {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.footer-divider {
    color: #444;
}

.footer-text {
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    h1.glitch { font-size: 2.5rem; }
    .features { flex-direction: column; gap: 1rem; }
    .glass-panel { padding: 2rem; }
    .spec-row { flex-direction: column; gap: 0.3rem; }
    .main-nav { padding: 1rem; justify-content: space-between; gap: 1rem; }
    .nav-links { gap: 0.8rem; flex-wrap: wrap; }
    .nav-btn-text { font-size: 0.8rem; }
}
