/* ===== CSS Variables ===== */
:root {
    --primary-dark: #134E5E;
    --primary-light: #71B280;
    --accent: #2ECC71;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --text-dark: #1A1A2E;
    --text-muted: #6B7280;
    --gradient: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

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

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

ul {
    list-style: none;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

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

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

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(19, 78, 94, 0.05), rgba(113, 178, 128, 0.08));
    z-index: -1;
}

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

.hero-text h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta {
    margin-bottom: 48px;
}

.app-store-btn {
    display: inline-block;
    transition: var(--transition);
}

.app-store-btn:hover {
    transform: translateY(-3px);
}

.app-store-badge {
    width: 150px;
    height: 50px;
}

.app-store-btn.large .app-store-badge {
    width: 180px;
    height: 60px;
}

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    perspective: 1000px;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--gradient);
    border-radius: 50px;
    opacity: 0.15;
    filter: blur(40px);
    z-index: -1;
}

.phone-screen {
    width: 100%;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.phone-mockup:hover .phone-screen {
    transform: rotateY(0) rotateX(0);
}

/* ===== Gamification Section ===== */
.gamification {
    padding: 120px 0;
    background: var(--white);
}

.gamification-showcase {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.showcase-images {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 40px;
}

.showcase-phone {
    width: 220px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.showcase-phone img {
    width: 100%;
    display: block;
}

.showcase-phone.overlay {
    position: absolute;
    right: 0;
    top: 60px;
    transform: translateX(20%);
    z-index: 2;
}

.showcase-images::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
    z-index: -1;
}

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

.trigger-card {
    padding: 28px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.trigger-card:hover {
    background: var(--white);
    border-color: rgba(19, 78, 94, 0.1);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.trigger-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    color: var(--white);
    margin-bottom: 16px;
}

.trigger-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.trigger-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.gamification-quote {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 48px;
    background: linear-gradient(135deg, rgba(19, 78, 94, 0.03), rgba(113, 178, 128, 0.06));
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-dark);
}

.gamification-quote blockquote {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
}

.gamification-quote cite {
    font-size: 1rem;
    color: var(--primary-dark);
    font-style: normal;
    font-weight: 600;
}

/* Gamification Responsive */
@media (max-width: 1024px) {
    .gamification-showcase {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .showcase-images {
        order: -1;
    }
    
    .showcase-phone {
        width: 200px;
    }
    
    .showcase-phone.overlay {
        transform: translateX(30%);
    }
}

@media (max-width: 768px) {
    .gamification {
        padding: 80px 0;
    }
    
    .triggers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .trigger-card {
        padding: 24px;
    }
    
    .showcase-phone {
        width: 180px;
    }
    
    .showcase-phone.overlay {
        width: 160px;
        top: 40px;
        transform: translateX(40%);
    }
    
    .gamification-quote {
        padding: 32px 24px;
    }
    
    .gamification-quote blockquote {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .showcase-images {
        padding: 20px;
    }
    
    .showcase-phone {
        width: 160px;
    }
    
    .showcase-phone.overlay {
        width: 140px;
        transform: translateX(35%);
    }
}

/* ===== Features Section ===== */
.features {
    padding: 120px 0;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

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

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--white);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== Screenshots Section ===== */
.screenshots {
    padding: 120px 0;
}

.screenshots-carousel {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.screenshots-carousel::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    text-align: center;
}

.phone-frame {
    width: 240px;
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.screenshot-item:hover .phone-frame {
    transform: scale(1.05);
}

.phone-frame img {
    width: 100%;
    display: block;
}

.screenshot-label {
    margin-top: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== Download CTA Section ===== */
.download-cta {
    padding: 120px 0;
    background: var(--gradient);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0;
    background: var(--text-dark);
    color: var(--white);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .phone-mockup {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .phone-mockup {
        width: 220px;
    }
    
    .phone-screen {
        transform: none;
    }
    
    .features {
        padding: 80px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .screenshots {
        padding: 80px 0;
    }
    
    .phone-frame {
        width: 200px;
    }
    
    .download-cta {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .phone-frame {
        width: 180px;
    }
    
    .screenshots-carousel {
        gap: 16px;
    }
}

/* ===== Mobile Menu (JavaScript controlled) ===== */
.nav-links.active {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
