/* =============================================
   ARCROMUNDA HUB — Landing Page Stylesheet
   Dark industrial / Necromunda underhive aesthetic
   ============================================= */

:root {
    --bg-base:        #0d0d0d;
    --bg-card:        #141414;
    --bg-header:      #0a0a0a;
    --border:         #2a2a2a;
    --border-accent:  #c8960040;

    --ink-primary:    #e8e0d0;
    --ink-secondary:  #8a8070;
    --ink-muted:      #504840;

    --rust:           #c85a1a;
    --rust-dim:       #8a3a10;
    --gold:           #c89600;
    --gold-dim:       #8a6800;
    --green-confirm:  #4a8a50;

    --font-display:   'Bebas Neue', 'Impact', sans-serif;
    --font-mono:      'Share Tech Mono', 'Courier New', monospace;
    --font-body:      'Barlow', system-ui, sans-serif;
}

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

html { font-size: 16px; }

body {
    background: var(--bg-base);
    color: var(--ink-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Grain texture overlay */
.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    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)' opacity='1'/%3E%3C/svg%3E");
}

/* ---- LAYOUT ---- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- TOP NAV ---- */
.top-nav {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.top-nav a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-decoration: none;
    padding: 0.4rem 1rem;
    border: 1px solid var(--gold-dim);
    transition: background 0.2s, border-color 0.2s;
}

.top-nav a:hover {
    background: #c8960015;
    border-color: var(--gold);
}

/* ---- LOGO / HERO ---- */
.site-logo {
    width: min(500px, 90vw);
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero {
    position: relative;
    padding: 0;
    margin-top: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, #c8960008 0%, transparent 70%),
        repeating-linear-gradient(0deg, transparent, transparent 39px, #ffffff04 39px, #ffffff04 40px),
        repeating-linear-gradient(90deg, transparent, transparent 79px, #ffffff03 79px, #ffffff03 80px);
    pointer-events: none;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--ink-primary);
    margin-bottom: 0;
    margin-top: 0;
}

.hero-title .accent {
    display: block;
    font-size: clamp(2.5rem, 9.5vw, 3.2rem);
    margin-top: -50px;
    position: relative;
    padding: 1.0rem 2.5rem 0.5rem 2.5rem;
    background: url('/images/hazard-stripe.png') center / cover no-repeat;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    -webkit-text-stroke: 0;
    text-shadow:
        0 -4px 4px rgba(0,0,0,1),
        0  4px 2px rgba(255,255,255,0.12),
        3px  0 4px rgba(0,0,0,0.9),
       -3px  0 4px rgba(0,0,0,0.9),
        0    6px 12px rgba(0,0,0,0.8);
    box-shadow: 0 6px 24px rgba(0,0,0,0.8);
}

/* ---- ABOUT ---- */
.about-section {
    padding: 10px 0 calc(2rem - 40px);
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    padding: 2.5rem;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}

.about-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--ink-secondary);
    margin-bottom: 1.0rem;
}

.about-awards-wrap {
    position: relative;
    margin-bottom: 1.75rem;
    margin-top: 0.75rem;
}

.awards-label {
    position: absolute;
    top: -0.55rem;
    left: 1rem;
    background: var(--bg-card);
    padding: 0 0.4rem;
    font-size: 0.95rem;
    line-height: 1;
    color: var(--ink-secondary);
    z-index: 1;
}

.about-awards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    margin-bottom: 0;
}

.award {
    padding: 1.25rem 1rem;
    border-right: 1px solid var(--border);
    text-align: center;
}

.award:last-child { border-right: none; }

.award-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.award-title-sub {
    display: block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--gold-dim);
    margin-bottom: 0.4rem;
}

.award-desc {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-secondary);
    line-height: 1.4;
}

/* ---- COMBINED TERMINAL (dispatch + uplink) ---- */
.terminal-section {
    padding: 2rem 0 4rem;
}

.terminal-card {
    background: #051e07;
    border: 1px solid #00ff4166;
    border-top: 2px solid #00ff41;
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    box-shadow:
        0 0 0 1px #00ff4130,
        0 0 20px rgba(0,255,65,0.25),
        0 0 60px rgba(0,255,65,0.12),
        inset 0 0 60px rgba(0,255,65,0.07);
    animation: crt-flicker 8s infinite;
    overflow: hidden;
}

.terminal-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.12) 2px,
        rgba(0,0,0,0.12) 4px
    );
    pointer-events: none;
    z-index: 10;
}

.terminal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff41 20%, #00ff41 80%, transparent);
    opacity: 0.8;
}

.terminal-panel {
    padding: 2rem 2.5rem;
}

.terminal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff41 20%, #00ff41 80%, transparent);
    opacity: 0.3;
    margin: 0 2.5rem;
}

.news-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #00ff4122;
}

.news-item:last-child { border-bottom: none; padding-bottom: 0; }

.news-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: #00882a;
    margin-bottom: 0.3rem;
}

.news-headline {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #00ff41;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 8px #00ff4180;
}

.news-body {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #00882a;
    font-family: var(--font-mono);
}

/* ---- SIGNUP ---- */
@keyframes crt-flicker {
    0%   { opacity: 1; }
    92%  { opacity: 1; }
    93%  { opacity: 0.85; }
    94%  { opacity: 1; }
    98%  { opacity: 1; }
    99%  { opacity: 0.9; }
    100% { opacity: 1; }
}


.card-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: #00ff41;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 8px #00ff41, 0 0 20px #00ff4180;
}

.card-label::before {
    content: '> ';
    opacity: 0.6;
}

.about-card .card-label {
    color: var(--gold);
    text-shadow: none;
}


.card-title {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: #00ff41;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 10px #00ff41, 0 0 30px #00ff4199, 0 0 60px #00ff4140;
}

.card-body {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #00882a;
    margin-bottom: 1.75rem;
    font-family: var(--font-mono);
}

.input-group {
    display: flex;
    gap: 0;
}

.email-input {
    flex: 1;
    background: #010801;
    border: 1px solid #00ff4144;
    border-right: none;
    color: #00ff41;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 0;
    text-shadow: 0 0 6px #00ff4180;
}

.email-input::placeholder { color: #00441a; }

.email-input:focus {
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0,255,65,0.2);
}

.email-input.input--error { border-color: var(--rust); }

.submit-btn {
    background: transparent;
    color: #00ff41;
    border: 1px solid #00ff41;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    text-shadow: 0 0 8px #00ff41, 0 0 20px #00ff4180;
}

.submit-btn:hover {
    background: #00ff4120;
    box-shadow: 0 0 20px rgba(0,255,65,0.5), 0 0 40px rgba(0,255,65,0.2);
}

.message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message--success { background: #0d1f0f; border: 1px solid #2a4a2d; color: #6abf72; }
.message--error   { background: #1f0d0a; border: 1px solid var(--rust-dim); color: #e07050; }

.message-icon { font-size: 1rem; flex-shrink: 0; }

/* ---- FOOTER ---- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    margin-top: -30px;
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    text-align: center;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
}

.footer-login {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
}

.footer-login:hover { opacity: 1; color: var(--gold); }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .input-group  { flex-direction: column; }
    .email-input  { border-right: 1px solid #00ff4144; border-bottom: none; }
    .submit-btn   { justify-content: center; }
    .signup-card  { padding: 1.75rem 1.25rem; }
    .award        { border-right: none; border-bottom: 1px solid var(--border); }
    .award:last-child { border-bottom: none; }
    .hero-title .accent { margin-top: 0; }
}
