/* ============================================
   NICO MARKWART-BÖCKER — PIXEL PROTOCOL
   Editorial Brutalist Aesthetic
   ============================================ */

/* --- Custom Properties --- */
:root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #161616;
    --surface: #1a1a1a;
    --text: #f0ece4;
    --text-secondary: #a8a29e;
    --text-muted: #5c5856;
    --accent: #e8c547;
    --accent-dim: #c9a832;
    --accent-glow: rgba(232, 197, 71, 0.12);
    --border: #2a2725;
    --border-light: #3a3633;

    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Satoshi', -apple-system, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --container: 1200px;
    --gap: clamp(1.5rem, 4vw, 3rem);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* --- Section Label --- */
.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.section-label--dark {
    color: var(--bg);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    padding: 1rem 2rem;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg);
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateY(101%);
    transition: transform 0.4s var(--ease-out);
}

.btn--primary:hover::before {
    transform: translateY(0);
}

.btn--primary span,
.btn--primary svg {
    position: relative;
    z-index: 1;
}

.btn--primary:hover {
    color: var(--bg);
}

.btn--primary svg {
    transition: transform 0.4s var(--ease-out);
}

.btn--primary:hover svg {
    transform: translateX(4px);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
    padding: 1rem 2rem;
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--large {
    padding: 1.25rem 2.75rem;
    font-size: 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem var(--gap);
    transition: all 0.5s var(--ease-out);
}

.nav--scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem var(--gap);
}

.nav__logo {
    color: var(--text);
    transition: color 0.3s;
    z-index: 101;
    display: flex;
    align-items: center;
}

.nav__logo:hover {
    color: var(--accent);
}

.nav__logo img {
    height: 40px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out);
}

.nav__link:hover {
    color: var(--text);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--bg);
    background: var(--accent);
    padding: 0.65rem 1.5rem;
    transition: all 0.3s var(--ease-out);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.nav__cta:hover {
    background: #fff;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.4s var(--ease-out);
    transform-origin: center;
}

.nav__burger.active span:first-child {
    transform: rotate(45deg) translateY(3.75px);
}

.nav__burger.active span:last-child {
    transform: rotate(-45deg) translateY(-3.75px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text);
    transition: color 0.3s;
}

.mobile-menu__link:hover {
    color: var(--accent);
}

.mobile-menu__cta {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--bg);
    background: var(--accent);
    padding: 0.85rem 2rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem var(--gap) 4rem;
    overflow: hidden;
}

.hero__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(6rem, 18vw, 18rem);
    font-style: italic;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px var(--border);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

.hero__content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.05;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero__line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.hero__line--1 { animation: fadeUp 0.9s var(--ease-out) 0.3s forwards; }
.hero__line--2 { animation: fadeUp 0.9s var(--ease-out) 0.4s forwards; }
.hero__line--3 { animation: fadeUp 0.9s var(--ease-out) 0.5s forwards; }
.hero__line--4 { animation: fadeUp 0.9s var(--ease-out) 0.6s forwards; }
.hero__line--5 { animation: fadeUp 0.9s var(--ease-out) 0.7s forwards; }

.hero__accent {
    color: var(--accent);
    font-style: italic;
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 1.5s forwards;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s var(--ease-in-out) infinite;
}

/* ============================================
   PAIN POINTS
   ============================================ */
.pain {
    padding: clamp(6rem, 12vw, 10rem) 0;
    border-top: 1px solid var(--border);
}

.pain__headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 4rem;
}

.pain__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    margin-bottom: 4rem;
}

.pain__card {
    background: var(--bg);
    padding: clamp(2rem, 4vw, 3rem);
    position: relative;
    transition: background 0.4s var(--ease-out);
}

.pain__card:hover {
    background: var(--bg-elevated);
}

.pain__number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-style: italic;
    color: var(--accent);
    opacity: 0.3;
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}

.pain__text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 380px;
}

.pain__conclusion {
    text-align: center;
    padding-top: 2rem;
}

.pain__conclusion p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.pain__emphasis {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-style: italic;
    color: var(--accent) !important;
    margin-top: 0.5rem;
}

/* ============================================
   METHOD / PIXEL PROTOCOL
   ============================================ */
.method {
    padding: clamp(6rem, 12vw, 10rem) 0;
    background: var(--bg-elevated);
    position: relative;
}

.method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.method__header {
    margin-bottom: 5rem;
    max-width: 680px;
}

.method__headline {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.method__headline em {
    color: var(--accent);
}

.method__intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.method__principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
}

.method__principle {
    padding: clamp(2rem, 3.5vw, 2.75rem);
    border-right: 1px solid var(--border);
    position: relative;
    transition: background 0.5s var(--ease-out);
}

.method__principle:last-child {
    border-right: none;
}

.method__principle:hover {
    background: var(--surface);
}

.method__principle-marker {
    width: 8px;
    height: 8px;
    background: var(--accent);
    margin-bottom: 1.75rem;
}

.method__principle-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

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

/* ============================================
   PROCESS
   ============================================ */
.process {
    padding: clamp(6rem, 12vw, 10rem) 0;
    border-top: 1px solid var(--border);
}

.process__headline {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 5rem;
    max-width: 700px;
}

.process__headline em {
    color: var(--accent);
}

.process__steps {
    display: flex;
    flex-direction: column;
}

.process__step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    align-items: start;
    transition: background 0.4s var(--ease-out);
}

.process__step:last-child {
    border-bottom: 1px solid var(--border);
}

.process__step:hover {
    background: var(--bg-elevated);
    padding-left: 2rem;
    padding-right: 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
}

.process__step-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--accent);
    opacity: 0.5;
    line-height: 1;
    padding-top: 0.25rem;
}

.process__step-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.process__step-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 580px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: clamp(6rem, 12vw, 10rem) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.about__layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__image-placeholder {
    aspect-ratio: 3/4;
    background: var(--surface);
    overflow: hidden;
    position: relative;
}

.about__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.6s ease;
}

.about__photo:hover {
    filter: grayscale(0%);
}

.about__image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
}

.about__image-fallback span {
    font-family: var(--font-display);
    font-size: 4rem;
    font-style: italic;
    color: var(--text-muted);
}

.about__image-accent {
    position: absolute;
    inset: -10px;
    border: 1.5px solid var(--accent);
    pointer-events: none;
}

.about__headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 2rem;
}

.about__headline em {
    color: var(--accent);
}

.about__body p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.about__body strong {
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   FIT / NOT FIT
   ============================================ */
.fit {
    padding: clamp(6rem, 12vw, 10rem) 0;
    border-top: 1px solid var(--border);
}

.fit__layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.fit__divider {
    width: 1px;
    height: 100%;
    min-height: 200px;
    background: var(--border);
}

.fit__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 2rem;
}

.fit__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fit__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.fit__list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.fit__list--no li {
    color: var(--text-muted);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: clamp(6rem, 12vw, 10rem) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.testimonials__headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 4rem;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.testimonial {
    background: var(--bg-elevated);
    padding: clamp(2rem, 3.5vw, 2.75rem);
    display: flex;
    flex-direction: column;
    transition: background 0.4s var(--ease-out);
}

.testimonial:hover {
    background: var(--surface);
}

.testimonial__stars {
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.testimonial__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial__author {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.testimonial__rating {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: clamp(6rem, 14vw, 12rem) 0;
    border-top: 1px solid var(--border);
}

.cta__inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    background: var(--accent);
    padding: clamp(3rem, 6vw, 5rem);
    position: relative;
}

.cta__inner::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid var(--accent-dim);
    pointer-events: none;
}

.cta__headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--bg);
    margin-bottom: 1.25rem;
}

.cta__headline em {
    font-style: italic;
}

.cta__text {
    font-size: 1rem;
    color: var(--bg);
    opacity: 0.75;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn--primary {
    background: var(--bg);
    color: var(--accent);
}

.cta .btn--primary::before {
    background: #222;
}

.cta .btn--primary:hover {
    color: var(--accent);
}

.cta__note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--bg);
    opacity: 0.5;
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.footer__layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.footer__copy {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.footer__links {
    display: flex;
    gap: 2rem;
}

.footer__link {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer__link:hover {
    color: var(--text);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    color: var(--text-muted);
    transition: color 0.3s;
    display: flex;
}

.footer__social-link:hover {
    color: var(--accent);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* Scroll Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid children */
.pain__grid [data-reveal]:nth-child(2),
.method__principles [data-reveal]:nth-child(2),
.testimonials__grid [data-reveal]:nth-child(2) {
    transition-delay: 0.1s;
}

.pain__grid [data-reveal]:nth-child(3),
.method__principles [data-reveal]:nth-child(3),
.testimonials__grid [data-reveal]:nth-child(3) {
    transition-delay: 0.2s;
}

.pain__grid [data-reveal]:nth-child(4),
.method__principles [data-reveal]:nth-child(4) {
    transition-delay: 0.3s;
}

.process__step[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.process__step[data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.process__step[data-reveal]:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .method__principles {
        grid-template-columns: repeat(2, 1fr);
    }

    .method__principle:nth-child(2) {
        border-right: none;
    }

    .method__principle:nth-child(1),
    .method__principle:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .about__layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__image-wrapper {
        max-width: 400px;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__burger {
        display: flex;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero__bg-text {
        font-size: 20vw;
    }

    .pain__grid {
        grid-template-columns: 1fr;
    }

    .method__principles {
        grid-template-columns: 1fr;
    }

    .method__principle {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .method__principle:last-child {
        border-bottom: none;
    }

    .process__step {
        grid-template-columns: 60px 1fr;
        gap: 1.25rem;
        padding: 2rem 0;
    }

    .process__step:hover {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .process__step-num {
        font-size: 2rem;
    }

    .fit__layout {
        grid-template-columns: 1fr;
    }

    .fit__divider {
        width: 100%;
        height: 1px;
        min-height: auto;
    }

    .footer__layout {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer__brand {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta__inner {
        padding: 2.5rem 1.5rem;
    }

    .cta .btn--large {
        width: 100%;
        justify-content: center;
    }
}

/* --- Grain Overlay --- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}
