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

:root {
    --primary: #6750A4;
    --primary-dark: #4F378B;
    --primary-light: #7F67BE;
    --accent: #E91E63;
    --text-dark: #1C1B1F;
    --text-light: #49454F;
    --text-white: #FFFFFF;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --border: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.2);
    --gradient: linear-gradient(135deg, #6750A4, #7F67BE, #E91E63);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-dark: #E6E1E5;
    --text-light: #CAC4D0;
    --text-white: #FFFFFF;
    --bg-light: #1C1B1F;
    --bg-white: #2B2930;
    --border: #3E3A42;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

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

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

[data-theme="dark"] .navbar {
    background: rgba(43, 41, 48, 0.95);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

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

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

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(103, 80, 164, 0.1);
    color: var(--primary);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

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

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

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

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f4ff 0%, #fff 50%, #fff5f8 100%);
    padding-top: 80px;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1C1B1F 0%, #2B2930 50%, #251F2A 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(103, 80, 164, 0.1), transparent);
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.08), transparent);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-white);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    animation: slideUp 0.6s ease-out;
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: slideUp 0.6s ease-out 0.1s backwards;
}

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

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 32px;
    animation: slideUp 0.6s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: slideUp 0.6s ease-out 0.3s backwards;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    animation: slideUp 0.6s ease-out 0.4s backwards;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    position: relative;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.mockup-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.mockup-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, #6750A4, #E91E63, #6750A4);
    animation: rotate 10s linear infinite;
    opacity: 0.3;
    filter: blur(60px);
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.mockup-img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    animation: bounce 2s ease-in-out infinite;
}

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

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

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

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(103, 80, 164, 0.1), rgba(233, 30, 99, 0.1));
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

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

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

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

.feature-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.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: 20px;
    color: white;
}

.feature-icon .material-icons {
    font-size: 32px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 48px;
}

.screenshot-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.screenshot-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-frame {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.screenshot-frame:hover {
    transform: scale(1.02);
}

.screenshot-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.screenshot-dots {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.screenshot-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.screenshot-dots span:nth-child(1) { background: #FF5F56; }
.screenshot-dots span:nth-child(2) { background: #FFBD2E; }
.screenshot-dots span:nth-child(3) { background: #27C93F; }

.screenshot-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

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

.screenshot-label {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.screenshot-description {
    color: var(--text-light);
}

/* Technology Section */
.technology {
    background: var(--bg-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin-bottom: 64px;
}

.tech-column {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.tech-heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(103, 80, 164, 0.1), rgba(233, 30, 99, 0.1));
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

.tech-name {
    color: var(--text-light);
    font-size: 15px;
}

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

.tech-feature {
    text-align: center;
    padding: 32px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.tech-feature .material-icons {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.tech-feature h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tech-feature p {
    color: var(--text-light);
    font-size: 14px;
}

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

.cta-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: var(--bg-white);
    color: var(--primary);
}

.cta .btn-secondary {
    background: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

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

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

[data-theme="dark"] .footer {
    background: #0F0E11;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    text-align: center;
}

.footer-brand .logo {
    color: var(--text-white);
    margin-bottom: 16px;
    justify-content: center;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-links-horizontal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links-horizontal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Go to Top Button */
.go-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.go-to-top .material-icons {
    font-size: 24px;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-image {
        order: -1;
    }

    .hero-stats {
        gap: 32px;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

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

    section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .screenshot-item {
        min-width: 100%;
    }

    .tech-features {
        grid-template-columns: 1fr;
    }

    .footer-links-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .go-to-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}