/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Montserrat:wght@300;400;600;800&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
    --graphite-bg: #1a1a1a;
    --graphite-surface: #262626;
    --graphite-pencil: #e0e0e0;
    --graphite-accent: #d4af37; /* Muted Gold/Bronze for contrast */
    --graphite-accent-dim: #8c7324;
    --graphite-line: #404040;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-tech: 'Space Mono', monospace;
    --sidebar-width: 280px;
}

body.graphite-body {
    background-color: var(--graphite-bg);
    color: var(--graphite-pencil);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* LAYOUT */
.graphite-app {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.graphite-sidebar {
    width: var(--sidebar-width);
    background: var(--graphite-surface);
    border-right: 1px solid var(--graphite-line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid var(--graphite-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--graphite-pencil);
    text-decoration: none;
    letter-spacing: 1px;
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    z-index: 10001;
    position: relative;
}

.mobile-toggle-btn .line {
    width: 20px;
    height: 2px;
    background-color: var(--graphite-pencil);
    transition: all 0.3s ease;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-header {
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.graphite-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-link {
    font-family: var(--font-tech);
    color: var(--graphite-pencil);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding-left: 10px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.menu-link:hover {
    border-left-color: var(--graphite-accent);
    color: var(--graphite-accent);
    padding-left: 20px;
}

.menu-link.small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.menu-divider {
    height: 1px;
    background: var(--graphite-line);
    margin: 1rem 0;
}

.menu-contact-btn {
    background: transparent;
    border: 1px solid var(--graphite-accent);
    color: var(--graphite-accent);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-tech);
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.menu-contact-btn:hover {
    background: var(--graphite-accent);
    color: var(--graphite-surface);
}

.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid var(--graphite-line);
    text-align: center;
}

.sidebar-badge {
    background: var(--graphite-line);
    padding: 0.2rem 0.5rem;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    border-radius: 4px;
}

/* MAIN CONTENT */
.graphite-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    width: calc(100% - var(--sidebar-width));
}

/* HERO SECTION */
.graphite-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 70% 50%, #2a2a2a 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-texture {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 11px);
}

.hero-inner {
    padding: 0 4rem;
    max-width: 1000px;
    position: relative;
    z-index: 10;
}

.hero-status-bar {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--graphite-accent);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.status-sep {
    margin: 0 10px;
    opacity: 0.5;
}

.hero-headline {
    color: var(--graphite-pencil);
    font-family: var(--font-heading);
    line-height: 1.1;
}

.headline-small {
    display: block;
    font-size: 2rem;
    font-weight: 400;
}

.headline-big {
    display: block;
    font-size: 4.5rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-underline {
    width: 100px;
    height: 4px;
    background: var(--graphite-accent);
    margin: 1.5rem 0;
}

.hero-subtext {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 3rem;
    color: #cccccc;
}

.btn-graphite-large {
    background: var(--graphite-pencil);
    color: var(--graphite-bg);
    border: none;
    padding: 1rem 3rem;
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 5px 5px 0px var(--graphite-accent);
    transition: all 0.2s ease;
}

.btn-graphite-large:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px var(--graphite-accent);
}

.btn-graphite-large:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--graphite-accent);
}

/* SPECS SECTION (Disclaimer) */
.graphite-specs {
    background: var(--graphite-surface);
    padding: 5rem 4rem;
    border-top: 1px solid var(--graphite-line);
    border-bottom: 1px solid var(--graphite-line);
}

.spec-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.spec-icon {
    font-size: 2rem;
    color: var(--graphite-accent);
}

.spec-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--graphite-pencil);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.spec-card {
    background: #1f1f1f;
    padding: 2rem;
    position: relative;
    border: 1px dashed var(--graphite-line);
}

.spec-marker {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--graphite-bg);
    padding: 0 10px;
    font-family: var(--font-tech);
    color: var(--graphite-accent);
}

.spec-label {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.spec-desc {
    font-size: 0.95rem;
    color: #aaa;
}

/* GAMES SECTION */
.graphite-games {
    padding: 5rem 4rem;
    background: var(--graphite-bg);
}

.section-head {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-head h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    display: inline-block;
    background: var(--graphite-bg);
    padding: 0 2rem;
}

.head-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--graphite-line);
    z-index: 1;
}

.games-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.game-tile {
    display: block;
    position: relative;
    text-decoration: none;
    color: var(--graphite-pencil);
}

.tile-number {
    font-family: var(--font-tech);
    font-size: 4rem;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: -30px;
    left: -10px;
    z-index: 0;
}

.tile-img-box {
    position: relative;
    border: 1px solid var(--graphite-line);
    overflow: hidden;
    aspect-ratio: 16/9;
    z-index: 1;
    background: #000;
}

.tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.4s ease;
}

.tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tile-overlay span {
    border: 1px solid #fff;
    padding: 10px 20px;
    font-family: var(--font-tech);
    letter-spacing: 2px;
}

.game-tile:hover .tile-img {
    filter: grayscale(0%);
}

.game-tile:hover .tile-overlay {
    opacity: 1;
}

.tile-info {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.tile-tag {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    background: var(--graphite-accent);
    color: #000;
    padding: 2px 8px;
    text-transform: uppercase;
}

/* FEATURES SECTION */
.graphite-features {
    background: #1f1f1f;
    padding: 5rem 4rem;
}

.features-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-desc {
    margin-top: 1rem;
    color: #aaa;
}

.features-list {
    max-width: 1000px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--graphite-accent), transparent);
    border: 1px solid var(--graphite-line);
    flex-shrink: 0;
}

.feature-content-box h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: #fff;
}

.feature-content-box p {
    color: #bbb;
}

/* ABOUT SECTION */
.graphite-about {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.about-graphic {
    position: relative;
    overflow: hidden;
}

.about-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.graphic-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.7);
}

.about-texts {
    padding: 5rem;
    background: var(--graphite-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
}

.text-block h3 {
    font-family: var(--font-tech);
    color: var(--graphite-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* BADGES SECTION */
.graphite-badges {
    background: #000;
    padding: 2rem 0;
    border-top: 1px solid var(--graphite-line);
    border-bottom: 1px solid var(--graphite-line);
}

.badge-rail {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.compliance-badge {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.compliance-badge:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* CONTACT SECTION */
.graphite-contact {
    padding: 5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--graphite-bg);
}

.graphite-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--graphite-accent);
}

.input-group input, .input-group textarea {
    background: transparent;
    border: 1px solid var(--graphite-line);
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--graphite-accent);
    outline: none;
    background: rgba(212, 175, 55, 0.05);
}

.graphite-submit {
    grid-column: 1 / -1;
    background: var(--graphite-accent);
    color: #000;
    border: none;
    padding: 1rem;
    font-family: var(--font-tech);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.graphite-submit:hover {
    background: var(--graphite-accent-dim);
}

/* FOOTER */
.graphite-footer {
    background: #000;
    color: #666;
    padding: 5rem 4rem 2rem;
    font-size: 0.9rem;
}

.footer-primary {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand-box h3 {
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.footer-nav-box, .footer-sub-box {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav-box a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

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

.sub-form {
    display: flex;
    gap: 0.5rem;
}

.sub-form input {
    background: #222;
    border: none;
    padding: 0.5rem;
    color: #fff;
}

.sub-form button {
    background: var(--graphite-accent);
    border: none;
    cursor: pointer;
    padding: 0 1rem;
}

.footer-bottom-line {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #222;
}

/* AGE GATE */
.graphite-gate-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphite-gate-box {
    background: var(--graphite-surface);
    border: 1px solid var(--graphite-accent);
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
}

.gate-icon {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--graphite-accent);
    margin-bottom: 1rem;
}

.gate-title {
    color: #fff;
    margin-bottom: 1rem;
}

.gate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-graphite-primary {
    background: var(--graphite-accent);
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
}

.btn-graphite-secondary {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .mobile-overlay {
        display: block;
    }

    /* Mobile Header - Always visible */
    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--graphite-surface);
        border-bottom: 1px solid var(--graphite-line);
        padding: 1rem 1.5rem;
        justify-content: space-between;
        align-items: center;
        z-index: 10001;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .mobile-header-brand {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--graphite-pencil);
        text-decoration: none;
        letter-spacing: 1px;
    }

    .mobile-header #mobile-toggle-btn {
        display: flex !important;
    }

    .graphite-sidebar {
        width: 280px;
        max-width: 85%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 10000;
        padding-top: 60px;
    }
    
    .graphite-sidebar.active {
        transform: translateX(0);
    }

    .sidebar-header {
        display: none;
    }

    .mobile-toggle-btn.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle-btn.active .line:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle-btn.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .graphite-main {
        margin-left: 0;
        width: 100%;
        padding-top: 60px;
    }
    
    .sidebar-nav {
        display: block;
        max-height: calc(100vh - 180px);
        overflow-y: auto;
    }
    
    .mobile-toggle-btn {
        display: flex;
        position: relative;
        z-index: 10002;
    }

    .graphite-hero {
        height: auto;
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-inner {
        padding: 0 2rem;
    }

    .hero-headline .headline-big {
        font-size: 2.5rem;
    }

    .headline-small {
        font-size: 1.5rem;
    }

    .hero-status-bar {
        font-size: 0.7rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }

    .status-item {
        white-space: nowrap;
    }

    .status-sep {
        margin: 0 5px;
    }

    .graphite-about, .graphite-contact, .footer-primary {
        grid-template-columns: 1fr;
    }

    .graphite-contact {
        gap: 2rem;
    }

    .contact-header-text {
        text-align: center;
    }

    .contact-header-text h2 {
        font-size: 1.75rem;
    }

    .graphite-specs,
    .graphite-games,
    .graphite-features,
    .graphite-contact,
    .graphite-footer {
        padding: 3rem 2rem;
    }

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

    .games-mosaic {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-row {
        flex-direction: column !important;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .about-texts {
        padding: 3rem 2rem;
    }

    .graphite-form {
        grid-template-columns: 1fr;
    }

    .section-head h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .game-iframe-wrapper {
        height: auto;
        min-height: 400px;
    }

    .game-iframe-wrapper iframe {
        height: 500px;
        min-height: 400px;
    }

    .graphite-gate-box {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .gate-actions {
        flex-direction: column;
    }

    .btn-graphite-primary,
    .btn-graphite-secondary {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-inner {
        padding: 0 1.5rem;
    }

    .hero-headline .headline-big {
        font-size: 2rem;
    }

    .headline-small {
        font-size: 1.2rem;
    }

    .hero-status-bar {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .graphite-specs,
    .graphite-games,
    .graphite-features,
    .graphite-contact,
    .graphite-footer,
    .graphite-legal {
        padding: 2rem 1.5rem;
    }

    .spec-title {
        font-size: 1.5rem;
    }

    .section-head h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-texts {
        padding: 2rem 1.5rem;
    }

    .text-block h3 {
        font-size: 0.9rem;
    }

    .game-iframe-wrapper iframe {
        height: 450px;
        min-height: 350px;
    }

    .badge-rail {
        gap: 1.5rem;
    }

    .compliance-badge {
        height: 30px;
    }

    .footer-primary {
        gap: 2rem;
    }

    .sub-form {
        flex-direction: column;
    }

    .sub-form button {
        width: 100%;
        padding: 0.5rem;
    }

    .sidebar-header {
        padding: 1.5rem;
    }

    .sidebar-brand {
        font-size: 1rem;
        word-break: break-word;
    }

    .sidebar-nav {
        padding: 1.5rem;
    }

    .sidebar-footer {
        padding: 1.5rem;
    }

    .btn-graphite-large {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .graphite-gate-box {
        padding: 1.5rem 1rem;
    }

    .gate-icon {
        font-size: 2rem;
    }

    .gate-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 400px) {
    .hero-headline .headline-big {
        font-size: 1.75rem;
    }

    .game-iframe-wrapper iframe {
        height: 400px;
        min-height: 300px;
    }

    .graphite-specs,
    .graphite-games,
    .graphite-features,
    .graphite-contact,
    .graphite-footer,
    .graphite-legal {
        padding: 1.5rem 1rem;
    }
}

/* LEGAL PAGES CONTENT */
.graphite-legal {
    padding: 5rem 4rem;
    background: var(--graphite-bg);
}

.legal-block {
    margin-bottom: 3rem;
    border-left: 2px solid var(--graphite-line);
    padding-left: 2rem;
}

.legal-block h2 {
    font-family: var(--font-heading);
    color: var(--graphite-pencil);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.legal-block p, .legal-block ul {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.legal-block ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.legal-block li {
    margin-bottom: 0.5rem;
}

.legal-block li strong {
    color: var(--graphite-accent);
}

.game-iframe-wrapper {
    width: 100%;
    margin-top: 2rem;
    border: 1px solid var(--graphite-line);
    background: #000;
    position: relative;
    overflow: hidden;
}

.game-iframe-wrapper iframe {
    display: block;
    width: 100%;
    max-width: 100%;
}

