/* StudyAll Landing Page v2 - Personal + Feature-rich */

@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap');

/* Theme Variables (matching onboarding) */
:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-tertiary: #a3a3a3;
    --accent-primary: #6366f1;
    --accent-hover: #4f46e5;
    --border-color: #2d2d2d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Fira Mono", monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section base */
section {
    padding: 100px 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}

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

.hero-greeting {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.hero-problem {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.2s forwards;
}

.hero-problem span {
    display: block;
}

.hero-solution {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.4s forwards;
}

.hero-solution .emoji {
    margin-right: 8px;
}

.hero-solution .highlight {
    color: var(--accent-primary);
}

.hero-cta {
    display: inline-block;
    padding: 16px 32px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.6s forwards;
}

.hero-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.hero-boards {
    font-size: 13px;
    color: var(--text-tertiary);
    opacity: 0;
    animation: fadeIn 0.6s ease 0.8s forwards;
}

.hero-boards span {
    margin: 0 8px;
}

/* ============================================
   Story Section
   ============================================ */
.story {
    text-align: center;
    background: var(--bg-secondary);
    padding: 80px 24px;
}

.story p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

.story p+p {
    margin-top: 24px;
    color: var(--text-tertiary);
    font-size: 16px;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 80px 24px;
}

.features-title {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature:last-child {
    margin-bottom: 0;
}

.feature.reverse {
    direction: rtl;
}

.feature.reverse>* {
    direction: ltr;
}

.feature-text {
    padding: 20px 0;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 15px;
    color: var(--text-tertiary);
    line-height: 1.7;
}

.feature-desc span {
    display: block;
    margin-bottom: 4px;
}

.feature-image {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 14px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   AI Spotlight Section
   ============================================ */
.ai-spotlight {
    text-align: center;
    padding: 100px 24px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.ai-spotlight-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.ai-spotlight-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.ai-spotlight-desc {
    font-size: 16px;
    color: var(--text-tertiary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.ai-spotlight-example {
    display: inline-block;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 16px;
}

.ai-example-label {
    color: var(--text-tertiary);
    margin-right: 8px;
}

.ai-example-text {
    color: var(--accent-primary);
    font-style: italic;
}

.ai-spotlight-sub {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ============================================
   Promise Section
   ============================================ */
.promise {
    text-align: center;
    padding: 80px 24px;
}

.promise p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 2;
    max-width: 400px;
    margin: 0 auto;
}

.promise p span {
    display: block;
}

.promise .emphasis {
    color: var(--accent-primary);
    font-weight: 500;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    text-align: center;
    padding: 100px 24px;
    background: var(--bg-secondary);
}

.cta-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 32px;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.cta-platforms {
    font-size: 14px;
    color: var(--text-tertiary);
}

.cta-platforms span {
    margin: 0 12px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    text-align: center;
    padding: 40px 24px;
    font-size: 13px;
    color: var(--text-tertiary);
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-problem {
        font-size: 16px;
    }

    .hero-solution {
        font-size: 22px;
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .feature.reverse {
        direction: ltr;
    }

    .feature-image {
        order: -1;
    }

    .theme-swatch {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero-solution {
        font-size: 20px;
    }

    .feature-name {
        font-size: 18px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}