/* ============================================================
   pages/home.css — styles specific to the homepage
   ============================================================ */

/* ── Hero ── */
.hero {
    min-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 48px 64px;
    position: relative;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.hero-badge,
.hero h1,
.hero-sub,
.hero-search-wrap,
.hero-actions,
.hero-stats {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    flex-direction: row;
    width: auto;
    margin-bottom: 28px;
}

.hero h1 {
    display: block;
    max-width: 900px;
}

.hero-sub {
    display: block;
    max-width: 540px;
}

.hero-search-wrap {
    max-width: 560px;
}

.hero-actions {
    flex-direction: row;
    justify-content: center;
    width: auto;
    gap: 12px;
    margin-top: 32px;
}

.hero-stats {
    flex-direction: row;
    justify-content: center;
    gap: 48px;
    width: auto;
    margin-top: 64px;
}

/* Background orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: floatOrb 8s ease-in-out infinite;
}
.hero-orb-1 { width: 500px; height: 500px; background: rgba(255, 92, 53, 0.15);  top: -100px; left: -100px; }
.hero-orb-2 { width: 600px; height: 600px; background: rgba(168, 85, 247, 0.10); top: 100px;  right: -150px; animation-delay: -3s; }
.hero-orb-3 { width: 400px; height: 400px; background: rgba(0, 212, 255, 0.10);  bottom: 0;   left: 30%;     animation-delay: -5s; }

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

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 14px;
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.25);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--accent-yellow);
    margin-bottom: var(--space-6);
    animation: fadeUp 0.5s ease both;
}

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

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl));
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.04em;
    max-width: 900px;
    animation: fadeUp 0.5s 0.08s ease both;
}

.hero-sub {
    margin-top: var(--space-6);
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.6;
    font-weight: 300;
    animation: fadeUp 0.5s 0.16s ease both;
}

.hero-search-wrap {
    margin-top: var(--space-8);
    width: 100%;
    max-width: 560px;
    animation: fadeUp 0.5s 0.24s ease both;
}

.hero-actions {
    margin-top: var(--space-8);
    display: flex;
    gap: var(--space-3);
    align-items: center;
    animation: fadeUp 0.5s 0.32s ease both;
}

.hero-stats {
    margin-top: var(--space-16);
    display: flex;
    gap: var(--space-12);
    align-items: center;
    animation: fadeUp 0.5s 0.4s ease both;
}

.hero-stats-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ── Feature cards grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-top: var(--space-12);
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}
.feature-card:hover::after { opacity: 1; }

.fc-orange::after { background: radial-gradient(circle at top left, rgba(255, 92, 53, 0.08),  transparent 60%); }
.fc-purple::after { background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.08), transparent 60%); }
.fc-cyan::after   { background: radial-gradient(circle at top left, rgba(0, 212, 255, 0.08),  transparent 60%); }
.fc-yellow::after { background: radial-gradient(circle at top left, rgba(255, 184, 0, 0.08),  transparent 60%); }
.fc-green::after  { background: radial-gradient(circle at top left, rgba(0, 229, 122, 0.08),  transparent 60%); }

.feature-card.featured {
    grid-column: span 2;
    background: var(--surface-2);
}

.fc-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: var(--space-5);
}
.fc-icon-orange { background: rgba(255, 92, 53, 0.15); }
.fc-icon-purple { background: rgba(168, 85, 247, 0.15); }
.fc-icon-cyan   { background: rgba(0, 212, 255, 0.15); }
.fc-icon-yellow { background: rgba(255, 184, 0, 0.15); }
.fc-icon-green  { background: rgba(0, 229, 122, 0.15); }

.fc-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.fc-desc {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.fc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-5);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}
.fc-link:hover { opacity: 1; }

/* ── Prompts preview section ── */
.prompts-preview {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-24) 0;
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
}

/* ── Tools scroll ── */
.tools-scroll {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-10);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scrollbar-width: none;
}
.tools-scroll::-webkit-scrollbar { display: none; }

.tools-scroll .tool-card {
    flex: 0 0 220px;
}

/* ── CTA banner ── */
.cta-banner {
    margin: 0 var(--space-12) var(--space-24);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-20) var(--space-16);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-banner::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(255, 92, 53, 0.15), transparent 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.cta-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
    position: relative;
}

.cta-banner p {
    color: var(--text-muted);
    font-size: var(--text-lg);
    max-width: 480px;
    margin: 0 auto var(--space-10);
    line-height: 1.6;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    position: relative;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .feature-card.featured {
        grid-column: span 2;
    }
    .prompts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero { padding: var(--space-16) var(--space-6) var(--space-12); }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card.featured { grid-column: span 1; }
    .prompts-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: var(--space-6); flex-wrap: wrap; justify-content: center; }
    .cta-banner { margin: 0 var(--space-6) var(--space-16); padding: var(--space-12) var(--space-6); }
    .cta-actions { flex-direction: column; align-items: center; }
    .hero-actions { flex-direction: column; }
}

/* ── Prompt of the Day ── */
.potd-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 56px 0;
}

.potd-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
}

.potd-label-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.potd-day-badge {
    display: flex;
    align-items: center;
    gap: 14px;
}

.potd-flame {
    font-size: 2.5rem;
    line-height: 1;
}

.potd-day-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.potd-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.potd-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.potd-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.potd-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-primary);
}

.potd-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.potd-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.potd-copy-btn {
    padding: 7px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.potd-copy-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.potd-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.potd-prompt-preview {
    font-family: 'DM Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    white-space: pre-wrap;
}

.potd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.potd-stats {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-faint);
}

@media (max-width: 860px) {
    .potd-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .potd-label-col { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

