/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --quilt-rose: #E2725B;
    --cream-linen: #F5F3EF;
    --sage-thread: #A4B494;
    --midnight-indigo: #2E3A59;
    --sunflower-gold: #F3C969;
    --patch-blue: #7EA8BE;
    --clay-brown: #8E735B;
    
    --primary: var(--quilt-rose);
    --secondary: var(--sage-thread);
    --background: var(--cream-linen);
    --text-primary: var(--midnight-indigo);
    --text-secondary: #5E6B87;
    --card-bg: #ffffff;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(46, 58, 89, 0.08);
    --shadow-md: 0 4px 16px rgba(46, 58, 89, 0.12);
    --shadow-lg: 0 8px 32px rgba(46, 58, 89, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.footer-logo .logo-icon {
    width: 48px;
    height: 48px;
}

.logo-icon {
    font-size: 32px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

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

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

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

.nav-links .btn-primary {
    margin-left: 16px;
    padding: 12px 28px;
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(164, 180, 148, 0.1) 0%, rgba(126, 168, 190, 0.1) 100%);
    z-index: 0;
}

.pattern-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(46, 58, 89, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 58, 89, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--sunflower-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

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

.app-showcase {
    max-width: 500px;
    width: 100%;
    animation: float 6s ease-in-out infinite;
}

.hero-screenshot {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

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

/* ==================== SECTIONS ==================== */
section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-description {
    font-size: 20px;
    color: var(--text-secondary);
}

/* ==================== FEATURES SECTION ==================== */
.features {
    background: white;
}

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(46, 58, 89, 0.08);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== SHOWCASE SECTION ==================== */
.showcase {
    background: var(--background);
}

.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

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

.showcase-item.reverse {
    direction: rtl;
}

.showcase-item.reverse > * {
    direction: ltr;
}

.showcase-media {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.showcase-gif {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.showcase-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.showcase-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== GALLERY SECTION ==================== */
.gallery {
    background: white;
}

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

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 9/16;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

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

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(46, 58, 89, 0.95), transparent);
    padding: 32px 24px;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* ==================== HOW IT WORKS SECTION ==================== */
.how-it-works {
    background: linear-gradient(135deg, rgba(164, 180, 148, 0.1) 0%, rgba(126, 168, 190, 0.1) 100%);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

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

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.step-connector {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--sage-thread) 100%);
    position: relative;
    top: 40px;
    opacity: 0.3;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== DOWNLOAD SECTION ==================== */
.download {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--patch-blue) 100%);
    color: white;
}

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

.download-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
}

.download-description {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.7;
}

.beta-steps {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.beta-steps-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.beta-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.beta-step:last-child {
    margin-bottom: 0;
}

.beta-step-number {
    width: 36px;
    height: 36px;
    background: var(--sunflower-gold);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.beta-step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.beta-step-content p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

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

.download-button {
    width: fit-content;
}

.device-showcase {
    max-width: 400px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite 1s;
}

.device-screenshot {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-tagline {
    opacity: 0.7;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer-column a {
    display: block;
    color: white;
    text-decoration: none;
    opacity: 0.7;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-column a:hover {
    opacity: 1;
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(46, 58, 89, 0.12);
        display: none;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    
    .nav-links .btn-primary {
        margin-left: 0;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
        cursor: pointer;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .app-showcase {
        max-width: 400px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .showcase-item,
    .showcase-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 40px;
    }
    
    .showcase-title {
        font-size: 28px;
    }
    
    .showcase-description {
        font-size: 16px;
    }
    
    .steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .step-connector {
        display: none;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .beta-steps {
        text-align: left;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .download-button {
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-grid {
        gap: 80px;
    }
    
    .showcase-title {
        font-size: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .download-title {
        font-size: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
}
