/* Nightmare Tag VR — analog horror landing page */

:root {
    --bg-deep: #050510;
    --bg-panel: rgba(0, 0, 0, 0.85);
    --purple-glow: #bf00ff;
    --purple-dim: #6a0dad;
    --red-accent: #b30000;
    --text: #e8e0d4;
    --text-muted: #9a9088;
    --liminal-yellow: #c0c070;
    --border: rgba(192, 192, 112, 0.25);
    --max-width: 960px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg-deep);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--purple-glow);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* CRT overlay */
.scanlines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.12) 0px,
        rgba(0, 0, 0, 0.12) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.35;
}

.grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scanlines,
    .grain {
        display: none;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.25rem 3rem;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url("./assets/background.jpg") center / cover no-repeat;
    z-index: 0;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 16, 0.55) 0%,
        rgba(5, 5, 16, 0.92) 70%,
        var(--bg-deep) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    width: 100%;
}

.hero__logo-wrap {
    margin: 0;
}

.hero__logo {
    width: min(420px, 85vw);
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 0 24px rgba(191, 0, 255, 0.35));
}

.hero__tagline {
    font-family: "VCR OSD Mono", monospace;
    font-size: clamp(0.85rem, 2.5vw, 1.05rem);
    color: var(--text-muted);
    margin: 0 0 2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: "VCR OSD Mono", monospace;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 1.75rem;
    border: 2px solid var(--red-accent);
    color: var(--text);
    background: rgba(179, 0, 0, 0.25);
    transition: box-shadow 0.2s, background 0.2s, transform 0.15s;
}

.btn:hover {
    text-decoration: none;
    background: rgba(179, 0, 0, 0.45);
    box-shadow: 0 0 20px rgba(191, 0, 255, 0.5), 0 0 40px rgba(179, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn--primary {
    border-color: var(--purple-glow);
    background: rgba(106, 13, 173, 0.35);
    font-size: 1.05rem;
    padding: 1rem 2rem;
}

.btn--primary:hover {
    background: rgba(106, 13, 173, 0.55);
    box-shadow: 0 0 24px rgba(191, 0, 255, 0.6);
}

/* Sections */
.section {
    padding: 3.5rem 1.25rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section__label {
    font-family: "VCR OSD Mono", monospace;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    font-weight: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--liminal-yellow);
    margin: 0 0 1.35rem;
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

/* Trailer */
.trailer-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
}

.trailer-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Store CTA block */
.store-cta {
    text-align: center;
    padding: 3rem 1.25rem;
    background: linear-gradient(180deg, transparent, rgba(106, 13, 173, 0.12), transparent);
}

.store-cta .panel {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1.5rem;
}

.store-cta p {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-family: "VCR OSD Mono", monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* About — Windows Terminal */
.terminal {
    border: 1px solid rgba(192, 192, 112, 0.2);
    border-radius: 6px;
    overflow: hidden;
    background: #0c0c0c;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 32px rgba(191, 0, 255, 0.08);
}

.terminal__titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.6rem 0;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal__tabs {
    min-width: 0;
}

.terminal__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.35rem 0.75rem 0.45rem;
    border-radius: 4px 4px 0 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 0.72rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal__tab--active {
    background: #0c0c0c;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom-color: #0c0c0c;
    margin-bottom: -1px;
}

.terminal__tab-icon {
    font-size: 0.65rem;
    opacity: 0.7;
}

.terminal__controls {
    display: flex;
    gap: 0.55rem;
    padding: 0.35rem 0.5rem 0.55rem;
    flex-shrink: 0;
}

.terminal__controls span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 1.75rem;
    border-radius: 0;
    background: transparent;
    color: #888;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 0.65rem;
    line-height: 1;
}

.terminal__controls span:nth-child(1)::before { content: "─"; }
.terminal__controls span:nth-child(2)::before { content: "□"; font-size: 0.55rem; }
.terminal__controls span:nth-child(3)::before { content: "×"; font-size: 0.85rem; }

.terminal__controls span:nth-child(3):hover {
    background: #e81123;
    color: #fff;
}

.terminal__body {
    padding: 1rem 1.15rem 1.1rem;
    background:
        linear-gradient(180deg, rgba(191, 0, 255, 0.03) 0%, transparent 28%),
        #0c0c0c;
}

.terminal__line {
    margin: 0 0 0.35rem;
    font-family: "Cascadia Mono", "Cascadia Code", Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal__history {
    opacity: 0.45;
    margin-bottom: 0.5rem;
}

.terminal__ps {
    color: #cccccc;
}

.terminal__path {
    color: #3a96dd;
}

.terminal__cmd {
    color: #dcdcaa;
}

.terminal__output {
    margin: 0.85rem 0 1rem;
    padding: 0.85rem 0 0.85rem 0.85rem;
    border-left: 2px solid rgba(58, 150, 221, 0.35);
    color: #d4d4d4;
}

.about-text {
    margin: 0;
    font-family: "Cascadia Mono", "Cascadia Code", Consolas, monospace;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    line-height: 1.75;
}

.terminal__idle {
    margin: 0;
}

.terminal__cursor {
    display: inline-block;
    width: 0.55em;
    height: 1.05em;
    margin-left: 0.1em;
    vertical-align: text-bottom;
    background: #cccccc;
    animation: terminal-cursor 1.1s step-end infinite;
}

@keyframes terminal-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .terminal__cursor {
        animation: none;
    }
}

/* Community */
.community {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.channel-group__title {
    font-family: "VCR OSD Mono", monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--liminal-yellow);
    margin: 0 0 0.35rem;
}

.channel-group__desc {
    font-family: "Cascadia Mono", "Cascadia Code", Consolas, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

/* Community links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "VCR OSD Mono", monospace;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.social-links a:hover {
    text-decoration: none;
    border-color: var(--purple-glow);
    box-shadow: 0 0 12px rgba(191, 0, 255, 0.3);
}

.social-links .discord {
    border-color: rgba(88, 101, 242, 0.5);
}

.social-links .discord:hover {
    border-color: #5865f2;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
}

/* Contact */
.contact-email {
    font-family: "VCR OSD Mono", monospace;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-email a {
    color: var(--text);
}

.contact-email a:hover {
    color: var(--purple-glow);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2.5rem 1.25rem 3rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--liminal-yellow);
}

.site-footer p {
    margin: 0.35rem 0;
}

.site-footer .studio {
    font-family: "VCR OSD Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
