:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8E87FF;
    --accent: #FF6B6B;
    --accent-glow: rgba(255, 107, 107, 0.4);
    --background: #0D0D1A;
    --surface: #1A1A2E;
    --surface-light: #252542;
    --surface-glass: rgba(30, 30, 50, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text: #FFFFFF;
    --text-secondary: #B0B0C3;
    --text-muted: #7A7A96;
    --success: #00D9A5;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Animation Timing */
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-smooth);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    opacity: 0.25;
    animation: float 10s ease-in-out infinite alternate;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* Navbar */
.navbar {
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

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

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.dot {
    color: var(--primary);
}

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

.nav-links a:not(.btn-login) {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-login)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:not(.btn-login):hover {
    color: var(--text);
}

.nav-links a:not(.btn-login):hover::after {
    width: 100%;
}

.btn-login {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 100px;
    color: var(--text);
    font-weight: 600;
    border: 1px solid var(--border-glass);
    transition: all 0.3s var(--ease-bounce);
}

.btn-login.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
    pointer-events: none;
}

.btn-login.disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.badge-container {
    margin-bottom: 24px;
}

.badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(108, 99, 255, 0.3);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.1);
}

h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

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

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

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s var(--ease-bounce);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
    border: none;
}

.btn-primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--surface-light);
    box-shadow: none;
    color: var(--text-secondary);
    pointer-events: none;
}

.btn-primary.disabled:hover {
    transform: none;
    background: var(--surface-light);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.store-buttons {
    display: flex;
    gap: 16px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    opacity: 0.7;
    transition: 0.3s;
}

.store-btn:hover:not(.disabled) {
    color: var(--text);
    opacity: 1;
}

.store-btn.disabled {
    cursor: default;
}

/* Phone Mockup Enhanced */
.hero-image {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 48px;
    border: 12px solid #222;
    position: relative;
    z-index: 5;
    box-shadow: 
        0 0 0 2px #444,
        0 50px 100px -20px rgba(0, 0, 0, 0.6),
        0 30px 60px -30px rgba(108, 99, 255, 0.3);
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease-out;
}

.phone-mockup:hover {
    transform: rotateY(0) rotateX(0) translateY(-10px);
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #222;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

/* App UI Simulation */
.app-ui {
    padding: 24px;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.app-greeting small {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.app-card {
    background: var(--surface-light);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border-glass);
}

.app-card-primary {
    background: linear-gradient(160deg, var(--surface-light), rgba(108, 99, 255, 0.1));
}

.card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.status-pill {
    background: rgba(0, 217, 165, 0.2);
    color: var(--success);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    margin-bottom: 16px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 100px;
}

.card-stats {
    display: flex;
    gap: 24px;
}

.card-stats small {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.card-stats strong {
    font-size: 16px;
}

.app-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.app-list-item {
    display: flex;
    align-items: center;
    background: var(--surface);
    padding: 12px;
    border-radius: 16px;
    gap: 12px;
    border: 1px solid transparent;
}

.list-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.list-info {
    flex: 1;
}

.list-info strong {
    display: block;
    font-size: 14px;
}

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

.list-action {
    background: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* Floating Notification */
.floating-notif {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.8s var(--ease-bounce) forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

.notif-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 217, 165, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.notif-text {
    flex: 1;
    line-height: 1.2;
}

.notif-text strong {
    display: block;
    font-size: 13px;
    color: var(--success);
}

.notif-text small {
    font-size: 11px;
    color: var(--text-secondary);
}

.notif-amount {
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
}


/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 5;
}

.section-dark {
    background: rgba(13, 13, 26, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.section-header h2 {
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.glass {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: 0.4s var(--ease-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(40, 40, 65, 0.8);
    border-color: rgba(108, 99, 255, 0.3);
}

.icon-box {
    font-size: 32px;
    margin-bottom: 24px;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

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

/* Trainer Section */
.trainer-section {
    padding: 120px 0;
    position: relative;
}

.trainer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefit-list {
    margin: 40px 0;
}

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

.check-icon {
    min-width: 28px;
    height: 28px;
    background: var(--success);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-top: 4px;
}

.benefit-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

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

/* Trainer Visuals */
.trainer-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.revenue-card {
    width: 320px;
    padding: 32px;
    border-radius: 32px;
    position: relative;
    z-index: 2;
    transform: rotate(5deg);
    transition: transform 0.5s;
}

.revenue-card:hover {
    transform: rotate(0) scale(1.02);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.trend.positive {
    color: var(--success);
    background: rgba(0, 217, 165, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
}

.amount {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text);
}

.period {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 80px;
}

.bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: 0.3s;
}

.bar:hover {
    background: var(--primary);
}

.bar.active {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.4);
}

.payment-badge {
    position: absolute;
    bottom: 50px;
    right: 20px;
    background: white;
    color: #333;
    padding: 16px 24px;
    border-radius: 16px;
    z-index: 3;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: rotate(-3deg);
    animation: float 6s ease-in-out infinite;
}

.stripe-logo {
    font-size: 14px;
    margin-bottom: 4px;
}

.secure-icon {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}


/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 32px;
    background: rgba(13, 13, 26, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

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

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

.link-col h4 {
    margin-bottom: 24px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.link-col a {
    display: block;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 15px;
}

.link-col a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    font-weight: 700;
    color: var(--text) !important;
}

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

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    position: relative;
    z-index: 5;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    transition: 0.4s var(--ease-smooth);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    background: rgba(40, 40, 65, 0.8);
}

.pricing-popular {
    border-color: var(--primary) !important;
    box-shadow: 0 0 40px rgba(108, 99, 255, 0.15);
    transform: scale(1.05);
}

.pricing-popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}

.pricing-period {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin: 32px 0;
    flex: 1;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 15px;
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    padding-left: 28px;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Pricing Tabs (Segment Control) */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 48px;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pricing-tab {
    padding: 10px 28px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.pricing-tab:hover {
    color: var(--text-secondary);
}

.pricing-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

/* Pricing Groups */
.pricing-group {
    display: none;
}

.pricing-group.active {
    display: block;
}

/* 2-column grid for Free/PRO cards */
.pricing-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

/* Legal Pages */
.legal-content {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    z-index: 5;
    min-height: 80vh;
}

.legal-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
    border-radius: var(--radius-lg);
}

.legal-card h1 {
    font-size: 36px;
    margin-bottom: 8px;
    border: none;
    line-height: 1.2;
}

.legal-updated {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 14px;
}

.legal-card h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text);
}

.legal-card h3 {
    font-size: 17px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--primary-light);
}

.legal-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-card ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-card li {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-card li strong {
    color: var(--text);
}

.legal-card a {
    color: var(--primary-light);
}

.legal-card a:hover {
    text-decoration: underline;
}

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

@keyframes slideUp {
    from { transform: translate(-50%, 50px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s var(--ease-smooth);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: 0.8s var(--ease-smooth);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: 0.8s var(--ease-smooth);
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    h1 { font-size: 42px; }
    
    .hero-container, 
    .trainer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-image { order: -1; padding-top: 40px;}
    .trainer-visual { order: -1; }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group, .store-buttons {
        justify-content: center;
    }

    .benefit-item {
        text-align: left;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 40px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-grid-2 {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-popular {
        transform: scale(1);
    }

    .pricing-popular:hover {
        transform: translateY(-8px);
    }

    .pricing-tabs {
        width: 100%;
    }

    .pricing-tab {
        padding: 8px 16px;
        font-size: 14px;
        flex: 1;
        text-align: center;
    }
}