/* =============================================================================
   RIOT COFFEE — riot-coffee.css
   Neo-brutalist design system for the Riot Coffee showcase page.
   Fully self-contained: reset, typography, layout, components, responsive.
   ============================================================================= */


/* =============================================================================
   1. CSS Reset
   ============================================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =============================================================================
   2. Base
   ============================================================================= */

html {
    font-size: 16px;
}

body {
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    padding-top: 112px; /* 32px silo bar + 16px floating gap + 56px nav + 8px content gap */
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* =============================================================================
   3. Skip Link
   ============================================================================= */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 1000;
    padding: 8px 16px;
    background: #000000;
    color: #FFFFFF;
    text-decoration: underline;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
}

.skip-link:focus {
    top: 8px;
}


/* =============================================================================
   4. Silo Bar — Fixed strip above nav at all viewport sizes
   ============================================================================= */

@keyframes silo-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.silo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: #00F0FF;
    z-index: 101;
    animation: silo-fade-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

.silo-bar__link {
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #000000;
    transition: background-color 0.15s;
    padding: 4px 8px;
    border-radius: 3px;
}

.silo-bar__link:hover {
    background-color: rgba(0, 0, 0, 0.12);
}

/* Current page — non-interactive; visually distinct from nav links */
.silo-bar__current {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: #000000;
    padding-bottom: 2px;
    border-bottom: 2px solid #FF007A;
}

.silo-bar__sep {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
    user-select: none;
}

/* Full link text visible by default; short text shown only at ≤480px */
.silo-bar__link-full { display: inline; }
.silo-bar__link-short { display: none; }


/* =============================================================================
   5. Navigation — Floating Bar
   ============================================================================= */

.nav {
    position: fixed;
    top: 48px; /* 32px silo bar + 16px floating gap */
    left: 24px;
    right: 24px;
    z-index: 100;
    background: #000000;
    border: 3px solid #00F0FF;
}

.nav__inner {
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 56px;
}

/* Primary nav links — desktop only */
.nav__links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.nav__link {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00F0FF;
    transition: color 0.15s;
}

.nav__link:hover {
    color: #FF007A;
}

/* Silo links integrated in nav — hidden at all sizes; silo-bar handles navigation */
.nav__silo {
    display: none;
}

.nav__silo-link {
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    transition: color 0.15s;
}

.nav__silo-link:hover {
    color: #00F0FF;
}

.nav__silo-sep {
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

/* CTA button */
.nav__cta {
    display: inline-block;
    background: #FF007A;
    color: #FFFFFF;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 3px solid #000000;
    box-shadow: 4px 4px 0 0 #000000;
    border-radius: 0;
    margin-left: auto; /* Push CTA to right (nav__silo no longer provides this) */
    flex-shrink: 0;
    white-space: nowrap;
    transition: box-shadow 0.15s, background 0.15s;
}

.nav__cta:hover {
    box-shadow: 6px 6px 0 0 #000000;
    background: #FF339A;
}

/* Hamburger button — mobile only */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 16px;
    flex-shrink: 0;
}

.nav__hamburger-line {
    display: block;
    width: 20px;
    height: 3px;
    background: #00F0FF;
    transition: transform 0.15s, opacity 0.15s;
}

/* Hamburger → X when menu is open */
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =============================================================================
   6. Mobile Dropdown Menu
   ============================================================================= */

/* Hidden entirely on desktop */
.mobile-dropdown {
    display: none;
}

.mobile-dropdown__nav {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown__link {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    text-transform: uppercase;
    color: #00F0FF;
    padding: 16px 24px;
    border-bottom: 3px solid #00F0FF;
    transition: color 0.15s;
}

.mobile-dropdown__link:last-child {
    border-bottom: none;
}

.mobile-dropdown__link:hover,
.mobile-dropdown__link:focus {
    color: #FF007A;
}


/* =============================================================================
   7. Section 1: Marquee
   ============================================================================= */

.marquee-section {
    width: 100%;
    height: 56px;
    background: #00F0FF;
    border-top: 3px solid #000000;
    border-bottom: 3px solid #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: marquee 20s linear infinite;
}

.marquee-track span {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000000;
    white-space: nowrap;
    padding: 0 32px;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* =============================================================================
   8. Section 2: Hero
   ============================================================================= */

.hero {
    position: relative;
    background: #000000;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decorative background text lines */
.hero__bg-text {
    position: absolute;
    left: -5%; /* Slight overhang left to ensure full coverage on rotation */
    right: -5%;
    font-family: 'Archivo Black', sans-serif;
    font-size: 200px;
    font-weight: 400;
    line-height: 0.9;
    color: rgba(255, 255, 255, 0.08);
    transform: rotate(-5deg);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

/* Position each of the 5 lines vertically (200px × 0.9 line-height = 180px per line) */
.hero__bg-text:nth-child(1) { top: -20px; }
.hero__bg-text:nth-child(2) { top: 160px; }
.hero__bg-text:nth-child(3) { top: 340px; }
.hero__bg-text:nth-child(4) { top: 520px; }
.hero__bg-text:nth-child(5) { top: 700px; }

/* Hero content sits above bg text */
.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 48px;
    max-width: 1200px;
    width: 100%;
}

/* Product image container with halftone overlay */
.hero-image-container {
    position: relative;
    max-width: 400px;
    width: 100%;
    margin-bottom: 40px;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: radial-gradient(circle, #000000 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.3;
    mix-blend-mode: multiply;
}

.hero__image {
    display: block;
    max-width: 400px;
    width: 100%;
    height: auto;
}

.hero__headline {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 72px;
    line-height: 1.0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #FFFFFF;
    transform: rotate(-2deg);
    max-width: 900px;
    margin-bottom: 24px;
    transition: transform 0.15s;
}

.hero__headline:hover {
    transform: rotate(-2deg) translate(3px, -2px);
}

.hero__sub {
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
}


/* =============================================================================
   9. Section 3: Feature Cards
   ============================================================================= */

.features {
    background: #000000;
    padding: 80px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.feature-card {
    background: #FFFFFF;
    border: 4px solid #000000;
    box-shadow: 6px 6px 0 0 #000000;
    padding: 32px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.15s, transform 0.15s;
}

/* Alternate card rotations for "scattered" effect */
.feature-card--1 { transform: rotate(1deg); }
.feature-card--2 { transform: rotate(0deg); }
.feature-card--3 { transform: rotate(-1deg); }

.feature-card--1:hover { transform: rotate(1deg) translate(-2px, -2px); box-shadow: 8px 8px 0 0 #000000; }
.feature-card--2:hover { transform: rotate(0deg) translate(-2px, -2px); box-shadow: 8px 8px 0 0 #000000; }
.feature-card--3:hover { transform: rotate(-1deg) translate(-2px, -2px); box-shadow: 8px 8px 0 0 #000000; }

.feature-card__icon {
    display: flex;
    align-items: flex-start;
}

.feature-card__title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #000000;
}

.feature-card__desc {
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
}


/* =============================================================================
   10. Section 4: Social Proof — Stat Strip
   ============================================================================= */

.stat-strip {
    background: #FF007A;
    border-top: 3px solid #000000;
    border-bottom: 3px solid #000000;
    padding: 24px 0;
}

.stat-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat__number {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.stat__label {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.stat-strip__sep {
    font-family: 'Archivo Black', sans-serif;
    font-size: 48px;
    line-height: 1.0;
    color: rgba(255, 255, 255, 0.5);
    align-self: center;
    user-select: none;
}


/* =============================================================================
   10b. Section 4: Social Proof — Wall of Drops
   ============================================================================= */

.drops {
    background: #000000;
    padding: 80px 0;
}

.drops__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.drops__heading {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #00F0FF;
    margin-bottom: 8px;
}

.drops__roaster {
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.drops__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.drop-card {
    background: #000000;
    border: 3px solid #00F0FF;
    box-shadow: 4px 4px 0 0 #000000;
    border-radius: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.drop-card:hover {
    border-color: #FF007A;
    box-shadow: 6px 6px 0 0 #000000;
}

/* Image placeholder area with "RIOT" watermark */
.drop-card__image {
    height: 160px;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Archivo Black', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    user-select: none;
}

.drop-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
}

.drop-card__name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #FFFFFF;
}

.drop-card__date {
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.4);
}


/* =============================================================================
   11. Section 5: Closer
   ============================================================================= */

.closer {
    background: #00F0FF;
    padding: 80px 0;
}

.closer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.closer__headline {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 64px;
    line-height: 1.0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 24px;
}

.closer__value-prop {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 24px;
}

/* Terminal-style visual-only email input */
.terminal-input {
    display: block;
    background: #000000;
    color: #00F0FF;
    border: 3px solid #000000;
    border-right: 3px solid #00F0FF;
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    line-height: 1;
    padding: 16px 24px;
    width: 400px;
    max-width: 100%;
    border-radius: 0;
    outline: none;
    animation: blink 1s step-end infinite;
}

.terminal-input::placeholder {
    color: rgba(0, 240, 255, 0.7);
}

@keyframes blink {
    0%, 100% { border-right-color: #00F0FF; }
    50%       { border-right-color: transparent; }
}


/* =============================================================================
   12. Footer Attribution
   ============================================================================= */

.attribution {
    background: #000000;
    padding: 24px 0;
    text-align: center;
}

.attribution__text {
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.attribution__link {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: underline;
    transition: color 0.15s;
}

.attribution__link:hover {
    color: rgba(255, 255, 255, 0.5);
}


/* =============================================================================
   13. Focus States
   ============================================================================= */

:focus-visible {
    outline: 2px solid #00F0FF;
    outline-offset: 2px;
}


/* =============================================================================
   14. Responsive — 1024px (Tablet/Laptop)
   ============================================================================= */

@media (max-width: 1024px) {
    .features__grid {
        padding: 0 24px;
    }

    .stat-strip__inner {
        padding: 0 24px;
    }

    .drops__container {
        padding: 0 24px;
    }

    .closer__inner {
        padding: 0 24px;
    }

    .hero__content {
        padding: 48px 24px;
    }

    .hero__headline {
        font-size: 56px;
    }
}


/* =============================================================================
   15. Responsive — 768px (Mobile)
   ============================================================================= */

@media (max-width: 768px) {

    /* Body offset: 32px silo bar + 56px nav + 8px content gap = 96px */
    body {
        padding-top: 96px;
    }

    /* --- Navigation --- */
    /* Collapse floating gap on mobile — nav stacks directly below silo bar */
    .nav {
        top: 32px;
    }

    /* Hide desktop nav links on mobile (nav__silo already hidden in base) */
    .nav__links {
        display: none;
    }

    /* CTA stays visible but slightly smaller */
    .nav__cta {
        font-size: 12px;
        padding: 10px 16px;
        margin-left: auto; /* Push CTA+hamburger to right */
    }

    /* Show hamburger button */
    .nav__hamburger {
        display: flex;
    }

    /* --- Mobile Dropdown --- */
    .mobile-dropdown {
        display: block;
        position: fixed;
        top: 88px; /* 32px silo + 56px nav */
        left: 24px;
        right: 24px;
        z-index: 200;
        background: #000000;
        border-left: 3px solid #00F0FF;
        border-right: 3px solid #00F0FF;
        border-bottom: 3px solid #00F0FF;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.15s ease-out, visibility 0.15s;
    }

    .mobile-dropdown.is-open {
        max-height: 300px;
        visibility: visible;
    }

    /* --- Marquee --- */
    .marquee-section {
        height: 44px;
    }

    .marquee-track span {
        font-size: 14px;
        padding: 0 20px;
    }

    /* --- Hero --- */
    .hero {
        min-height: auto;
    }

    .hero__bg-text {
        font-size: 100px;
    }

    /* Reposition bg text for 100px font (100px × 0.9 = 90px per line) */
    .hero__bg-text:nth-child(1) { top: -10px; }
    .hero__bg-text:nth-child(2) { top: 80px; }
    .hero__bg-text:nth-child(3) { top: 170px; }
    .hero__bg-text:nth-child(4) { top: 260px; }
    /* 5th line hidden on mobile (4 lines only) */
    .hero__bg-text:nth-child(5) { display: none; }

    .hero__content {
        padding: 48px 24px;
    }

    .hero-image-container {
        max-width: 260px;
    }

    .hero__image {
        max-width: 260px;
    }

    .hero__headline {
        font-size: 36px;
        transform: none; /* No rotation on mobile */
    }

    .hero__headline:hover {
        transform: none; /* No hover shift on mobile */
    }

    .hero__sub {
        font-size: 15px;
    }

    /* --- Features --- */
    .features {
        padding: 48px 0;
    }

    .features__grid {
        grid-template-columns: 1fr;
        padding: 0 24px;
        gap: 16px;
    }

    /* Remove card rotations on mobile */
    .feature-card--1,
    .feature-card--2,
    .feature-card--3 {
        transform: rotate(0deg);
    }

    .feature-card--1:hover,
    .feature-card--2:hover,
    .feature-card--3:hover {
        transform: translate(-2px, -2px);
        box-shadow: 8px 8px 0 0 #000000;
    }

    /* --- Stat Strip: 2×2 grid --- */
    .stat-strip__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        justify-items: center;
        padding: 0 24px;
    }

    /* Hide separators in 2×2 grid layout */
    .stat-strip__sep {
        display: none;
    }

    .stat__number {
        font-size: 32px;
    }

    /* --- Drops Grid: 2 columns --- */
    .drops {
        padding: 48px 0;
    }

    .drops__container {
        padding: 0 24px;
    }

    .drops__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* --- Closer --- */
    .closer {
        padding: 48px 0;
    }

    .closer__inner {
        padding: 0 24px;
    }

    .closer__headline {
        font-size: 40px;
    }
}


/* =============================================================================
   16. Responsive — 480px (Small Mobile)
   ============================================================================= */

@media (max-width: 480px) {
    /* Tighter container padding at smallest viewport */
    .features__grid {
        padding: 0 16px;
    }

    .stat-strip__inner {
        padding: 0 16px;
    }

    .drops__container {
        padding: 0 16px;
    }

    .closer__inner {
        padding: 0 16px;
    }

    .hero__content {
        padding: 32px 16px;
    }

    /* Silo bar: swap to short link text at smallest sizes */
    .silo-bar__link-full { display: none; }
    .silo-bar__link-short { display: inline; }
}


/* =============================================================================
   17. Reduced Motion
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    /* Stop marquee — show static centered text */
    .marquee-track {
        animation: none;
        justify-content: center;
    }

    /* Hide duplicate span used for the seamless loop */
    .marquee-track span:last-child {
        display: none;
    }

    /* Remove card rotations and headline tilt */
    .hero__headline,
    .feature-card,
    .feature-card--1,
    .feature-card--2,
    .feature-card--3 {
        transform: none !important;
    }

    /* Stop terminal cursor blink */
    .terminal-input {
        animation: none;
        border-right-color: #00F0FF;
    }
}


/* =============================================================================
   18. Print
   ============================================================================= */

@media print {
    /* Hide halftone overlay */
    .hero-image-container::after {
        display: none;
    }

    /* Hide fixed navigation */
    .nav,
    .silo-bar,
    .mobile-dropdown {
        display: none;
    }

    /* Stop marquee animation and keep it contained */
    .marquee-section {
        break-inside: avoid;
    }

    .marquee-track {
        animation: none;
        justify-content: center;
    }

    .marquee-track span:last-child {
        display: none;
    }

    /* Remove body padding from fixed nav */
    body {
        padding-top: 0;
    }
}
