/* ============================================================
   Design Spark — Ember Glow palette
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:          #fff8f0;
    --headline:    #1a0a00;
    --sub:         #5c3a21;
    --accent:      #ff6b35;
    --secondary:   #f7c59f;
    --highlight:   #ff9f1c;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--headline);
    line-height: 1.6;
}

/* ================ NAVBAR ================ */
.navbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 1.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 10;
}

.nav-logo {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 900;
    font-style: italic;
    color: var(--headline);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    width: 10px; height: 10px;
    background: var(--highlight);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--headline);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-link:hover { opacity: 1; }

/* ================ HERO ================ */
.hero {
    min-height: 45vh;
    padding: 0 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.spark {
    position: absolute;
    font-size: 4rem;
    opacity: 0.15;
    animation: float 4s ease-in-out infinite;
}

.spark-1 { top: 15%; right: 10%; animation-delay: 0s; }
.spark-2 { bottom: 25%; left: 15%; animation-delay: 1s; }
.spark-3 { top: 50%; right: 25%; animation-delay: 2s; }
.spark-4 { bottom: 15%; right: 35%; animation-delay: 0.5s; }

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

.hero-inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--highlight);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--headline);
    margin-bottom: 1.5rem;
}

.hero-content h1 em {
    font-style: italic;
}

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

.hero-content p {
    font-size: 1.15rem;
    color: var(--sub);
    line-height: 1.75;
}

/* ================ PROMPT AREA ================ */
.prompt-area {
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--bg) 0%, #ffe8d6 100%);
}

.prompt-inner {
    max-width: 700px;
    margin: 0 auto;
}

.prompt-card {
    background: #fff;
    border-radius: 24px;
    padding: 3rem;
    border: 4px solid var(--headline);
    box-shadow: 12px 12px 0 var(--secondary);
    animation: card-pop 0.5s ease-out;
}

@keyframes card-pop {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.prompt-category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}

.prompt-vibe {
    display: inline-block;
    background: var(--secondary);
    color: var(--headline);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}

.prompt-main {
    margin-bottom: 2rem;
}

.prompt-industry {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    color: var(--headline);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.prompt-constraint {
    font-size: 1.1rem;
    color: var(--sub);
    line-height: 1.8;
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent);
}

.prompt-constraint div {
    padding: 0.3rem 0;
}

.prompt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(92,58,33,0.1);
}

.prompt-time {
    font-size: 0.9rem;
    color: var(--sub);
    font-weight: 500;
}

.spark-btn {
    background: var(--headline);
    color: var(--bg);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.spark-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.spark-btn:active {
    transform: translateY(0);
}

/* ================ HISTORY ================ */
.history {
    padding: 4rem 3rem;
}

.history-inner {
    max-width: 700px;
    margin: 0 auto;
}

.history-inner h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    color: var(--headline);
    margin-bottom: 1.5rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(92,58,33,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.history-industry {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-style: italic;
    color: var(--headline);
}

.history-constraint {
    font-size: 0.9rem;
    color: var(--sub);
}

/* ================ FOOTER ================ */
.footer {
    padding: 3rem;
    text-align: center;
    background: var(--headline);
    color: var(--bg);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.9;
}

.footer a {
    color: var(--secondary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer a:hover { color: var(--highlight); }

/* ================ RESPONSIVE ================ */
@media (max-width: 768px) {
    .navbar { 
        padding: 1rem 1.25rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .hero { 
        padding: 0 1.25rem; 
        min-height: auto; 
        padding-top: 5rem; 
        padding-bottom: 3rem;
    }
    
    .spark {
        font-size: 2.5rem;
    }
    
    .hero-eyebrow {
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.05;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .prompt-area { 
        padding: 2rem 1.25rem; 
    }
    
    .prompt-card { 
        padding: 1.5rem;
        border-width: 3px;
        box-shadow: 8px 8px 0 var(--secondary);
    }
    
    .prompt-header { 
        flex-direction: column; 
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .prompt-category,
    .prompt-vibe {
        font-size: 0.65rem;
        padding: 0.3rem 0.7rem;
    }
    
    .prompt-industry { 
        font-size: 1.75rem;
        line-height: 1.15;
        margin-bottom: 0.75rem;
    }
    
    .prompt-constraint {
        font-size: 0.95rem;
        line-height: 1.6;
        padding-left: 1rem;
        border-left-width: 3px;
    }
    
    .prompt-constraint div {
        padding: 0.35rem 0;
    }
    
    .prompt-footer { 
        flex-direction: column; 
        gap: 1rem; 
        align-items: stretch;
        padding-top: 1.5rem;
    }
    
    .prompt-time {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .spark-btn { 
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .history { 
        padding: 2rem 1.25rem; 
    }
    
    .history-inner h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .history-item { 
        flex-direction: column; 
        align-items: flex-start;
        padding: 0.875rem 1.25rem;
        gap: 0.5rem;
    }
    
    .history-industry {
        font-size: 0.95rem;
    }
    
    .history-constraint {
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 2rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .prompt-card {
        padding: 1.25rem;
    }
    
    .prompt-industry {
        font-size: 1.5rem;
    }
    
    .prompt-constraint {
        font-size: 0.9rem;
    }
    
    .spark {
        font-size: 2rem;
    }
}
