/* ============================================
   ANACK — BUILD BETTER.
   Design: 80% black, 15% off-white, 5% gold.
   No glow. No gradient. No neon.
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ANACK Color System */
    --black: #0B0B0B;
    --off-white: #EAEAEA;
    --charcoal: #2A2A2A;
    --gold: #B89A4A;
    --steel: #6F6F6F;

    --bg-primary: #0B0B0B;
    --bg-secondary: #2A2A2A;
    --text-primary: #EAEAEA;
    --text-secondary: #6F6F6F;

    /* Typography: 3 roles */
    --font-display: 'Oswald', 'Bebas Neue', sans-serif;   /* ANACK wordmark only */
    --font-header: 'Oswald', sans-serif;                  /* Headlines, nav, buttons */
    --font-body: 'Inter', 'Manrope', sans-serif;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 96px;
    --spacing-xxl: 128px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

/* ============================================
   BACKGROUND
   ============================================ */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-texture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: brightness(0.4) contrast(2.2);
}

.bg-mark-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.08;
    pointer-events: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-mark {
    width: min(90vw, 1000px);
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    filter: brightness(0.9);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 11, 0.65);
    z-index: 1;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(11, 11, 11, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(234, 234, 234, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.logo-fallback {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-logo-link .logo-img { display: block; }
.header-logo-link .logo-fallback { display: none; }

.main-nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.social-icons { display: flex; gap: var(--spacing-sm); align-items: center; }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    width: 32px;
    height: 32px;
    justify-content: center;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--gold);
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content { margin-top: var(--header-height); }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   HERO — Primary logo territory
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
    position: relative;
}

.hero-container { max-width: 900px; width: 100%; }

.hero-logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    width: auto;
    margin-bottom: var(--spacing-md);
}
.hero-logo-container.has-primary-logo .hero-wordmark { display: none; }

.hero-wordmark {
    display: block;
}
.hero-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(48px, 10vw, 120px);
    line-height: 1;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}
.hero-tagline {
    font-family: var(--font-header);
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--spacing-xs);
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.hero-description {
    font-family: var(--font-body);
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTION 2 — CONTENT PILLARS
   ============================================ */
.what-section {
    padding: var(--spacing-xxl) 0;
    text-align: left;
}

.section-header {
    font-family: var(--font-header);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
}

.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.column-item {
    display: flex;
    flex-direction: column;
    position: relative;
}

.column-accent {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--gold);
    margin-bottom: var(--spacing-sm);
}

.column-title {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.column-text {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Stream CTA */
.stream-cta-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: rgba(42, 42, 42, 0.3);
}
.stream-cta-text {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* Gear */
.gear-section { padding: var(--spacing-xl) 0; }
.gear-intro {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}
.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
}
.gear-item {
    padding: var(--spacing-md);
    background: var(--charcoal);
    border: 1px solid rgba(234, 234, 234, 0.08);
}
.gear-item.gear-link {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.gear-thumb {
    display: block;
    aspect-ratio: 1;
    background: var(--bg-primary);
    overflow: hidden;
}
.gear-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gear-label {
    padding: var(--spacing-md);
    text-align: center;
    transition: color 0.2s ease;
}
.gear-item.gear-link:hover {
    border-color: rgba(184, 154, 74, 0.4);
}
.gear-item.gear-link:hover .gear-label {
    color: var(--gold);
}
.gear-placeholder {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
}

/* Tools */
.tools-section {
    padding: var(--spacing-lg) 0;
    text-align: center;
}
.tools-intro {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
}

/* ============================================
   SECTION 3 — LATEST
   ============================================ */
.content-section { padding: var(--spacing-xxl) 0; }

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.content-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.content-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: var(--charcoal);
    border: 1px solid rgba(234, 234, 234, 0.08);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: background 0.3s ease;
}

.content-item:hover .content-thumbnail { transform: scale(1.02); }
.content-item:hover .thumbnail-overlay { background: rgba(11, 11, 11, 0.4); }

/* ============================================
   SECTION 4 — PHILOSOPHY
   ============================================ */
.philosophy-section {
    padding: var(--spacing-xxl) 0;
    background: rgba(42, 42, 42, 0.4);
}

.philosophy-content { max-width: 900px; }

.philosophy-text {
    font-family: var(--font-body);
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-header);
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.newsletter-subtext {
    font-family: var(--font-header);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--charcoal);
    border: 1px solid rgba(234, 234, 234, 0.12);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease;
}

.newsletter-input::placeholder { color: var(--text-secondary); }
.newsletter-input:focus { border-color: var(--gold); }

.newsletter-form .btn { white-space: nowrap; }

/* ============================================
   BUTTONS — Hard edges, no gradient
   ============================================ */
.btn {
    display: inline-block;
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 28px;
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}

.btn:hover {
    background: var(--off-white);
    color: var(--black);
}

.btn-secondary {
    background: transparent;
    color: var(--off-white);
    border: 2px solid var(--off-white);
}

.btn-secondary:hover {
    background: var(--off-white);
    color: var(--black);
}

/* ============================================
   FOOTER — Badge / Wolf Pack
   ============================================ */
.main-footer {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(234, 234, 234, 0.08);
    background: rgba(11, 11, 11, 0.95);
    text-align: center;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-badge-logo {
    width: 160px;
    height: auto;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-link {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover { color: var(--gold); }

.footer-copyright {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .main-nav { gap: var(--spacing-sm); }
    .nav-link { font-size: 12px; letter-spacing: 1px; }
    .three-columns { grid-template-columns: 1fr; gap: var(--spacing-lg); }
    .content-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
    :root {
        --spacing-xs: 6px;
        --spacing-sm: 12px;
        --spacing-md: 20px;
        --spacing-lg: 40px;
        --spacing-xl: 60px;
        --spacing-xxl: 80px;
    }

    .header-container { padding: 0 var(--spacing-sm); }
    .logo-img { height: 36px; }
    .logo-fallback { font-size: 18px; }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(11, 11, 11, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(234, 234, 234, 0.08);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-link { padding: var(--spacing-sm); width: 100%; text-align: center; }
    .mobile-menu-toggle { display: flex; }
    .social-icon { width: 18px; height: 18px; }
    .social-link { width: 32px; height: 32px; }

    .hero-section {
        padding: var(--spacing-sm);
        min-height: calc(100vh - var(--header-height));
        padding-top: var(--spacing-sm);
        margin-top: 0;
    }
    .hero-logo-container { margin-bottom: var(--spacing-sm); }
    .hero-logo { max-height: 200px; }
    .hero-brand { font-size: clamp(40px, 12vw, 72px); }
    .hero-tagline { font-size: 16px; }
    .hero-description { margin-bottom: var(--spacing-sm); }
    .hero-buttons { flex-direction: column; align-items: center; gap: var(--spacing-sm); }
    .btn { width: 100%; max-width: 280px; padding: 12px 24px; font-size: 12px; }

    .section-header { font-size: 28px; margin-bottom: var(--spacing-md); }
    .what-section,
    .stream-cta-section,
    .content-section,
    .gear-section,
    .tools-section,
    .philosophy-section,
    .newsletter-section { padding: var(--spacing-lg) 0; }
    .three-columns { gap: var(--spacing-md); }
    .column-title { font-size: 18px; }
    .column-text { font-size: 14px; }
    .content-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--spacing-sm); }
    .philosophy-text { font-size: 15px; margin-bottom: var(--spacing-md); }
    .newsletter-title { font-size: 36px; margin-bottom: var(--spacing-sm); }
    .newsletter-subtext { font-size: 18px; margin-bottom: var(--spacing-md); }
    .newsletter-form { flex-direction: column; width: 100%; }
    .newsletter-input { width: 100%; min-width: 100%; }
    .newsletter-form .btn { width: 100%; }

    .footer-badge-logo { width: 100px; }
    .footer-links { gap: var(--spacing-sm); }
    .footer-link { font-size: 12px; }
    .footer-copyright { font-size: 11px; }
    .container { padding: 0 var(--spacing-sm); }
}
