/* ==========================================================================
   HOMEPAGE STYLES - Mobile First
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 1rem 3rem;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero h1 .accent {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow-strong);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    padding: 0 1rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 300px;
    padding: 0 1rem;
}

.hero-scroll {
    display: none;
}

/* ==========================================================================
   Manifesto Section
   ========================================================================== */
.manifesto {
    padding: var(--space-3xl) var(--space-md);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.manifesto-content {
    max-width: var(--container-md);
    margin: 0 auto;
}

.manifesto-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manifesto-label::before {
    content: ">";
}

.manifesto h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.manifesto-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.manifesto-text p {
    margin-bottom: 1.25rem;
}

.manifesto-text .highlight {
    color: var(--accent);
    font-weight: 600;
}

/* Terminal Box */
.terminal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem auto;
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-body {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow-x: auto;
}

.terminal-line {
    margin-bottom: 0.4rem;
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.terminal-prompt {
    color: var(--accent);
}

.terminal-text {
    color: var(--text-secondary);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--accent);
    animation: blink 1s infinite;
    vertical-align: middle;
}

/* ==========================================================================
   Principles Section
   ========================================================================== */
.principles {
    padding: var(--space-3xl) var(--space-md);
}

.principles-grid {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.principle-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.principle-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.principle-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.principle-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.principle-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   Guides Section
   ========================================================================== */
.guides {
    padding: var(--space-3xl) var(--space-md);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.section-header {
    max-width: var(--container-xl);
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.section-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: var(--container-sm);
    margin: 0 auto;
}

.guides-grid {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.guide-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.guide-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.guide-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.guide-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}

.guide-card .guide-cta {
    margin-top: 1rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-card:hover .guide-cta {
    gap: 0.75rem;
}

.guide-featured {
    border: 2px solid var(--accent);
    position: relative;
}

.guide-featured::before {
    content: "POPULAR";
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats {
    padding: var(--space-2xl) var(--space-md);
    border-top: 1px solid var(--border);
}

.stats-grid {
    max-width: var(--container-md);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}

.stat-item h3 {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Not Section
   ========================================================================== */
.not-section {
    padding: var(--space-3xl) var(--space-md);
    background: var(--bg-primary);
}

.not-content {
    max-width: var(--container-lg);
    margin: 0 auto;
}

.not-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: var(--space-xl);
}

.not-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.not-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.not-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 600;
}

.not-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Who Section
   ========================================================================== */
.who {
    padding: var(--space-3xl) var(--space-md);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.who-content {
    max-width: var(--container-md);
    margin: 0 auto;
}

.who-list {
    list-style: none;
    margin-top: var(--space-xl);
    padding: 0;
}

.who-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.who-list li::before {
    content: "→";
    color: var(--accent);
    font-family: var(--font-mono);
    flex-shrink: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: var(--space-4xl) var(--space-md);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-sm);
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   TABLET+ (min-width: 640px)
   ========================================================================== */
@media (min-width: 640px) {
    .hero {
        padding: 9rem 2rem 4rem;
    }

    .hero-badge {
        font-size: 0.85rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 550px;
    }

    .hero-cta {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }

    .manifesto h2 {
        font-size: 1.75rem;
    }

    .terminal-body {
        font-size: 0.9rem;
        padding: 1.5rem;
    }

    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .not-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   DESKTOP (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
    .hero {
        padding: 10rem 2rem 4rem;
    }

    .hero-scroll {
        display: flex;
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        color: var(--text-muted);
        font-size: 0.85rem;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        animation: float 3s ease-in-out infinite;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        max-width: 600px;
    }

    .manifesto {
        padding: var(--space-4xl) var(--space-xl);
    }

    .manifesto h2 {
        font-size: 2rem;
    }

    .manifesto-text {
        font-size: 1.15rem;
    }

    .principles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .cta-section::before {
        width: 600px;
        height: 600px;
    }

    .cta-section h2 {
        font-size: 2.5rem;
    }

    .cta-section p {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   LARGE DESKTOP (min-width: 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4.5rem;
    }

    .guides-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .not-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

