@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;800&display=swap');

:root {
    --any-blue: #0071e3;
    --any-text: #1d1d1f;
    --any-grey: #86868b;
    --border: #f2f2f7;
    --bg: #ffffff;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--any-text);
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.any-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    position: fixed;
    top: 0; width: 80%;
    z-index: 100;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
}

.nav-left {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--any-blue);
}

.btn-text {
    background: none; border: none; font-weight: 600; cursor: pointer;
    font-size: 0.95rem; margin-right: 25px; color: var(--any-text);
}

.btn-primary {
    background: var(--any-blue); color: white; border: none;
    padding: 10px 24px; border-radius: 100px; font-weight: 600;
    cursor: pointer; transition: 0.2s;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 140px 5% 60px;
    text-align: center;
}

.hero h1 {
    font-size: 4.8rem;
    font-weight: 800;
    letter-spacing: -4px;
    margin: 0;
    line-height: 1;
}

.hero p {
    font-size: 1.4rem;
    color: var(--any-grey);
    margin: 25px 0 35px;
    max-width: 600px;
}

.btn-large {
    background: var(--any-blue);
    color: white;
    border: none;
    padding: 20px 60px;
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.2);
}

/* App Mockup UI */
.app-mockup {
    margin-top: 80px;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    text-align: left;
}

.mockup-header {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.mockup-item {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.check-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d1d6;
    border-radius: 50%;
    margin-right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-circle.done {
    background: var(--any-blue);
    border-color: var(--any-blue);
    color: white;
    font-size: 0.7rem;
}

.task-text {
    flex-grow: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.mockup-item.checked .task-text {
    color: var(--any-grey);
    text-decoration: line-through;
}

/* Badges */
.badge {
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge.blue { background: #eef2ff; color: #4338ca; }
.badge.purple { background: #fdf2f8; color: #be185d; }

.mockup-input {
    margin-top: 25px;
    color: var(--any-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
}
/* Modal Overlay */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Modal Card */
.modal-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.modal-card h2 { margin-bottom: 25px; color: #333; }

.modal-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    border: none; background: none;
    cursor: pointer; color: #888;
}

.full-width { width: 100%; margin-top: 10px; padding: 14px; }

/* Wide Modal for Signup */
.modal-card.signup-wide {
    max-width: 600px; /* Wider to accommodate 2 columns */
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 15px;
    text-align: left;
}

.input-group label, .full-group label {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.full-group {
    text-align: left;
    margin-top: 15px;
}

.modal-card input, .modal-card select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

/* Container Depth */
.app-mockup {
    margin-top: 30px;
    background: white;
    border-radius: 24px; 
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255,255,255,0.8);
    max-width: 400px;
    margin: 0 auto;
}

.app-mockup {
    /* Added translateY(30px) to the existing perspective transform */
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(30px);
    
    transition: transform 0.5s ease;
    /* ... rest of code */
}

/* Make sure to update the hover state so it doesn't jump back up too abruptly */
.app-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(30px);
}
/* Header UI */
.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text);
}

.mockup-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 50%;
    margin-left: 4px;
}

/* Task Items */
.mockup-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fdfdfd;
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

/* Pulse Effect for Active Task */
.pulse {
    border-left: 4px solid var(--primary);
    background: linear-gradient(90deg, #f5f3ff 0%, #ffffff 100%);
}

.task-info {
    flex: 1;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
}

.task-name { font-weight: 600; font-size: 0.95rem; }

.subtext {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Progress Bar Mini-UI */
.progress-bar {
    width: 60px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-top: 8px;
}

.progress-fill {
    width: 70%;
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

/* Tags & Avatars */
.tag {
    background: #fee2e2;
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.avatar-stack img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
}

/* Strike-through Animation (already provided, but ensuring color) */
.animated-task .task-text {
    color: #94a3b8;
    position: relative;
}

.tag-done {
    font-size: 0.7rem;
    color: #1abc9c;
    background: #e0f2f1;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.check {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
}

.check-done {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    background: #1abc9c;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
@keyframes strike {
    to { width: 100%; }
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 10%;
    background: #fff;
}

.feature-card {
    padding: 40px;
    border-radius: 20px;
    background: var(--bg);
    transition: 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Icon Colors to match your modules */
.icon-diary { color: #1abc9c; }
.icon-action { color: #f39c12; }
.icon-meeting { color: #3498db; }
.icon-schedule { color: #9b59b6; }
.icon-grocery { color: #e74c3c; }
.icon-secure { color: #2c3e50; }

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}
.icon-recurring { color: #fd7e14; } /* Vibrant Orange */
.icon-secure { color: #2c3e50; }    /* Midnight Blue */

.recurring-mini-icon {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-left: 8px;
    opacity: 0.7;
}

/* Subtle rotation animation to catch the eye */
.feature-card:hover .icon-recurring {
    animation: spin 2s linear infinite;
}


/* Ensure the Modal Card is wide enough for 2 columns */
.signup-wide {
    max-width: 600px !important; 
    width: 95%;
}

/* The Row Container */
.modal-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

/* Individual Groups */
.modal-input-group {
    display: flex;
    flex-direction: column;
    flex: 1; /* Makes columns 50/50 */
    min-width: 0; /* Critical fix for flexbox overlapping */
}

.modal-input-group.full-width {
    width: 100%;
}

.modal-input-group label {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: #475569;
}

.modal-input-group input, 
.modal-input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box; /* Ensures padding doesn't cause overlap */
}

/* Username Status Text */
.status-msg {
    font-size: 0.65rem;
    font-weight: 800;
    margin-top: -8px; /* Negative margin pulls it ABOVE its normal position */
    margin-bottom: 5px; /* Adds space before the next field */
    height: 12px;
    display: block; /* Ensures it behaves like a block element */
}

/* Optional: Make the username input-group specifically tighter */
#signupSection .modal-input-group:first-child {
    margin-bottom: 8px; 
}

.status-available { color: #10b981; }
.status-taken { color: #ef4444; }

/* Responsive: Stack columns on very small screens */
@media (max-width: 480px) {
    .modal-form-row {
        flex-direction: column;
        gap: 0;
    }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* On Mobile, stack the columns */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .modal-card.signup-wide { width: 95%; margin: 10px; }
}

.toggle-text { margin-top: 20px; font-size: 14px; color: #666; }
.toggle-text a { color: #1abc9c; font-weight: bold; text-decoration: none; }