:root {
    --primary: #00c896;
    --secondary: #0066ff;
    --accent: #ff6b35;
    --dark: #0d1117;
    --dark2: #161b22;
    --dark3: #21262d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --border: #30363d;
    --strength: #f97316;
    --yoga: #a855f7;
    --cardio: #3b82f6;
    --aerobic: #ec4899;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Navbar ===== */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-size: 1.4rem; font-weight: 800; color: var(--primary);
    display: flex; align-items: center; gap: 10px;
}
.logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 900; color: #000;
}
.nav-menu {
    display: flex; list-style: none; gap: 2rem; align-items: center;
}
.nav-menu a {
    color: var(--text-muted); text-decoration: none;
    font-weight: 500; transition: var(--transition);
}
.nav-menu a:hover { color: var(--primary); }
.back-btn {
    background: var(--dark3) !important;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}
.back-btn:hover { border-color: var(--primary) !important; color: var(--primary) !important; }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 100px 20px 60px;
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse at 20% 50%, rgba(0,200,150,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(0,102,255,0.08) 0%, transparent 60%);
    gap: 4rem;
    max-width: 1200px; margin: 0 auto;
}
.hero-bg-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.shape {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; background: var(--secondary); top: 50%; right: -100px; animation-delay: 3s; }
.shape-3 { width: 250px; height: 250px; background: var(--accent); bottom: -100px; left: 40%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content { flex: 1; animation: fadeInUp 0.8s ease; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(0,200,150,0.15);
    border: 1px solid rgba(0,200,150,0.3);
    color: var(--primary); padding: 0.4rem 1rem;
    border-radius: 20px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 4.5rem; font-weight: 900;
    color: white; line-height: 1.1; margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--primary); }
.hero-tagline {
    font-size: 1.2rem; color: var(--text-muted);
    max-width: 500px; line-height: 1.8; margin-bottom: 2rem;
}
.hero-download {
    margin-bottom: 2.5rem;
}
.btn-download {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--primary); color: #000;
    padding: 0.75rem 2rem; border-radius: 50px;
    font-weight: 700; font-size: 1rem;
    text-decoration: none; transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 200, 150, 0.35);
}
.btn-download:hover {
    background: #00e6ad;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 200, 150, 0.5);
}

.hero-stats {
    display: flex; gap: 2rem; flex-wrap: wrap;
}
.hero-stat {
    text-align: center;
    border-left: 2px solid var(--primary);
    padding-left: 1rem;
}
.hero-stat span {
    display: block; font-size: 2rem; font-weight: 800;
    color: var(--primary);
}
.hero-stat p { font-size: 0.8rem; color: var(--text-muted); }

/* Phone Mockup */
.hero-phone { flex: 0 0 280px; animation: fadeInUp 0.8s ease 0.2s both; }
.phone-mockup {
    width: 260px; height: 520px;
    background: var(--dark2);
    border-radius: 40px;
    border: 2px solid var(--border);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden; position: relative;
    margin: 0 auto;
}
.phone-mockup::before {
    content: ''; position: absolute;
    top: 16px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 6px;
    background: var(--dark3); border-radius: 3px; z-index: 10;
}
.phone-screen { padding: 40px 16px 16px; height: 100%; display: flex; flex-direction: column; gap: 12px; }
.phone-header {
    display: flex; align-items: center; gap: 8px;
    color: var(--primary); font-weight: 700; font-size: 1rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.phone-cards {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; flex: 1;
}
.phone-card {
    border-radius: 16px; padding: 16px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; font-size: 0.75rem; font-weight: 600;
    color: white; cursor: pointer;
    transition: var(--transition);
    animation: pulse-card 3s ease-in-out infinite;
}
.phone-card i { font-size: 1.5rem; }
.phone-card.strength { background: linear-gradient(135deg, #f97316, #ea580c); animation-delay: 0s; }
.phone-card.yoga { background: linear-gradient(135deg, #a855f7, #7c3aed); animation-delay: 0.5s; }
.phone-card.cardio { background: linear-gradient(135deg, #3b82f6, #1d4ed8); animation-delay: 1s; }
.phone-card.aerobic { background: linear-gradient(135deg, #ec4899, #be185d); animation-delay: 1.5s; }
@keyframes pulse-card {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ===== Sections ===== */
.section { padding: 80px 20px; }
.section-title {
    font-size: 2.5rem; font-weight: 800;
    text-align: center; margin-bottom: 1rem;
    color: white; position: relative;
}
.section-title::after {
    content: ''; display: block;
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px; margin: 12px auto 0;
}
.section-subtitle {
    text-align: center; color: var(--text-muted);
    max-width: 600px; margin: 0 auto 3rem;
    font-size: 1.05rem; line-height: 1.7;
}

/* ===== App Flow ===== */
.flow-section { background: var(--dark2); }
.flow-steps {
    display: flex; align-items: center;
    gap: 0.5rem; flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
}
.flow-step {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: 16px; padding: 1.5rem;
    text-align: center; flex: 1; min-width: 150px; max-width: 180px;
    transition: var(--transition);
}
.flow-step:hover { border-color: var(--primary); transform: translateY(-5px); }
.flow-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px; display: flex;
    align-items: center; justify-content: center;
    font-size: 1.3rem; margin: 0 auto 1rem; color: #000;
}
.flow-step h3 { font-size: 0.95rem; margin-bottom: 0.5rem; color: white; }
.flow-step p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.flow-arrow { color: var(--primary); font-size: 1.2rem; flex-shrink: 0; }

/* ===== Modules ===== */
.modules-section { background: var(--dark); }
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; margin-top: 3rem;
}
.module-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 2rem;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.module-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
}
.strength-card::before { background: linear-gradient(90deg, #f97316, #ea580c); }
.yoga-card::before { background: linear-gradient(90deg, #a855f7, #7c3aed); }
.cardio-card::before { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.aerobic-card::before { background: linear-gradient(90deg, #ec4899, #be185d); }

.module-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.strength-card:hover { border-color: #f97316; }
.yoga-card:hover { border-color: #a855f7; }
.cardio-card:hover { border-color: #3b82f6; }
.aerobic-card:hover { border-color: #ec4899; }

.module-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: white; margin-bottom: 1.2rem;
}
.strength-card .module-icon { background: linear-gradient(135deg, #f97316, #ea580c); }
.yoga-card .module-icon { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.cardio-card .module-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.aerobic-card .module-icon { background: linear-gradient(135deg, #ec4899, #be185d); }

.module-card h3 { font-size: 1.3rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.module-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.6; }
.module-details { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.detail-row {
    display: flex; align-items: flex-start; gap: 0.75rem;
    font-size: 0.85rem; color: var(--text-muted);
}
.detail-row i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.module-inputs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.input-badge {
    background: var(--dark3); border: 1px solid var(--border);
    padding: 0.25rem 0.75rem; border-radius: 20px;
    font-size: 0.78rem; color: var(--text-muted);
}

/* ===== Export ===== */
.export-section { background: var(--dark2); }
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem; margin-top: 3rem;
}
.export-card {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem; text-align: center;
    transition: var(--transition);
}
.export-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.export-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 1rem;
}
.export-icon.pdf { background: rgba(239,68,68,0.2); color: #ef4444; }
.export-icon.png { background: rgba(59,130,246,0.2); color: #3b82f6; }
.export-icon.new { background: rgba(0,200,150,0.2); color: var(--primary); }
.export-card h3 { color: white; margin-bottom: 0.5rem; }
.export-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.export-card code {
    background: var(--dark); padding: 2px 6px;
    border-radius: 4px; font-size: 0.82rem;
    color: var(--primary);
}

.summary-preview {
    margin-top: 3rem;
    background: var(--dark3); border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem;
}
.summary-preview h3 {
    color: white; margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 1.1rem;
}
.summary-preview h3 i { color: var(--primary); }
.summary-table-wrap { overflow-x: auto; }
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table th {
    background: var(--dark2); color: var(--primary);
    padding: 0.75rem 1rem; text-align: left;
    font-size: 0.85rem; font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.summary-table td {
    padding: 0.75rem 1rem; color: var(--text-muted);
    font-size: 0.9rem; border-bottom: 1px solid rgba(48,54,61,0.5);
}
.summary-table tr:hover td { background: rgba(0,200,150,0.04); color: var(--text); }

/* ===== Other ===== */
.other-section { background: var(--dark); }
.other-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem; margin-top: 3rem;
}
.other-card {
    background: var(--dark2); border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem; text-align: center;
    transition: var(--transition);
}
.other-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.other-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; display: block; }
.other-card h3 { color: white; margin-bottom: 0.5rem; }
.other-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ===== Footer ===== */
.footer {
    background: var(--dark2); border-top: 1px solid var(--border);
    padding: 2.5rem 20px; text-align: center;
}
.footer-logo {
    font-size: 1.3rem; font-weight: 800; color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 0.75rem;
}
.footer p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--dark3); border: 1px solid var(--border);
    color: var(--text); padding: 0.6rem 1.5rem; border-radius: 8px;
    text-decoration: none; font-weight: 600; transition: var(--transition);
}
.back-link:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Gallery ===== */
.gallery-section { background: var(--dark); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.gallery-item { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.gallery-screen {
    width: 100%; border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden; background: var(--dark2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    transition: var(--transition);
}
.gallery-screen:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,200,150,0.15); }
.gs-header {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 1.2rem;
    font-weight: 700; font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.strength-screen .gs-header { background: rgba(249,115,22,0.15); color: var(--strength); }
.yoga-screen    .gs-header { background: rgba(168,85,247,0.15); color: var(--yoga); }
.cardio-screen  .gs-header { background: rgba(59,130,246,0.15); color: var(--cardio); }
.aerobic-screen .gs-header { background: rgba(236,72,153,0.15); color: var(--aerobic); }
.export-screen  .gs-header { background: rgba(0,200,150,0.15);  color: var(--primary); }
.home-screen    .gs-header { background: rgba(255,255,255,0.05); color: var(--text); }
.gs-body { padding: 1rem 1.2rem; }
.gs-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.55rem 0; border-bottom: 1px solid var(--border);
    font-size: 0.85rem; color: var(--text-muted);
}
.gs-row:last-child { border-bottom: none; }
.gs-row span:first-child { color: var(--text); font-weight: 500; }
.gs-export-btn {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1rem; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600;
    margin-bottom: 0.6rem; cursor: default;
}
.gs-export-btn.pdf  { background: rgba(220,53,69,0.15);  color: #ff6b6b; }
.gs-export-btn.png  { background: rgba(59,130,246,0.15); color: var(--cardio); }
.gs-export-btn.new  { background: rgba(0,200,150,0.15);  color: var(--primary); }
.gs-home-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 1rem;
}
.gs-home-card {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 0.4rem;
    padding: 1rem 0.5rem; border-radius: 10px;
    font-size: 0.8rem; font-weight: 600;
}
.gs-home-card i { font-size: 1.3rem; }
.strength-bg { background: rgba(249,115,22,0.2); color: var(--strength); }
.yoga-bg     { background: rgba(168,85,247,0.2); color: var(--yoga); }
.cardio-bg   { background: rgba(59,130,246,0.2); color: var(--cardio); }
.aerobic-bg  { background: rgba(236,72,153,0.2); color: var(--aerobic); }
.gallery-label {
    font-size: 0.9rem; font-weight: 600;
    color: var(--text-muted); letter-spacing: 0.5px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 80px; }
    .hero h1 { font-size: 3rem; }
    .hero-stats { justify-content: center; }
    .hero-download { text-align: center; }
    .hero-tagline { margin: 0 auto 2rem; }
    .flow-arrow { transform: rotate(90deg); }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 1.8rem; }
    .hamburger { display: flex; }
    .nav-menu { display: none; }
    .nav-menu.active {
        display: flex; flex-direction: column;
        position: absolute; top: 65px; left: 0; width: 100%;
        background: var(--dark2); padding: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .flow-steps { flex-direction: column; align-items: center; }
    .flow-arrow { transform: rotate(90deg); }
}
