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

:root {
    --primary: #6B46C1;
    --primary-dark: #553399;
    --secondary: #4F46E5;
    --accent: #EC4899;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --light: #F9FAFB;
    --dark: #1F2937;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --white: #FFFFFF;
    
    --gradient-primary: linear-gradient(135deg, #6B46C1 0%, #4F46E5 100%);
    --gradient-accent: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

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

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

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

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

.btn-secondary:hover {
    background: var(--light);
}

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

.cta-button {
    background: var(--accent);
    color: var(--white);
}

.cta-button:hover {
    background: #DB2777;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo-icon {
    font-size: 2rem;
}

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

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

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 100px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    color: var(--white);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

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

.hero-buttons .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.hero-buttons .btn-primary:hover {
    background: var(--light);
}

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

.phone-mockup {
    position: relative;
    width: 250px;
    height: 500px;
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    background: var(--light);
}

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

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* How It Works Section */
.how-it-works {
    background: var(--white);
}

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

.step {
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step h3 {
    color: var(--dark);
    margin-bottom: 15px;
}

.step p {
    margin-bottom: 30px;
}

.step-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.step-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Benefits Section */
.benefits {
    background: var(--light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-item {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.benefit-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* Screenshots Section */
.screenshots {
    background: var(--white);
}

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    background: var(--dark);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
}

/* Challenge Highlights */
.challenge-highlights {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.highlight-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid var(--secondary);
    box-shadow: var(--shadow-sm);
}

.highlight-box h3 {
    color: var(--dark);
    margin-bottom: 12px;
}

.highlight-box p {
    font-size: 0.95rem;
    margin: 0;
}

/* Settings Overview */
.settings-overview {
    background: var(--white);
}

.settings-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.settings-column {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
}

.settings-column h3 {
    color: var(--primary);
    margin-bottom: 25px;
}

.settings-list {
    list-style: none;
}

.settings-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-300);
}

.settings-list li:last-child {
    border-bottom: none;
}

.settings-list strong {
    display: block;
    color: var(--dark);
    margin-bottom: 5px;
}

.settings-list span {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Use Cases Section */
.use-cases {
    background: var(--light);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.use-case-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.use-case-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

.use-case-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-accent);
    color: var(--white);
    text-align: center;
}

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

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.download-buttons .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.beta-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

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

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    section {
        padding: 60px 20px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .features-grid,
    .highlights-grid,
    .use-cases-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .settings-comparison {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-buttons .btn-large {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-menu {
        gap: 10px;
        font-size: 0.85rem;
    }

    .phone-mockup {
        width: 160px;
        height: 320px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    section {
        padding: 40px 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Print Styles */
@media print {
    nav,
    .cta-section,
    footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.step,
.gallery-item {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
