/* ============================================================
   DEVELOPMENT LOG
============================================================ */

body {
    margin: 0;
    background: #000;
    color: #fff;
}

header {
    background: #000;
}

.devlog-article {
    width: 100%;
    background: #111;
}


/* ============================================================
   ALTERNATING SECTIONS
============================================================ */

.section-gray {
    background: #111 !important;
}

.section-black {
    background: #050505 !important;
}


/* ============================================================
   HERO
============================================================ */

.log-hero {
    min-height: 75vh;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    padding: 120px 10%;

    background: #111;
}

.log-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.85),
            rgba(0,0,0,0.35),
            rgba(0,0,0,0.85)
        ),
        url("../images/hero-02.png");

    background-size: cover;
    background-position: center;

    transform: scale(1.03);

    animation:
        logHeroZoom
        20s
        ease-in-out
        infinite
        alternate;

    opacity: 0.75;
}

.log-hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 55%,
            #111 100%
        );
}

.log-hero-content {
    position: relative;

    z-index: 2;

    max-width: 900px;
}

.log-label {
    margin-bottom: 25px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 5px;

    color: #777;
}

.log-hero h1 {
    margin: 0;

    font-size: clamp(55px, 8vw, 110px);

    line-height: 0.88;

    letter-spacing: -3px;
}

.log-hero h1::first-line {
    color: white;
}

.log-hero p {
    margin-top: 35px;

    font-size: 24px;

    color: #aaa;

    letter-spacing: 1px;
}


/* ============================================================
   SECTIONS
============================================================ */

.log-section {
    max-width: 1200px;

    margin: 0 auto;

    padding: 130px 40px;
}

.section-number {
    margin-bottom: 25px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 5px;

    color: #ff3b3b;
}

.log-section h2 {
    margin: 0 0 40px;

    font-size: clamp(36px, 5vw, 64px);

    line-height: 0.95;

    letter-spacing: -1px;
}

.log-section p {
    max-width: 900px;

    margin-bottom: 25px;

    font-size: 19px;

    line-height: 1.75;

    color: #999;
}

.log-section .lead {
    max-width: 950px;

    font-size: 24px;

    line-height: 1.5;

    color: #ccc;
}

.log-section strong {
    color: white;
}


/* ============================================================
   FEATURE GRID
============================================================ */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 2px;

    margin-top: 60px;
}

.feature-card {
    min-height: 190px;

    padding: 30px;

    background: #0b0b0b;

    border: 1px solid #181818;

    transition:
        transform 0.3s,
        border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);

    border-color: #ff3b3b;
}

.feature-icon {
    display: block;

    margin-bottom: 35px;

    font-size: 12px;

    color: #ff3b3b;

    letter-spacing: 3px;
}

.feature-card strong {
    display: block;

    margin-bottom: 15px;

    font-size: 15px;

    letter-spacing: 2px;
}

.feature-card p {
    margin: 0;

    font-size: 15px;

    line-height: 1.5;
}


/* ============================================================
   ARCHITECTURE
============================================================ */

.architecture {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 25px;

    margin-top: 80px;

    padding: 50px 20px;

    background: #080808;

    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.architecture-node {
    width: 220px;

    min-height: 150px;

    padding: 25px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    background: #0d0d0d;

    border: 1px solid #222;

    text-align: center;
}

.architecture-node.master {
    border-color: #ff3b3b;
}

.architecture-node.player {
    border-color: #444;
}

.node-type {
    margin-bottom: 15px;

    font-size: 10px;

    letter-spacing: 3px;

    color: #666;
}

.architecture-node strong {
    font-size: 17px;
}

.architecture-node small {
    margin-top: 10px;

    color: #666;
}

.architecture-line {
    width: 100px;

    display: flex;
    flex-direction: column;

    gap: 8px;

    text-align: center;
}

.architecture-line span {
    font-size: 9px;

    letter-spacing: 2px;

    color: #555;
}

.architecture-line .line {
    height: 1px;

    background: #444;
}


/* ============================================================
   DISCLAIMER
============================================================ */

.disclaimer {
    max-width: 1200px;

    margin: 0 auto 80px;

    padding: 35px 40px;

    background: #090909;

    border-left: 2px solid #ff3b3b;
}

.disclaimer-label {
    margin-bottom: 15px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 4px;

    color: #ff3b3b;
}

.disclaimer p {
    max-width: 1000px;

    margin: 8px 0;

    font-size: 14px;

    line-height: 1.6;

    color: #777;
}


/* ============================================================
   VIDEO
============================================================ */

.video-wrapper {
    width: 100%;

    max-width: 1200px;

    margin: 60px auto 0;

    background: #000;
}

.video-container {
    position: relative;

    width: 100%;

    padding-bottom: 56.25%;

    height: 0;

    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: block;

    border: 0;

    object-fit: contain;
    background: #000;
}


/* ============================================================
   CONTROL LIST
============================================================ */

.control-list {
    margin-top: 60px;

    border-top: 1px solid #222;
}

.control-list div {
    display: flex;

    align-items: center;

    gap: 30px;

    padding: 25px 0;

    border-bottom: 1px solid #222;

    font-size: 18px;

    color: #aaa;
}

.control-list span {
    width: 40px;

    color: #ff3b3b;

    font-size: 12px;

    letter-spacing: 2px;
}


/* ============================================================
   QUOTE
============================================================ */

.quote-block {
    margin-top: 70px;

    padding: 50px;

    background: #0b0b0b;

    border: 1px solid #1b1b1b;
}

.quote-block span {
    display: block;

    margin-bottom: 20px;

    font-size: 12px;

    color: #ff3b3b;

    letter-spacing: 4px;
}

.quote-block strong {
    display: block;

    max-width: 800px;

    font-size: 28px;

    line-height: 1.3;
}


/* ============================================================
   HEARTBEAT
============================================================ */

.heartbeat-section {
    max-width: none;

    padding-left: max(40px, calc((100vw - 1200px) / 2));
    padding-right: max(40px, calc((100vw - 1200px) / 2));
}

.heartbeat-visual {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 35px;

    margin: 70px 0;

    padding: 60px 30px;

    background: #050505;

    border: 1px solid #1b1b1b;
}

.heartbeat-server,
.heartbeat-master {
    width: 240px;

    padding: 35px 25px;

    background: #0c0c0c;

    border: 1px solid #222;

    text-align: center;
}

.heartbeat-master {
    border-color: #ff3b3b;
}

.heartbeat-server small,
.heartbeat-master small {
    display: block;

    margin-bottom: 15px;

    font-size: 10px;

    letter-spacing: 3px;

    color: #666;
}

.heartbeat-server strong,
.heartbeat-master strong {
    font-size: 18px;
}

.pulse {
    width: 10px;
    height: 10px;

    display: block;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #ff3b3b;

    box-shadow:
        0 0 0 0 rgba(255,59,59,0.7);

    animation: pulse 1.5s infinite;
}

.heartbeat-connection {
    width: 180px;

    text-align: center;
}

.heartbeat-packet {
    margin-bottom: 12px;

    font-size: 10px;

    color: #ff3b3b;

    letter-spacing: 3px;
}

.heartbeat-line {
    height: 1px;

    background: #444;
}


/* ============================================================
   TERMINAL
============================================================ */

.terminal {
    max-width: 900px;

    margin: 60px auto;

    overflow: hidden;

    background: #030303;

    border: 1px solid #222;

    font-family: monospace;
}

.terminal-header {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 12px 15px;

    background: #0d0d0d;

    border-bottom: 1px solid #222;
}

.terminal-header > span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #444;
}

.terminal-header label {
    margin-left: 10px;

    font-size: 11px;

    color: #555;
}

.terminal-body {
    padding: 25px;

    font-size: 13px;

    line-height: 1.8;

    color: #777;
}

.terminal-body p {
    margin: 0;

    font-size: inherit;

    color: inherit;
}

.terminal-body i {
    color: #444;

    font-style: normal;
}

.terminal-body b,
.terminal-body .success {
    color: #8f8;
}


/* ============================================================
   STATUS FLOW
============================================================ */

.status-flow {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    margin-top: 50px;

    flex-wrap: wrap;
}

.status-flow span {
    padding: 12px 18px;

    border: 1px solid #222;

    background: #0b0b0b;

    font-size: 11px;

    letter-spacing: 2px;

    color: #888;
}

.status-flow span:last-child {
    color: #ff3b3b;

    border-color: #ff3b3b;
}

.status-flow b {
    color: #444;
}


/* ============================================================
   QUEUE
============================================================ */

.queue-visual {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 25px;

    margin: 70px 0;

    padding: 60px 20px;

    background: #080808;

    border: 1px solid #1c1c1c;
}

.queue-server,
.queue-master,
.queue-player {
    width: 230px;

    min-height: 180px;

    padding: 30px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    background: #0d0d0d;

    border: 1px solid #222;

    text-align: center;
}

.queue-server {
    border-color: #ff3b3b;
}

.queue-server small,
.queue-master small,
.queue-player small {
    margin-bottom: 15px;

    font-size: 10px;

    letter-spacing: 3px;

    color: #555;
}

.queue-server strong,
.queue-master strong,
.queue-player strong {
    font-size: 28px;
}

.queue-server span,
.queue-player span {
    margin-top: 12px;

    font-size: 10px;

    letter-spacing: 3px;

    color: #ff3b3b;
}

.queue-arrow {
    font-size: 30px;

    color: #444;
}

.queue-players {
    display: flex;

    justify-content: center;

    gap: 5px;

    margin-top: 20px;
}

.queue-players span {
    margin: 0;

    padding: 7px;

    color: #666;

    border: 1px solid #222;
}

.queue-players .current {
    color: #ff3b3b;

    border-color: #ff3b3b;
}

.queue-rules {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 2px;
}

.queue-rules div {
    padding: 25px;

    background: #0b0b0b;

    border: 1px solid #171717;

    font-size: 13px;

    color: #777;
}

.queue-rules span {
    display: block;

    margin-bottom: 20px;

    color: #ff3b3b;

    font-size: 11px;
}


/* ============================================================
   BENEFITS
============================================================ */

.benefits-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 2px;

    margin-top: 60px;
}

.benefits-grid article {
    padding: 45px 35px;

    background: #0b0b0b;

    border: 1px solid #181818;
}

.benefit-icon {
    margin-bottom: 35px;

    font-size: 25px;

    filter: grayscale(1);
}

.benefits-grid h3 {
    margin-bottom: 20px;

    font-size: 16px;

    letter-spacing: 2px;
}

.benefits-grid p {
    margin: 0;

    font-size: 16px;
}


/* ============================================================
   DATA
============================================================ */

.data-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 2px;

    margin-top: 60px;
}

.data-grid div {
    padding: 30px;

    background: #0b0b0b;

    border: 1px solid #181818;
}

.data-grid span {
    display: block;

    margin-bottom: 15px;

    font-size: 10px;

    letter-spacing: 3px;

    color: #555;
}

.data-grid strong {
    font-size: 16px;

    color: #aaa;
}


/* ============================================================
   SECURITY
============================================================ */

.security-section {
    max-width: none;

    padding-left: max(40px, calc((100vw - 1200px) / 2));
    padding-right: max(40px, calc((100vw - 1200px) / 2));
}

.security-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 2px;

    margin-top: 60px;
}

.security-grid div {
    padding: 35px;

    background: #0b0b0b;

    border: 1px solid #181818;
}

.security-grid span {
    color: #ff3b3b;

    font-size: 11px;

    letter-spacing: 3px;
}

.security-grid p {
    margin-top: 20px;

    font-size: 15px;
}


/* ============================================================
   FINAL
============================================================ */

.log-final {
    max-width: 1200px;

    margin: 0 auto;

    padding: 150px 40px;
}

.log-final h2 {
    margin-bottom: 45px;

    font-size: clamp(45px, 6vw, 80px);

    line-height: 0.9;
}

.log-final p {
    max-width: 850px;

    font-size: 19px;

    line-height: 1.75;

    color: #999;
}

.final-statement {
    margin: 80px 0;

    padding: 60px;

    background: #0b0b0b;

    border-left: 3px solid #ff3b3b;
}

.final-statement span {
    display: block;

    margin-bottom: 20px;

    font-size: 12px;

    letter-spacing: 5px;

    color: #ff3b3b;
}

.final-statement strong {
    font-size: 32px;

    line-height: 1.25;
}

.ps {
    margin-top: 80px;

    font-size: 15px !important;

    color: #555 !important;
}


/* ============================================================
   ANIMATIONS
============================================================ */

@keyframes logHeroZoom {

    from {
        transform: scale(1.03);
    }

    to {
        transform: scale(1.08);
    }

}

@keyframes pulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(255,59,59,0.7);
    }

    70% {
        box-shadow:
            0 0 0 15px rgba(255,59,59,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(255,59,59,0);
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 800px) {

    .log-hero {
        min-height: 75vh;

        padding: 100px 8%;
    }

    .log-hero::before {
        background-position: 30% center;
    }

    .log-label {
        font-size: 10px;

        letter-spacing: 3px;
    }

    .log-hero h1 {
        font-size: 50px;

        letter-spacing: -1px;
    }

    .log-hero p {
        max-width: 100%;

        font-size: 20px;
    }


    .log-section {
        padding: 80px 8%;
    }

    .log-section h2 {
        font-size: 40px;
    }

    .log-section .lead {
        font-size: 20px;
    }

    .log-section p {
        font-size: 17px;
    }


    /* FEATURE */

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


    /* ARCHITECTURE */

    .architecture {
        flex-direction: column;

        gap: 15px;

        padding: 35px 15px;
    }

    .architecture-node {
        width: 100%;
    }

    .architecture-line {
        width: 100%;
    }

    .architecture-line .line {
        width: 1px;

        height: 35px;

        margin: 0 auto;
    }


    /* DISCLAIMER */

    .disclaimer {
        margin: 0 8% 40px;

        padding: 25px;
    }


    /* HEARTBEAT */

    .heartbeat-section,
    .security-section {
        padding-left: 8%;
        padding-right: 8%;
    }

    .heartbeat-visual {
        flex-direction: column;

        gap: 20px;
    }

    .heartbeat-server,
    .heartbeat-master {
        width: 100%;
    }

    .heartbeat-connection {
        width: 100%;
    }


    /* QUEUE */

    .queue-visual {
        flex-direction: column;
    }

    .queue-server,
    .queue-master,
    .queue-player {
        width: 100%;
    }

    .queue-arrow {
        transform: rotate(90deg);
    }

    .queue-rules {
        grid-template-columns:
            1fr 1fr;
    }


    /* BENEFITS */

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


    /* DATA */

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


    /* SECURITY */

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


    /* FINAL */

    .log-final {
        padding: 90px 8%;
    }

    .final-statement {
        padding: 35px 25px;
    }

    .final-statement strong {
        font-size: 24px;
    }

}

/* ============================================================
   DEVLOG FOOTER
   ============================================================ */

footer {
    background: #111;
}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 500px) {

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

    .queue-rules {
        grid-template-columns:
            1fr;
    }

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

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

    .log-hero h1 {
        font-size: 44px;
    }

    .log-section h2 {
        font-size: 34px;
    }

}


/* ============================================================
   BACK TO TOP
============================================================ */

.back-to-top {
    position: fixed;

    right: 30px;
    bottom: 30px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #111;

    border: 1px solid #333;

    color: #aaa;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        color 0.2s ease,
        border-color 0.2s ease;

    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.back-to-top:hover {
    color: #fff;

    border-color: #666;
}

@media (max-width: 800px) {

    .back-to-top {
        right: 20px;
        bottom: 20px;

        width: 45px;
        height: 45px;

        font-size: 22px;
    }

}
