/* 
========================================
   GymOS Theme - CSS Variables
======================================== 
*/
:root {
    /* Color Palette */
    --bg-dark: #121212;
    --bg-surface: #1e1e1e;
    --bg-surface-light: #2a2a2a;
    --accent-neon: #cef952;
    --accent-hover: #b8e040;
    --text-main: #fafafa;
    --text-muted: #a0a0a0;
    --border-color: #333333;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 
========================================
   Reset & Base
======================================== 
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 100px 0;
}

.section-darker {
    background-color: var(--bg-surface);
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

/* 
========================================
   Typography
======================================== 
*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.accent {
    color: var(--accent-neon);
}

.accent-text {
    color: var(--accent-neon);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* 
========================================
   Buttons & Links
======================================== 
*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-neon);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(206, 249, 82, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--accent-neon);
    color: var(--accent-neon);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-neon);
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-text svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn-text:hover svg {
    transform: translateX(4px);
}

/* 
========================================
   Navigation
======================================== 
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: all;
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* 
========================================
   Hero Section
======================================== 
*/
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18,18,18,0.7) 0%, rgba(18,18,18,0.95) 100%);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    padding: 0 24px;
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(206, 249, 82, 0.1);
    border: 1px solid rgba(206, 249, 82, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.accent-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-neon);
}

.hero-title {
    font-size: 5.5rem;
    line-height: 0.95;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-muted);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* 
========================================
   Marquee
======================================== 
*/
.marquee-container {
    background-color: var(--accent-neon);
    color: var(--bg-dark);
    padding: 16px 0;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.marquee-track span {
    text-transform: uppercase;
}

.marquee-track svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-dark);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 
========================================
   Features Section
======================================== 
*/
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: rgba(206, 249, 82, 0.5);
    transform: translateY(-5px);
}

.feature-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: grayscale(80%);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-img {
    filter: grayscale(0%);
}

.feature-content {
    padding: 32px;
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-content p {
    color: var(--text-muted);
}

/* 
========================================
   Programs Section
======================================== 
*/
.programs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.program-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    group: program;
}

.program-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.program-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover .program-img-wrapper img {
    transform: scale(1.05);
}

.program-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 32px 32px;
    background: linear-gradient(to top, rgba(18,18,18,0.95) 0%, rgba(18,18,18,0) 100%);
}

.program-info h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.program-info p {
    color: #ddd;
    margin-bottom: 20px;
}

/* 
========================================
   AI Planner Widget
======================================== 
*/
.ai-widget-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    align-items: center;
}

.ai-icon-container {
    width: 64px;
    height: 64px;
    background-color: rgba(206, 249, 82, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.ai-pulse-icon {
    color: var(--accent-neon);
    width: 32px;
    height: 32px;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.ai-widget-visual h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.ai-widget-visual p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.ai-widget-form {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.ai-step.active {
    display: block;
}

.ai-step h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.form-input {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-neon);
    background-color: rgba(206, 249, 82, 0.05);
}

.options-grid {
    display: grid;
    gap: 12px;
}

.ai-option {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.ai-option:hover {
    border-color: var(--accent-neon);
    background-color: rgba(206, 249, 82, 0.05);
}

#step-generating {
    text-align: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-neon);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

#step-generating p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-neon);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.result-header h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.plan-preview {
    background-color: var(--bg-surface-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-left: 3px solid var(--accent-neon);
}

.plan-preview strong {
    color: var(--text-main);
}

.result-cta p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
}

/* 
========================================
   Pricing Section
======================================== 
*/
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.price-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
}

.price-card.popular {
    border-color: var(--accent-neon);
    background-color: var(--bg-surface-light);
}

.price-card.popular:hover {
    border-color: var(--accent-hover);
    box-shadow: 0 10px 40px rgba(206, 249, 82, 0.1);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-neon);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
}

.price-card h4 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.price {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
}

.price span:first-child {
    font-size: 1.5rem;
    margin-top: 8px;
    margin-right: 4px;
    color: var(--text-muted);
}

.price span:last-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    align-self: flex-end;
    margin-bottom: 12px;
}

.price-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.price-features li svg {
    width: 18px;
    height: 18px;
    color: var(--accent-neon);
}

.price-features li.disabled {
    color: #555;
}

.price-features li.disabled svg {
    color: #555;
}

/* 
========================================
   Footer
======================================== 
*/
.footer {
    padding: 80px 0 40px;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-neon);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.socials {
    display: flex;
    gap: 16px;
}

.socials svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.socials svg:hover {
    color: var(--accent-neon);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* 
========================================
   Animations (Reveal)
======================================== 
*/
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 
========================================
   Responsive Design
======================================== 
*/
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .ai-widget-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero-title { font-size: 3.5rem; }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .features-grid, .programs-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.25rem; margin-bottom: 16px; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 32px; }
    
    .hero-cta { width: 100%; }
    .hero-cta .btn { width: 100%; }
    
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    
    .marquee-track { font-size: 1.2rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    
    .ai-widget-wrapper {
        padding: 24px 16px;
        gap: 32px;
    }
    
    .ai-widget-visual h2 { font-size: 2rem; }
    
    .ai-widget-form {
        padding: 24px 16px;
    }
    
    .ai-step h3 { font-size: 1.25rem; }
    .ai-option { font-size: 1rem; padding: 12px; }
    
    .price-card { padding: 32px 24px; }
    .price { font-size: 3rem; }
}

@media (max-width: 360px) {
    .hero-title { font-size: 1.85rem; }
    .nav-container { padding: 0 16px; }
    .brand-logo { font-size: 1.5rem; }
}
