/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
}

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

/* Color Variables from Logo */
:root {
    --light-blue: #87CEEB;
    --medium-blue: #4A90E2;
    --primary-blue: #1E88E5;
    --dark-blue: #0D47A1;
    --navy-blue: #1565C0;
    --accent-blue: #42A5F5;
    --gradient-1: linear-gradient(135deg, #87CEEB 0%, #4A90E2 50%, #1E88E5 100%);
    --gradient-2: linear-gradient(135deg, #1E88E5 0%, #0D47A1 100%);
    --gradient-3: linear-gradient(45deg, #42A5F5 0%, #1565C0 100%);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.app-icon {
    margin: 0 auto 2rem;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    width: 60px;
    height: 60px;
}

.tile {
    border-radius: 3px;
    animation: tileShift 8s ease-in-out infinite;
}

.tile-1 { background: var(--light-blue); animation-delay: 0s; }
.tile-2 { background: var(--medium-blue); animation-delay: 0.5s; }
.tile-3 { background: var(--dark-blue); animation-delay: 1s; }
.tile-4 { background: var(--primary-blue); animation-delay: 1.5s; }
.tile-5 { background: var(--navy-blue); animation-delay: 2s; }
.tile-6 { background: var(--light-blue); animation-delay: 2.5s; }
.tile-7 { background: var(--dark-blue); animation-delay: 3s; }
.tile-8 { background: var(--accent-blue); animation-delay: 3.5s; }
.tile-9 { background: var(--light-blue); animation-delay: 4s; }

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 8px 25px rgba(29, 136, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(29, 136, 229, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Floating Tiles */
.floating-tiles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-tile {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    opacity: 0.3;
    animation: floatRandom 15s ease-in-out infinite;
}

.floating-tile-1 {
    background: var(--light-blue);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-tile-2 {
    background: var(--medium-blue);
    top: 70%;
    right: 15%;
    animation-delay: 3s;
}

.floating-tile-3 {
    background: var(--dark-blue);
    top: 40%;
    left: 5%;
    animation-delay: 6s;
}

.floating-tile-4 {
    background: var(--accent-blue);
    top: 15%;
    right: 25%;
    animation-delay: 9s;
}

.floating-tile-5 {
    background: var(--navy-blue);
    top: 60%;
    left: 20%;
    animation-delay: 12s;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--gradient-3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    width: 32px;
    height: 32px;
}

.mini-tile {
    border-radius: 2px;
}

.mini-tile-1 { background: white; }
.mini-tile-2 { background: rgba(255, 255, 255, 0.7); }
.mini-tile-3 { background: rgba(255, 255, 255, 0.5); }
.mini-tile-4 { background: rgba(255, 255, 255, 0.8); }

.color-palette {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.color-1 { background: var(--light-blue); }
.color-2 { background: var(--medium-blue); }
.color-3 { background: var(--primary-blue); }
.color-4 { background: var(--dark-blue); }

.share-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-tile {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 4px;
}

.share-arrow {
    width: 16px;
    height: 2px;
    background: white;
    position: relative;
}

.share-arrow::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-top: 2px solid white;
    transform: rotate(45deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 6rem 0;
    background: var(--gradient-1);
    position: relative;
}

.phone-mockups {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.phone-mockup.animate {
    opacity: 1;
    transform: translateY(0);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 40px 20px;
    height: 100%;
}

.demo-tile {
    border-radius: 12px;
    animation: demoTileFloat 4s ease-in-out infinite;
}

.demo-tile-1 { background: var(--light-blue); animation-delay: 0s; }
.demo-tile-2 { background: var(--medium-blue); animation-delay: 0.5s; }
.demo-tile-3 { background: var(--primary-blue); animation-delay: 1s; }
.demo-tile-4 { background: var(--dark-blue); animation-delay: 1.5s; }
.demo-tile-5 { background: var(--accent-blue); animation-delay: 2s; }
.demo-tile-6 { background: var(--navy-blue); animation-delay: 2.5s; }

.editor-mockup {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.editor-toolbar {
    height: 40px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.editor-canvas {
    flex: 1;
    background: #fafafa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.editor-tile {
    width: 80px;
    height: 80px;
    background: var(--gradient-3);
    border-radius: 16px;
    animation: editorTilePulse 2s ease-in-out infinite;
}

.color-picker {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.picker-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.picker-1 { background: var(--light-blue); }
.picker-2 { background: var(--medium-blue); }
.picker-3 { background: var(--primary-blue); }
.picker-4 { background: var(--dark-blue); }

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--gradient-2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-tiles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.cta-tile {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    opacity: 0.2;
    animation: ctaTileFloat 20s linear infinite;
}

.cta-tile-1 {
    background: var(--light-blue);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cta-tile-2 {
    background: var(--accent-blue);
    top: 70%;
    right: 15%;
    animation-delay: 5s;
}

.cta-tile-3 {
    background: rgba(255, 255, 255, 0.3);
    top: 40%;
    left: 5%;
    animation-delay: 10s;
}

.cta-tile-4 {
    background: var(--light-blue);
    top: 15%;
    right: 25%;
    animation-delay: 15s;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    padding: 3rem 0;
    color: white;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    width: 20px;
    height: 20px;
}

.footer-tile {
    border-radius: 1px;
}

.footer-tile-1 { background: var(--light-blue); }
.footer-tile-2 { background: var(--medium-blue); }
.footer-tile-3 { background: var(--primary-blue); }
.footer-tile-4 { background: var(--dark-blue); }

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

@keyframes tileShift {
    0%, 100% { transform: scale(1); opacity: 1; }
    25% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    75% { transform: scale(0.98); opacity: 0.9; }
}

@keyframes floatRandom {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    25% { transform: translate(-20px, -30px) rotate(90deg); }
    50% { transform: translate(30px, -20px) rotate(180deg); }
    75% { transform: translate(-10px, 20px) rotate(270deg); }
}

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

@keyframes editorTilePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes ctaTileFloat {
    0% { transform: translate(0px, 100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% { transform: translate(0px, -100px) rotate(360deg); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .phone-mockups {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
    }
    
    .icon-grid {
        width: 50px;
        height: 50px;
    }
    
    .floating-tile {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .features, .screenshots, .cta {
        padding: 4rem 0;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 15px;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1.1rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
