/* ==========================================================================
   GingerLive Marketing Design System — v2 "Glow"
   Used by: / , /streamers/ , /brands/  (all languages)
   Evolved brand: ginger orange on deep ink, gold + violet accents.
   ========================================================================== */

:root {
    /* Brand */
    --gl-orange: #ff7105;
    --gl-orange-soft: #ff8c33;
    --gl-gold: #ffb454;
    --gl-gold-deep: #daae51;
    --gl-violet: #9b4dff;
    --gl-violet-deep: #7418c5;
    --gl-live: #ff3d5a;
    --gl-green: #2fd67b;

    /* Surfaces */
    --gl-bg: #0d0a12;
    --gl-bg-raise: #14101c;
    --gl-surface: rgba(255, 255, 255, 0.04);
    --gl-surface-strong: rgba(255, 255, 255, 0.07);
    --gl-border: rgba(255, 255, 255, 0.1);
    --gl-border-strong: rgba(255, 255, 255, 0.18);

    /* Text */
    --gl-text: #f5f2fa;
    --gl-text-dim: #b7aec6;
    --gl-text-faint: #8b8198;

    /* Gradients */
    --gl-grad-brand: linear-gradient(92deg, var(--gl-orange) 0%, var(--gl-gold) 100%);
    --gl-grad-tech: linear-gradient(92deg, var(--gl-violet) 0%, var(--gl-orange) 100%);
    --gl-grad-text: linear-gradient(92deg, #ffb454 0%, #ff7105 45%, #ff9e3d 100%);

    /* Type */
    --gl-font-display: "Space Grotesk", "Ubuntu", system-ui, sans-serif;
    --gl-font-body: "Inter", "Ubuntu", system-ui, sans-serif;

    /* Layout */
    --gl-max: 1180px;
    --gl-radius: 20px;
    --gl-radius-lg: 28px;

    /* Motion */
    --gl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body.gl-body {
    margin: 0;
    background: var(--gl-bg);
    color: var(--gl-text);
    font-family: var(--gl-font-body);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.gl-body img, .gl-body video { max-width: 100%; height: auto; }
.gl-body a { color: inherit; }

.gl-body h1, .gl-body h2, .gl-body h3, .gl-body h4 {
    font-family: var(--gl-font-display);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 0.5em;
    letter-spacing: -0.02em;
}

.gl-h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); text-wrap: balance; }
.gl-h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); text-wrap: balance; }
.gl-h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

.gl-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: var(--gl-text-dim);
    max-width: 46em;
    margin: 0 auto;
}

.gl-grad-word {
    background: var(--gl-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gl-grad-shift 6s ease-in-out infinite alternate;
}

/* inline "Streamsense" wordmark — gradient-text link inside body copy, matches the nav chip */
.gl-ss-word {
    background: linear-gradient(90deg, #ff6d19 0%, #fb4624 20%, #ec2943 44%, #e32c55 62%, #b32e93 82%, #7d1fa6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-family: var(--gl-font-display);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.25s var(--gl-ease);
}

.gl-ss-word:hover { filter: brightness(1.12); }

/* Hide the floating reCAPTCHA badge (functionality stays; attribution shown by recaptchaNotice.php) */
.grecaptcha-badge { visibility: hidden; }

.gl-recaptcha-note {
    margin: 0.9rem 0 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--gl-text-dim);
    opacity: 0.72;
    text-align: center;
}

.gl-recaptcha-note a { color: var(--gl-text-dim); text-decoration: underline; }
.gl-recaptcha-note a:hover { color: var(--gl-text); }

.gl-grad-word-violet {
    background: linear-gradient(92deg, #c89bff 0%, var(--gl-violet) 60%, #ff8c33 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes gl-grad-shift {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

/* ---------- Layout helpers ---------- */

.gl-wrap { width: min(var(--gl-max), calc(100% - 2.5rem)); margin: 0 auto; }

.gl-section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.gl-section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.gl-center { text-align: center; }

.gl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--gl-font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gl-gold);
    background: rgba(255, 140, 51, 0.08);
    border: 1px solid rgba(255, 140, 51, 0.25);
    border-radius: 999px;
    padding: 0.42rem 1rem;
    margin-bottom: 1.3rem;
}

.gl-eyebrow-violet { color: #c89bff; background: rgba(155, 77, 255, 0.1); border-color: rgba(155, 77, 255, 0.3); }

/* Decorative accent dots removed site-wide (eyebrow labels, chips, etc.). */
.gl-dot { display: none !important; }

@keyframes gl-ping {
    0% { box-shadow: 0 0 0 0 rgba(255, 113, 5, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(255, 113, 5, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 113, 5, 0); }
}

/* ---------- Ambient background ---------- */

.gl-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.gl-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: gl-orb-float 14s ease-in-out infinite alternate;
}

.gl-orb-orange { background: radial-gradient(circle, rgba(255, 113, 5, 0.5), transparent 65%); }
.gl-orb-violet { background: radial-gradient(circle, rgba(116, 24, 197, 0.55), transparent 65%); animation-delay: -5s; }
.gl-orb-gold { background: radial-gradient(circle, rgba(255, 180, 84, 0.35), transparent 65%); animation-delay: -9s; }

@keyframes gl-orb-float {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(4vw, -5vh, 0) scale(1.15); }
}

.gl-grid-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, black 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, black 25%, transparent 75%);
}

.gl-above { position: relative; z-index: 1; }

/* Ember field — the mark's own concentric-timeline motif, used as a quiet
   section backdrop. Centered, edge-faded, non-interactive. */
.gl-emberfield {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.gl-emberfield::before {
    content: ""; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(140vh, 1500px); aspect-ratio: 1;
    background: url("/Assets/gl/emberfield.svg") center / contain no-repeat;
    opacity: 0.5;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 34%, transparent 70%);
    mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 34%, transparent 70%);
}
.gl-emberfield::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 113, 5, 0.10), transparent 42%);
}

/* ---------- Buttons ---------- */

.gl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--gl-font-display);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.95rem 2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s var(--gl-ease), box-shadow 0.25s var(--gl-ease), background 0.25s;
    will-change: transform;
}

.gl-btn:active { transform: scale(0.97); }

.gl-btn-primary {
    background: var(--gl-grad-brand);
    color: #1a0d02;
    box-shadow: 0 8px 28px rgba(255, 113, 5, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.gl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(255, 113, 5, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.gl-btn-ghost {
    background: var(--gl-surface);
    color: var(--gl-text);
    border: 1px solid var(--gl-border-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gl-btn-ghost:hover { transform: translateY(-2px); background: var(--gl-surface-strong); border-color: rgba(255, 140, 51, 0.5); }

.gl-btn-violet {
    background: linear-gradient(92deg, #a55cff, var(--gl-violet-deep));
    color: #fff;
    box-shadow: 0 8px 28px rgba(116, 24, 197, 0.4);
}

.gl-btn-violet:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(116, 24, 197, 0.55); }

.gl-btn-lg { font-size: 1.12rem; padding: 1.1rem 2.5rem; }

.gl-btn .gl-btn-arrow { transition: transform 0.25s var(--gl-ease); }
.gl-btn:hover .gl-btn-arrow { transform: translateX(4px); }

/* ---------- Cards ---------- */

.gl-card {
    position: relative;
    background: var(--gl-surface);
    border: 1px solid var(--gl-border);
    border-radius: var(--gl-radius);
    padding: 2rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.35s var(--gl-ease), border-color 0.35s, box-shadow 0.35s;
}

.gl-card:hover { transform: translateY(-6px); border-color: rgba(255, 140, 51, 0.35); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }

.gl-card-static:hover { transform: none; box-shadow: none; border-color: var(--gl-border); }

.gl-card-icon {
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: rgba(255, 113, 5, 0.12);
    border: 1px solid rgba(255, 113, 5, 0.3);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

.gl-card-icon svg { width: 26px; height: 26px; }

.gl-card p { color: var(--gl-text-dim); margin: 0; font-size: 0.99rem; }

/* Path cards (home hero routing) */

.gl-path-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 2.4rem 2.2rem;
    border-radius: var(--gl-radius-lg);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
}

.gl-path-card::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(120% 120% at var(--mx, 50%) var(--my, 0%), rgba(255, 113, 5, 0.16), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.gl-path-card:hover::before { opacity: 1; }

.gl-path-card.gl-path-violet::before {
    background: radial-gradient(120% 120% at var(--mx, 50%) var(--my, 0%), rgba(155, 77, 255, 0.18), transparent 55%);
}

.gl-path-card .gl-path-go {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--gl-font-display);
    font-weight: 700;
    color: var(--gl-gold);
    margin-top: auto;
}

.gl-path-card.gl-path-violet .gl-path-go { color: #c89bff; }

.gl-path-card:hover .gl-path-go .gl-btn-arrow { transform: translateX(5px); }

/* ---------- Stats ---------- */

.gl-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gl-stat {
    text-align: center;
    padding: 1.9rem 1rem;
    border-radius: var(--gl-radius);
    background: var(--gl-surface);
    border: 1px solid var(--gl-border);
}

.gl-stat-num {
    font-family: var(--gl-font-display);
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gl-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    line-height: 1.1;
}

.gl-stat-label { color: var(--gl-text-dim); font-size: 0.92rem; margin-top: 0.4rem; display: block; }

/* ---------- Logo marquee ---------- */

.gl-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.gl-marquee-track {
    display: flex;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    width: max-content;
    animation: gl-marquee 38s linear infinite;
    padding: 1.4rem 0;
}

.gl-marquee:hover .gl-marquee-track { animation-play-state: paused; }

@keyframes gl-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.gl-body .gl-marquee-logo {
    height: 38px;
    width: auto;
    max-width: 150px;
    flex: none;
    object-fit: contain;
    /* uniform "knockout" treatment: every logo rendered in one color (white on the dark bg) */
    filter: brightness(0) invert(1);
    opacity: 0.62;
    transition: opacity 0.3s, transform 0.3s var(--gl-ease);
}

.gl-body .gl-marquee-logo:hover { opacity: 1; transform: scale(1.08); }

.gl-marquee + .gl-marquee .gl-marquee-track { margin-top: 0.4rem; }

.gl-marquee-reverse .gl-marquee-track {
    animation-direction: reverse;
    animation-duration: 46s;
}

/* ---------- Static reference logos (non-scrolling) ---------- */

.gl-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.6rem, 3.5vw, 3rem) clamp(2rem, 5vw, 4rem);
    padding: 1.4rem 0;
}

.gl-body .gl-logo-static {
    /* per-logo width/height are set inline (sized to ink aspect); object-fit:cover
       crops the transparent padding baked into the CDN image. See referencesMarquee.php */
    height: 34px;
    flex: none;
    object-fit: cover;
    object-position: center;
    /* uniform "knockout" treatment: every logo rendered white on the dark bg */
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s var(--gl-ease);
}

.gl-body .gl-logo-static:hover { opacity: 1; transform: scale(1.06); }

/* ---------- Laurel / olive-branch accolade (IAB badge) ---------- */

.gl-laurel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
    color: var(--gl-gold);
}

.gl-laurel-branch { width: clamp(30px, 6vw, 42px); height: auto; flex: none; }
.gl-laurel-right { transform: scaleX(-1); }

.gl-laurel-text {
    font-family: var(--gl-font-display);
    font-weight: 600;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    letter-spacing: 0.02em;
    text-align: center;
    color: var(--gl-gold);
    white-space: nowrap;
}

/* Platform chips */

.gl-platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }

.gl-platform-chip {
    display: inline-flex; align-items: center; gap: 0.65rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: var(--gl-surface);
    border: 1px solid var(--gl-border);
    font-family: var(--gl-font-display);
    font-weight: 600;
    font-size: 0.98rem;
    transition: transform 0.3s var(--gl-ease), border-color 0.3s;
}

.gl-platform-chip:hover { transform: translateY(-3px); border-color: var(--gl-border-strong); }

.gl-platform-chip img { height: 22px; width: auto; }

/* ---------- Mock stream player (hero demo) ---------- */

/* Livestream demo: the video is a real 16:9 stream (cam + ads embedded); the
   chat sits beside it as its own column (flex row), not overlaid. */
.gl-stream {
    position: relative;
    /* chat column width; the video fills the rest and drives the widget's height */
    --gl-chat-w: clamp(150px, 26%, 230px);
    border-radius: var(--gl-radius-lg);
    background: #17121f;
    border: 1px solid var(--gl-border-strong);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 80px rgba(255, 113, 5, 0.12);
    overflow: hidden;
    font-family: var(--gl-font-body);
}

/* the 16:9 video area — fills the space left of the chat and sets the widget's height */
.gl-stream-screen {
    position: relative;
    width: calc(100% - var(--gl-chat-w));
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(90% 70% at 70% 30%, rgba(116, 24, 197, 0.35), transparent 60%),
        radial-gradient(80% 80% at 20% 80%, rgba(255, 113, 5, 0.22), transparent 55%),
        linear-gradient(160deg, #241b31 0%, #120d1a 70%);
}

.gl-stream-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.gl-stream-topbar {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(rgba(10, 7, 14, 0.75), transparent);
    z-index: 3;
}

.gl-live-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--gl-live);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 6px;
    padding: 0.22rem 0.55rem;
    font-family: var(--gl-font-display);
}

.gl-live-badge::before {
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
    background: #fff;
    animation: gl-blink 1.6s ease-in-out infinite;
}

@keyframes gl-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.gl-viewers { font-size: 0.8rem; color: #fff; opacity: 1; display: inline-flex; align-items: center; gap: 0.35rem; }
.gl-viewers svg { width: 14px; height: 14px; fill: var(--gl-live); }

/* chat column — pinned beside the video, matches its height, clips overflow */
.gl-stream-chat {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--gl-chat-w);
    background: rgba(10, 7, 15, 0.72);
    border-left: 1px solid var(--gl-border);
    padding: 0.95rem 0.7rem 0.7rem;
    display: flex; flex-direction: column;
    gap: 0.45rem;
    overflow: hidden;
    z-index: 3;
}

/* rolling messages fill whatever space the pinned block leaves */
.gl-chat-feed {
    flex: 1 1 auto;
    min-height: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    gap: 0.45rem;
    overflow: hidden;
    /* leaves clip room for the 8px slide-in offset without moving the feed */
    padding-bottom: 8px;
    margin-bottom: -8px;
}

.gl-chat-msg {
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--gl-text-dim);
    opacity: 0;
    transform: translateY(8px);
    animation: gl-chat-in 0.45s var(--gl-ease) forwards;
    word-break: break-word;
}

.gl-chat-msg b { font-weight: 700; }
.gl-chat-user-a { color: #6fd3ff; }
.gl-chat-user-b { color: #ffa25c; }
.gl-chat-user-c { color: #7bffb5; }
.gl-chat-user-d { color: #d59bff; }

.gl-chat-msg.gl-chat-pinned {
    flex: 0 0 auto;
    order: -1;
    background: rgba(255, 113, 5, 0.14);
    border: 1px solid rgba(255, 140, 51, 0.4);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    color: #ffd9b3;
    opacity: 1;
    transform: none;
    animation: none;
}

@keyframes gl-chat-in {
    to { opacity: 1; transform: translateY(0); }
}

/* On narrow screens the video + chat stack: video on top, chat a short strip below */
@media (max-width: 720px) {
    .gl-stream-screen { width: 100%; }
    .gl-stream-chat {
        position: static;
        width: 100%;
        max-height: 168px;
        border-left: none;
        border-top: 1px solid var(--gl-border);
    }
}

/* About page — framed hero media (video/image) */
.gl-about-media {
    border-radius: var(--gl-radius-lg);
    overflow: hidden;
    border: 1px solid var(--gl-border-strong);
    background: #17121f;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 80px rgba(255, 113, 5, 0.12);
    aspect-ratio: 16 / 10;
}

.gl-about-media video,
.gl-about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* floating accent chips around hero art */
.gl-float-chip {
    position: absolute;
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(20, 14, 28, 0.85);
    border: 1px solid var(--gl-border-strong);
    border-radius: 14px;
    padding: 0.6rem 0.95rem;
    font-family: var(--gl-font-display);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5;
    animation: gl-float 6s ease-in-out infinite;
}

.gl-float-chip.gl-delay-1 { animation-delay: -2s; }
.gl-float-chip.gl-delay-2 { animation-delay: -4s; }

@keyframes gl-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- StreamSense demo ---------- */

.gl-sense-wave {
    display: flex; align-items: flex-end; gap: 3px;
    height: 34px;
}

.gl-sense-wave i {
    width: 4px;
    border-radius: 2px;
    background: var(--gl-grad-tech);
    animation: gl-wave 1.1s ease-in-out infinite alternate;
}

.gl-sense-wave i:nth-child(2n) { animation-delay: -0.2s; }
.gl-sense-wave i:nth-child(3n) { animation-delay: -0.4s; }
.gl-sense-wave i:nth-child(5n) { animation-delay: -0.7s; }

@keyframes gl-wave {
    from { height: 22%; }
    to { height: 100%; }
}

.gl-keyword-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--gl-font-display);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: rgba(155, 77, 255, 0.1);
    border: 1px solid rgba(155, 77, 255, 0.35);
    color: #d8bcff;
    transition: transform 0.3s var(--gl-ease), background 0.3s, color 0.3s;
    cursor: default;
}

.gl-keyword-chip.gl-kw-hot {
    background: var(--gl-grad-brand);
    border-color: transparent;
    color: #1a0d02;
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(255, 113, 5, 0.45);
}

/* ---------- StreamSense Guard (brand-safety monitor card) ---------- */

.gl-guard-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gl-border);
    font-family: var(--gl-font-display);
    font-weight: 700;
}

.gl-guard-shield { font-size: 1.25rem; }

.gl-guard-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gl-text-faint);
}

.gl-guard-live .gl-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gl-violet);
    box-shadow: 0 0 0 0 rgba(155, 77, 255, 0.6);
    animation: gl-ping 2.2s var(--gl-ease) infinite;
}

.gl-guard-rows { display: flex; flex-direction: column; gap: 0.6rem; }

.gl-guard-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gl-border);
    font-size: 0.9rem;
    animation: gl-guard-pulse 9s ease-in-out infinite;
    animation-delay: var(--gl-guard-delay, 0s);
}

@keyframes gl-guard-pulse {
    0%, 30%, 100% { background: rgba(255, 255, 255, 0.03); border-color: var(--gl-border); }
    8%, 22% { background: rgba(255, 255, 255, 0.07); border-color: var(--gl-border-strong); }
}

.gl-guard-time {
    flex: none;
    font-family: var(--gl-font-display);
    font-size: 0.78rem;
    color: var(--gl-text-faint);
}

.gl-guard-label { color: var(--gl-text-dim); min-width: 0; }

.gl-guard-status {
    margin-left: auto;
    flex: none;
    font-family: var(--gl-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
}

.gl-guard-ok .gl-guard-status {
    color: #8af0b9;
    background: rgba(47, 214, 123, 0.12);
    border: 1px solid rgba(47, 214, 123, 0.35);
}

.gl-guard-hold .gl-guard-status {
    color: #ffc48a;
    background: rgba(255, 140, 51, 0.12);
    border: 1px solid rgba(255, 140, 51, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    .gl-guard-row, .gl-guard-live .gl-dot { animation: none !important; }
}

/* ---------- Steps ---------- */

.gl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; counter-reset: glstep; }

.gl-step { counter-increment: glstep; }

.gl-step-num {
    font-family: var(--gl-font-display);
    font-weight: 800;
    font-size: 0.95rem;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gl-grad-brand);
    color: #1a0d02;
    margin-bottom: 1.1rem;
}

.gl-step-num::before { content: counter(glstep); }

/* ---------- FAQ ---------- */

.gl-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }

.gl-faq-item {
    background: var(--gl-surface);
    border: 1px solid var(--gl-border);
    border-radius: var(--gl-radius);
    overflow: hidden;
    transition: border-color 0.3s;
}

.gl-faq-item[open] { border-color: rgba(255, 140, 51, 0.4); }

.gl-faq-item summary {
    list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    font-family: var(--gl-font-display);
    font-weight: 600;
    font-size: 1.05rem;
}

.gl-faq-item summary::-webkit-details-marker { display: none; }

.gl-faq-item summary .gl-faq-plus {
    flex: none;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--gl-border-strong);
    font-family: var(--gl-font-body);
    transition: transform 0.3s var(--gl-ease), background 0.3s;
}

.gl-faq-item[open] summary .gl-faq-plus { transform: rotate(45deg); background: rgba(255, 113, 5, 0.2); }

.gl-faq-body { padding: 0 1.5rem 1.35rem; color: var(--gl-text-dim); font-size: 0.99rem; }

/* ---------- Forms ---------- */

.gl-field { display: flex; flex-direction: column; gap: 0.4rem; }

.gl-field label { font-size: 0.86rem; font-weight: 600; color: var(--gl-text-dim); }

.gl-input, .gl-select, .gl-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gl-border-strong);
    border-radius: 14px;
    color: var(--gl-text);
    font-family: var(--gl-font-body);
    font-size: 1rem;
    padding: 0.85rem 1.1rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    appearance: none;
}

.gl-input::placeholder, .gl-textarea::placeholder { color: var(--gl-text-faint); }

.gl-input:focus, .gl-select:focus, .gl-textarea:focus {
    border-color: var(--gl-orange);
    box-shadow: 0 0 0 4px rgba(255, 113, 5, 0.18);
    background: rgba(255, 255, 255, 0.07);
}

.gl-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b7aec6' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    padding-right: 2.8rem;
}

.gl-select option { background: var(--gl-bg-raise); color: var(--gl-text); }

.gl-textarea { min-height: 130px; resize: vertical; }

.gl-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.gl-form-grid .gl-field-full { grid-column: 1 / -1; }

@media (max-width: 640px) {
    .gl-form-grid { grid-template-columns: 1fr; }
}

.gl-form-note { font-size: 0.8rem; color: var(--gl-text-faint); }

/* ---------- Split CTA ---------- */

.gl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

@media (max-width: 860px) {
    .gl-split { grid-template-columns: 1fr; }
}

/* ---------- Grids ---------- */

.gl-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.3rem; }
.gl-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.3rem; }

.gl-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

@media (max-width: 900px) {
    .gl-2col { grid-template-columns: 1fr; }
}

/* Hero with the livestream widget: a wider container + a media-favouring split so the
   video reads larger, while the text column stays wide enough for the headline. */
@media (min-width: 901px) {
    .gl-hero-wrap { width: min(1320px, calc(100% - 2.5rem)); }
    /* slight text favour so the (localised) 2-line hero headline fits, video stays sizeable */
    .gl-hero-2col { grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr); }
    /* a slimmer chat inside the hero widget so the video reads larger */
    .gl-hero-2col .gl-stream { --gl-chat-w: clamp(145px, 23%, 215px); }
}

/* ---------- Case study cards ---------- */

.gl-case-card { display: flex; flex-direction: column; gap: 0.8rem; text-decoration: none; }

.gl-case-metric {
    font-family: var(--gl-font-display);
    font-weight: 800;
    font-size: 1.7rem;
    background: var(--gl-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gl-case-brand { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gl-text-faint); font-weight: 700; }

.gl-case-card .gl-path-go { font-size: 0.92rem; }

/* ---------- Reveal-on-scroll ---------- */

.gl-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--gl-ease), transform 0.8s var(--gl-ease);
    transition-delay: var(--gl-reveal-delay, 0s);
}

.gl-reveal.gl-in { opacity: 1; transform: translateY(0); }

/* ---------- Video placeholder ---------- */

.gl-video-placeholder {
    position: relative;
    border-radius: var(--gl-radius-lg);
    border: 2px dashed rgba(255, 140, 51, 0.4);
    background:
        radial-gradient(70% 90% at 50% 10%, rgba(255, 113, 5, 0.08), transparent 60%),
        var(--gl-surface);
    aspect-ratio: 16 / 9;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.9rem;
    text-align: center;
    padding: 1.5rem;
}

.gl-video-placeholder .gl-play {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: var(--gl-grad-brand);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 0 rgba(255, 113, 5, 0.4);
    animation: gl-ping 2.4s var(--gl-ease) infinite;
}

.gl-video-placeholder .gl-play::after {
    content: "";
    margin-left: 5px;
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent #1a0d02;
}

/* ---------- Footer ---------- */

.gl-footer {
    border-top: 1px solid var(--gl-border);
    background: linear-gradient(rgba(255, 255, 255, 0.02), transparent);
    padding: 3.5rem 0 2rem;
    color: var(--gl-text-dim);
    font-size: 0.95rem;
}

.gl-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .gl-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .gl-footer-grid { grid-template-columns: 1fr; }
}

.gl-footer h4 {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gl-text);
    margin-bottom: 1rem;
}

.gl-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }

.gl-footer a { text-decoration: none; transition: color 0.25s; }
.gl-footer a:hover { color: var(--gl-gold); }

.gl-footer-social { display: flex; gap: 0.7rem; margin-top: 1rem; }

.gl-footer-social a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--gl-surface);
    border: 1px solid var(--gl-border);
    transition: transform 0.25s var(--gl-ease), border-color 0.25s;
}

.gl-footer-social a:hover { transform: translateY(-3px); border-color: rgba(255, 140, 51, 0.5); }

.gl-footer-legal {
    border-top: 1px solid var(--gl-border);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    font-size: 0.83rem;
    color: var(--gl-text-faint);
}

.gl-kworks {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    background: #fff;
    border-radius: 12px;
    margin-top: 1.1rem;
}

.gl-kworks span { color: #333; font-weight: 700; font-size: 0.78rem; }
.gl-kworks img { height: 26px; width: auto; }

/* ---------- Nav ---------- */

.gl-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 60;
    padding: 0.9rem 0;
    transition: padding 0.3s var(--gl-ease);
}

.gl-nav-panel {
    width: min(var(--gl-max), calc(100% - 1.6rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* space-between sets the visible spacing; this small gap is only the collapse
       minimum, so lowering it lets a busy nav (TR home) fit on one line without
       shrinking links — the on-screen spacing is unchanged. */
    gap: 0.4rem;
    padding: 0.6rem 0.7rem 0.6rem 1.3rem;
    border-radius: 22px;
    background: rgba(16, 12, 22, 0.55);
    border: 1px solid var(--gl-border);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.gl-nav.gl-scrolled .gl-nav-panel {
    background: rgba(14, 10, 19, 0.85);
    border-color: var(--gl-border-strong);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.gl-nav-brand { display: inline-flex; align-items: center; flex: none; }
.gl-nav-logo { display: flex; align-items: center; flex: none; }
.gl-nav-logo img { height: 34px; width: auto; }

.gl-nav-links {
    display: flex; align-items: center; gap: 0.2rem;
    list-style: none; margin: 0; padding: 0;
}

.gl-nav-links a, .gl-nav-links span.gl-nav-current {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--gl-font-display);
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--gl-text-dim);
    transition: color 0.25s, background 0.25s;
}

.gl-nav-links a:hover { color: var(--gl-text); background: var(--gl-surface-strong); }

.gl-nav-links span.gl-nav-current { color: var(--gl-gold); }

.gl-nav-actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.gl-nav-cta { padding: 0.62rem 1.4rem; font-size: 0.92rem; }
/* Header CTA text is always white — nav-scoped so it beats both `.gl-btn-primary`
   (black ink) and `.gl-body a { color: inherit }`, which otherwise makes the CTA
   white on gl-body pages but black on legacy pages (case studies, about). */
.gl-nav .gl-nav-cta { color: #fff; }

/* language dropdown */
.gl-lang { position: relative; }

.gl-lang-btn {
    display: flex; align-items: center; gap: 0.4rem;
    background: none; border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.4rem 0.55rem;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
}

.gl-lang-btn:hover { background: var(--gl-surface-strong); }

.gl-lang-btn img { width: 26px; height: 26px; border-radius: 50%; }

.gl-lang-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 170px;
    background: rgba(20, 15, 27, 0.97);
    border: 1px solid var(--gl-border-strong);
    border-radius: 16px;
    padding: 0.4rem;
    display: none;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    z-index: 70;
}

.gl-lang-menu.gl-open { display: flex; }

.gl-lang-menu a {
    display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.93rem;
    color: var(--gl-text-dim);
}

.gl-lang-menu a:hover { background: var(--gl-surface-strong); color: var(--gl-text); }

.gl-lang-menu img { width: 22px; height: 22px; border-radius: 50%; }

/* mobile nav */
.gl-nav-burger {
    display: none;
    background: none; border: none; cursor: pointer;
    padding: 0.5rem;
    color: var(--gl-text);
}

.gl-nav-burger svg { width: 26px; height: 26px; }

@media (max-width: 920px) {
    .gl-nav-links {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(16, 11, 23, 0.97);
        border: 1px solid var(--gl-border-strong);
        border-radius: 18px;
        padding: 0.7rem;
        display: none;
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    }

    .gl-nav-links.gl-open { display: flex; }

    .gl-nav-burger { display: block; }

    .gl-nav-cta { display: none; }

    .gl-nav-links .gl-nav-cta-mobile { display: block; margin-top: 0.5rem; text-align: center; }
}

@media (min-width: 921px) {
    .gl-nav-links .gl-nav-cta-mobile { display: none; }
}

/* ---------- Utility ---------- */

.gl-mt-1 { margin-top: 1rem; }
.gl-mt-2 { margin-top: 2rem; }
.gl-mt-3 { margin-top: 3rem; }
.gl-mb-2 { margin-bottom: 2rem; }
.gl-dim { color: var(--gl-text-dim); }
.gl-faint { color: var(--gl-text-faint); }
.gl-small { font-size: 0.88rem; }

.gl-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.gl-cta-row.gl-center-row { justify-content: center; }

/* trust badges row (measurement partners) */
.gl-trust-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 1rem 2.2rem;
}

.gl-trust-badge {
    font-family: var(--gl-font-display);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    color: var(--gl-text-faint);
    border: 1px solid var(--gl-border);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    transition: color 0.3s, border-color 0.3s;
}

.gl-trust-badge:hover { color: var(--gl-text); border-color: var(--gl-border-strong); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .gl-orb, .gl-grad-word, .gl-float-chip, .gl-sense-wave i,
    .gl-eyebrow .gl-dot, .gl-video-placeholder .gl-play,
    .gl-live-badge::before {
        animation: none !important;
    }

    .gl-marquee-track { animation-duration: 120s; }

    .gl-chat-msg { animation: none; opacity: 1; transform: none; }

    .gl-reveal { opacity: 1; transform: none; transition: none; }

    * { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Streamsense & Esports pages — "Ember" accents on the Glow base.
   Motifs from the Ember Index identity study (Assets/gl/logo-lab):
   radial dotted rings, instrument/mono labels, one warm family,
   one cool accent spent only on the detected instant.
   ========================================================================== */

:root {
    --ss-ember: #ff7105;
    --ss-ember-bright: #ffb454;
    --ss-detect: #6fd3ff; /* the single cool accent: the detected instant */
    --ss-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

/* ---------- Nav: distinguished Streamsense chip beside the GingerLive logo ---------- */

/* A rounded, tinted, glowing pill (with a gradient status dot) so Streamsense stands
   apart from the plain nav links. The word itself uses the shared .gl-ss-word gradient. */
.gl-nav-ss-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: none;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(227, 44, 85, 0.55);
    background: rgba(227, 44, 85, 0.10);
    text-decoration: none;
    line-height: 1;
    transition: background 0.25s var(--gl-ease), border-color 0.25s var(--gl-ease), box-shadow 0.25s var(--gl-ease), transform 0.25s var(--gl-ease);
}

.gl-nav-ss-chip .gl-ss-word { font-size: 0.9rem; }

a.gl-nav-ss-chip:hover {
    background: rgba(227, 44, 85, 0.18);
    border-color: rgba(227, 44, 85, 0.85);
    box-shadow: 0 0 20px rgba(227, 44, 85, 0.28);
    transform: translateY(-1px);
}

.gl-nav-ss-chip-current { cursor: default; }

/* The Streamsense entry inside the mobile dropdown (the chip is desktop-only). */
.gl-nav-ss-mobile { display: none; }

@media (max-width: 920px) {
    .gl-nav-ss-chip { display: none; }
    .gl-nav-ss-mobile { display: block; }
}

/* ---------- Ember instrument labels ---------- */

.gl-ss-plate {
    font-family: var(--ss-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gl-text-faint);
}
.gl-ss-plate b { color: var(--ss-ember-bright); font-weight: 500; }

/* ---------- Radial dotted rings (Ember Index motif) ---------- */

.gl-ss-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-radial-gradient(circle at 50% 50%,
            transparent 0px, transparent 34px,
            rgba(255, 113, 5, 0.16) 34px, rgba(255, 113, 5, 0.16) 35px,
            transparent 35px, transparent 70px);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 68%);
    mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 68%);
    opacity: 0.7;
    z-index: 0;
}

/* ---------- Moment card (esports activation demo) ---------- */

.gl-mo-card {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: var(--gl-radius);
    background: var(--gl-bg-raise);
    border: 1px solid var(--gl-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    display: grid;
    gap: 0.85rem;
}
.gl-mo-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--gl-font-display);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--gl-border);
    border-radius: 14px;
    background: var(--gl-surface);
}
.gl-mo-score b { color: var(--ss-ember-bright); }
.gl-mo-event {
    font-family: var(--ss-mono);
    font-size: 0.74rem;
    letter-spacing: 0.09em;
    color: var(--ss-detect);
    border: 1px dashed rgba(111, 211, 255, 0.45);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    background: rgba(111, 211, 255, 0.06);
}
.gl-mo-sponsor {
    font-size: 0.9rem;
    color: var(--gl-text-dim);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    background: linear-gradient(120deg, rgba(255, 113, 5, 0.22), rgba(255, 180, 84, 0.12));
    border: 1px solid rgba(255, 140, 51, 0.4);
}
.gl-mo-sponsor b { color: var(--gl-text); }
.gl-mo-report {
    font-family: var(--ss-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #7de2a8;
    border: 1px solid rgba(47, 214, 123, 0.3);
    border-radius: 14px;
    padding: 0.65rem 1rem;
    background: rgba(47, 214, 123, 0.06);
}

/* ---------- Structured event feed ---------- */

.gl-ss-feed { display: grid; gap: 0.6rem; position: relative; z-index: 1; }
.gl-ss-feed code {
    font-family: var(--ss-mono);
    font-size: 0.74rem;
    color: var(--ss-ember-bright);
    background: rgba(255, 113, 5, 0.07);
    border: 1px solid rgba(255, 113, 5, 0.25);
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.gl-ss-feed code:nth-child(2) { color: var(--ss-detect); background: rgba(111, 211, 255, 0.06); border-color: rgba(111, 211, 255, 0.28); }

/* ---------- Streamsense live-detection demo ----------
   The hero video is a 4-trigger compilation; gl.js reads video.currentTime and
   toggles .gl-ss-on on the matching reticle / ad-frame so the overlays stay in
   sync with what's actually on screen. Geometry below is measured against the
   1280×720 source frames — keep positions in % so they scale with the screen. */

.gl-ss-demo {
    position: relative;
    z-index: 1;
    border-radius: var(--gl-radius);
    background: var(--gl-bg-raise);
    border: 1px solid var(--gl-border);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.gl-ss-demo-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(60% 90% at 68% 30%, rgba(155, 77, 255, 0.16), transparent 60%),
        radial-gradient(70% 90% at 25% 75%, rgba(255, 113, 5, 0.14), transparent 65%),
        #0a0810;
    overflow: hidden;
}
.gl-ss-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gl-ss-scan {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 113, 5, 0.07) 55%, rgba(255, 180, 84, 0.2) 98%, rgba(255, 220, 160, 0.55));
    animation: glSsScan 5.2s linear infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}
@keyframes glSsScan {
    from { left: -36%; }
    to { left: 102%; }
}

/* Detection reticle — cyan lock-on box framing the detected event */
.gl-ss-reticle {
    position: absolute;
    border: 1.5px solid var(--ss-detect);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(111, 211, 255, 0.2), 0 0 26px rgba(111, 211, 255, 0.25), inset 0 0 22px rgba(111, 211, 255, 0.08);
    opacity: 0;
    transform: scale(1.14);
    transition: opacity 0.28s var(--gl-ease), transform 0.32s var(--gl-ease);
    pointer-events: none;
}
.gl-ss-reticle.gl-ss-on {
    opacity: 1;
    transform: scale(1);
    animation: glSsRetPulse 1.8s ease-in-out infinite 0.35s;
}
@keyframes glSsRetPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(111, 211, 255, 0.2), 0 0 26px rgba(111, 211, 255, 0.25), inset 0 0 22px rgba(111, 211, 255, 0.08); }
    50% { box-shadow: 0 0 0 1px rgba(111, 211, 255, 0.35), 0 0 38px rgba(111, 211, 255, 0.45), inset 0 0 30px rgba(111, 211, 255, 0.14); }
}
.gl-ss-reticle-label {
    position: absolute;
    top: -1.7rem;
    left: -1.5px;
    display: inline-flex;
    align-items: center;
    font-family: var(--ss-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    color: #0a0810;
    background: var(--ss-detect);
    border-radius: 6px 6px 6px 0;
    padding: 0.22rem 0.55rem;
    white-space: nowrap;
}
/* Boxes hugging the top edge of the frame carry their label underneath instead */
.gl-ss-label-below .gl-ss-reticle-label {
    top: auto;
    bottom: -1.7rem;
    border-radius: 0 6px 6px 6px;
}

/* Tiny equalizer inside audio-keyword labels */
.gl-ss-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 0.72em;
    margin-right: 0.5em;
}
.gl-ss-wave i {
    width: 2px;
    height: 35%;
    background: currentColor;
    border-radius: 1px;
}
.gl-ss-on .gl-ss-wave i { animation: glSsWave 0.85s ease-in-out infinite; }
.gl-ss-wave i:nth-child(1) { animation-delay: 0s; }
.gl-ss-wave i:nth-child(2) { animation-delay: 0.18s; }
.gl-ss-wave i:nth-child(3) { animation-delay: 0.36s; }
.gl-ss-wave i:nth-child(4) { animation-delay: 0.54s; }
@keyframes glSsWave {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}

/* Ad frame — ember bracket around the ad the automation just placed in-stream */
.gl-ss-adframe {
    position: absolute;
    border: 1.5px solid rgba(255, 140, 51, 0.85);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(255, 113, 5, 0.2), 0 0 30px rgba(255, 113, 5, 0.3);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s var(--gl-ease), transform 0.34s var(--gl-ease);
    pointer-events: none;
}
.gl-ss-adframe.gl-ss-on {
    opacity: 1;
    transform: translateY(0);
}
.gl-ss-adframe-label {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    font-family: var(--ss-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #1a0d02;
    background: linear-gradient(120deg, rgba(255, 113, 5, 0.95), rgba(255, 180, 84, 0.92));
    border-radius: 6px;
    padding: 0.22rem 0.55rem;
    white-space: nowrap;
}
/* Right-edge ad frames anchor the label to their right corner so a long label
   (e.g. Turkish) grows inward and never clips against the screen edge. */
.gl-ss-adlabel-right .gl-ss-adframe-label { left: auto; right: 0.45rem; }

/* Overlay geometry, measured on the 1280×720 hero video.
   ev = detection reticles, ad = fired-ad frames; one pair per trigger. */
.gl-ss-pos-ev1 { left: 2%; top: 4%; width: 15.8%; height: 9.8%; }      /* EA FC scoreboard, top left */
.gl-ss-pos-ev2 { left: 0.8%; top: 73%; width: 26.5%; height: 25.5%; }  /* Cyberpunk webcam, bottom left */
.gl-ss-pos-ev3 { left: 37.6%; top: 14.4%; width: 26.2%; height: 37%; } /* LoL “ZAFER” banner, above center */
.gl-ss-pos-ev4 { left: 0.8%; top: 1.4%; width: 25.6%; height: 29.8%; } /* Palworld webcam, top left */
.gl-ss-pos-ad1 { left: 0.8%; top: 74.5%; width: 98.4%; height: 24%; }  /* bottom banner ad */
.gl-ss-pos-ad2 { left: 68.3%; top: 1.6%; width: 30.9%; height: 96.8%; } /* right-rail ad */
.gl-ss-pos-ad3 { left: 0.8%; top: 1.6%; width: 31%; height: 96.8%; }   /* left-rail ad */
.gl-ss-pos-ad4 { left: 56%; top: 30.4%; width: 39.2%; height: 39%; }   /* video ad overlay, mid right */

/* Small LIVE plate, centered on the top edge so it clears every detection zone */
.gl-ss-videobadge {
    position: absolute;
    top: 0.55rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    background: rgba(10, 8, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
}
.gl-ss-videobadge .gl-live-badge {
    font-size: 0.54rem;
    padding: 0.1rem 0.38rem;
    gap: 0.26rem;
}
.gl-ss-videobadge .gl-live-badge::before { width: 5px; height: 5px; }

.gl-ss-demo-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-top: 1px solid var(--gl-border);
    font-family: var(--ss-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--gl-text-faint);
}
.gl-ss-demo-bar b { color: #7de2a8; font-weight: 500; transition: color 0.25s ease; }
.gl-ss-demo-bar b.gl-ss-status-scan { color: var(--gl-text-faint); }
.gl-ss-demo-bar b.gl-ss-status-detect { color: var(--ss-detect); }

/* ---------- Hover to freeze the whole demo ---------- */
.gl-ss-demo { cursor: pointer; }
/* Halt every looping animation so a hovered frame reads as a clean still */
.gl-ss-frozen .gl-ss-scan,
.gl-ss-frozen .gl-ss-reticle,
.gl-ss-frozen .gl-ss-wave i,
.gl-ss-frozen .gl-live-badge::before { animation-play-state: paused; }
/* Centered pause glyph, so the freeze reads as intentional (not a stall) */
.gl-ss-demo-screen::after {
    content: "\275A\275A";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 3rem;
    height: 3rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(10, 8, 16, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s var(--gl-ease), transform 0.2s var(--gl-ease);
    pointer-events: none;
    z-index: 4;
}
.gl-ss-frozen .gl-ss-demo-screen::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Narrow screens: the demo shrinks a lot — keep overlay chips proportionate */
@media (max-width: 640px) {
    .gl-ss-reticle-label { font-size: 0.54rem; letter-spacing: 0.06em; top: -1.45rem; }
    .gl-ss-label-below .gl-ss-reticle-label { top: auto; bottom: -1.45rem; }
    .gl-ss-adframe-label { font-size: 0.5rem; letter-spacing: 0.06em; }
    .gl-ss-videobadge { font-size: 0.5rem; padding: 0.16rem 0.5rem; gap: 0.35rem; }
    .gl-ss-videobadge .gl-live-badge { font-size: 0.46rem; }
}

/* ---------- Live Data Moments: sponsored data-overlay stack ---------- */

.gl-ld-stack { display: grid; gap: 0.9rem; position: relative; z-index: 1; width: min(430px, 100%); margin: 0 auto; }
.gl-ld-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    background: var(--gl-bg-raise);
    border: 1px solid var(--gl-border);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}
.gl-ld-icon { font-size: 1.35rem; flex: none; }
.gl-ld-text { min-width: 0; }
.gl-ld-text b { display: block; font-size: 0.92rem; color: var(--gl-text); line-height: 1.35; }
.gl-ld-brand {
    display: inline-block;
    margin-top: 0.3rem;
    font-family: var(--ss-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ss-ember-bright);
    background: rgba(255, 113, 5, 0.1);
    border: 1px solid rgba(255, 140, 51, 0.35);
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
}
.gl-ld-item-live { border-color: rgba(111, 211, 255, 0.35); }
.gl-ld-item-live .gl-ld-brand { color: var(--ss-detect); background: rgba(111, 211, 255, 0.07); border-color: rgba(111, 211, 255, 0.3); }

/* ---------- 4-up grid (step cards) ---------- */

.gl-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 1.3rem; }

/* ---------- Deployment tiers ---------- */

.gl-ss-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gl-ss-tier {
    position: relative;
    border-radius: var(--gl-radius);
    border: 1px solid var(--gl-border);
    background: var(--gl-surface);
    padding: 1.7rem 1.6rem;
}
.gl-ss-tier .gl-ss-plate { display: block; margin-bottom: 0.9rem; }
.gl-ss-tier h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.gl-ss-tier p { color: var(--gl-text-dim); font-size: 0.94rem; margin: 0; }
.gl-ss-tier-hot { border-color: rgba(255, 140, 51, 0.45); background: linear-gradient(160deg, rgba(255, 113, 5, 0.1), var(--gl-surface) 55%); }

@media (max-width: 900px) {
    .gl-ss-tiers { grid-template-columns: 1fr; }
}

/* Small phones: keep the logo + language + burger on one uncrowded row */
@media (max-width: 460px) {
    .gl-nav-logo img { width: 138px; height: auto; }
}

/* ---------- Screen-reader / crawler-only text ---------- */

.gl-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ---------- Language-suggestion banner (replaces the old GeoIP redirect) ---------- */

.gl-lang-suggest {
    position: fixed;
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    max-width: min(94vw, 560px);
    padding: 0.75rem 0.9rem 0.75rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--gl-border);
    background: rgba(16, 12, 22, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.gl-lang-suggest[hidden] { display: none; }
.gl-lang-suggest-text { color: var(--gl-text-dim); font-size: 0.93rem; }
.gl-lang-suggest-cta { padding: 0.5rem 1rem; font-size: 0.88rem; white-space: nowrap; }
.gl-lang-suggest-close {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--gl-border);
    background: transparent;
    color: var(--gl-text-dim);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}
.gl-lang-suggest-close:hover { color: #fff; }
@media (max-width: 520px) {
    .gl-lang-suggest { flex-wrap: wrap; justify-content: center; border-radius: 20px; text-align: center; }
}

/* ---------- Long-form prose (/resources/ guides) ----------
   Values ported from gl-legacy.css's settled #blog-text treatment; this is the
   modern, class-based equivalent with no legacy-markup coupling. */

.gl-prose {
    max-width: 46em;
    margin: 0 auto;
    font-size: 1.07rem;
    line-height: 1.8;
    color: var(--gl-text-dim);
}
.gl-prose h1 { margin-bottom: 0.6rem; }
.gl-prose h2 {
    font-size: 1.55rem;
    color: var(--gl-text);
    margin: 2.6rem 0 0.9rem;
    line-height: 1.3;
}
.gl-prose h3 {
    font-size: 1.18rem;
    color: var(--gl-text);
    margin: 1.8rem 0 0.6rem;
}
.gl-prose p { margin: 0 0 1.1rem; }
.gl-prose ul, .gl-prose ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.gl-prose li { margin-bottom: 0.45rem; }
.gl-prose strong, .gl-prose b { color: var(--gl-text); }
.gl-prose a { color: var(--gl-gold); text-decoration: underline; text-decoration-color: rgba(218, 174, 81, 0.4); text-underline-offset: 3px; }
.gl-prose a:hover { text-decoration-color: var(--gl-gold); }
/* Buttons and cards inside prose keep their component styling — the gold
   underlined link treatment above is for in-text links only. */
.gl-prose a.gl-btn { text-decoration: none; }
.gl-prose a.gl-btn-primary { color: #1a0d02; }
.gl-prose a.gl-prose-related-card { color: var(--gl-text-dim); text-decoration: none; }
.gl-prose blockquote {
    margin: 1.4rem 0;
    padding: 0.2rem 0 0.2rem 1.1rem;
    border-left: 3px solid var(--gl-orange);
    color: var(--gl-text);
}
.gl-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    font-size: 0.97rem;
    display: block;
    overflow-x: auto;
}
.gl-prose th, .gl-prose td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--gl-border);
    vertical-align: top;
}
.gl-prose th { color: var(--gl-text); background: var(--gl-surface); white-space: nowrap; }

.gl-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--gl-text-faint);
    margin-bottom: 1.4rem;
}
.gl-crumbs a { color: var(--gl-text-faint); text-decoration: none; }
.gl-crumbs a:hover { color: var(--gl-text); }

.gl-prose-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: var(--gl-text-faint);
    font-size: 0.92rem;
    margin: 0 0 1.6rem;
}

.gl-prose-intro {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--gl-text);
    border-left: 3px solid var(--gl-orange);
    padding-left: 1.1rem;
    margin-bottom: 1.8rem;
}

.gl-prose-toc {
    border: 1px solid var(--gl-border);
    border-radius: var(--gl-radius);
    background: var(--gl-surface);
    padding: 1.2rem 1.4rem;
    margin: 0 0 1.6rem;
    font-size: 0.95rem;
}
.gl-prose-toc strong { color: var(--gl-text); display: block; margin-bottom: 0.5rem; }
.gl-prose-toc ol { margin: 0; padding-left: 1.2rem; }
.gl-prose-toc li { margin-bottom: 0.3rem; }
.gl-prose-toc a { color: var(--gl-text-dim); text-decoration: none; }
.gl-prose-toc a:hover { color: var(--gl-gold); }

.gl-prose-cta { margin: 2.6rem 0; padding: 1.8rem; }
.gl-prose-cta p { margin-bottom: 1.2rem; }

.gl-prose-related-card { text-decoration: none; display: block; }
.gl-prose-related-card p { font-size: 0.95rem; }
