/* Modern Dark Tech Theme */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --accent: #C9A227;
    --accent-glow: rgba(201, 162, 39, 0.4);
    --neon-blue: #00F0FF;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- WebGL Background --- */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 60ch;
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-pad {
    padding: 120px 0;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    border: none;
    /* Ensure no default border */
}

.btn-primary {
    background: white;
    color: black;
    /* Text color for primary button */
    padding: 12px 24px;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: var(--accent);
    color: black;
    /* Keep text black on hover */
}

.btn-primary.big {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-text {
    color: white;
    /* Ensure text is visible on dark backgrounds */
    padding: 0;
    /* Remove padding as flex gap handles spacing */
}

.btn-primary .btn-text {
    color: black;
    /* Override for text inside primary button (white background) */
}

.btn-text:hover .arrow-down {
    transform: translateY(4px);
}

.arrow-down {
    display: inline-block;
    transition: transform 0.2s;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    align-items: center;
}

/* Phone Mockup */
.phone-frame {
    width: 280px;
    height: 560px;
    border: 8px solid #333;
    border-radius: 40px;
    background: #000;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.1s;
    z-index: 30;
    /* Ensure above marquee */
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

/* Screen Content (Infographic) */
.screen-content {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scan-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

.hud-container {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 80%;
}

/* Body Scan Visual */
.body-scan-visual {
    width: 140px;
    height: 180px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.body-figure {
    position: relative;
    width: 100px;
    height: 160px;
}

.body-figure svg {
    width: 100%;
    height: 100%;
    fill: rgba(0, 255, 255, 0.1);
    stroke: #00ffff;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

/* Joints */
.joint {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px #00ffff;
    z-index: 10;
}

/* Joint Positions for SVG */
.j-shoulder-l {
    top: 25%;
    left: 32%;
}

.j-shoulder-r {
    top: 25%;
    right: 32%;
}

.j-elbow-l {
    top: 40%;
    left: 28%;
}

.j-elbow-r {
    top: 40%;
    right: 28%;
}

.j-hip-l {
    top: 45%;
    left: 38%;
}

.j-hip-r {
    top: 45%;
    right: 38%;
}

.j-knee-l {
    top: 70%;
    left: 38%;
}

.j-knee-r {
    top: 70%;
    right: 38%;
}

.scan-beam {
    width: 100%;
    height: 2px;
    background: #00ff88;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 15px #00ff88;
    animation: scanMotion 3s ease-in-out infinite;
    z-index: 10;
}

.measure-line {
    position: absolute;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: measureFade 3s ease-in-out infinite;
}

.measure-line span {
    background: #000;
    padding: 2px 4px;
    font-size: 10px;
    color: #00ff88;
    border-radius: 4px;
    border: 1px solid #00ff88;
}

.m-shoulder {
    width: 60px;
    top: 45px;
    /* Adjusted relative to container */
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.5s;
}

.m-leg {
    width: 40px;
    top: 120px;
    left: 70%;
    transform: rotate(90deg);
    animation-delay: 1.5s;
}

@keyframes scanMotion {

    0%,
    100% {
        top: 10%;
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }

    50% {
        top: 90%;
    }
}

@keyframes measureFade {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Status */
.status-pill {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    color: #00ffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Stats */
.stats-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
}

.bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #00ff88);
    border-radius: 3px;
    width: 0%;
    /* Animated */
    animation: barFill 2s ease-out forwards;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.p-85 {
    animation-delay: 0.2s;
    --target-width: 85%;
}

.p-92 {
    animation-delay: 0.4s;
    --target-width: 92%;
}

.p-78 {
    animation-delay: 0.6s;
    --target-width: 78%;
}

/* Animations */
@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes barFill {
    from {
        width: 0%;
    }

    to {
        width: var(--target-width);
    }
}

/* Removed old image styles */
.app-mockup,
.ui-overlay,
.hero-image-container,
.hero-mockup,
.skeleton-ui,
#skeleton-canvas {
    display: none;
}

.ui-overlay {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px;
    border-radius: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    text-align: center;
}

/* --- Marquee --- */
.marquee-container {
    background: var(--accent);
    color: black;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    transform: rotate(-2deg) scale(1.05);
    z-index: 20;
}

.marquee-content {
    display: flex;
    gap: 32px;
    white-space: nowrap;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.separator {
    opacity: 0.4;
}

/* --- Features --- */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s ease, border-color 0.3s;
}

.glass-panel:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.graphic-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
}

.graphic-icon svg {
    width: 32px;
    height: 32px;
}

/* --- Parallax Section --- */
.parallax-section {
    position: relative;
    padding: 160px 0;
    overflow: hidden;
}

/* --- Bento Grid (Sports) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 400px;
    gap: 24px;
    margin-top: 60px;
}

.bento-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-card:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.bento-card:hover .card-bg {
    transform: scale(1.1);
}

.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
}

.card-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.bento-card .sport-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.bento-card:hover .sport-icon {
    transform: translateY(0);
    opacity: 1;
}

.bento-card h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: white;
}

.bento-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(10px);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.bento-card:hover p {
    transform: translateY(0);
    opacity: 1;
    color: white;
}

/* Specific Card Sizes/Layouts if needed, currently uniform */
.golf-card {
    grid-column: span 2;
}

.tennis-card {
    grid-column: span 2;
}

.yoga-card {
    grid-column: span 2;
}

.pilates-card {
    grid-column: span 2;
}

/* --- Pricing Section --- */
.pricing-section {
    position: relative;
    z-index: 10;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
    /* Align cards vertically */
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    border: 1px solid var(--accent);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
    transform: scale(1.05);
    z-index: 2;
    background: rgba(255, 215, 0, 0.05);
    /* Subtle gold tint */
}

.pricing-card.popular:hover {
    transform: scale(1.08);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: black;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.plan-header .price {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
}

.plan-header .price span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.plan-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.feature-list .check {
    color: var(--accent);
    font-weight: bold;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* --- CTA --- */
/* --- Immersive CTA --- */
.final-cta-section {
    position: relative;
    padding: 160px 0;
    overflow: hidden;
    text-align: center;
}

.cta-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 10s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    left: 20%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--neon-blue);
    bottom: -50px;
    right: 20%;
    animation-delay: -5s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

.cta-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.cta-sub {
    font-size: 1.5rem;
    margin-bottom: 48px;
    color: rgba(255, 255, 255, 0.8);
}

.glow-effect {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
}

.app-store-badge {
    margin-top: 32px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Legal Pages --- */
.legal-panel {
    max-width: 900px;
    margin: 0 auto;
}

.legal-panel h1 {
    margin-bottom: 0.75rem;
}

.legal-panel p {
    margin-bottom: 1rem;
}

.legal-section {
    margin-top: 1.75rem;
}

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0;
    background: #000;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 20px;
}

.footer-grid .links {
    display: flex;
    gap: 32px;
}

.footer-grid .links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-grid .links a:hover {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .phone-frame {
        transform: none;
        margin-top: 60px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .golf-card,
    .tennis-card,
    .yoga-card,
    .pilates-card {
        grid-column: span 1;
        height: 300px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-grid .links {
        justify-content: center;
        flex-direction: column;
        gap: 16px;
    }

    h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Hide nav links on mobile for simplicity */
    }
}