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

:root {
    /* Colors */
    --primary-blue: #4285F4;
    --primary-dark: #2D2D2D;
    --primary-light: #F5F5F5;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #E0E0E0;
    --background: #FFFFFF;
    
    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-pink: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
    --gradient-blue: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    --gradient-gold: linear-gradient(135deg, #FFD89B 0%, #19547B 100%);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 80px;
    
    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', sans-serif;
    --font-accent: 'Edu AU VIC WA NT Hand', cursive;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.logo-text {
    font-family: var(--font-accent);
    color: var(--text-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.btn-primary-small {
    background: var(--primary-blue);
    color: white !important;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary-small:hover {
    background: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    background: var(--gradient-purple);
    padding: 120px 0 var(--spacing-4xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.app-badge {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-badge:hover {
    transform: translateY(-4px);
}

.app-badge img {
    height: 50px;
    width: auto;
}

.hero-trust {
    font-size: 14px;
    opacity: 0.8;
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1A1A1A;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1A1A1A;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

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

.app-preview {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.app-header {
    font-family: var(--font-accent);
    font-size: 28px;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.app-item {
    aspect-ratio: 1;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-blue);
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: var(--spacing-4xl) 0;
    background: white;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 20px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-3xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: white;
    font-size: 40px;
}

.feature-title {
    font-size: 24px;
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* ===================================
   Applets Section
   =================================== */
.applets {
    padding: var(--spacing-4xl) 0;
    background: var(--primary-light);
}

.applets-category {
    margin-bottom: var(--spacing-3xl);
}

.applets-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 24px;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.applets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.applet-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.applet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.applet-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.applet-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.applet-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===================================
   Customization Section
   =================================== */
.customization {
    padding: var(--spacing-4xl) 0;
    background: white;
}

.customization-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.customization-content {
    padding-left: var(--spacing-xl);
}

.section-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 16px;
}

.feature-list .material-symbols-outlined {
    color: var(--primary-blue);
    font-size: 24px;
}

/* Settings Mockup */
.settings-mockup {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--spacing-xl);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.settings-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--primary-light);
    border-radius: 8px;
}

.toggle {
    width: 48px;
    height: 28px;
    background: #ccc;
    border-radius: 14px;
    position: relative;
    transition: background 0.3s ease;
}

.toggle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.toggle.active {
    background: var(--primary-blue);
}

.toggle.active::after {
    transform: translateX(20px);
}

/* ===================================
   Design Section
   =================================== */
.design {
    padding: var(--spacing-4xl) 0;
    background: var(--primary-light);
}

.design-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.design-feature {
    text-align: center;
}

.design-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-purple);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: white;
    font-size: 40px;
}

.design-feature-title {
    font-size: 24px;
    margin-bottom: var(--spacing-sm);
}

.design-feature-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Phone Comparison */
.phone-comparison {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
}

.phone-mockup-small {
    width: 200px;
    height: 400px;
    background: #1A1A1A;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.phone-screen-small {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
}

.screen-content {
    padding: var(--spacing-lg);
    height: 100%;
}

.light-theme {
    background: white;
    color: var(--text-primary);
}

.dark-theme {
    background: #1A1A1A;
    color: white;
}

.screen-header {
    font-family: var(--font-accent);
    font-size: 20px;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.screen-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.screen-item {
    aspect-ratio: 1;
    background: rgba(66, 133, 244, 0.1);
    border-radius: 12px;
}

.dark-theme .screen-item {
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   Final CTA Section
   =================================== */
.final-cta {
    background: var(--gradient-purple);
    padding: var(--spacing-4xl) 0;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.cta-badges {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.cta-info {
    font-size: 14px;
    opacity: 0.8;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #1A1A1A;
    color: white;
    padding: var(--spacing-3xl) 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-3xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
    font-size: 14px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding: var(--spacing-lg) 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .design-showcase {
        grid-template-columns: 1fr;
    }
    
    .phone-comparison {
        margin: var(--spacing-xl) 0;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-badges {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .applets-grid {
        grid-template-columns: 1fr;
    }
    
    .customization-container {
        grid-template-columns: 1fr;
    }
    
    .customization-content {
        padding-left: 0;
    }
    
    .phone-comparison {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .cta-title {
        font-size: 32px;
    }
}

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

.hero-content > * {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.hero-title {
    animation-delay: 0.1s;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.hero-badges {
    animation-delay: 0.3s;
}

.hero-trust {
    animation-delay: 0.4s;
}

/* Smooth scroll */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
