/* ==========================================
   Forem Tasks Landing Page - Styles
   ========================================== */

:root {
    /* Colors */
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary: #14B8A6;
    --accent: #F59E0B;
    --coral: #F97066;
    --pink: #EC4899;
    --indigo: #6366F1;
    --green: #10B981;
    --orange: #F97316;
    --blue: #3B82F6;

    /* Light Theme */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --border: #E2E8F0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%);
    --gradient-hero: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --border: #334155;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   Base Styles
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   Navigation
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-normal);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.8);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon.small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-icon .material-icons-round {
    font-size: 24px;
}

.logo-icon.small .material-icons-round {
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-theme {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-theme:hover {
    background: var(--primary);
    color: white;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--pink);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge .material-icons-round {
    font-size: 18px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.3);
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--bg-secondary);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 32px;
    padding: 60px 16px 16px;
    overflow: hidden;
}

.mockup-header {
    margin-bottom: 16px;
}

.mockup-date {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 4px;
}

.mockup-greeting {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.mockup-list-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.mockup-list-selector .material-icons-round {
    font-size: 18px;
    color: var(--text-tertiary);
}

.mockup-task {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mockup-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid var(--border);
    flex-shrink: 0;
    margin-top: 2px;
}

.mockup-task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mockup-task-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.mockup-task-due {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    width: fit-content;
}

.mockup-task-due .material-icons-round {
    font-size: 14px;
}

.mockup-star {
    font-size: 22px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.mockup-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px 16px;
    background: var(--bg-primary);
}

.mockup-add-task {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mockup-add-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.mockup-add-btn .material-icons-round {
    font-size: 22px;
}

.mockup-add-placeholder {
    flex: 1;
    font-size: 14px;
    color: var(--text-tertiary);
}

.mockup-new-task-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: var(--primary);
    border-radius: 24px;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.mockup-new-task-btn .material-icons-round {
    font-size: 18px;
}

.mockup-nav {
    display: flex;
    justify-content: space-around;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.mockup-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--text-tertiary);
}

.mockup-nav-item .material-icons-round {
    font-size: 22px;
}

.mockup-nav-item.active {
    color: var(--primary);
}

/* ==========================================
   Features Section
   ========================================== */

.features {
    padding: 120px 24px;
    background: var(--bg-secondary);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon .material-icons-round {
    font-size: 28px;
    color: white;
}

.feature-icon.purple { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.feature-icon.teal { background: linear-gradient(135deg, #14B8A6, #0D9488); }
.feature-icon.coral { background: linear-gradient(135deg, #F97066, #EF4444); }
.feature-icon.blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.feature-icon.orange { background: linear-gradient(135deg, #F97316, #EA580C); }
.feature-icon.green { background: linear-gradient(135deg, #10B981, #059669); }
.feature-icon.pink { background: linear-gradient(135deg, #EC4899, #DB2777); }
.feature-icon.indigo { background: linear-gradient(135deg, #6366F1, #4F46E5); }

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   Download Section
   ========================================== */

.download {
    padding: 120px 24px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.download-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.download-content {
    text-align: center;
}

.download-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

.store-badge {
    display: inline-block;
    transition: var(--transition-normal);
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.store-badge img {
    display: block;
    height: 60px;
    width: auto;
}

.app-store-coming-soon {
    position: relative;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.app-store-coming-soon img {
    filter: grayscale(100%);
    opacity: 0.6;
}

.coming-soon-label {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.download-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.download-note .material-icons-round {
    font-size: 18px;
    color: #10B981;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    padding: 60px 24px 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 32px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.btn-theme) {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .download-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-badge img {
        height: 50px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 60px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .features,
    .download {
        padding: 80px 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}
