/* =========================================================
   RUSTY ROOF MEDIA — HOMEPAGE STYLES
   WBD-inspired layout / dark rust-copper aesthetic
   ========================================================= */

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

:root {
    --bg: #0c0c0c;
    --surface: #161614;
    --surface-hover: #1e1e1a;
    --border: #2a2825;
    --text: #f0ece4;
    --text-muted: #6b6560;
    --rust: #b87333;
    --gold: #c9a84c;
    --green: #34d399;
    --font-display: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --section-pad: clamp(80px, 10vw, 120px);
}

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

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- GRAIN OVERLAY --- */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out),
                transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   HEADER / STICKY NAV
   ========================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
    background: rgba(12, 12, 12, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    backdrop-filter: blur(20px) saturate(1.2);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header__logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.header__logo-accent {
    background: linear-gradient(135deg, #c4622a, #b87333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__nav {
    display: flex;
    gap: 2.5rem;
}

.header__link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}

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

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

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

/* Mobile menu button */
.header__menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.header__menu-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

/* =========================================================
   INTRO SECTION
   ========================================================= */
.intro {
    padding-top: calc(64px + var(--section-pad));
    padding-bottom: var(--section-pad);
}

.intro__content {
    max-width: 800px;
}

.intro__text {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 300;
    line-height: 1.55;
    color: var(--text);
    letter-spacing: -0.005em;
}

.intro__cta {
    display: inline-block;
    margin-top: 2.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rust);
    transition: color 0.3s, letter-spacing 0.3s;
}

.intro__cta:hover {
    color: var(--gold);
    letter-spacing: 0.14em;
}

.intro__arrow {
    display: inline-block;
    transition: transform 0.3s;
}

.intro__cta:hover .intro__arrow {
    transform: translateY(3px);
}

/* =========================================================
   SECTION LABEL (small uppercase tracking)
   ========================================================= */
.section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* =========================================================
   BRANDS GRID — THE CENTERPIECE
   ========================================================= */
.brands {
    padding: 0 0 var(--section-pad);
}

.brands__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- BRAND CARD --- */
.brand-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out),
                box-shadow 0.4s var(--ease-out),
                border-color 0.4s,
                background 0.4s;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-4px);
    background: var(--surface-hover);
    border-color: rgba(184, 115, 51, 0.4);
    box-shadow: 0 16px 48px rgba(184, 115, 51, 0.08),
                0 0 0 1px rgba(184, 115, 51, 0.15);
}

.brand-card--no-link {
    cursor: default;
}

.brand-card--no-link:hover {
    transform: none;
    background: var(--surface);
    border-color: var(--border);
    box-shadow: none;
}

.brand-card__inner {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 180px;
    justify-content: center;
}

.brand-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* Status dots */
.brand-card__status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.brand-card__status--live {
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.brand-card__status--dev {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.4);
}

.brand-card__status--partner {
    background: var(--rust);
    box-shadow: 0 0 8px rgba(184, 115, 51, 0.4);
}

.brand-card__status--soon {
    background: var(--text-muted);
}

.brand-card__status-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.brand-card__name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
    color: var(--text);
}

.brand-card__desc {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* =========================================================
   LATEST NEWS
   ========================================================= */
.news {
    padding: var(--section-pad) 0;
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 28px 24px;
    transition: border-color 0.3s, background 0.3s;
}

.news-card:hover {
    border-color: rgba(184, 115, 51, 0.35);
    background: var(--surface-hover);
}

.news-card__date {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 12px;
}

.news-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--text);
    margin-bottom: 10px;
}

.news-card__excerpt {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.55;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
    padding: 0 0 var(--section-pad);
}

.about__content {
    max-width: 700px;
    border-top: 1px solid var(--border);
    padding-top: var(--section-pad);
}

.about__text {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
}

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

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

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

.footer__nav a {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    transition: color 0.3s;
}

.footer__nav a:hover {
    color: var(--rust);
}

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

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

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

.footer__powered {
    margin-top: 2rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 0.04em;
}

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

    .news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(12, 12, 12, 0.96);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 24px;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
    }

    .header__nav.open {
        display: flex;
    }

    .header__menu-btn {
        display: flex;
    }

    .header__menu-btn.open span:first-child {
        transform: rotate(45deg) translate(2px, 2px);
    }

    .header__menu-btn.open span:last-child {
        transform: rotate(-45deg) translate(2px, -2px);
    }

    .intro__text {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }
}

@media (max-width: 640px) {
    .brands__grid {
        grid-template-columns: 1fr;
    }

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

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__powered {
        text-align: center;
    }

    .brand-card__inner {
        min-height: 160px;
        padding: 28px 24px;
    }
}

/* --- SELECTION COLOR --- */
::selection {
    background: rgba(184, 115, 51, 0.3);
    color: var(--text);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
