/* ==========================================================================
   Owl OS v2 brand layer: near-black + charcoal + owl red.
   Loaded last on every page so it wins over page styles.
   ========================================================================== */
:root {
    --owl-red: #ff1a1a;
    --owl-red-deep: #e10600;
    --owl-red-glow: rgba(255, 26, 26, 0.35);
    --owl-black: #050505;
    --owl-panel: #0b0b0b;
    --owl-card: #111111;
    --owl-charcoal: #222222;
    --owl-charcoal-2: #2a2a2a;

    /* shared style.css variables (index, team, docs and others) */
    --primary-cyan: #ff1a1a;
    --primary-aqua: #e10600;
    --primary-purple: #b3001b;
    --primary-green: #d4d4d4;
    --bg-dark: #050505;
    --bg-darker: #020202;
    --bg-card: #111111;
    --bg-panel: #0b0b0b;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --border-light: #1c1c1c;
    --border-medium: #2a2a2a;
    --border-cyan: #2a2a2a;
    --border-purple: #2a2a2a;
    --gradient-primary: linear-gradient(135deg, #ff1a1a, #b3001b);
    --gradient-secondary: linear-gradient(135deg, #e10600, #7a0010);
    --gradient-card: linear-gradient(135deg, rgba(17, 17, 17, 0.9), rgba(8, 8, 8, 0.95));
    --glow-cyan: 0 0 18px rgba(255, 26, 26, 0.22);
    --glow-aqua: 0 0 18px rgba(225, 6, 0, 0.22);
    --glow-purple: 0 0 18px rgba(179, 0, 27, 0.18);
    --glow-green: 0 0 14px rgba(255, 255, 255, 0.06);
}

html { background: #050505; }
::selection { background: rgba(255, 26, 26, 0.35); color: #fff; }

/* Primary CTA: solid owl red, white text, soft glow */
.btn-primary {
    background: linear-gradient(135deg, #ff1a1a, #c80010);
    color: #ffffff;
}
.btn-primary:hover { box-shadow: 0 0 22px rgba(255, 26, 26, 0.35); }

/* ---------- Owl mark (header / footer / avatar) ---------- */
.owl-mark {
    display: inline-block;
    flex: 0 0 auto;
    height: auto;
    overflow: visible;
    vertical-align: middle;
}
svg.logo-icon.owl-mark,
.logo-link svg.owl-mark,
.footer-logo svg.owl-mark {
    width: 54px;
    height: 24px;
    border-radius: 0;
    background: none;
    filter: none;
}
.logo .owl-mark { width: 54px; height: 24px; }
.team-card .avatar .owl-mark { width: 78%; height: auto; }

/* ---------- Hero owl (index) ---------- */
.hero-owl {
    display: flex;
    justify-content: center;
    width: min(70%, 300px);
    margin: 0 auto calc(16px - var(--spacing-3xl, 4rem));
    pointer-events: none;
    order: -1;
}
.hero-owl svg { width: 100%; height: auto; overflow: visible; }
@media (min-width: 769px) and (max-width: 1199px) {
    .hero-owl { width: min(50%, 360px); }
}
@media (min-width: 1200px) {
    .hero-grid {
        grid-template-areas: "content owl" "content visual";
        grid-template-rows: auto auto;
        row-gap: 28px;
    }
    .hero-grid > .hero-content { grid-area: content; }
    .hero-grid > .hero-owl { grid-area: owl; align-self: end; width: min(100%, 420px); margin: 0 auto; }
    .hero-grid > .hero-visual { grid-area: visual; align-self: start; }
}

/* Desktop nav: neutral links, red only on hover / current page */
.nav-menu > li > a,
.nav-menu > li > a.active {
    color: #cfcfcf;
    background: rgba(255, 255, 255, 0.03);
}
.nav-menu > li > a:hover {
    color: #ffffff;
    background: rgba(255, 26, 26, 0.10);
}
.nav-menu > li > a.owl-current,
.nav-menu > li > a.owl-current:hover {
    color: #ff1a1a;
    background: rgba(255, 26, 26, 0.08);
}

/* Stats: white numbers keep red for CTAs and the eyes */
.stat-value {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}
.badge-dot { background: #ff1a1a; box-shadow: 0 0 8px rgba(255, 26, 26, 0.6); }

/* Eyes are separate shapes; scale on their own box for the blink */
.owl-eye {
    transform-box: fill-box;
    transform-origin: 50% 55%;
    transition: transform 150ms cubic-bezier(.4, 0, .2, 1);
}
.owl-blink.is-blinking .owl-eye,
.owl-tx.is-closed .owl-eye { transform: scaleY(0.05); }

.owl-pulse .owl-eyes-glow { animation: owlGlowPulse 3.4s ease-in-out infinite; }
@keyframes owlGlowPulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.95; }
}

/* ---------- Page transition overlay ---------- */
.owl-tx {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 110ms ease, visibility 0s linear 110ms;
}
.owl-tx svg { width: min(46vw, 260px); height: auto; overflow: visible; }

/* leaving: fade in, then the eyes close (JS navigates at ~280ms) */
html.owl-tx-out .owl-tx {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 110ms ease, visibility 0s;
}
html.owl-tx-out .owl-tx .owl-eye { transform: scaleY(0.05); transition-delay: 100ms; }

/* arriving: black with eyes closed, eyes open, overlay fades.
   Pure CSS so it can never stay up even if JS fails. */
html.owl-tx-in .owl-tx {
    visibility: visible;
    opacity: 1;
    transition: none;
    animation: owlTxFade 190ms ease 230ms forwards;
}
html.owl-tx-in .owl-tx .owl-eye {
    transform: scaleY(0.05);
    animation: owlEyeOpen 150ms cubic-bezier(.4, 0, .2, 1) 60ms forwards;
}
@keyframes owlTxFade { to { opacity: 0; visibility: hidden; } }
@keyframes owlEyeOpen { to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
    .owl-eye { transition: none; }
    .owl-pulse .owl-eyes-glow { animation: none; opacity: 0.8; }
    .owl-tx, html.owl-tx-in .owl-tx, html.owl-tx-out .owl-tx { display: none; }
}

/* Mobile bottom bar: owl red active state */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        background: rgba(8, 8, 8, 0.9);
        border-top: 1px solid #1f1f1f;
    }
    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a[aria-current="page"] { color: #ff1a1a; }
    .mobile-bottom-nav a.active i { text-shadow: 0 0 10px rgba(255, 26, 26, 0.45); }
    /* particles are off on mobile */
    #particles-js canvas { display: none; }
}
.mobile-logo svg.owl-mark,
.footer-brand svg.owl-mark { width: 54px; height: 24px; }

/* Lighter background motion (v2) */
.gradient-orb { opacity: 0.06; }
@media (max-width: 768px) {
    .gradient-orb { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .gradient-orb { animation: none !important; }
}

/* coming-soon icon tile */
.owl-icon .owl-cs-mark{width:78%;height:auto;display:block}
