/* ===== Pulse App - Wellness App Landing Page Styles ===== */

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

:root {
    --color-bg: #0f0f1a;
    --color-bg-secondary: #151525;
    --color-bg-card: #1a1a2e;
    --color-text: #ffffff;
    --color-text-secondary: #a0a0b8;
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-accent: #f093fb;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-card: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-glow: 0 0 60px rgba(102, 126, 234, 0.3);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 20px;
}

html {
    scroll-behavior: smooth;
}

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

/* ===== Animated Background ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: blob-move 25s ease-in-out infinite;
}

.blob-1 {
    width: 800px;
    height: 800px;
    background: var(--color-primary);
    top: -300px;
    left: -200px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: var(--color-secondary);
    top: 50%;
    right: -200px;
    animation-delay: -8s;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: var(--color-accent);
    bottom: -200px;
    left: 30%;
    animation-delay: -16s;
}

@keyframes blob-move {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(-50px, -30px) scale(1.05); }
}

.particles {
    position: absolute;
    inset: 0;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

.btn-nav {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient-card);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition);
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.store-btn.large {
    padding: 16px 32px;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-label {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
}

.store-name {
    font-size: 1rem;
    font-weight: 600;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
}

.rating-text {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Hero Phone */
.hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #0a0a14;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a30 0%, #12121f 100%);
    border-radius: 32px;
    padding: 60px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.app-header {
    display: flex;
    flex-direction: column;
}

.app-greeting {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.app-stats {
    display: flex;
    justify-content: center;
}

.stat-ring {
    width: 140px;
    height: 140px;
    position: relative;
}

.stat-ring svg {
    width: 100%;
    height: 100%;
}

.ring-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-value {
    font-size: 1.75rem;
    font-weight: 800;
}

.ring-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.app-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.app-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.card-icon {
    font-size: 1.25rem;
}

.card-icon.steps { color: #4facfe; }
.card-icon.heart { color: #f5576c; }
.card-icon.sleep { color: #a855f7; }

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-value {
    font-size: 1rem;
    font-weight: 700;
}

.card-label {
    font-size: 0.65rem;
    color: var(--color-text-secondary);
}

.app-activity {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.activity-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex: 1;
    padding-bottom: 10px;
}

.activity-bars .bar {
    flex: 1;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.6), rgba(102, 126, 234, 0.2));
    border-radius: 4px;
    height: var(--height);
    transition: var(--transition);
}

.activity-bars .bar.active {
    background: var(--gradient-primary);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 4s ease-in-out infinite;
    z-index: 3;
}

.element-1 {
    top: 15%;
    left: -20px;
    flex-direction: column;
    align-items: flex-start;
    animation-delay: 0s;
}

.element-2 {
    bottom: 25%;
    right: -10px;
    animation-delay: 1s;
}

.element-3 {
    top: 40%;
    right: -30px;
    flex-direction: column;
    align-items: flex-start;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.float-icon {
    font-size: 1.25rem;
}

.float-text {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.float-value {
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-card);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

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

/* ===== Features Section ===== */
.features {
    padding: 120px 0;
}

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

.feature-card {
    padding: 32px;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* ===== How It Works Section ===== */
.how-it-works {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.step-visual {
    display: flex;
    justify-content: center;
}

.mini-phone {
    width: 140px;
    height: 240px;
    background: var(--color-bg-card);
    border-radius: 24px;
    padding: 8px;
    box-shadow: var(--shadow-card);
}

.mini-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1a30 0%, #12121f 100%);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-field {
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.form-btn {
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
}

.goals-ui {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.goal-option {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid transparent;
}

.goal-option.active {
    border-color: var(--color-primary);
    background: rgba(102, 126, 234, 0.1);
}

.progress-ui {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.progress-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
}

.progress-bars {
    width: 100%;
    display: flex;
    gap: 6px;
}

.mini-bar {
    flex: 1;
    height: 30px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.4), rgba(102, 126, 234, 0.1));
    border-radius: 4px;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 120px 0;
}

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

.testimonial-card {
    padding: 32px;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.2);
}

.testimonial-card.featured {
    background: var(--gradient-card);
    border-color: rgba(102, 126, 234, 0.3);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 1rem;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Download Section ===== */
.download {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.download-text p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.download-stats {
    display: flex;
    gap: 48px;
}

.download-stat {
    display: flex;
    flex-direction: column;
}

.download-stat .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-stat .stat-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.download-visual {
    display: flex;
    justify-content: center;
}

.phone-showcase {
    position: relative;
}

.showcase-phone {
    width: 240px;
    height: 480px;
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 36px;
    padding: 10px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.showcase-screen {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 28px;
    opacity: 0.3;
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin: 16px 0 24px;
    max-width: 280px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--color-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--color-text);
}

.back-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--color-accent);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-rating {
        justify-content: center;
    }
    
    .hero-phone {
        margin-top: 40px;
    }
    
    .floating-element {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .download-stats {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .store-btn {
        width: 100%;
        justify-content: center;
    }
    
    .download-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
