:root {
    --ink: #0a0a08;
    --cream: #f0ede6;
    --dim: #b0ab9f;
    --accent: #c9352a;
    --gold: #c8a84b;
    --surface: #111109;
    --surface2: #18180f;
    --border: rgba(240, 237, 230, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--ink);
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* Grid texture */
.grid-bg {
    background-image:
        linear-gradient(to right, rgba(240,237,230,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(240,237,230,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Diagonal rule lines (paper feeling) */
.ruled {
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 47px,
        rgba(240,237,230,0.04) 48px
    );
}

/* Scanline / noise overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.45;
}

/* Glitch line */
.glitch-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,53,42,0.6), transparent);
    animation: glitch-scan 8s linear infinite;
}
@keyframes glitch-scan {
    0% { top: 0; opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Book number style */
.book-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(240,237,230,0.12);
    letter-spacing: -0.04em;
}

/* Red accent line */
.red-bar {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    margin-right: 10px;
    vertical-align: middle;
}

/* Price strike */
.price-old {
    font-family: 'JetBrains Mono', monospace;
    color: var(--dim);
    text-decoration: line-through;
    font-size: 1.1rem;
}
.price-new {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

/* CTA button */
.btn-primary {
    display: inline-block;
    background: var(--cream);
    color: var(--ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1.1rem 2.8rem;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(10,10,8,0.2);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    pointer-events: none;
}
.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(240,237,230,0.15);
}

/* Myth card */
.myth-card {
    border: 1px solid var(--border);
    padding: 1.8rem 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}
.myth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.myth-card:hover::before { transform: scaleX(1); }
.myth-card:hover { border-color: rgba(201,53,42,0.3); }

/* Section label */
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dim);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(240,237,230,0.1);
    max-width: 60px;
}

/* Target yes/no */
.target-yes li, .target-no li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: rgba(240,237,230,0.6);
}
.target-yes li:last-child, .target-no li:last-child { border-bottom: none; }
.target-yes li .marker { color: #4ade80; font-size: 0.75rem; padding-top: 3px; }
.target-no li .marker { color: var(--accent); font-size: 0.75rem; padding-top: 3px; text-decoration: none; }
.target-no li { color: rgba(240,237,230,0.3); text-decoration: line-through; text-decoration-color: rgba(240,237,230,0.15); }

/* Divider */
.rule {
    border: none;
    border-top: 1px solid var(--border);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
}

/* Mobile sticky CTA */
#mobile-cta {
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
#mobile-cta.show { transform: translateY(0); }

/* Horizontal scroll pill tags */
.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    padding: 0.35rem 0.8rem;
    color: var(--dim);
}

/* Large decorative text */
.deco-text {
    font-size: clamp(3rem, 12vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(240,237,230,0.06);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Gold accent */
.text-gold { color: var(--gold); }
.text-accent { color: var(--accent); }

/* Header */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,10,8,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hero image glow */
.book-glow {
    filter: drop-shadow(0 0 60px rgba(201,53,42,0.15)) drop-shadow(0 0 120px rgba(200,168,75,0.08));
}

/* Hero grid layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .price-new { font-size: 2.5rem; }
    .book-num { font-size: 3.5rem; }

    /* Na mobile: obraz PRZED tekstem, full width */
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .hero-grid .hero-image {
        order: -1;
        max-width: 280px;
        margin: 0 auto;
    }
    .hero-grid .hero-image img {
        max-width: 100%;
    }
}

/* =====================
   KARUZELA OPINII
   ===================== */

.reviews-track {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.25rem 0;
}

.reviews-row {
    display: flex;
    gap: 0.75rem;
    width: max-content;
}

/* Rząd 1 — jedzie w lewo */
.reviews-row--left {
    animation: scroll-left 45s linear infinite;
}

/* Rząd 2 — jedzie w prawo */
.reviews-row--right {
    animation: scroll-right 50s linear infinite;
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Pause on hover */
.reviews-carousel-wrap:hover .reviews-row {
    animation-play-state: paused;
}

.rev-card {
    flex-shrink: 0;
    width: 240px;
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 0.7rem 0.9rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
    position: relative;
    transition: border-color 0.25s;
}

.rev-card:hover {
    border-color: rgba(201,53,42,0.25);
}

.rev-card--dim {
    background: rgba(18,18,9,0.7);
}

.rev-card p {
    font-size: 0.75rem;
    color: rgba(240,237,230,0.5);
    line-height: 1.5;
    margin: 0;
}

.rev-emoji {
    font-size: 0.95rem;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Top-left corner accent */
.rev-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 16px; height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s;
}
.rev-card:hover::before { opacity: 1; }

@media (max-width: 768px) {
    .rev-card { width: 200px; }
    .rev-card p { font-size: 0.7rem; }
}
