/* Custom Design System & CSS stylesheet for Shutaf Landing Page */

:root {
    --primary-bg: #0f172a;
    --secondary-bg: #1e293b;
    --accent-color: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --success-color: #4ade80;
    --success-gradient: linear-gradient(135deg, #4ade80 0%, #2dd4bf 100%);
    --error-color: #f87171;
    --error-gradient: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 0 30px rgba(56, 189, 248, 0.2);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Glowing Background Blobs */
.bg-fixed-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.25;
}

.glow-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #38bdf8;
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #818cf8;
}

.glow-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: #4ade80;
    opacity: 0.1;
}

/* Typography & Layout elements */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

/* Navigation Header */
.navbar-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span span {
    color: var(--accent-color);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

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

.nav-cta {
    display: flex;
    gap: 12px;
}

/* Main Container */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

/* Section Header Shared */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.sub-badge {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hero-content h1 {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-lead {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    width: 100%;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

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

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-item-separator {
    height: 40px;
    width: 1px;
    background: var(--glass-border);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Hero Mockup (Mobile View representation) */
.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
}

.mockup-frame-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.mockup-card-main {
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.mockup-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--success-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success-color);
}

.mockup-title h3 {
    font-size: 16px;
    font-weight: 700;
}

.mockup-title p {
    font-size: 12px;
    color: var(--text-secondary);
}

.mockup-action-icon {
    color: var(--text-secondary);
}

.mockup-exercise {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exercise-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.exercise-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.sets-row {
    display: flex;
    gap: 10px;
}

.set-bubble {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.set-bubble:hover {
    border-color: var(--accent-color);
    color: white;
}

.set-bubble.active {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(56, 189, 248, 0.05);
}

.set-bubble.completed {
    background: var(--success-gradient);
    border-color: transparent;
    color: #0f172a;
}

/* Simulated Rest Timer */
.mockup-timer-bar {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timer-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--success-color);
}

.timer-progress {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

#timer-progress-fill {
    height: 100%;
    background: var(--success-color);
    transition: width 1s linear;
}

.mockup-hint {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    align-items: center;
}

.mockup-hint i {
    color: var(--accent-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #0f172a;
}

.bg-gradient-blue { background: var(--accent-gradient); }
.bg-gradient-green { background: var(--success-gradient); }
.bg-gradient-purple { background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%); }
.bg-gradient-orange { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Coach Section layout */
.coach-dashboard-display {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.coach-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.benefit-item {
    display: flex;
    gap: 20px;
}

.benefit-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.benefit-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Coach Dashboard Mockup */
.mockup-card-coach {
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coach-mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.coach-mockup-header h3 {
    font-size: 17px;
    font-weight: 700;
}

.badge-active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 600;
}

.trainees-list-mock {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trainee-row-mock {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.trainee-row-mock.active {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.03);
}

.trainee-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.trainee-details {
    flex: 1;
}

.trainee-details h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.trainee-details p {
    font-size: 11px;
    color: var(--text-secondary);
}

.badge-status-green {
    color: var(--success-color);
    background: rgba(74, 222, 128, 0.1);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-status-red {
    color: var(--error-color);
    background: rgba(248, 113, 113, 0.1);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.coach-actions-mock {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* 5x5 Program Section */
.program-5x5-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
}

.program-5x5-info-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.program-5x5-info-card h3 {
    font-size: 22px;
    font-weight: 700;
}

.program-5x5-info-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

.workout-comparison {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workout-a-box, .workout-b-box {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.workout-a-box h5, .workout-b-box h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.workout-a-box ul, .workout-b-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workout-a-box li, .workout-b-box li {
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.workout-a-box li i, .workout-b-box li i {
    color: var(--success-color);
}

.chart-container-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-header h3 i {
    color: var(--accent-color);
}

.chart-header span {
    font-size: 12px;
    color: var(--text-secondary);
}

.chart-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
}

/* Scenarios Section */
.scenarios-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.scenario-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scenario-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.scenario-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 16px;
}

.scenario-meta h4 {
    font-size: 15px;
    font-weight: 700;
}

.role-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.trainee-badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
}

.coach-badge {
    background: rgba(167, 139, 250, 0.1);
    color: #c084fc;
}

.mix-badge {
    background: rgba(74, 222, 128, 0.1);
    color: var(--success-color);
}

.scenario-story {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Call to Action Section */
.cta-section {
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15) 0%, rgba(129, 140, 248, 0.05) 50%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
}

.cta-content p {
    font-size: 17px;
    color: var(--text-secondary);
}

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

/* Footer styling */
.landing-footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 24px;
    background: rgba(15, 23, 42, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
}

.creator {
    font-size: 14px;
    color: var(--text-secondary);
}

.creator a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.creator a:hover {
    text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .landing-container {
        gap: 80px;
        padding-top: 100px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .coach-dashboard-display {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .scenarios-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .program-5x5-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .landing-container {
        padding: 90px 16px 40px;
        gap: 60px;
    }

    .navbar .nav-links {
        display: none; /* Hide standard nav on mobile */
    }

    .nav-btn-login {
        display: none !important; /* Hide secondary login button on mobile to save space */
    }
    
    .hero-content h1 {
        font-size: 38px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
    }

    .stat-item-separator {
        display: none; /* Hide separator line when stacked vertically */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .coach-actions-mock {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .coach-actions-mock .btn {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
