:root {
    --bg: #ecebdc; /* Off-white paper */
    --fg: #111111; /* Stark black */
    --accent: #e53935; /* Punchy red */
}

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

body {
    font-family: "Outfit", sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2vw;
    -webkit-font-smoothing: antialiased;
}

.frame {
    width: 100%;
    max-width: 1600px;
    border: 4px solid var(--fg);
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg);
    box-shadow: 12px 12px 0 var(--fg);
}

header {
    display: flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-bottom: 4px solid var(--fg);
    gap: 1rem;
}

.mark {
    height: 120px;
    width: auto;
    filter: brightness(0) drop-shadow(3px 3px 0 var(--accent));
}

.brand {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: lowercase;
    letter-spacing: -2px;
}

.manifesto {
    padding: 8vw 4vw;
    border-bottom: 4px solid var(--fg);
    background-image: radial-gradient(var(--fg) 1px, transparent 1px);
    background-size: 24px 24px;
    background-color: var(--bg);
    display: flex;
    gap: 4rem;
    align-items: center;
}

.manifesto-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.statement-steps {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3rem;
    color: var(--fg);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.statement-steps li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.statement-steps li::before {
    content: "→";
    color: var(--accent);
    font-weight: 900;
}

/* Device Mockup & Animation */
.hero-animation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.device-mockup {
    width: 340px;
    height: 680px;
    background-color: var(--fg);
    border-radius: 48px;
    padding: 16px;
    position: relative;
    box-shadow: 16px 16px 0 var(--accent);
    margin-top: -32px;
}

.device-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 4px solid var(--fg);
}

.mockup-header {
    height: 48px;
    background-color: var(--bg);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 16px;
    border-bottom: 4px solid var(--fg);
    position: relative;
    z-index: 10;
}

.status-time {
    font-size: 14px;
    font-weight: 900;
    margin-top: 10px;
}

.status-icons {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.notch {
    width: 120px;
    height: 30px;
    background-color: var(--fg);
    border-radius: 0 0 16px 16px;
    margin-top: -4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mockup-content {
    flex: 1;
    position: relative;
    background-image: radial-gradient(var(--fg) 1px, transparent 1px);
    background-size: 16px 16px;
}

.photo-view, .recipe-view, .details-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.photo-view {
    z-index: 3;
    background: var(--bg);
    animation: showPhoto 14s infinite;
}

.recipe-view {
    z-index: 2;
    animation: showRecipe 14s infinite;
}

.details-view {
    z-index: 1;
    animation: showDetails 14s infinite;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 32px;
}

.details-content {
    background: var(--bg);
    border: 4px solid var(--fg);
    padding: 20px;
    box-shadow: 8px 8px 0 var(--fg);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-content h4 {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.details-content .tags {
    display: flex;
    gap: 8px;
}

.details-content .tags span {
    background: var(--accent);
    color: var(--bg);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid var(--fg);
    text-transform: uppercase;
}

.details-content h5 {
    font-size: 16px;
    font-weight: 900;
    margin-top: 8px;
    border-bottom: 2px solid var(--fg);
    padding-bottom: 4px;
}

.details-content ul, .details-content ol {
    font-size: 14px;
    font-weight: 700;
    padding-left: 20px;
    color: var(--fg);
}

.details-content li {
    margin-bottom: 4px;
}

.mockup-nav {
    height: 64px;
    background-color: var(--bg);
    border-top: 4px solid var(--fg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    position: relative;
    z-index: 10;
}

.nav-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.5;
}

.nav-icon.active {
    opacity: 1;
}

.nav-icon.highlight {
    background-color: var(--accent);
    color: var(--bg);
    border: 3px solid var(--fg);
    opacity: 1;
    transform: translateY(-16px);
    box-shadow: 0 4px 0 var(--fg);
}

.viewfinder {
    width: 220px;
    height: 220px;
    border: 6px dashed var(--fg);
    position: absolute;
    animation: target 14s infinite;
}

.emoji {
    font-size: 120px;
    z-index: 10;
}

.recipe-card-brutalist {
    background: var(--bg);
    border: 4px solid var(--fg);
    padding: 24px;
    width: 100%;
    box-shadow: 8px 8px 0 var(--fg);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recipe-card-brutalist h4 {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
}

.recipe-card-brutalist p {
    font-size: 18px;
    font-weight: 700;
    color: var(--fg);
}

.btn-mock-brutalist {
    background-color: var(--accent);
    color: var(--bg);
    padding: 16px;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    border: 4px solid var(--fg);
    box-shadow: 4px 4px 0 var(--fg);
    animation: mockClick 14s infinite;
}

@keyframes showPhoto {
    0%, 15% { opacity: 1; transform: scale(1); visibility: visible; }
    20%, 95% { opacity: 0; transform: scale(1.05); visibility: hidden; }
    100% { opacity: 1; transform: scale(1); visibility: visible; }
}

@keyframes showRecipe {
    0%, 15% { opacity: 0; transform: translateY(20px); visibility: hidden; }
    20%, 35% { opacity: 1; transform: translateY(0); visibility: visible; }
    40%, 95% { opacity: 0; transform: translateY(-20px); visibility: hidden; }
    100% { opacity: 0; transform: translateY(20px); visibility: hidden; }
}

@keyframes showDetails {
    0%, 35% { opacity: 0; transform: translateY(20px); visibility: hidden; }
    40%, 95% { opacity: 1; transform: translateY(0); visibility: visible; }
    100% { opacity: 0; transform: translateY(20px); visibility: hidden; }
}

@keyframes target {
    0%, 8% { border-color: var(--fg); transform: scale(1.1); }
    10%, 14% { border-color: var(--accent); background: rgba(229, 57, 53, 0.2); transform: scale(1); }
    16%, 100% { border-color: var(--fg); background: transparent; transform: scale(1.1); }
}

@keyframes mockClick {
    0%, 25% { transform: translate(0, 0); box-shadow: 4px 4px 0 var(--fg); background-color: var(--accent); }
    28%, 32% { transform: translate(4px, 4px); box-shadow: 0px 0px 0 var(--fg); background-color: var(--fg); }
    35%, 100% { transform: translate(0, 0); box-shadow: 4px 4px 0 var(--fg); background-color: var(--accent); }
}

.action-block {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: var(--bg);
    color: var(--fg);
    border: 4px solid var(--fg);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 6px 6px 0 var(--accent);
}

.btn:hover {
    background: var(--fg);
    color: var(--bg);
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 var(--accent);
}

.btn:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0 var(--accent);
}

.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    background: var(--bg);
    color: var(--fg);
    border-color: var(--fg);
    box-shadow: 4px 4px 0 var(--fg);
}

.section-title {
    padding: 2rem 4vw 1rem;
    border-bottom: 4px solid var(--fg);
    background-color: var(--bg);
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--fg);
}

.section-title p {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
    color: var(--fg);
}

.details, .social-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.details article, .social-details article {
    padding: 4rem 4vw;
    border-right: 4px solid var(--fg);
    border-bottom: 4px solid var(--fg);
    transition: background 0.2s ease;
}

.details article:hover, .social-details article:hover {
    background-color: var(--fg);
    color: var(--bg);
}

.details article:last-child, .social-details article:last-child {
    border-right: none;
}

.details h2, .social-details h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--accent);
    letter-spacing: -2px;
}

.details p, .social-details p {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

footer {
    padding: 2rem 4vw;
    display: flex;
    justify-content: space-between;
    font-weight: 900;
    font-size: 1.25rem;
    text-transform: uppercase;
}

footer a {
    color: var(--fg);
    text-decoration: none;
    border-bottom: 4px solid var(--accent);
}

footer a:hover {
    background-color: var(--fg);
    color: var(--bg);
}

@media (max-width: 1200px) {
    .manifesto {
        flex-direction: column;
    }
    
    .hero-animation {
        margin-top: 4rem;
        width: 100%;
    }
}

@media (max-width: 900px) {
    body {
        padding: 4vw;
    }

    .details article, .social-details article {
        border-right: none;
    }

    .details article:not(:last-child), .social-details article:not(:last-child) {
        border-bottom: 4px solid var(--fg);
    }

    .details article:last-child, .social-details article:last-child {
        border-bottom: none;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .device-mockup {
        transform: scale(0.9);
        transform-origin: top center;
        margin-bottom: -68px;
    }
}

@media (max-width: 600px) {
    .frame {
        box-shadow: none;
    }

    header {
        flex-direction: column;
        justify-content: center;
        padding: 1rem;
    }

    .mark {
        height: 80px;
    }

    .brand {
        font-size: 2rem;
    }

    .device-mockup {
        transform: scale(0.8);
        transform-origin: top center;
        margin-bottom: -136px;
    }

    .section-title h2 {
        font-size: 2.25rem;
    }

    .details h2, .social-details h2 {
        font-size: 2.25rem;
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    footer a {
        margin-left: 0 !important;
    }
}