/* EmpireOfNoise — Professional Underground Styling */
/* No frameworks. No bullshit. Hand-built in the basement. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #060606;
    --bg-elevated: #0d0d0d;
    --bg-card: #111111;
    --text: #e8e8e8;
    --text-dim: #777;
    --text-muted: #444;
    --accent: #b30000;
    --accent-hover: #e60000;
    --accent-glow: rgba(179, 0, 0, 0.25);
    --border: #1a1a1a;
    --border-hover: #333;
    --radius: 2px;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

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

/* Vignette */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(0,0,0,0.4) 100%);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, rgba(6,6,6,0.95) 0%, rgba(6,6,6,0.7) 60%, transparent 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.header-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: grayscale(100%) contrast(120%);
    transition: filter 0.3s ease;
}

.header-logo:hover .header-logo-img {
    filter: grayscale(0%) contrast(100%);
}

.header-logo-text {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    display: none;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s ease;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.header-nav a:hover {
    color: #fff;
}

.header-nav a:hover::after {
    width: 100%;
}

/* Sections */
section {
    width: 100%;
    padding: 5rem 1.5rem;
    position: relative;
    z-index: 1;
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-subtitle {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 6rem;
    padding-bottom: 3rem;
    position: relative;
}

.hero-content {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.hero-content.loaded {
    opacity: 1;
    transform: translateY(0);
}

.logo-wrap {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.logo {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    filter: grayscale(100%) contrast(120%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.logo:hover {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.03);
}

.title {
    font-size: clamp(2.8rem, 9vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.4rem;
    text-shadow: 
        0 0 40px rgba(179, 0, 0, 0.15),
        2px 2px 0px rgba(179, 0, 0, 0.2);
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.cta-btn {
    display: inline-block;
    text-decoration: none;
    padding: 1rem 3rem;
    font-family: 'Oswald', 'Impact', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    background: transparent;
    color: var(--accent-hover);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInScroll 1s ease 2s forwards;
}

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

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

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

/* Manifesto Section */
.manifesto-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.manifesto-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: left;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.manifesto-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.manifesto-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.manifesto-card p {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dim);
}

/* Links Section */
.links-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.metal-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 1.1rem 1.5rem;
    font-family: 'Oswald', 'Impact', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: left;
}

.metal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.35s ease;
    z-index: 0;
}

.metal-btn:hover::before {
    left: 0;
}

.metal-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateX(4px);
}

.btn-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.metal-btn:hover .btn-icon {
    color: #fff;
}

.btn-text {
    position: relative;
    z-index: 1;
    flex: 1;
}

.btn-hint {
    position: relative;
    z-index: 1;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.metal-btn:hover .btn-hint {
    color: rgba(255,255,255,0.7);
}

/* Email Section */
.email-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto 1rem;
}

.email-input {
    padding: 1rem 1.25rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-input::placeholder {
    color: var(--text-muted);
}

.email-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.email-btn {
    padding: 1rem 2rem;
    font-family: 'Oswald', 'Impact', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-btn:hover {
    background: transparent;
    color: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
}

.email-note {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.email-note a {
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.email-note a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: grayscale(100%) contrast(120%);
    opacity: 0.6;
}

.footer-tag {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-copy {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Responsive */
@media (min-width: 480px) {
    .header-logo-text {
        display: inline;
    }

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

    .email-form {
        flex-direction: row;
    }

    .email-input {
        flex: 1;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 768px) {
    section {
        padding: 6rem 2rem;
    }

    .header-nav {
        gap: 2.5rem;
    }

    .manifesto-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .manifesto-card {
        padding: 2.5rem 2rem;
    }

    .links-grid {
        max-width: 450px;
    }

    .metal-btn {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 1024px) {
    .logo {
        max-width: 240px;
        max-height: 240px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-content {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-hint {
        animation: none;
        opacity: 1;
    }

    .scroll-line {
        animation: none;
    }

    .metal-btn:hover,
    .manifesto-card:hover,
    .cta-btn:hover {
        transform: none;
    }
}
