
:root {
    --primary: #ff4d00;
    --primary-dark: #cc3d00;
    --accent: #ff9500;
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-light: #1f1f1f;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: #2a2a2a;
    --gradient: linear-gradient(135deg, #ff4d00 0%, #ff9500 100%);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, .logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 77, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--surface-light);
    border-color: var(--text-muted);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
    padding: 14px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-links a.btn-primary {
    color: white; /* Ensure primary button text is white even within nav-links */
}

/* Mobile Toggle Icon */
.mobile-toggle {
    /* Base styles for the button container */
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    padding: 0;
    transition: var(--transition);
    
    /* Hide on desktop by default */
    display: none; 
}

.mobile-toggle:hover {
    border-color: var(--primary);
}

.mobile-toggle span {
    display: block;
    position: relative; /* Change to relative for flexbox layout */
    height: 2px;
    width: 24px; /* Adjusted width for lines within the 40px button */
    background: var(--text-main);
    border-radius: 2px;
    opacity: 1;
    transform: rotate(0deg);
    transition: var(--transition);
}

/* For the 'X' animation when active */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg); /* Move down and rotate */
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px); /* Move middle bar out of view */
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg); /* Move up and rotate */
}

/* Hero */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 77, 0, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 77, 0, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
}

.app-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    height: 400px;
    width: 100%;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    padding: 20px;
}

.preview-header {
    display: flex;
    margin-bottom: 30px;
}

.dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    margin-right: 6px;
}

.skeleton-row {
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    margin-bottom: 20px;
    width: 100%;
}

.skeleton-row:nth-child(2) { width: 80%; }
.skeleton-row:nth-child(3) { width: 60%; }

.hero-gradient {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.15) 0%, transparent 70%);
    z-index: -1;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: var(--transition);
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.modal-content h2 span {
    color: var(--primary);
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.auth-form input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.auth-form input:focus {
    border-color: var(--primary);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Logos */
.logos {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.logos p {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.logo-grid {
    display: flex;
    justify-content: space-between;
    opacity: 0.5;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Features */
.features {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header h2 span {
    color: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Stats */
.stats {
    padding: 80px 0;
    background: var(--surface);
}

.stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 600;
}

/* FAQ */
.faq {
    padding: 120px 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    padding: 24px 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    padding: 0 0 24px;
    color: var(--text-muted);
    display: none;
}

/* CTA */
.cta {
    padding: 100px 0;
}

.cta-box {
    background: var(--gradient);
    padding: 80px;
    border-radius: 30px;
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-box .btn-primary {
    background: white;
    color: var(--primary);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
}

.footer-links h4 {
    margin-bottom: 24px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* APP STYLES */
.app-body {
    background: var(--bg);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

.app-sidebar {
    width: 280px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.sidebar-nav {
    margin-top: 40px;
    flex-grow: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.sidebar-nav a.active, .sidebar-nav a:hover {
    background: rgba(255, 77, 0, 0.1);
    color: var(--primary);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.user-info p {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.logout-btn {
    margin-top: 10px;
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    border-color: #ff4444;
    color: #ff4444;
}

.app-main {
    flex-grow: 1;
    padding: 60px;
    overflow-y: auto;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.app-header h1 {
    font-size: 2.5rem;
}

.app-header p {
    color: var(--text-muted);
}

.todo-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.todo-input-wrapper input {
    flex-grow: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.todo-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.1);
}

.todo-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
}

.filter-btn.active {
    background: var(--surface-light);
    color: var(--primary);
}

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

.todo-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.todo-item:hover {
    border-color: var(--surface-light);
    transform: translateX(4px);
}

.todo-item.completed {
    opacity: 0.6;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
}

.todo-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.todo-item.completed .todo-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.todo-checkbox::after {
    content: '✓';
    color: white;
    font-size: 14px;
    display: none;
}

.todo-item.completed .todo-checkbox::after {
    display: block;
}

.todo-text {
    flex-grow: 1;
    font-weight: 500;
}

.delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.todo-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    color: #ff4444;
}

.empty-state {
    text-align: center;
    padding: 60px 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero .container { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    
    /* Mobile specific styles for navbar */
    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below navbar */
        left: 0;
        width: 100%;
        background: var(--bg); /* Use a consistent background */
        padding: 20px;
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        transition: var(--transition); /* Smooth transition for opening/closing */
    }

    .nav-links.nav-links-open {
        display: flex; /* Show when active */
    }

    .nav-links a, .nav-links button {
        width: 100%; /* Full width for menu items */
        text-align: center;
        margin-bottom: 10px; /* Spacing between items */
    }
    .nav-links button {
        margin-top: 10px; /* Add some space for buttons */
    }

    .mobile-toggle {
        /* Show as a flex container on mobile */
        display: flex; 
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .app-sidebar { display: none; }
    .app-main { padding: 30px 20px; }
    .cta-box h2 { font-size: 2.5rem; }
}
