/* --- BASE STYLES --- */
:root {
    --bg-dark: #000000;
    --text-light: #f5f5f7;
    --text-gray: #86868b;
    --accent-blue: #2997ff;
    --glass-bg: rgba(28, 28, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-light);
    overflow-x: hidden;
    background-color: var(--bg-dark);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* --- RINGS BACKGROUND --- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dust {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.rings-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.02);
}

.ring-1 {
    width: 40vw;
    height: 40vw;
    border-top-color: rgba(234, 179, 8, 0.3);
    border-bottom-color: rgba(234, 179, 8, 0.1);
    animation: rotate 20s infinite linear;
}

.ring-2 {
    width: 55vw;
    height: 55vw;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    animation: rotate 40s infinite linear reverse;
}

.ring-3 {
    width: 70vw;
    height: 70vw;
    border-width: 2px;
    border-left-color: rgba(255, 255, 255, 0.1);
    border-right-color: rgba(255, 255, 255, 0.1);
    animation: rotate 60s infinite linear;
}

.ring-4 {
    width: 85vw;
    height: 85vw;
    border: 1px dotted rgba(255, 255, 255, 0.1);
    animation: rotate 80s infinite linear reverse;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    backdrop-filter: blur(20px);
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.8rem; letter-spacing: 1px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; color: #ccc; transition: color 0.3s; }
.nav-links a:hover { color: #fff; }

/* --- SCROLL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- SECTIONS COMMON --- */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    box-sizing: border-box;
    position: relative;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

        h2 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            margin-bottom: 20px;
            background: linear-gradient(to right, #fff, #888);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-align: center;
        }p.lead {
    font-size: 1.5rem;
    color: var(--text-gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    line-height: 1.4;
}

/* --- HERO SECTION (Modified Orbit) --- */
.hero-orbit {
    perspective: 2000px;
    overflow: hidden;
    height: 100vh;
}

.hero-content {
    text-align: center;
    margin-bottom: 4rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.loaded .hero-content { opacity: 1; transform: translateY(0); }

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(5rem, 10vw, 10rem);
    margin: 0;
    letter-spacing: 2px;
    line-height: 0.9;
    text-shadow: 0 0 50px rgba(0,0,0,1);
}

.hero-subtitle { 
    color: #aaa; 
    font-size: 1.2rem; 
    margin-top: 20px; 
    position: relative;
    display: inline-block;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #aaa;
    animation: underline-slide 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1s;
}

@keyframes underline-slide {
    to { width: 100%; }
}

.text-underline-anim {
    position: relative;
    display: inline-block;
}

.reveal.active .text-underline-anim::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: currentColor;
    animation: underline-slide 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.4s;
}

.orbit-scene {
    position: relative;
    width: 300px;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.card {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: all 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center bottom;
    display: flex; flex-direction: column;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
}

.card-app { z-index: 10; transform: translateZ(0); }
.card-trainer { z-index: 5; transform: translateZ(-50px) scale(0.95); background: rgba(200,200,200,0.1); }
.card-shop { z-index: 5; transform: translateZ(-50px) scale(0.95); background: rgba(41, 151, 255, 0.2); }

.loaded .card-app { transform: translateZ(50px); }
.loaded .card-trainer { transform: translateX(-280px) translateZ(-100px) rotateY(-15deg); }
.loaded .card-shop { transform: translateX(280px) translateZ(-100px) rotateY(15deg); }

.card-body { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 4rem; }

/* Card Overlay & Hover Effects */
.card {
    border: 1px solid rgba(255,255,255,0.2); /* Slightly stronger border */
    overflow: hidden; /* Ensure overlay stays inside border radius */
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-text {
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 0.9;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    padding: 20px;
}

.card:hover .card-text {
    transform: translateY(0);
}

/* Shimmer Effect */
.card::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -100%; width: 300%;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.15) 50%, transparent 65%);
    transform: translateX(var(--shimmer-pos, 0%));
    transition: transform 0.1s ease-out;
    pointer-events: none;
    z-index: 15;
    mix-blend-mode: overlay;
}

/* --- FEATURE SECTIONS (Glass Cards) --- */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 60px;
    backdrop-filter: blur(30px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.glass-panel.trainer-panel, .glass-panel.app-panel {
    grid-template-columns: 0.7fr 1.3fr; /* More space for image */
}

/* --- SLIDE CONTENT (Trainer & App) --- */
.trainer-slide h3, .app-slide h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    color: #fff;
    transform: skewX(-10deg); /* Default tilted state for exit */
    transform-origin: left;
}

.trainer-slide.active h3, .app-slide.active h3 {
    transform: skewX(0deg); /* Reset to straight for entry */
    animation: title-tilt 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.7s;
}

@keyframes title-tilt {
    from { transform: skewX(0deg); }
    to { transform: skewX(-10deg); }
}

.trainer-slide ul li, .app-slide ul li {
    margin-bottom: 25px; /* Increased spacing */
    padding-left: 30px;
    position: relative;
    color: #ccc;
    font-size: 1.3rem; /* Increased font size */
    line-height: 1.4;
}

.trainer-slide ul li::before, .app-slide ul li::before {
    content: "•"; 
    color: #45cf82; /* GymGo Green */
    position: absolute; 
    left: 0;
    font-size: 1.5rem;
    line-height: 1.2rem;
}

.mockup-box {
    background: linear-gradient(135deg, #333, #111);
    border-radius: 20px;
    height: 400px;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: #555;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

#trainer-dashboard-img {
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform-origin 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Removed will-change to prevent blurriness on zoom */
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* --- SHOP GRID --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.product-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.3s;
    text-align: center;
}
.product-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.08); }

/* 3D Product Effect */
.product-card.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}
.product-card.tilt-card:hover {
    transform: perspective(1000px) translateY(-10px); /* Keep hover lift but maintain perspective */
}

.product-img-3d { 
    height: 200px; 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transform-style: preserve-3d; 
}

.product-img-3d img { 
    max-height: 180px; 
    width: auto; 
    transform: translateZ(20px); 
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); 
    transition: transform 0.3s;
}

/* --- APP SLIDES & CAROUSEL --- */
.app-slide {
    grid-area: stack;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.app-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1;
}

.app-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-img {
    position: absolute;
    width: 40%; /* Reduced size */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.5;
    z-index: 1;
    transform-style: preserve-3d;
}

.app-img.active {
    opacity: 1;
    z-index: 10;
    transform: translateZ(50px) scale(1.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

.app-img.next {
    opacity: 0.6;
    z-index: 5;
    transform: translateX(60%) translateZ(-50px) rotateY(-15deg) scale(0.9);
}

.app-img.prev {
    opacity: 0.6;
    z-index: 5;
    transform: translateX(-60%) translateZ(-50px) rotateY(15deg) scale(0.9);
}

.product-img { height: 200px; background: #111; border-radius: 10px; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #45cf82; /* GymGo Green */
    color: #000;
    border-radius: 12px;
    margin-top: 10px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(69, 207, 130, 0.3); /* Green Glow */
}

.btn:hover {
    transform: scale(1.05);
    color: #000;
    box-shadow: 0 0 30px rgba(69, 207, 130, 0.6);
}

/* Glass Flash Animation */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: glass-flash 7s infinite; /* Slower cycle */
}

@keyframes glass-flash {
    0% { left: -100%; }
    20% { left: 200%; } /* Slower movement across */
    100% { left: 200%; } /* Wait */
}

/* Trainer Slides */
.trainer-slide {
    grid-area: stack;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.trainer-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1;
}

/* --- SOCIAL PROOF --- */
.network-container {
    position: relative;
    width: 110%;
    margin-left: -5%;
    height: 450px;
    margin-top: 20px;
    margin-bottom: 20px;
    perspective: 1000px;
    overflow: visible;
}

.network-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.network-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    transform: translateZ(-50px); /* Push lines back slightly */
}

.network-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: default;
    transform-style: preserve-3d;
}

.network-node:hover {
    z-index: 100;
}

/* Animated pulse rings */
.pulse-ring {
    animation: pulseExpand 3s ease-out infinite;
    transform-origin: center;
}

@keyframes pulseExpand {
    0% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 0.1; }
    100% { opacity: 0; transform: scale(1.2); }
}

.node-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 2px solid var(--accent-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 
        0 0 20px rgba(41, 151, 255, 0.3),
        inset 0 0 20px rgba(41, 151, 255, 0.1),
        0 4px 15px rgba(0,0,0,0.4);
    margin-bottom: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(20px);
    position: relative;
}

.node-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(41, 151, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.network-node:hover .node-avatar::before {
    opacity: 1;
    animation: spinGlow 2s linear infinite;
}

@keyframes spinGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.network-node:hover .node-avatar {
    box-shadow: 
        0 0 60px rgba(41, 151, 255, 0.6),
        0 0 100px rgba(41, 151, 255, 0.3),
        inset 0 0 30px rgba(41, 151, 255, 0.2),
        0 8px 25px rgba(0,0,0,0.5);
    background: linear-gradient(145deg, #1f2942, #1a2747);
    transform: translateZ(50px) scale(1.15);
    border-color: #5af;
}

.node-stars { 
    display: none;
}

.elite-stars {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align to bottom so the arc looks right */
    gap: 8px;
    margin: 10px 0 20px;
    height: 60px;
}

.elite-stars span {
    color: #ffd700;
    display: inline-block;
    opacity: 0;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: starPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.elite-stars span:nth-child(1) { animation-delay: 0.2s; font-size: 1.5rem; --y: 10px; --r: -20deg; }
.elite-stars span:nth-child(2) { animation-delay: 0.3s; font-size: 2rem; --y: 0px; --r: -10deg; }
.elite-stars span:nth-child(3) { animation-delay: 0.4s; font-size: 2.8rem; --y: -10px; --r: 0deg; }
.elite-stars span:nth-child(4) { animation-delay: 0.5s; font-size: 2rem; --y: 0px; --r: 10deg; }
.elite-stars span:nth-child(5) { animation-delay: 0.6s; font-size: 1.5rem; --y: 10px; --r: 20deg; }

.elite-stars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    margin: 10px 0 20px;
    height: 60px;
}

.elite-stars span {
    color: #ffd700;
    display: inline-block;
    opacity: 0;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: starPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Smoother arc */
.elite-stars span:nth-child(1) { animation-delay: 0.2s; font-size: 1.5rem; --y: 15px; --r: -20deg; }
.elite-stars span:nth-child(2) { animation-delay: 0.3s; font-size: 2rem; --y: 5px; --r: -10deg; }
.elite-stars span:nth-child(3) { animation-delay: 0.4s; font-size: 2.8rem; --y: 0px; --r: 0deg; }
.elite-stars span:nth-child(4) { animation-delay: 0.5s; font-size: 2rem; --y: 5px; --r: 10deg; }
.elite-stars span:nth-child(5) { animation-delay: 0.6s; font-size: 1.5rem; --y: 15px; --r: 20deg; }

@keyframes starPop {
    0% { 
        opacity: 0; 
        transform: scale(0) translateY(20px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(var(--y)) rotate(var(--r)); 
    }
}

.node-stars span {
    display: inline-block;
    transform-origin: bottom center;
}

.network-node:hover .node-stars { opacity: 1; }

.node-name { font-weight: bold; color: #fff; font-size: 0.9rem; transform: translateZ(10px); }
.node-role { color: #888; font-size: 0.75rem; transform: translateZ(10px); }

.quote-bubble {
    position: absolute;
    top: -80px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px) scale(0.8) translateZ(60px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.quote-bubble::after {
    content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
    border-width: 6px 6px 0; border-style: solid; border-color: rgba(255,255,255,0.1) transparent transparent transparent;
}

.network-node:hover .quote-bubble { opacity: 1; transform: translateY(0) scale(1) translateZ(60px); }

/* --- PREMIUM STATS ROW --- */
.social-proof-header {
    text-align: center;
    margin-bottom: 15px;
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 15px auto 25px;
    max-width: 700px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.stat-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .stats-row {
        gap: 20px;
        flex-wrap: wrap;
    }
    .stat-divider {
        display: none;
    }
    .stat-item {
        flex: 1 1 40%;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .stat-suffix {
        font-size: 1rem;
    }
    
    /* Network Container Mobile */
    .network-container { 
        height: 350px;
        width: 100%;
        margin-left: 0;
    }
    .node-avatar { 
        width: 45px; 
        height: 45px; 
        font-size: 1.3rem; 
    }
    .node-name {
        font-size: 0.7rem;
    }
    .node-role {
        font-size: 0.6rem;
    }
    .quote-bubble { 
        display: none; /* Hide quotes on mobile for cleaner look */
    }
    
    /* Hide outer ring nodes on mobile */
    .network-node:nth-child(n+15) {
        display: none;
    }
    
    /* Vision Diagram Mobile */
    .vision-diagram {
        flex-direction: column;
        gap: 20px;
    }
    .node {
        width: 100px;
        height: 100px;
        font-size: 0.9rem;
    }
    .arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .network-container {
        height: 300px;
    }
    .node-avatar {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .node-name, .node-role {
        display: none; /* Hide text, show only avatars */
    }
    .stats-row {
        gap: 15px;
    }
    .stat-number {
        font-size: 1.4rem;
    }
    .stat-suffix {
        font-size: 0.9rem;
    }
    .stat-label {
        font-size: 0.6rem;
    }
}

/* --- VISION DIAGRAM --- */
.vision-diagram {
    display: flex; justify-content: center; align-items: center; gap: 40px; margin-top: 40px;
}
.node {
    width: 150px; height: 150px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: bold;
    background: rgba(0,0,0,0.5);
    position: relative;
}
.node.center { border-color: var(--accent-blue); box-shadow: 0 0 30px rgba(41, 151, 255, 0.2); }
.arrow { font-size: 2rem; color: var(--accent-blue); opacity: 0.5; }

/* --- FOOTER --- */
footer {
    padding: 60px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #050505;
    text-align: center;
    color: #666;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 900px) {
    .glass-panel, .glass-panel.trainer-panel { grid-template-columns: 1fr; padding: 30px; }
    .orbit-scene { transform: scale(0.7); }
    .loaded .card-trainer { transform: translateX(-120px) translateZ(-100px) rotateY(-10deg); }
    .loaded .card-shop { transform: translateX(120px) translateZ(-100px) rotateY(10deg); }
    h1 { font-size: 3.5rem; }
    
    /* Shop section mobile */
    #shop .product-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    #shop .product-img-3d {
        flex: none;
        height: 200px;
    }
    #shop .product-info h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    /* Header */
    .site-header {
        padding: 15px 20px;
    }
    .logo {
        font-size: 1.5rem;
    }
    .nav-links a {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    /* Hero */
    h1 { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    /* Orbit Scene - Mobile Carousel */
    .orbit-scene {
        transform: none !important;
        perspective: none;
        margin: 20px 0;
        height: 460px;
        width: 100%;
        position: relative;
        touch-action: pan-y pinch-zoom;
    }
    
    /* Mobile card base styles - force proper sizing */
    .orbit-scene .card {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 280px !important;
        height: 420px !important;
        transform: translate(-50%, -50%) scale(0.7) !important;
        opacity: 0;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 30px !important;
        overflow: hidden !important;
        -webkit-mask-image: -webkit-radial-gradient(white, black);
        mask-image: radial-gradient(white, black);
    }
    
    /* Better image quality on mobile cards */
    .orbit-scene .card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
        border-radius: 30px !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* First card visible by default before JS initializes */
    .loaded .orbit-scene .card-app {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1;
        z-index: 10;
    }
    
    .loaded .orbit-scene .card.hero-active {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1;
        z-index: 10;
    }
    .loaded .orbit-scene .card.hero-next {
        transform: translate(30%, -50%) scale(0.75) !important;
        opacity: 0.5;
        z-index: 5;
    }
    .loaded .orbit-scene .card.hero-prev {
        transform: translate(-130%, -50%) scale(0.75) !important;
        opacity: 0.5;
        z-index: 5;
    }
    
    /* Mobile: Always show text overlay at bottom (no dark bg) */
    .card .card-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
        align-items: flex-end;
        padding-bottom: 20px;
    }
    .card .card-text {
        transform: translateY(0);
        font-size: 1.8rem;
        text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    }
    
    /* Sections */
    section {
        padding: 60px 15px;
    }
    h2 {
        font-size: 2rem;
    }
    .lead {
        font-size: 1rem;
    }
    
    /* Glass panels - App Section */
    .glass-panel {
        padding: 20px;
        gap: 20px;
    }
    .glass-panel.app-panel {
        display: flex;
        flex-direction: column;
    }
    .glass-panel.app-panel .app-carousel {
        order: 2; /* Move carousel below text */
        height: 350px;
        margin-top: 20px;
    }
    .glass-panel.app-panel .feature-text-container {
        order: 1;
        min-height: auto;
    }
    .glass-panel h3 {
        font-size: 1.3rem;
    }
    .glass-panel ul li {
        font-size: 0.9rem;
    }
    
    /* App carousel */
    .app-carousel {
        height: 350px;
        position: relative;
    }
    .app-img {
        max-height: 320px;
    }
    
    /* Store badges */
    .store-badges img {
        height: 40px !important;
    }
    
    /* Trainer section */
    .trainer-panel .mockup-box img {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    /* Elite stars */
    .elite-stars {
        height: 50px;
    }
    .elite-stars span:nth-child(3) {
        font-size: 2rem;
    }
    .elite-stars span:nth-child(2),
    .elite-stars span:nth-child(4) {
        font-size: 1.5rem;
    }
    .elite-stars span:nth-child(1),
    .elite-stars span:nth-child(5) {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    /* Extra small */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1rem; }
    
    /* DO NOT scale orbit-scene - cards handle their own sizing */
    .orbit-scene {
        transform: none;
    }
    
    section {
        padding: 40px 10px;
    }
    
    .glass-panel {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 40px 15px;
    }
}
