/* ==========================================================
   CyberArm HUD layer
   Radar / threat-map hero, animated About visual, style switch.
   Fonts are self-hosted (no Google Fonts requests).
   ========================================================== */
@font-face {
    font-family: 'Archivo HUD';
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url('/fonts/hud/archivo-wdth.woff2') format('woff2-variations'), url('/fonts/hud/archivo-wdth.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono HUD';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/hud/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono HUD';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/hud/jetbrains-mono-700.woff2') format('woff2');
}

:root {
    --hud-bg:     #05070a;
    --hud-cyan:   #27e3d3;
    --hud-amber:  #ff7b2f;
    --hud-blue:   #3d8bff;
    --hud-violet: #9b6bff;
    --hud-ok:     #3ee08a;
    --hud-dim:    #7d8c9a;
    --hud-mono:   'JetBrains Mono HUD', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --hud-disp:   'Archivo HUD', 'Montserrat', 'Arial Black', sans-serif;
}

/* ---------- HERO ---------- */
.hero-slider.hud-hero {
    height: 500px;
    background: radial-gradient(ellipse at 72% 50%, rgba(39, 227, 211, 0.08), transparent 60%), var(--hud-bg);
}
.hud-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px);
}
.hud-hero .slide canvas {
    position: absolute;
    display: block;
}
.hud-hero .slide-radar canvas {
    top: 4%;
    bottom: 12%;
    right: 4%;
    height: 84%;
    width: auto;
    aspect-ratio: 1;
}
.hud-hero .slide-map canvas {
    inset: 0;
    width: 100%;
    height: 100%;
}
.hud-hero .slide-map::before {
    /* keeps the left-hand text readable over the map */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(5, 7, 10, 0.92) 0%, rgba(5, 7, 10, 0.55) 38%, transparent 62%);
}

.hud-hero .hero-overlay {
    z-index: 2;
    background: none;
    align-items: flex-start;
    text-align: left;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 40px 56px;
    pointer-events: none;
}
.hud-hero .hero-overlay > * {
    pointer-events: auto;
    max-width: 560px;
    width: 100%;
}
.hud-hero .hero-overlay h1 { max-width: 620px; }
.hud-prompt {
    font: 13px/1 var(--hud-mono);
    color: var(--hud-cyan);
    margin-bottom: 18px;
}
.hud-caret {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--hud-cyan);
    vertical-align: -2px;
    margin-left: 4px;
    animation: hud-blink 1s steps(1) infinite;
}
@keyframes hud-blink { 50% { opacity: 0; } }

.hud-hero .hero-overlay h1 {
    font-family: var(--hud-disp);
    font-weight: 900;
    font-stretch: 125%;
    text-transform: uppercase;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    line-height: 0.98;
    margin: 0;
    text-wrap: balance;
    background: radial-gradient(circle at center, #a8f7f0 50%, transparent 58%) 0 0 / 3px 3px;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(39, 227, 211, 0.5));
}
.hud-hero .hero-overlay p {
    color: #b3c2cf;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 18px 0 24px;
}
.hud-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}
/* both hero buttons share one height and baseline */
.hud-ctas .cta-btn,
.hud-ctas .hud-btn-line {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    line-height: 1;
}
.hud-ctas .cta-btn { padding: 0 24px; font-size: 1rem; }
.hud-btn-line {
    font: 700 11px/1 var(--hud-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hud-cyan);
    border: 1px solid var(--hud-cyan);
    padding: 0 18px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.hud-btn-line:hover { background: rgba(39, 227, 211, 0.12); }

/* readout + slide tabs along the bottom */
.hud-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px 16px;
    font: 10px/1.6 var(--hud-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hud-dim);
}
.hud-bar b { color: var(--hud-ok); font-weight: 700; }
.hud-bar em { color: var(--hud-amber); font-style: normal; font-weight: 700; }
.hud-tabs {
    margin-left: auto;
    display: flex;
    gap: 6px;
}
.hud-tabs button {
    all: unset;
    cursor: pointer;
    font: 700 10px/1 var(--hud-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hud-dim);
    padding: 8px 12px;
    border: 1px solid #1f2a35;
    background: rgba(8, 12, 16, 0.8);
}
.hud-tabs button[aria-selected="true"] {
    color: #05070a;
    background: var(--hud-cyan);
    border-color: var(--hud-cyan);
}
.hud-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hud-readout[hidden] { display: none; }

.hud-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hud-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: 0;
}

/* Tablet: keep text left / radar right, just smaller */
@media (max-width: 1000px) {
    .hud-hero .hero-overlay { padding: 20px 28px 56px; }
    .hud-hero .hero-overlay > * { max-width: 52%; }
    .hud-hero .hero-overlay h1 { font-size: clamp(1.7rem, 3.9vw, 2.4rem); max-width: 52%; }
    .hud-hero .slide-radar canvas { height: 70%; top: 8%; right: 2%; }
    .hud-bar { padding: 0 28px 14px; }
}

/* Phone: text on top, radar underneath, nothing overlapping */
@media (max-width: 700px) {
    .hero-slider.hud-hero { height: 700px; }
    .hud-hero .hero-overlay {
        justify-content: flex-start;
        padding: 26px 20px 0;
    }
    .hud-hero .hero-overlay > *,
    .hud-hero .hero-overlay h1 { max-width: 100%; }
    .hud-hero .hero-overlay h1 { font-size: 1.9rem; }
    .hud-hero .hero-overlay p { font-size: 0.95rem; margin: 12px 0 18px; }
    .hud-ctas .cta-btn,
    .hud-ctas .hud-btn-line { flex: 1 1 100%; }
    .hud-hero .slide-radar canvas {
        top: auto;
        right: 50%;
        bottom: 84px;
        transform: translateX(50%);
        height: 250px;
    }
    .hud-hero .slide-map::before {
        background: linear-gradient(180deg, rgba(5, 7, 10, 0.95) 0%, rgba(5, 7, 10, 0.75) 50%, transparent 72%);
    }
    .hud-bar { padding: 0 16px 12px; flex-wrap: wrap; gap: 8px; }
    .hud-legend { display: none; }
}

/* ---------- STYLE SWITCH ---------- */
.style-switch {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 3px;
    background: rgba(0, 0, 0, 0.25);
    font: 700 10.5px/1 var(--hud-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}
.style-switch a {
    color: rgba(255, 255, 255, 0.8);
    padding: 7px 11px;
    border-radius: 999px;
    transition: background var(--transition), color var(--transition);
}
.style-switch a:hover { color: #fff; }
.style-switch a[aria-current="true"] {
    background: #fff;
    color: #0b1633;
}
.style-switch a.is-command[aria-current="true"] {
    background: var(--hud-cyan);
    color: #05070a;
}
.style-switch a:focus-visible { outline: 2px solid var(--hud-cyan); outline-offset: 2px; }
.style-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.style-switch .ss-ico { width: 14px; height: 14px; flex: none; }

/* Keep the tagline from running into the menu: leave a gap and let it wrap to two lines */
.header .header-inner { gap: 28px; }
.header .header-left { min-width: 0; flex: 0 1 auto; }
.header .header-tagline {
    white-space: normal;
    line-height: 1.3;
    max-width: 240px;
    font-size: 0.85rem;
}
.header .header-right { flex: none; }
.header .support-btn,
.mobile-support-btn { white-space: nowrap; flex-shrink: 0; }

/* Always visible: make room by dropping the tagline, then the labels */
@media (max-width: 1180px) {
    .header .header-tagline { display: none; }
    .header .header-nav .nav-links { gap: 22px; }
    .header .header-right { gap: 18px; }
}
@media (max-width: 1000px) {
    .style-switch .ss-txt { display: none; }
    .style-switch a { padding: 7px 9px; }
}
@media (max-width: 900px) {
    .header-right .style-switch { order: -1; }
    /* keep the header on one row when it shrinks on scroll */
    .header.shrink .header-left,
    .header.shrink .header-right {
        flex-direction: row;
        align-items: center;
        white-space: nowrap;
    }
}
/* Phones: tighten the header so logo, switch, button and menu all fit */
@media (max-width: 600px) {
    .header .header-inner { padding: 0 14px; }
    .header .header-right { gap: 8px; }
    .header .header-left { flex-shrink: 1; }
    .header .header-logo { height: 28px; }
    .header .support-btn { padding: 8px 10px; font-size: 0.78rem; }
    .style-switch { padding: 2px; }
    .style-switch a { padding: 6px 7px; }
}

/* ---------- ABOUT: animated support-ops visual ---------- */
.about-hero-image .support-viz {
    position: relative;
    width: 100%;
    max-width: 580px;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 45%, rgba(39, 227, 211, 0.10), transparent 65%), var(--hud-bg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.support-viz canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.support-viz::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
}
.support-viz .sv-label {
    position: absolute;
    left: 14px;
    top: 12px;
    font: 700 10px/1.6 var(--hud-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hud-cyan);
}
.support-viz .sv-label span { color: var(--hud-ok); }
@media (max-width: 900px) {
    .about-hero-image .support-viz { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
    .hud-caret { animation: none; }
}

/* ==========================================================
   CLASSIC SITE: Technologies section, tech chips, security packages
   ========================================================== */
.home-tech {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 40px 30px;
    text-align: center;
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
    text-align: left;
}
@media (max-width: 1000px) { .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .tech-grid { grid-template-columns: 1fr; } .home-tech { padding: 20px 16px 30px; } }

.tech-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 22px 22px 24px;
    border-bottom: 3px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--color-shadow);
    border-bottom-color: var(--color-primary);
}
.tech-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.tech-card-head h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #1d2733;
}
.tech-icon {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(0, 87, 160, 0.1);
    color: var(--color-primary);
}
.tech-icon svg { width: 22px; height: 22px; }

.tech-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
/* Chips behave like small buttons: status LED, glow and lift on hover,
   and a light sweep that runs through a card's chips when you hover it. */
.tech-chips li { display: flex; }
.tech-chips li > a,
.tech-chips li > span {
    --glow: 0, 116, 217;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #d6dee8;
    border-radius: 999px;
    padding: 6px 12px 6px 10px;
    font-size: 0.84rem;
    line-height: 1.3;
    color: #2b3642;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(15, 30, 60, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, color 0.2s ease, background 0.2s ease;
}
.tech-chips li > a::before,
.tech-chips li > span::before {
    /* status LED */
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
    background: #3ee08a;
    box-shadow: 0 0 0 0 rgba(62, 224, 138, 0.6);
    animation: chip-led 2.8s ease-out infinite;
    animation-delay: calc(var(--i, 0) * 0.35s);
}
.tech-chips li > a::after,
.tech-chips li > span::after {
    /* light sweep */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(0, 116, 217, 0.16) 50%, transparent 80%);
    transform: translateX(-120%);
    pointer-events: none;
}
@keyframes chip-led {
    0%   { box-shadow: 0 0 0 0 rgba(62, 224, 138, 0.55); }
    60%  { box-shadow: 0 0 0 6px rgba(62, 224, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 224, 138, 0); }
}
@keyframes chip-sweep { to { transform: translateX(120%); } }

.tech-chips li > a:hover,
.tech-chips li > a:focus-visible,
.tech-chips li > span:hover {
    transform: translateY(-2px);
    color: var(--color-primary);
    border-color: rgba(var(--glow), 0.7);
    box-shadow: 0 0 0 3px rgba(var(--glow), 0.12), 0 6px 18px rgba(var(--glow), 0.28);
    outline: none;
}
.tech-card:hover .tech-chips li > a::after,
.tech-chips li > a:hover::after,
.tech-chips li > span:hover::after,
.overview-block:hover .tech-chips li > span::after {
    animation: chip-sweep 0.9s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.06s);
}
.tech-card-head h3 a { color: inherit; text-decoration: none; }
.tech-card-head h3 a:hover { color: var(--color-primary); }

@media (prefers-reduced-motion: reduce) {
    .tech-chips li > a::before,
    .tech-chips li > span::before { animation: none; }
    .tech-chips li > a::after,
    .tech-chips li > span::after { display: none; }
    .tech-chips li > a:hover,
    .tech-chips li > span:hover { transform: none; }
}
.overview-block .tech-chips { margin-top: 6px; }

/* Security band on the homepage (below the technology grid) */
.tech-security {
    max-width: 1080px;
    margin: 20px auto 0;
    background: linear-gradient(120deg, #0b1633, #10284f);
    color: #d7e1ee;
    border-radius: var(--radius-md);
    padding: 24px 26px;
    text-align: left;
}
.tech-security-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.tech-security-head .tech-icon { background: rgba(39, 227, 211, 0.14); color: #27e3d3; }
.tech-security-head h3 { margin: 2px 0 4px; font-family: var(--font-heading); font-size: 1.15rem; color: #fff; }
.tech-security-head p { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.tech-tiers {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.tech-tiers li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
}
.tech-tiers strong {
    display: block;
    margin-bottom: 4px;
    color: #7fe9df;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
@media (max-width: 800px) { .tech-tiers { grid-template-columns: 1fr; } }
.tech-security-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
}
.tech-ready {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
}
.tech-security .learn-more { margin-top: 0; color: #7ec8ff; font-weight: 600; }

/* Security packages (service-security page) */
.sec-packages {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 0 20px;
    scroll-margin-top: calc(var(--header-shrink) + 20px);
}
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    text-align: left;
}
@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.tier-card {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 24px 22px 22px;
    border-top: 4px solid var(--color-primary);
}
.tier-card.tier-2 { border-top-color: #0b6fb8; }
.tier-card.tier-3 { background: #0b1633; color: #d7e1ee; border-top-color: #27e3d3; }
.tier-step {
    position: absolute;
    top: 18px;
    right: 20px;
    font: 700 0.8rem/1 var(--hud-mono);
    color: #9aa7b4;
}
.tier-card h3 { margin: 0 0 6px; font-family: var(--font-heading); font-size: 1.3rem; color: #1d2733; }
.tier-card.tier-3 h3 { color: #fff; }
.tier-desc { margin: 0 0 14px; font-size: 0.92rem; line-height: 1.5; }
.tier-plus { margin: 0 0 8px; font-size: 0.85rem; font-weight: 700; color: var(--color-primary); }
.tier-card.tier-3 .tier-plus { color: #7fe9df; }
.tier-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tier-list li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 0.92rem; line-height: 1.4; }
.tier-list svg { width: 18px; height: 18px; color: var(--color-primary); margin-top: 1px; }
.tier-card.tier-3 .tier-list svg { color: #27e3d3; }
.tier-readiness {
    margin: 20px auto 0;
    background: linear-gradient(90deg, #0b1633, #12305e);
    color: #d7e1ee;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    text-align: left;
}
.tier-readiness strong { color: #fff; }
.tier-readiness span { color: #7fe9df; font-weight: 700; letter-spacing: 0.04em; }
.tier-readiness p { margin: 6px 0 0; font-size: 0.9rem; }
