/* NoteTote Design System - Flask Landing Page */

/* ==================== CSS Variables ==================== */
:root {
    /* Colors - Indigo-based palette */
    --background: #fafafb;
    --foreground: #1a1a2e;
    --card: #ffffff;
    --card-foreground: #1a1a2e;
    --primary: #6366f1;
    --primary-foreground: #ffffff;
    --secondary: #f1f1f4;
    --secondary-foreground: #3a3a4a;
    --muted: #f1f1f4;
    --muted-foreground: #6b6b7b;
    --accent: #e0e7ff;
    --accent-foreground: #4f46e5;
    --border: #e5e5eb;
    --ring: #6366f1;
    --success: #22c55e;
    --warning: #f59e0b;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing & Radius */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== Layout ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* ==================== Header ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 251, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--foreground);
}

.logo-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary);
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

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

.header-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    padding: 0.5rem 0;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .header-actions {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn svg {
    width: 1rem;
    height: 1rem;
}

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

.btn-primary:hover {
    background: #5558e3;
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--secondary);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
}

.btn-ghost:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* ==================== Badge ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--accent);
    color: var(--accent-foreground);
    border-radius: var(--radius-full);
}

/* ==================== Hero Section ==================== */
.hero {
    padding: 4rem 0 6rem;
    text-align: center;
}

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

.hero-title {
    margin-top: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.stat-divider {
    width: 1px;
    height: 2.5rem;
    background: var(--border);
}

@media (min-width: 640px) {
    .hero {
        padding: 6rem 0 8rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* ==================== Section Styles ==================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-title {
    margin-top: 1rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-description {
    margin-top: 1rem;
    color: var(--muted-foreground);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* ==================== Features Section ==================== */
.features {
    padding: 5rem 0;
    background: var(--card);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--accent);
    border-radius: var(--radius);
    color: var(--primary);
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-title {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.feature-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== How It Works Section ==================== */
.how-it-works {
    padding: 5rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.step-title {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.step-description {
    margin-top: 0.75rem;
    color: var(--muted-foreground);
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== Testimonials Section ==================== */
.testimonials {
    padding: 5rem 0;
    background: var(--card);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius-lg);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
}

.testimonial-stars svg {
    width: 1rem;
    height: 1rem;
}

.testimonial-quote {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--foreground);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.author-role {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== CTA Section ==================== */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    text-align: center;
}

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

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.cta-description {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    margin-top: 2rem;
}

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

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
}

/* ==================== Footer ==================== */
.footer {
    padding: 4rem 0 2rem;
    background: var(--foreground);
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-brand .logo {
    color: white;
}

.footer-brand .logo-icon {
    color: white;
}

.footer-tagline {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-brand {
        max-width: 300px;
    }
}
