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

:root {
    color-scheme: dark;
    --gate-bg: #07090d;
    --gate-ink: #f7f7fb;
    --gate-muted: #9aa5b8;
    --gate-line: rgba(255, 255, 255, 0.14);
    --gate-blue: #00a0df;
    --gate-orange: #ff7a1a;
    --gate-green: #44d18d;
    --gate-paper: rgba(255, 255, 255, 0.07);
}

html {
    min-height: 100%;
    background: var(--gate-bg);
}

body.seoreports-placeholder {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(120deg, rgba(0, 160, 223, 0.12), transparent 34%),
        linear-gradient(300deg, rgba(255, 122, 26, 0.11), transparent 36%),
        var(--gate-bg);
    color: var(--gate-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.seo-gate {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    min-height: 100vh;
    padding: 76px;
    gap: 88px;
    isolation: isolate;
}

.seo-gate::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.52;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.085) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.085) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 32% 42%, black 0, black 34%, transparent 70%);
    animation: gate-grid 16s linear infinite;
}

.seo-gate::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    background-size: 100% 240px;
    opacity: 0.32;
    animation: gate-scan 7s linear infinite;
}

.seo-gate__hero {
    max-width: 900px;
}

.seo-gate__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.seo-gate__brand img {
    display: block;
    width: 58px;
    height: auto;
}

.seo-gate__brand span {
    display: grid;
    gap: 2px;
}

.seo-gate__brand strong {
    font-size: 18px;
    line-height: 1;
}

.seo-gate__brand small {
    color: var(--gate-muted);
    font-size: 13px;
}

.seo-gate__kicker {
    margin: 88px 0 22px;
    color: var(--gate-orange);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.seo-gate h1 {
    max-width: 820px;
    margin: 0;
    font-size: 72px;
    line-height: 0.95;
    letter-spacing: 0;
}

.seo-gate__lead {
    max-width: 650px;
    margin: 30px 0 0;
    color: #d4d9e5;
    font-size: 22px;
    line-height: 1.55;
}

.seo-gate__quote {
    margin: 54px 0 0;
    padding-left: 24px;
    border-left: 4px solid var(--gate-orange);
}

.seo-gate__quote blockquote {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
}

.seo-gate__quote figcaption {
    margin-top: 12px;
    color: var(--gate-muted);
    font-size: 15px;
}

.seo-gate__panel {
    position: relative;
    min-height: 560px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--gate-line);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
        rgba(7, 9, 13, 0.72);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.seo-gate__panel::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(0, 160, 223, 0.18);
    border-radius: 18px;
    pointer-events: none;
}

.seo-gate__panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 118px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gate-blue), var(--gate-orange), transparent);
    animation: gate-trace 4.8s ease-in-out infinite;
}

.seo-gate__panel-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.seo-gate__panel-head strong {
    display: block;
    font-size: 18px;
    text-transform: uppercase;
}

.seo-gate__panel-head small {
    display: block;
    margin-top: 4px;
    color: var(--gate-muted);
    font-size: 14px;
}

.seo-gate__signal {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gate-green);
    box-shadow: 0 0 0 8px rgba(68, 209, 141, 0.12), 0 0 28px rgba(68, 209, 141, 0.48);
    animation: gate-signal 2.2s ease-in-out infinite;
}

.seo-gate__terminal {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin-top: 82px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    color: #dce6f5;
}

.seo-gate__terminal span {
    display: flex;
    align-items: center;
    min-height: 22px;
}

.seo-gate__terminal span::before {
    content: ">";
    margin-right: 10px;
    color: var(--gate-blue);
}

.seo-gate__terminal-live::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 16px;
    margin-left: 8px;
    background: var(--gate-orange);
    animation: gate-caret 1s steps(1, end) infinite;
}

.seo-gate__bars {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 12px;
    height: 150px;
    margin-top: 42px;
    padding: 18px;
    border-bottom: 1px solid var(--gate-line);
}

.seo-gate__bars i {
    display: block;
    height: var(--level);
    min-height: 18px;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, var(--gate-blue), var(--gate-green));
    opacity: 0.9;
    transform-origin: bottom;
    animation: gate-bars 3.5s ease-in-out infinite;
}

.seo-gate__bars i:nth-child(2n) {
    background: linear-gradient(180deg, var(--gate-orange), #ffd166);
    animation-delay: -0.8s;
}

.seo-gate__bars i:nth-child(3n) {
    animation-delay: -1.6s;
}

.seo-gate__aside {
    position: relative;
    z-index: 1;
    margin: 34px 0 0;
    color: #d3d9e4;
    font-size: 18px;
    line-height: 1.55;
}

@keyframes gate-grid {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 72px 72px, 72px 72px;
    }
}

@keyframes gate-scan {
    from {
        background-position: 0 -240px;
    }
    to {
        background-position: 0 100vh;
    }
}

@keyframes gate-trace {
    0%,
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    45%,
    60% {
        opacity: 1;
    }
    80% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes gate-signal {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.72);
    }
}

@keyframes gate-caret {
    0%,
    45% {
        opacity: 1;
    }
    46%,
    100% {
        opacity: 0;
    }
}

@keyframes gate-bars {
    0%,
    100% {
        transform: scaleY(0.92);
    }
    50% {
        transform: scaleY(1.04);
    }
}

@media (max-width: 1120px) {
    .seo-gate {
        grid-template-columns: 1fr;
        gap: 54px;
        padding: 52px;
    }

    .seo-gate h1 {
        max-width: 760px;
        font-size: 58px;
    }

    .seo-gate__lead {
        font-size: 20px;
    }

    .seo-gate__panel {
        min-height: 460px;
    }
}

@media (max-width: 720px) {
    .seo-gate {
        padding: 28px;
    }

    .seo-gate__kicker {
        margin-top: 60px;
    }

    .seo-gate h1 {
        font-size: 42px;
        line-height: 1.03;
    }

    .seo-gate__lead {
        font-size: 18px;
    }

    .seo-gate__quote blockquote {
        font-size: 21px;
    }

    .seo-gate__panel {
        min-height: 0;
        padding: 24px;
        border-radius: 20px;
    }

    .seo-gate__terminal {
        margin-top: 62px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seo-gate::before,
    .seo-gate::after,
    .seo-gate__panel::after,
    .seo-gate__signal,
    .seo-gate__terminal-live::after,
    .seo-gate__bars i {
        animation: none;
    }
}
