/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}


:root {
    --background: #080a0f;

    --surface: #10131a;
    --surface-light: #161a22;
    --surface-hover: #1b2029;

    --border: rgba(255, 255, 255, .075);
    --border-light: rgba(255, 255, 255, .12);

    --text: #f3f5f7;
    --muted: #8b929d;
    --dim: #555d68;

    --accent: #ffb84d;
    --accent-light: #ffc96f;
    --accent-soft: rgba(255, 184, 77, .12);

    --green: #5ce5a2;
    --green-soft: rgba(92, 229, 162, .12);

    --red: #ff5d68;

    --radius-large: 28px;
    --radius-medium: 20px;
    --radius-small: 14px;
}


html,
body {
    margin: 0;

    width: 100%;
    min-height: 100%;
}


body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(255, 184, 77, .09),
            transparent 35%
        ),
        var(--background);

    color: var(--text);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    display: flex;
    justify-content: center;

    overflow-x: hidden;
}


/* =========================================================
   AMBIENT BACKGROUND
   ========================================================= */

.ambient-motion {
    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}


.float-dot {
    position: absolute;

    bottom: -20px;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--accent);

    opacity: 0;

    box-shadow:
        0 0 8px
        rgba(255, 184, 77, .6);

    animation:
        floatSignal 13s linear infinite;
}


.dot-1 {
    left: 7%;
    animation-delay: 0s;
}


.dot-2 {
    left: 18%;
    animation-delay: -7s;
}


.dot-3 {
    left: 31%;
    animation-delay: -2s;
}


.dot-4 {
    left: 44%;
    animation-delay: -10s;
}


.dot-5 {
    left: 59%;
    animation-delay: -5s;
}


.dot-6 {
    left: 71%;
    animation-delay: -12s;
}


.dot-7 {
    left: 84%;
    animation-delay: -4s;
}


.dot-8 {
    left: 94%;
    animation-delay: -9s;
}


@keyframes floatSignal {

    0% {
        transform:
            translate3d(0, 0, 0)
            scale(.7);

        opacity: 0;
    }


    10% {
        opacity: .22;
    }


    35% {
        transform:
            translate3d(15px, -35vh, 0)
            scale(1);
    }


    60% {
        transform:
            translate3d(-10px, -65vh, 0)
            scale(.8);

        opacity: .13;
    }


    90% {
        opacity: .2;
    }


    100% {
        transform:
            translate3d(18px, -115vh, 0)
            scale(.5);

        opacity: 0;
    }
}


/* =========================================================
   APP
   ========================================================= */

.gate-app {
    position: relative;

    z-index: 1;

    width: min(100%, 720px);
    min-height: 100vh;

    padding: 0 28px;

    display: grid;

    grid-template-rows:
        90px
        1fr
        72px;
}


/* =========================================================
   HEADER
   ========================================================= */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.brand {
    display: flex;
    align-items: center;

    gap: 14px;
}


.brand-icon {
    position: relative;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            var(--accent-light),
            var(--accent)
        );

    box-shadow:
        0 8px 24px
        rgba(255, 184, 77, .16);
}


.brand-core {
    position: relative;

    z-index: 3;

    width: 12px;
    height: 12px;

    border:
        3px solid
        #18120a;

    border-radius: 50%;
}


.brand-ripple {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 28px;
    height: 28px;

    transform:
        translate(-50%, -50%)
        scale(.4);

    border:
        1px solid
        rgba(255, 184, 77, .75);

    border-radius: 50%;

    opacity: 0;

    pointer-events: none;

    animation:
        gateRipple 3s ease-out infinite;
}


.ripple-two {
    animation-delay: 1.5s;
}


@keyframes gateRipple {

    0% {
        transform:
            translate(-50%, -50%)
            scale(.45);

        opacity: .65;
    }


    100% {
        transform:
            translate(-50%, -50%)
            scale(2.4);

        opacity: 0;
    }
}


.eyebrow {
    display: block;

    margin-bottom: 2px;

    color: var(--accent);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 2.5px;
}


h1 {
    margin: 0;

    font-size: 24px;
    font-weight: 650;

    letter-spacing: .5px;
}


.node-badge {
    padding: 9px 13px;

    display: flex;
    align-items: center;

    gap: 7px;

    border:
        1px solid
        var(--border);

    border-radius: 999px;

    background: var(--surface);

    color: var(--muted);

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

    letter-spacing: 1.5px;
}


.node-badge-dot {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 7px
        rgba(255, 184, 77, .8);

    animation:
        nodePulse 2s ease-in-out infinite;
}


@keyframes nodePulse {

    0%,
    100% {
        opacity: .45;

        transform:
            scale(.8);
    }


    50% {
        opacity: 1;

        transform:
            scale(1.25);
    }
}


/* =========================================================
   MAIN
   ========================================================= */

main {
    padding:
        28px 0
        40px;
}


/* =========================================================
   INTRO
   ========================================================= */

.intro {
    margin-bottom: 34px;
}


.section-tag {
    display: block;

    margin-bottom: 8px;

    color: var(--accent);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 2px;
}


.intro h2 {
    margin: 0;

    font-size:
        clamp(
            28px,
            6vw,
            42px
        );

    font-weight: 550;

    letter-spacing: -1px;
}


.intro p {
    max-width: 420px;

    margin:
        11px
        0
        0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.55;
}


/* =========================================================
   STATUS PANEL
   ========================================================= */

.status-panel {
    position: relative;

    overflow: hidden;

    padding: 22px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-large);

    background:
        linear-gradient(
            145deg,
            var(--surface-light),
            var(--surface)
        );

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, .18);
}


/* moving signal across panel */

.panel-runner {
    position: absolute;

    left: 22px;
    right: 22px;
    top: 0;

    height: 1px;

    overflow: hidden;

    pointer-events: none;
}


.panel-runner span {
    position: absolute;

    top: 0;
    left: -90px;

    width: 90px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--accent),
            #fff,
            var(--accent),
            transparent
        );

    box-shadow:
        0 0 9px
        rgba(255, 184, 77, .8);

    animation:
        panelRunner 4s linear infinite;
}


@keyframes panelRunner {

    from {
        left: -90px;
    }


    to {
        left: calc(100% + 90px);
    }
}


/* =========================================================
   PANEL HEADING
   ========================================================= */

.panel-heading {
    position: relative;

    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 21px;
}


.panel-heading .section-tag {
    margin-bottom: 5px;
}


.panel-heading h3 {
    margin: 0;

    font-size: 17px;
    font-weight: 600;
}


.live-indicator {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 7px 10px;

    border-radius: 999px;

    background:
        var(--green-soft);

    color: var(--green);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1px;
}


.live-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 8px
        rgba(92, 229, 162, .7);

    animation:
        livePulse 1.8s ease-in-out infinite;
}


@keyframes livePulse {

    0%,
    100% {
        transform: scale(.8);
        opacity: .55;
    }


    50% {
        transform: scale(1.25);
        opacity: 1;
    }
}


/* =========================================================
   STATUS LIST
   ========================================================= */

.status-list {
    position: relative;

    padding: 4px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-medium);

    background:
        rgba(0, 0, 0, .14);
}


.status-item {
    position: relative;

    z-index: 2;

    min-height: 78px;

    padding:
        12px
        15px;

    display: grid;

    grid-template-columns:
        48px
        1fr
        auto;

    align-items: center;

    gap: 14px;
}


.status-icon {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background:
        var(--surface-light);

    color:
        var(--accent);
}


.status-icon svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.status-copy span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 7px;
    font-weight: 750;

    letter-spacing: 1.5px;
}


.status-copy strong {
    display: block;

    font-size: 13px;
    font-weight: 600;
}


.status-dot {
    width: 8px;
    height: 8px;

    margin-right: 8px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 9px
        rgba(92, 229, 162, .6);
}


/* =========================================================
   MOVING STATUS DATA LINK
   ========================================================= */

.status-link {
    position: relative;

    height: 16px;

    margin:
        -8px
        18px;

    overflow: hidden;

    pointer-events: none;
}


.link-line {
    position: absolute;

    left: 20px;
    right: 20px;

    top: 50%;

    height: 1px;

    transform:
        translateY(-50%);

    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 184, 77, .05) 0,
            rgba(255, 184, 77, .05) 4px,
            transparent 4px,
            transparent 10px
        );
}


.data-packet {
    position: absolute;

    top: 50%;
    left: -20px;

    width: 18px;
    height: 3px;

    transform:
        translateY(-50%);

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--accent-light)
        );

    box-shadow:
        0 0 7px
        rgba(255, 184, 77, .5);

    animation:
        statusPacket 4.5s linear infinite;
}


.packet-2 {
    animation-delay: -1.5s;
}


.packet-3 {
    animation-delay: -3s;
}


@keyframes statusPacket {

    from {
        left: -20px;

        opacity: 0;
    }


    10% {
        opacity: .7;
    }


    90% {
        opacity: .7;
    }


    to {
        left: calc(100% + 20px);

        opacity: 0;
    }
}


/* =========================================================
   ACTIONS
   ========================================================= */

.actions {
    margin-top: 34px;
}


.action-tag {
    margin-left: 4px;

    color: var(--muted);
}


.action-card {
    position: relative;

    overflow: hidden;

    width: 100%;
    min-height: 76px;

    margin-bottom: 11px;

    padding:
        10px
        15px;

    display: grid;

    grid-template-columns:
        48px
        1fr
        auto;

    align-items: center;

    gap: 14px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-medium);

    color:
        var(--text);

    font-family: inherit;

    cursor: pointer;

    text-align: left;

    transition:
        transform .14s ease,
        background .14s ease,
        border-color .14s ease;
}


.action-card:hover {
    transform:
        translateY(-2px);
}


.action-card:active {
    transform:
        scale(.985);
}


.primary-action {
    background:
        linear-gradient(
            110deg,
            rgba(255, 184, 77, .13),
            var(--surface) 60%
        );

    border-color:
        rgba(255, 184, 77, .2);
}


.primary-action:hover {
    background:
        linear-gradient(
            110deg,
            rgba(255, 184, 77, .18),
            var(--surface-light) 60%
        );

    border-color:
        rgba(255, 184, 77, .35);
}


.secondary-action {
    background:
        var(--surface);
}


.secondary-action:hover {
    background:
        var(--surface-hover);

    border-color:
        var(--border-light);
}


/* moving button highlight */

.button-runner {
    position: absolute;

    left: -70px;
    bottom: 0;

    width: 70px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--accent),
            transparent
        );

    box-shadow:
        0 0 8px
        rgba(255, 184, 77, .5);

    animation:
        buttonRunner 5s linear infinite;
}


@keyframes buttonRunner {

    from {
        left: -70px;
    }


    to {
        left: calc(100% + 70px);
    }
}


.action-icon {
    position: relative;

    z-index: 2;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background:
        var(--accent-soft);

    color:
        var(--accent);
}


.secondary-action .action-icon {
    background:
        rgba(255, 255, 255, .055);

    color:
        #aab1bb;
}


.action-icon svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.action-copy {
    position: relative;

    z-index: 2;
}


.action-copy strong {
    display: block;

    font-size: 12px;
    font-weight: 650;
}


.action-copy small {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 9px;
}


.action-arrow {
    position: relative;

    z-index: 2;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .045);

    color: var(--muted);

    font-size: 15px;

    transition:
        transform .15s ease,
        color .15s ease,
        background .15s ease;
}


.action-card:hover .action-arrow {
    transform:
        translateX(3px);

    color:
        var(--accent);

    background:
        var(--accent-soft);
}


/* =========================================================
   MESSAGE
   ========================================================= */

#message {
    min-height: 20px;

    margin-top: 15px;

    color: var(--muted);

    text-align: center;

    font-size: 9px;
}


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

footer {
    display: flex;
    align-items: center;

    border-top:
        1px solid
        var(--border);
}


.footer-node {
    display: flex;
    align-items: center;

    gap: 10px;
}


.footer-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 8px
        rgba(92, 229, 162, .6);

    animation:
        footerPulse 2.4s ease-in-out infinite;
}


@keyframes footerPulse {

    0%,
    100% {
        opacity: .45;
    }


    50% {
        opacity: 1;
    }
}


.footer-node div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.footer-node small {
    color: var(--dim);

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

    letter-spacing: 1.4px;
}


.footer-node strong {
    color: var(--muted);

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

    letter-spacing: 1px;
}


/* little activity meter */

.footer-activity {
    margin-left: 25px;

    height: 18px;

    display: flex;
    align-items: center;

    gap: 3px;
}


.footer-activity span {
    width: 2px;

    border-radius: 999px;

    background:
        var(--accent);

    opacity: .35;

    animation:
        activityBar 1.4s ease-in-out infinite;
}


.footer-activity span:nth-child(1) {
    height: 5px;
}


.footer-activity span:nth-child(2) {
    height: 11px;

    animation-delay: -.35s;
}


.footer-activity span:nth-child(3) {
    height: 7px;

    animation-delay: -.7s;
}


.footer-activity span:nth-child(4) {
    height: 14px;

    animation-delay: -1.05s;
}


@keyframes activityBar {

    0%,
    100% {
        transform:
            scaleY(.5);

        opacity: .2;
    }


    50% {
        transform:
            scaleY(1);

        opacity: .8;
    }
}


.footer-brand {
    margin-left: auto;

    color: var(--dim);

    font-family:
        Consolas,
        monospace;

    font-size: 8px;

    letter-spacing: 1.5px;
}


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

@media (max-width: 600px) {

    .gate-app {
        padding:
            0
            16px;

        grid-template-rows:
            78px
            1fr
            62px;
    }


    main {
        padding-top: 22px;
    }


    .intro {
        margin-bottom: 27px;
    }


    .intro h2 {
        font-size: 30px;
    }


    .status-panel {
        padding: 15px;

        border-radius: 24px;
    }


    .status-item {
        min-height: 72px;

        padding:
            10px
            11px;

        grid-template-columns:
            44px
            1fr
            auto;

        gap: 11px;
    }


    .status-icon,
    .action-icon {
        width: 42px;
        height: 42px;

        border-radius: 14px;
    }


    .status-link {
        margin:
            -7px
            12px;
    }


    .actions {
        margin-top: 28px;
    }


    .action-card {
        min-height: 72px;

        grid-template-columns:
            44px
            1fr
            30px;

        padding:
            9px
            11px;

        gap: 11px;

        border-radius: 18px;
    }


    .action-copy small {
        font-size: 8px;
    }


    .node-badge {
        font-size: 7px;
    }


    .footer-activity {
        display: none;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .float-dot,
    .brand-ripple,
    .node-badge-dot,
    .panel-runner span,
    .live-dot,
    .data-packet,
    .button-runner,
    .footer-dot,
    .footer-activity span {
        animation: none;
    }
}
