/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --card: #ffffff;
    --border: #e2e8f0;
    --brand: #2563eb;
    --brand-strong: #1d4ed8;
    /* Pattern intensity defaults */
    --pattern-a: 0.12; /* cyan glow */
    --pattern-b: 0.10; /* teal glow */
    --pattern-lines: 0.06; /* diagonal lines */
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-border: rgba(226, 232, 240, 0.5);
    --download-start: #1e293b;
    --download-end: #0f172a;
    /* Global radial background (light) */
    --bg-radial-start: #ffffff;
    --bg-radial-end: #475569; /* slate-600 */
    --bg-radial-size: 125% 125%;
    --bg-radial-pos: 50% 90%;
}

/* Dark theme variables */
.dark {
    --bg: #0b1220;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --card: #0f172a;
    --border: #334155;
    --brand: #22a2f2;
    --brand-strong: #0ea5e9;
    --nav-bg: rgba(2, 6, 23, 0.9);
    --nav-border: rgba(51, 65, 85, 0.6);
    --download-start: #0b1220;
    --download-end: #0f172a;
    /* Global radial background (dark) */
    /* Azure Depths */
    --bg-radial-start: #000000;
    --bg-radial-end: #010133;
    --bg-radial-size: 125% 125%;
    --bg-radial-pos: 50% 10%;
}

.dark body { color: #e2e8f0; }
.dark .nav { background: transparent; border-bottom-color: transparent; }
.dark .feature-card,
.dark .pricing-card,
.dark .testimonial-card,
.dark .complete-card,
.dark .pile-task,
.dark .mobile-menu { background: #0f172a; border-color: #334155; }
.dark .btn-secondary { background: #0f172a; color: #94a3b8; border-color: #334155; }
.dark .section-title { color: #e2e8f0; }
.dark .section-description { color: #94a3b8; }
.dark .task-title { color: #e2e8f0; }
.dark .due-chip { background: rgba(148,163,184,0.1); border-color: #334155; color: #94a3b8; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: radial-gradient(var(--bg-radial-size) at var(--bg-radial-pos), var(--bg-radial-start) 40%, var(--bg-radial-end) 100%);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

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

/* Navigation */
.nav {
    position: static;
    width: 100%;
    background: transparent;
    border-bottom: none;
    z-index: 10;
    transition: color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}

.nav-brand .logo svg {
    color: var(--brand);
}

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

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--brand);
}

.nav-actions .btn-primary {
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px;
    border-radius: 8px;
    margin-left: 8px;
}
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px;
    border-radius: 8px;
    margin-left: 8px;
}
.dark .theme-toggle { border-color: #334155; color: #e2e8f0; }
/* Lucide sun/moon swap */
#icon-moon { display: none; }
.dark #icon-sun { display: none; }
.dark #icon-moon { display: inline; }

.nav-actions .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Hero Section */
.hero { padding: 64px 0 40px; background: transparent; position: relative; overflow: hidden; }

.hero::before { content: none; }

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    color: #2563eb;
}

.hero-description {
    font-size: 20px;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary-large {
    background: #2563eb;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-large:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary-large {
    background: white;
    color: #64748b;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.btn-secondary-large:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 36px;
    padding: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: white;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    left: -40px;
    animation-delay: 2s;
}

.card-3 {
    top: 60%;
    right: -60px;
    animation-delay: 4s;
}

.card-icon {
    font-size: 24px;
}

.card-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-content p {
    font-size: 12px;
    color: #64748b;
}

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

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.section-description {
    font-size: 20px;
    color: var(--muted);
    line-height: 1.6;
}

/* Features Section */
.features { padding: 48px 0; background: transparent; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.feature-description { color: var(--muted); line-height: 1.6; }

/* Pricing Section */
.pricing { padding: 48px 0; background: transparent; position: relative; overflow: hidden; }
.pricing::before { content: none; }

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    background: var(--card);
    margin: 0 auto 24px;
    width: fit-content;
    justify-content: center;
}
.pricing-toggle .toggle-option { transition: background 0.2s ease, color 0.2s ease; }

#premium-price, #premium-description, #premium-badge, #premium-cta, #premium-note {
    transition: opacity 0.15s ease;
}
.pricing-toggle .toggle-option {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
}
.pricing-toggle .toggle-option.active {
    background: #2563eb;
    color: #fff;
}

.hidden { display: none !important; }

.pricing-card {
    background: var(--card);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.premium { border: 2px solid var(--brand); }

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pricing-price {
    margin-bottom: 16px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--brand);
}

.price-period {
    font-size: 18px;
    color: var(--muted);
}

.pricing-description {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 16px;
}

.pricing-features {
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text);
}

.feature-item.featured {
    color: var(--brand);
    font-weight: 500;
}

.feature-check {
    color: #10b981;
    flex-shrink: 0;
}

.pricing-action .btn-primary,
.pricing-action .btn-secondary {
    width: 100%;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--brand);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--brand-strong);
}

.btn-secondary {
    background: var(--card);
    color: var(--muted);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.trial-note {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    margin-top: 12px;
}

/* Screenshots Section */
.screenshots { padding: 48px 0; background: transparent; }

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.screenshot-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.screenshot-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.screenshot-content {
    padding: 24px;
}

.screenshot-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.screenshot-content p {
    color: #64748b;
    line-height: 1.5;
}

/* Testimonials Section */
.testimonials { padding: 48px 0; background: transparent; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--card);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stars {
    color: #f59e0b;
    font-size: 18px;
    margin-bottom: 16px;
}

.testimonial-text { font-size: 16px; line-height: 1.6; color: var(--text); margin-bottom: 24px; font-style: italic; }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name { font-size: 16px; font-weight: 600; color: var(--text); }

.author-title { font-size: 14px; color: var(--muted); }

/* Download Section */
.download {
    padding: 80px 0;
    background: transparent;
    color: var(--text);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.download-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.download-description {
    font-size: 20px;
    opacity: 0.8;
    margin-bottom: 32px;
    line-height: 1.6;
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.download-icon {
    color: #10b981;
    flex-shrink: 0;
}

.download-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.app-store-button {
    transition: all 0.3s ease;
}

.app-store-button:hover {
    transform: translateY(-4px);
}

.app-store-badge {
    height: 60px;
    width: auto;
}

.qr-code {
    text-align: center;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #64748b;
}

.qr-text {
    font-size: 14px;
    opacity: 0.8;
}

/* Footer */
.footer { background: transparent; color: var(--text); padding: 40px 0 20px; }

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-description { opacity: 0.8; line-height: 1.6; color: var(--muted); }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text); }

.footer-link { display: block; color: var(--muted); text-decoration: none; margin-bottom: 8px; transition: color 0.2s ease; }

.footer-link:hover { color: var(--brand); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-copyright { opacity: 0.8; font-size: 14px; color: var(--muted); }

.social-link { color: var(--muted); transition: color 0.2s ease; }

.social-link:hover { color: var(--brand); }

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-menu {
        display: none;
    }
    .nav-actions .btn-primary { display: none; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 24px;
        justify-content: center;
    }
    
    .features-grid,
    .screenshots-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
    }
    
    .floating-card {
        display: none;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* task-flow rules removed */
}

@media (max-width: 480px) {
    .hero { padding: 48px 0 32px; }
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-description,
    .section-description {
        font-size: 16px;
    }
    
    .download-title {
        font-size: 32px;
    }
    
    .phone-frame {
        width: 200px;
        height: 400px;
    }
    .screenshot-image { height: 240px; }
}

/* Prevent background scroll when mobile menu is open */
body.no-scroll { overflow: hidden; }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 10px 20px rgba(2,6,23,0.06);
    display: flex;
    flex-direction: column;
    padding: 12px 16px 16px;
    z-index: 999;
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; }
.mobile-link {
    padding: 12px 8px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
}
.mobile-link + .mobile-link { border-top: 1px dashed #e2e8f0; }

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 998;
}
.backdrop.open { opacity: 1; transform: translateY(0); }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Task Flow Animation Section (removed) */
.task-flow {
    padding: 80px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}
.task-flow::before {
    content: none;
}

/* Pattern intensity utilities */
.pattern-light { --pattern-a: 0.08; --pattern-b: 0.06; --pattern-lines: 0.03; }
.pattern-strong { --pattern-a: 0.18; --pattern-b: 0.14; --pattern-lines: 0.08; }
.pattern-off::before { background: none !important; }


@media (max-width: 768px) {
    /* removed task-flow responsive rules */
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}
.plan-card#premium-card { transition: opacity 0.24s ease, transform 0.24s ease; will-change: opacity, transform; }
