/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent: #007bff;
    --accent-hover: #0056b3;
    --border: #e1e5e9;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #262626;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) var(--space-8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #424D35;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

.logo-flower {
    font-size: var(--font-size-lg);
    opacity: 0.8;
}

.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-btn:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.theme-icon {
    font-size: var(--font-size-lg);
    transition: transform 0.3s ease;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-24) var(--space-8) var(--space-16);
    text-align: center;
}

.hero-section {
    max-width: 800px;
    margin-bottom: var(--space-20);
}

.badge {
    display: inline-block;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--space-8);
    border: 1px solid var(--border);
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-8);
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, #424D35, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-12);
}

.stats-number {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.stats-text {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

.cta-section {
    margin-bottom: var(--space-16);
}

.cta-button {
    background: linear-gradient(135deg, #424D35, #8b5cf6);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: 0 4px 20px var(--shadow);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-price {
    background-color: rgba(255, 255, 255, 0.2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Device Showcase */
.device-showcase {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    align-items: end;
    justify-items: center;
}

.device {
    position: relative;
    transition: transform 0.3s ease;
}

.device:hover {
    transform: translateY(-10px);
}

.device-1 {
    grid-column: 1;
    transform: rotate(-5deg);
}

.device-2 {
    grid-column: 2;
    transform: rotate(2deg);
}

.device-3 {
    grid-column: 3;
    transform: rotate(-2deg);
}

.device-4 {
    grid-column: 4;
    transform: rotate(3deg);
}

.device-frame {
    width: 280px;
    height: 180px;
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    border-radius: var(--radius-xl);
    padding: var(--space-3);
    box-shadow: 0 20px 40px var(--shadow);
    position: relative;
}

[data-theme="dark"] .device-frame {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: var(--space-2);
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.device-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.screen-content {
    padding: var(--space-4);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.app-header {
    height: 20px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.content-block {
    height: 20px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.content-block:nth-child(2) {
    height: 30px;
}

.content-block:nth-child(3) {
    height: 25px;
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--space-8);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    border-top: 1px solid var(--border);
    background-color: var(--bg-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .device-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .device-1, .device-2 {
        grid-column: auto;
    }
    
    .device-3, .device-4 {
        grid-column: auto;
    }
    
    .device-frame {
        width: 240px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: var(--space-4) var(--space-6);
    }
    
    .main-content {
        padding: var(--space-20) var(--space-6) var(--space-12);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
    }
    
    .device-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .device {
        transform: none !important;
    }
    
    .device-frame {
        width: 200px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .cta-button {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-base);
    }
    
    .device-frame {
        width: 180px;
        height: 120px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section > * {
    animation: fadeInUp 0.6s ease-out;
}

.hero-section > *:nth-child(2) {
    animation-delay: 0.1s;
}

.hero-section > *:nth-child(3) {
    animation-delay: 0.2s;
}

.hero-section > *:nth-child(4) {
    animation-delay: 0.3s;
}

.hero-section > *:nth-child(5) {
    animation-delay: 0.4s;
}

.hero-section > *:nth-child(6) {
    animation-delay: 0.5s;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
