/* hanun.ai - Pop-Art Command Center */

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

:root {
    --sunset-coral: #FF5B44;
    --hot-magenta: #E8368F;
    --golden-hour: #FFD166;
    --cream-canvas: #FFF8F0;
    --comic-ink: #1A1A1A;
    --peach-blush: #FFE8DC;
    --tangerine-pop: #FF9F43;
    --electric-periwinkle: #7B68EE;
}

html {
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Lexend', sans-serif;
    background: var(--cream-canvas);
    color: var(--comic-ink);
    overflow-x: hidden;
}

.panel {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
}

/* Hero Panel */
.hero-panel {
    display: grid;
    grid-template-columns: 8fr 4fr;
    height: 100vh;
    border: 3px solid var(--comic-ink);
}

.hero-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
    border-right: 3px solid var(--comic-ink);
}

.ben-day-dots {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--comic-ink) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0;
    animation: fadeDots 500ms 200ms forwards;
}

@keyframes fadeDots {
    to { opacity: 0.15; }
}

.hero-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(4rem, 10vw, 9rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 4px 4px 0px var(--comic-ink), 6px 6px 0px rgba(255, 91, 68, 0.4);
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: slamIn 600ms 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slamIn {
    from {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Lexend', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 500ms 1000ms forwards;
    border-right: 3px solid var(--golden-hour);
    padding-right: 4px;
    animation: fadeIn 500ms 1000ms forwards, blink 1s 1500ms step-end infinite;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 2rem;
    background: var(--peach-blush);
}

.status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 3px solid var(--comic-ink);
    background: var(--cream-canvas);
    box-shadow: 6px 6px 0px var(--comic-ink);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot--active {
    background: var(--sunset-coral);
    animation: statusPulse 2s infinite;
}

.status-dot--processing {
    background: var(--golden-hour);
    animation: statusPulse 1s infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 91, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 91, 68, 0); }
}

.status-label {
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
}

.status-code {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--comic-ink);
    color: var(--golden-hour);
    padding: 2px 8px;
    border-radius: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Metrics Panel */
.metrics-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 4rem 2rem;
    background: var(--cream-canvas);
    border-bottom: 3px solid var(--comic-ink);
    flex-wrap: wrap;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border: 3px solid var(--comic-ink);
    box-shadow: 6px 6px 0px var(--comic-ink);
    background: var(--cream-canvas);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 600ms, transform 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.metric-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.progress-ring {
    width: 120px;
    height: 120px;
}

.progress-ring__track {
    fill: none;
    stroke: var(--peach-blush);
    stroke-width: 8;
}

.progress-ring__fill {
    fill: none;
    stroke: var(--sunset-coral);
    stroke-width: 8;
    stroke-linecap: butt;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1200ms ease-out;
}

.metric-value {
    font-family: 'Azeret Mono', monospace;
    font-size: 1.2rem;
    font-weight: 500;
    background: var(--comic-ink);
    color: var(--golden-hour);
    padding: 2px 12px;
    border-radius: 2px;
}

.metric-label {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

/* Narrative Panels */
.narrative-panel {
    display: grid;
    grid-template-columns: 8fr 4fr;
    border-bottom: 3px solid var(--comic-ink);
}

.narrative-wide {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 4rem;
    border-right: 3px solid var(--comic-ink);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 800ms ease-out;
}

.narrative-wide.revealed {
    clip-path: inset(0 0 0 0);
}

.narrative-illustration {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}

.narrative-illustration svg {
    width: 100%;
    height: 100%;
}

.narrative-text {
    padding-left: 2rem;
    border-left: 3px solid var(--comic-ink);
}

.section-heading {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.narrative-text p {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.65;
    font-weight: 400;
}

.narrative-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--peach-blush);
}

.speech-bubble {
    position: relative;
    background: var(--cream-canvas);
    border: 3px solid var(--comic-ink);
    padding: 24px;
    box-shadow: 6px 6px 0px var(--comic-ink);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 20px solid var(--comic-ink);
}

.speech-tag {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--hot-magenta);
    color: white;
    padding: 2px 8px;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 8px;
}

.speech-bubble p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Features Panel */
.features-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--cream-canvas);
    border-bottom: 3px solid var(--comic-ink);
}

.features-heading {
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    width: 100%;
}

.feature-card {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 3px solid var(--comic-ink);
    box-shadow: 6px 6px 0px var(--comic-ink);
    background: var(--cream-canvas);
    transition: transform 200ms, box-shadow 200ms, background-color 300ms;
    cursor: pointer;
}

.feature-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--comic-ink);
}

.feature-icon {
    width: 64px;
    height: 64px;
}

.feature-icon path,
.feature-icon circle,
.feature-icon rect,
.feature-icon line {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 500ms ease;
}

.feature-card:hover .feature-icon path,
.feature-card:hover .feature-icon circle,
.feature-card:hover .feature-icon rect,
.feature-card:hover .feature-icon line {
    stroke-dashoffset: 200;
    animation: drawIn 500ms forwards;
}

@keyframes drawIn {
    from { stroke-dashoffset: 200; }
    to { stroke-dashoffset: 0; }
}

.feature-label {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

/* Footer Panel */
.footer-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    position: relative;
    background: var(--comic-ink);
    overflow: hidden;
}

.halftone-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--sunset-coral) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.2;
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.footer-caption {
    display: flex;
    gap: 24px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--cream-canvas);
    padding: 8px 16px;
    border: 2px solid var(--cream-canvas);
    cursor: pointer;
    transition: background 200ms, color 200ms;
}

.footer-link:hover {
    background: var(--electric-periwinkle);
    border-color: var(--electric-periwinkle);
    color: white;
}

.footer-tagline {
    font-family: 'Azeret Mono', monospace;
    color: var(--golden-hour);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-panel {
        grid-template-columns: 1fr;
    }
    .hero-left {
        border-right: none;
        border-bottom: 3px solid var(--comic-ink);
    }
    .hero-right {
        padding: 1rem;
        gap: 8px;
    }
    .narrative-panel {
        grid-template-columns: 1fr;
    }
    .narrative-wide {
        flex-direction: column;
        padding: 2rem;
    }
    .narrative-text {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--comic-ink);
        padding-top: 1rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .metrics-panel {
        gap: 16px;
    }
}
