/* CSS Variables & Global Settings */
:root {
    --primary: #525298;
    --primary-light: #6a6ab5;
    --primary-dark: #3a3a70;
    --bg-light: #fdfdfd;
    --bg-alt: #f4f5f8;
    --text-main: #2b2b40;
    --text-muted: #8c8ca1;
    
    --pink: #ffb8d0;
    --blue: #a3c4f3;
    --yellow: #fde293;
    
    --priority-h: #e53935;
    --priority-m: #f6a11e;
    --priority-l: #4caf50;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    
    --shadow-soft: 0 10px 30px rgba(82, 82, 152, 0.08);
    --shadow-float: 0 20px 40px rgba(82, 82, 152, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--pink);
    opacity: 0.4;
    z-index: -1;
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(82, 82, 152, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(82, 82, 152, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid #eaeaea;
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
}

.app-icon-small {
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
}

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

.nav-links a:not(.btn) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 5% 100px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.pill {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(82, 82, 152, 0.1);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-left: -12px;
}
.avatar:first-child { margin-left: 0; background: var(--pink); }
.avatar:nth-child(2) { background: var(--blue); }
.avatar:nth-child(3) { background: var(--primary-light); }

.social-proof span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Hero Visual & Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background-color: #fff;
    border-radius: 40px;
    box-shadow: var(--shadow-float);
    border: 8px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #fbfbfd;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Mockup UI Elements */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px 10px;
}

.user-avatar, .settings-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}
.current-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}
.current-date .day {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.current-date strong {
    font-size: 0.9rem;
}

.greeting-section {
    padding: 10px 20px 20px;
    position: relative;
}
.greeting-section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.5px;
}
.greeting-section p {
    font-size: 0.9rem;
    margin: 0;
}
.dot { position: absolute; border-radius: 50%; }
.dot-yellow { width: 8px; height: 8px; background: var(--yellow); top: 10px; right: 80px; }
.dot-blue { width: 12px; height: 12px; background: var(--blue); top: 30px; right: 40px; }
.dot-pink { width: 6px; height: 6px; background: var(--pink); bottom: 10px; right: 50px; }
.dot-pink-small { width: 4px; height: 4px; background: var(--pink); top: 40px; left: 10px; }

.tabs {
    display: flex;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 20px;
    overflow-x: hidden;
    align-items: center;
}
.tab {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}
.tab.active {
    background-color: var(--primary);
    color: white;
}
.trash-btn {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-list {
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.task-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(82, 82, 152, 0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}
.checkbox.checked {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}
.task-info {
    flex: 1;
}
.task-info .category {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}
.task-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2px;
}
.task-info .date {
    font-size: 0.7rem;
    color: #aaa;
}
.task-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    color: var(--text-muted);
}
.priority {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: white;
}
.priority-high { background-color: var(--priority-h); }
.priority-medium { background-color: var(--priority-m); }
.priority-low { background-color: var(--priority-l); }

.bottom-nav {
    background: white;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 10px 25px;
    border-radius: 30px 30px 0 0;
    position: relative;
}
.nav-item {
    font-size: 1.5rem;
    color: var(--text-muted);
}
.nav-item.active {
    color: var(--primary);
}
.fab {
    width: 56px;
    height: 56px;
    background-color: var(--primary);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(82, 82, 152, 0.4);
    transform: translateY(-20px);
    border: 4px solid #fbfbfd;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-float);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.5);
    z-index: 10;
}
.badge-1 {
    top: 20%;
    left: -60px;
    animation: float 7s ease-in-out infinite 1s;
}
.badge-2 {
    bottom: 25%;
    right: -40px;
    animation: float 5s ease-in-out infinite 2s;
}
.icon-circle {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 100px 5%;
    background-color: var(--bg-alt);
    text-align: center;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: left;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(82, 82, 152, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 80px 5% 40px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto 80px;
}

.app-icon-large {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 24px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.app-icon-large span {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    font-family: sans-serif;
}
.app-icon-large i {
    position: absolute;
    color: var(--primary-light);
    font-size: 1rem;
}
.mark-1 { top: 20px; left: 15px; }
.mark-2 { top: 20px; right: 15px; }
.mark-3 { bottom: 20px; left: 15px; }
.mark-4 { bottom: 20px; right: 15px; }

.footer-content h2 {
    color: white;
    margin-bottom: 20px;
}
.footer-content p {
    color: rgba(255,255,255,0.8);
}
.footer-content .btn-primary {
    background-color: white;
    color: var(--primary);
}
.footer-content .btn-primary:hover {
    background-color: var(--bg-alt);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: white;
}

.app-icon-large-img {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    margin: 0 auto 30px;
    display: block;
    box-shadow: var(--shadow-soft);
}

.app-icon-small-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: block;
    box-shadow: 0 2px 8px rgba(82, 82, 152, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .cta-buttons {
        justify-content: center;
    }
    .social-proof {
        justify-content: center;
    }
    .floating-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .nav-links a:not(.btn) {
        display: none;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}
