﻿/* ============================================================
   QMICS — Premium Hero Section CSS
   ============================================================ */

/* ── Section base ── */
.hero-section {
    min-height: 100vh;
    background: radial-gradient(ellipse 120% 100% at 60% 40%, #0d2550 0%, #060e1e 55%, #030812 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ── Background image slideshow ── */
.hero-slides-wrap {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    transform: scale(1.08);
    animation: kenBurns 12s ease-in-out infinite alternate;
}
.hero-slide.active {
    opacity: 1;
}
@keyframes kenBurns {
    0%   { transform: scale(1.08) translate(0px, 0px); }
    33%  { transform: scale(1.12) translate(-8px, -5px); }
    66%  { transform: scale(1.10) translate(6px, -3px); }
    100% { transform: scale(1.08) translate(0px, 4px); }
}
/* Each slide gets its own Ken Burns phase */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: -3s; }
.hero-slide:nth-child(3) { animation-delay: -6s; }
.hero-slide:nth-child(4) { animation-delay: -9s; }
.hero-slide:nth-child(5) { animation-delay: -2s; }

/* Dark gradient overlay over images for text readability */
.hero-slide-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(135deg, rgba(3,8,22,0.55) 0%, rgba(5,15,45,0.25) 50%, rgba(3,8,22,0.45) 100%),
        linear-gradient(to top, rgba(3,8,22,0.85) 0%, rgba(3,8,22,0.3) 35%, transparent 65%),
        linear-gradient(to right, rgba(3,8,22,0.6) 0%, transparent 55%);
}

/* ── Animated gradient mesh ── */
.hero-bg-mesh {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(ellipse 45% 55% at 80% 35%, rgba(26,111,255,0.10) 0%, transparent 65%),
        radial-gradient(ellipse 35% 45% at 10% 75%, rgba(244,176,0,0.05) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(8,25,70,0.6) 0%, transparent 70%);
    animation: meshPulse 14s ease-in-out infinite alternate;
}
@keyframes meshPulse {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.06); }
}

/* ── Cyber grid background ── */
.hero-bg-grid {
    position: absolute; inset: 0; z-index: 2;
    background-image:
        linear-gradient(rgba(26,111,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26,111,255,0.05) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, black 20%, transparent 75%);
}

/* ── Ambient glow blobs ── */
.hero-bg-glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 2; }
.hero-glow-1 {
    width: 750px; height: 600px;
    top: -150px; right: -80px;
    background: radial-gradient(ellipse, rgba(10,50,140,0.5) 0%, transparent 70%);
    filter: blur(50px);
}
.hero-glow-2 {
    width: 500px; height: 400px;
    bottom: 0; left: -80px;
    background: radial-gradient(ellipse, rgba(244,176,0,0.07) 0%, transparent 70%);
    filter: blur(35px);
}
.hero-glow-3 {
    width: 600px; height: 500px;
    top: 25%; right: 8%;
    background: radial-gradient(ellipse, rgba(10,80,200,0.18) 0%, transparent 70%);
    filter: blur(55px);
    animation: glowBreath 7s ease-in-out infinite;
}
@keyframes glowBreath {
    0%,100% { transform: scale(1);    opacity: 0.6; }
    50%      { transform: scale(1.18); opacity: 1;   }
}

/* ── Canvas particles ── */
.hero-particles-canvas {
    position: absolute; inset: 0; z-index: 3;
    width: 100%; height: 100%; pointer-events: none;
}

/* ── Big shield watermark ── */
.hero-watermark {
    position: absolute;
    right: -60px; top: 50%;
    transform: translateY(-50%);
    font-size: 520px;
    color: rgba(26,111,255,0.025);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    animation: wmRotate 40s linear infinite;
}
@keyframes wmRotate {
    0%   { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* ── Main layout ── */
.hero-inner {
    display: grid;
    grid-template-columns: 52% 48%;
    align-items: center;
    gap: 32px;
    flex: 1;
    padding: 20px 0 60px 80px;
    position: relative; z-index: 5;
}

/* ====================================================
   LEFT COLUMN
   ==================================================== */
.hero-left { display: flex; flex-direction: column; }

/* ====================================================
   RIGHT COLUMN — Hexagonal Service Showcase
   ==================================================== */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    margin-left: -40px;
}

.hex-scene {
    position: relative;
    width: 420px;
    height: 460px;
    flex-shrink: 0;
    transform: scale(1.25);
    transform-origin: center center;
}

/* SVG layer */
.hex-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* Concentric glow rings at center (210, 225) */
.hex-ring {
    position: absolute;
    border-radius: 50%;
    top: 225px; left: 210px;
    transform: translate(-50%, -50%);
    animation: hxRingPulse 4s ease-in-out infinite;
}
.hr-1 { width: 150px; height: 150px; border: 1px solid rgba(0,210,230,0.22); animation-delay: 0s; }
.hr-2 { width: 240px; height: 240px; border: 1px solid rgba(0,210,230,0.10); animation-delay: 0.8s; }
.hr-3 { width: 340px; height: 340px; border: 1px solid rgba(0,210,230,0.05); animation-delay: 1.6s; }
@keyframes hxRingPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%,-50%) scale(1.04); }
}

/* Center hub — hidden until hex-ready */
.hex-hub {
    position: absolute;
    top: 225px; left: 210px;
    width: 112px; height: 112px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, #0a3060 0%, #030c1e 70%);
    border: 2px solid rgba(0,210,230,0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
}
.hex-hub i { font-size: 44px; color: #00d4e8; filter: drop-shadow(0 0 14px rgba(0,210,230,0.95)); }

/* Hub appears first with pop */
.hex-scene.hex-ready .hex-hub {
    animation: hxHubAppear 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.1s both,
               hxHubGlow 3s ease-in-out 1s infinite;
}
@keyframes hxHubAppear {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes hxHubGlow {
    0%, 100% { box-shadow: 0 0 32px rgba(0,210,230,0.4), 0 0 80px rgba(0,210,230,0.15), inset 0 0 30px rgba(0,210,230,0.07); }
    50%       { box-shadow: 0 0 50px rgba(0,210,230,0.6), 0 0 110px rgba(0,210,230,0.25), inset 0 0 40px rgba(0,210,230,0.12); }
}

/* Rings & SVG fade in after hub */
.hex-ring { opacity: 0; }
.hex-scene.hex-ready .hex-ring {
    animation: hxFadeIn 0.6s ease 0.6s both, hxRingPulse 4s ease-in-out 1.2s infinite;
}
.hex-svg { opacity: 0; }
.hex-scene.hex-ready .hex-svg { animation: hxFadeIn 0.5s ease 0.7s both; }
@keyframes hxFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Hex cards — hidden until ready, then spread from center */
.hx-card {
    position: absolute;
    opacity: 0;
    cursor: default;
}
.hx-top      { top:  70px; left: 210px; }
.hx-top-right{ top: 148px; left: 344px; }
.hx-bot-right{ top: 302px; left: 344px; }
.hx-bot      { top: 380px; left: 210px; }
.hx-bot-left { top: 302px; left:  76px; }
.hx-top-left { top: 148px; left:  76px; }

/* Spread + float combined per card */
.hex-scene.hex-ready .hx-top {
    animation: hxSpreadTop 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.6s both,
               hxFloat 3.5s ease-in-out 1.5s infinite;
}
.hex-scene.hex-ready .hx-top-right {
    animation: hxSpreadTR 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.75s both,
               hxFloat 3.5s ease-in-out 1.65s infinite;
}
.hex-scene.hex-ready .hx-bot-right {
    animation: hxSpreadBR 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.9s both,
               hxFloat 3.5s ease-in-out 1.8s infinite;
}
.hex-scene.hex-ready .hx-bot {
    animation: hxSpreadBot 0.8s cubic-bezier(0.34,1.56,0.64,1) 1.05s both,
               hxFloat 3.5s ease-in-out 1.95s infinite;
}
.hex-scene.hex-ready .hx-bot-left {
    animation: hxSpreadBL 0.8s cubic-bezier(0.34,1.56,0.64,1) 1.2s both,
               hxFloat 3.5s ease-in-out 2.1s infinite;
}
.hex-scene.hex-ready .hx-top-left {
    animation: hxSpreadTL 0.8s cubic-bezier(0.34,1.56,0.64,1) 1.35s both,
               hxFloat 3.5s ease-in-out 2.25s infinite;
}

/* Spread keyframes — each starts at center offset */
@keyframes hxSpreadTop {
    from { transform: translate(-50%,-50%) translate(0px, 155px); opacity: 0; }
    to   { transform: translate(-50%,-50%) translate(0px, 0px);   opacity: 1; }
}
@keyframes hxSpreadTR {
    from { transform: translate(-50%,-50%) translate(-134px, 77px); opacity: 0; }
    to   { transform: translate(-50%,-50%) translate(0px, 0px);     opacity: 1; }
}
@keyframes hxSpreadBR {
    from { transform: translate(-50%,-50%) translate(-134px, -77px); opacity: 0; }
    to   { transform: translate(-50%,-50%) translate(0px, 0px);      opacity: 1; }
}
@keyframes hxSpreadBot {
    from { transform: translate(-50%,-50%) translate(0px, -155px); opacity: 0; }
    to   { transform: translate(-50%,-50%) translate(0px, 0px);    opacity: 1; }
}
@keyframes hxSpreadBL {
    from { transform: translate(-50%,-50%) translate(134px, -77px); opacity: 0; }
    to   { transform: translate(-50%,-50%) translate(0px, 0px);     opacity: 1; }
}
@keyframes hxSpreadTL {
    from { transform: translate(-50%,-50%) translate(134px, 77px); opacity: 0; }
    to   { transform: translate(-50%,-50%) translate(0px, 0px);    opacity: 1; }
}

@keyframes hxFloat {
    0%, 100% { transform: translate(-50%,-50%) translateY(0px); }
    50%       { transform: translate(-50%,-50%) translateY(-6px); }
}

/* Hexagon border shell */
.hx-outer {
    width: 104px; height: 120px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(0, 200, 230, 0.2);
    display: flex; align-items: center; justify-content: center;
    transition: filter 0.3s;
}
.hx-card:hover .hx-outer {
    filter: drop-shadow(0 0 14px rgba(0,210,230,0.7));
}

/* Hexagon fill */
.hx-inner {
    width: 97px; height: 112px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(155deg, #0c1e40 0%, #060d1e 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 7px; text-align: center;
    transition: background 0.3s;
}
.hx-card:hover .hx-inner { background: linear-gradient(155deg, #102444 0%, #080f26 100%); }
.hx-inner i    { font-size: 22px; }
.hx-inner span { font-size: 8.5px; font-weight: 800; color: #fff; letter-spacing: 0.6px; line-height: 1.35; text-transform: uppercase; }

/* Accent dot */
.hx-dot {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    top: 2px; right: 8px;
    z-index: 2;
    animation: hxDotPulse 2s ease-in-out infinite;
}
@keyframes hxDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.55); }
}

.ai-scene {
    position: relative;
    width: 420px;
    height: 460px;
    flex-shrink: 0;
}

/* Subtle dot-grid background */
.ai-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,192,0,0.12) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.6;
    pointer-events: none;
}

/* ── Main AI card ── */
.ai-main-card {
    position: absolute;
    top: 20px; left: 0;
    width: 258px;
    background: rgba(5, 20, 58, 0.88);
    border: 1px solid rgba(255,192,0,0.25);
    border-radius: 16px;
    padding: 18px 16px 16px;
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,192,0,0.08) inset;
    overflow: hidden;
}

/* Gold top-border glow */
.ai-main-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFC000, #FFD700, transparent);
    background-size: 200% 100%;
    animation: aiTopFlow 3s linear infinite;
}
@keyframes aiTopFlow {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Scan line sweeps down the card */
.ai-scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 5%, rgba(255,192,0,0.5) 50%, transparent 95%);
    animation: aiScan 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes aiScan {
    0%   { top: 0;    opacity: 0; }
    5%   { opacity: 1; }
    92%  { opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

/* Card header */
.ai-card-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.ai-chip-icon {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0a2a5e, #1a5aaa);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ai-chip-icon i { font-size: 18px; color: #FFC000; }
.ai-chip-ring {
    position: absolute;
    inset: -3px;
    border-radius: 13px;
    border: 1.5px solid transparent;
    border-top-color: #FFC000;
    border-right-color: rgba(255,192,0,0.3);
    animation: aiChipSpin 2.5s linear infinite;
}
@keyframes aiChipSpin { to { transform: rotate(360deg); } }

.ai-card-titles { flex: 1; }
.ai-card-title  { font-size: 12px; font-weight: 800; color: #fff; letter-spacing: 0.3px; }
.ai-card-sub    { font-size: 9.5px; color: rgba(255,255,255,0.5); margin-top: 1px; }

.ai-live-pill {
    display: flex; align-items: center; gap: 5px;
    background: rgba(0,200,100,0.12);
    border: 1px solid rgba(0,200,100,0.3);
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 9px; font-weight: 800;
    color: #00e676; letter-spacing: 0.5px;
    flex-shrink: 0;
}
.ai-live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #00e676;
    animation: aiLivePulse 1.2s ease-in-out infinite;
}
@keyframes aiLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Cycling analysis text */
.ai-analyze-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    min-height: 18px;
}
.ai-analyze-texts {
    position: relative;
    flex: 1;
    height: 16px;
    overflow: hidden;
}
.ai-atext {
    position: absolute;
    left: 0; top: 0;
    font-size: 10.5px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    opacity: 0;
    animation: aiTextCycle 12s ease-in-out infinite;
}
.at-1 { animation-delay:  0s; }
.at-2 { animation-delay:  3s; }
.at-3 { animation-delay:  6s; }
.at-4 { animation-delay:  9s; }
@keyframes aiTextCycle {
    0%, 100% { opacity: 0; transform: translateY(6px); }
    6%, 20%  { opacity: 1; transform: translateY(0); }
    24%      { opacity: 0; transform: translateY(-5px); }
}

/* Thinking dots */
.ai-thinking {
    display: flex; align-items: center; gap: 3px;
    flex-shrink: 0;
}
.ai-thinking span {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #FFC000;
    animation: aiDotBounce 1.3s ease-in-out infinite;
}
.ai-thinking span:nth-child(2) { animation-delay: 0.2s; }
.ai-thinking span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiDotBounce {
    0%, 100% { transform: translateY(0);   opacity: 0.35; }
    50%       { transform: translateY(-5px); opacity: 1; }
}

/* Progress bar */
.ai-prog-section { margin-bottom: 14px; }
.ai-prog-labels {
    display: flex; justify-content: space-between;
    font-size: 10px; color: rgba(255,255,255,0.65);
    margin-bottom: 6px;
}
.ai-score-num { color: #FFC000; font-weight: 800; }
.ai-prog-track {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}
.ai-prog-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #FFC000, #FFD966);
    box-shadow: 0 0 10px rgba(255,192,0,0.55);
    width: 0%;
    animation: aiProgFill 5s ease-in-out infinite;
}
@keyframes aiProgFill {
    0%    { width: 0%; }
    55%   { width: 94%; }
    80%   { width: 94%; }
    100%  { width: 0%; }
}

/* Checklist */
.ai-checklist { display: flex; flex-direction: column; gap: 8px; }
.ai-chk {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(-10px);
    animation: aiChkIn 5s ease-in-out infinite;
}
.ai-chk-1 { animation-delay: 0.6s; }
.ai-chk-2 { animation-delay: 1.1s; }
.ai-chk-3 { animation-delay: 1.6s; }
.ai-chk-4 { animation-delay: 2.1s; }
@keyframes aiChkIn {
    0%, 10%   { opacity: 0; transform: translateX(-10px); }
    22%, 78%  { opacity: 1; transform: translateX(0); }
    90%, 100% { opacity: 0; transform: translateX(0); }
}

.ai-chk-icon       { font-size: 14px; flex-shrink: 0; }
.ai-chk-icon.green { color: #00e676; }
.ai-chk-icon.spin  { color: #FFC000; }
.ai-chk-icon.spin i { animation: aiChipSpin 1.5s linear infinite; }
.ai-chk-lbl { font-size: 11px; color: rgba(255,255,255,0.82); flex: 1; }
.ai-chk-tag {
    font-size: 9px; font-weight: 800;
    padding: 2px 7px; border-radius: 10px;
    flex-shrink: 0;
}
.ai-chk-tag.green { background: rgba(0,230,118,0.15); color: #00e676; border: 1px solid rgba(0,230,118,0.3); }
.ai-chk-tag.amber { background: rgba(255,192,0,0.15);  color: #FFC000; border: 1px solid rgba(255,192,0,0.3); }

/* ── Side metric cards ── */
.ai-metric {
    position: absolute;
    right: 0;
    width: 128px;
    background: rgba(5, 20, 58, 0.85);
    border: 1px solid rgba(255,192,0,0.2);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    text-align: center;
    animation: aiMetricFloat 3.5s ease-in-out infinite;
}
.ai-m1 { top:  30px; animation-delay: 0.0s; }
.ai-m2 { top: 170px; animation-delay: 0.6s; }
.ai-m3 { top: 310px; animation-delay: 1.2s; }
@keyframes aiMetricFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-7px); }
}
.ai-metric i          { font-size: 20px; color: #FFC000; margin-bottom: 2px; }
.ai-metric-num        { font-size: 20px; font-weight: 900; color: #fff; line-height: 1; }
.ai-metric-lbl        { font-size: 9.5px; color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.ai-metric:hover      { border-color: rgba(255,192,0,0.5); box-shadow: 0 0 20px rgba(255,192,0,0.2); }

/* ── Floating AI tags ── */
.ai-tag {
    position: absolute;
    background: rgba(255,192,0,0.08);
    border: 1px solid rgba(255,192,0,0.22);
    color: #FFC000;
    font-size: 10px; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
    letter-spacing: 0.3px; white-space: nowrap;
    animation: aiTagFloat 4s ease-in-out infinite;
}
.ai-tag-1 { bottom: 12%;  left:  2%; animation-delay:  0.0s; animation-duration: 4.2s; }
.ai-tag-2 { bottom:  4%;  left: 22%; animation-delay: -1.4s; animation-duration: 3.8s; }
.ai-tag-3 { bottom:  4%;  left: 55%; animation-delay: -2.6s; animation-duration: 4.5s; }
@keyframes aiTagFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Scene container */
.hca-scene {
    position: relative;
    width: 460px;
    height: 500px;
    flex-shrink: 0;
}
.hca-scene::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse 70% 60% at 40% 50%, rgba(26,111,255,0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Central dashboard panel ── */
.hca-panel {
    position: absolute;
    top: 35px; left: 0;
    width: 285px;
    background: rgba(8,18,50,0.92);
    border: 1px solid rgba(26,111,255,0.3);
    border-top: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(26,111,255,0.12), inset 0 1px 0 rgba(26,111,255,0.25);
    backdrop-filter: blur(20px);
    background-clip: padding-box;
    animation: hcaFadeIn 0.7s ease 0.3s both;
    z-index: 3;
}
.hca-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1a6fff, #00d4aa, #1a6fff);
    background-size: 200% 100%;
    animation: panelBorderFlow 3s linear infinite;
}
@keyframes panelBorderFlow {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}
@keyframes hcaFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Window chrome bar */
.hca-panel-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hca-win-dots { display: flex; gap: 6px; }
.hwd { width: 10px; height: 10px; border-radius: 50%; }
.hwd.r { background: #ff5f57; }
.hwd.y { background: #febc2e; }
.hwd.g { background: #28c840; }
.hca-filename { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.55); flex: 1; letter-spacing: 0.3px; }
.hca-filename i { color: #f4b000; margin-right: 4px; }
.hca-live { display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 700; color: #00d4aa; letter-spacing: 0.5px; white-space: nowrap; }
.hca-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #00d4aa; animation: liveBlink 1.4s ease-in-out infinite; }
@keyframes liveBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Panel body */
.hca-panel-body { display: flex; align-items: center; gap: 16px; padding: 18px 14px; }

/* Circular gauge */
.hca-gauge-wrap { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.hca-gauge-svg { width: 100%; height: 100%; }
.hca-gauge-arc { animation: hcaArcDraw 1.4s ease 0.6s both; }
@keyframes hcaArcDraw {
    from { stroke-dashoffset: 251; }
    to   { stroke-dashoffset: 25; }
}
.hca-gauge-inner {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hca-gauge-pct { font-size: 18px; font-weight: 900; color: #fff; line-height: 1; }
.hca-gauge-lbl { font-size: 8px; font-weight: 700; color: #00d4aa; letter-spacing: 0.5px; margin-top: 2px; }

/* Standards checklist */
.hca-stds { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.hca-std { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; }
.hca-std span:first-of-type { flex: 1; color: rgba(255,255,255,0.85); }
.hca-std i { font-size: 11px; flex-shrink: 0; }
.hca-done i { color: #00d4aa; }
.hca-prog i { color: #f4b000; animation: hcaSpin 1.8s linear infinite; }
@keyframes hcaSpin { to { transform: rotate(360deg); } }
.hca-std-bar { width: 48px; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.hca-std-bar span { display: block; height: 100%; border-radius: 2px; }
.hca-done .hca-std-bar span { background: #00d4aa; }
.hca-prog .hca-std-bar span { background: #f4b000; }

/* Role badge */
.hca-role-badge {
    position: absolute;
    top: 205px; left: -8px;
    background: #1c7c3a;
    color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 5px;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    animation: hcaFadeIn 0.6s ease 0.8s both;
    z-index: 4;
}

/* Annotation dots ("+") */
.hca-dot {
    position: absolute;
    width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, #1a6fff, #0050dd);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 700;
    box-shadow: 0 0 0 3px rgba(26,111,255,0.35), 0 4px 14px rgba(26,111,255,0.45);
    z-index: 5;
    cursor: pointer;
    animation: dotPop 0.4s cubic-bezier(0.175,0.885,0.32,1.275) both;
}
.hca-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid rgba(26,111,255,0.45);
    animation: dotRingPulse 2s ease-in-out infinite;
}
@keyframes dotRingPulse {
    0%,100% { transform: scale(1); opacity: 0.6; }
    50%     { transform: scale(1.35); opacity: 0; }
}
.hca-dot1 { top: 72px; left: 246px; animation-delay: 1.0s; }
.hca-dot2 { bottom: 125px; left: 195px; animation-delay: 1.2s; }
@keyframes dotPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Floating annotation cards */
.hca-card {
    position: absolute;
    width: 210px;
    background: rgba(255,255,255,0.97);
    border-radius: 12px;
    padding: 13px 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
    color: #111;
    z-index: 6;
    overflow: hidden;
}
.hca-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
}
.hca-accent-green::before { background: linear-gradient(90deg, #00d4aa, #10b981); }
.hca-accent-blue::before  { background: linear-gradient(90deg, #1a6fff, #5b9fff); }

.hca-card1 { top: 8px; right: 0; animation: hcaCardIn1 0.6s cubic-bezier(0.175,0.885,0.32,1.275) 1.1s both, hcaCardFloat1 4s ease-in-out 2s infinite; }
.hca-card2 { bottom: 12px; right: 0; animation: hcaCardIn2 0.6s cubic-bezier(0.175,0.885,0.32,1.275) 1.3s both, hcaCardFloat2 4.4s ease-in-out 2.2s infinite; }
@keyframes hcaCardIn1 {
    from { opacity: 0; transform: translateX(30px) translateY(-10px); }
    to   { opacity: 1; transform: translateX(0) translateY(0); }
}
@keyframes hcaCardIn2 {
    from { opacity: 0; transform: translateX(30px) translateY(10px); }
    to   { opacity: 1; transform: translateX(0) translateY(0); }
}
@keyframes hcaCardFloat1 {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-7px); }
}
@keyframes hcaCardFloat2 {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(7px); }
}

/* Card header */
.hca-card-hdr { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.hca-av {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #fff; flex-shrink: 0;
}
.hca-av-gold { background: linear-gradient(135deg, #f4b000, #d47800); }
.hca-av-blue { background: linear-gradient(135deg, #1a6fff, #0040cc); }
.hca-av-info { flex: 1; min-width: 0; }
.hca-av-info strong { display: block; font-size: 11.5px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hca-av-info span { font-size: 9.5px; color: #666; }

/* Status chip */
.hca-chip { font-size: 9px; font-weight: 800; padding: 3px 9px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; letter-spacing: 0.3px; }
.hca-chip-green { background: #d4f5e2; color: #1a7a3a; border: 1px solid rgba(0,180,100,0.3); }
.hca-chip-blue  { background: #ddeeff; color: #1a4acc; border: 1px solid rgba(26,111,255,0.3); }

/* Card text */
.hca-card-txt { font-size: 11px; color: #333; line-height: 1.5; margin-bottom: 9px; }

/* Tags */
.hca-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.hca-card-tags span { font-size: 9px; font-weight: 700; padding: 3px 9px; background: #eef2ff; color: #3050cc; border-radius: 20px; border: 1px solid rgba(26,80,220,0.18); }
.hca-accent-green .hca-card-tags span { background: #edf9f3; color: #1a7a3a; border-color: rgba(0,180,100,0.2); }

/* Footer */
.hca-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: #888; border-top: 1px solid #f0f0f0; padding-top: 8px; }
.hca-card-foot i { margin-right: 4px; }

/* Eyebrow badge */
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 22px;
    border: 1px solid rgba(244,176,0,0.45);
    border-radius: 50px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    color: #f4b000;
    font-size: 13px; font-weight: 700; letter-spacing: 0.4px;
    margin-bottom: 28px; width: fit-content;
    animation: fadeUp 0.7s 0.1s ease both;
}
.hero-eyebrow i { color: #f4b000; font-size: 14px; }
.eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #f4b000;
    box-shadow: 0 0 8px #f4b000;
    animation: dotBlink 1.8s ease-in-out infinite;
}
@keyframes dotBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Title */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 22px;
    letter-spacing: -1.5px;
    animation: fadeUp 0.7s 0.22s ease both;
}

/* Highlighted words */
.hero-hl {
    position: relative;
    color: #f4b000;
    display: inline-block;
}
.hero-hl::after { display: none; }
.hero-hl-blue { color: #5b9fff; }
.hero-hl-blue::after { background: linear-gradient(90deg, #1a6fff, #5b9fff, #1a6fff); background-size: 200% 100%; }

.gradient-text { color: #f4b000; }

/* Subtitle */
.hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    line-height: 1.85;
    margin-bottom: 28px;
    animation: fadeUp 0.7s 0.38s ease both;
}
.hero-sub span { color: rgba(255,255,255,0.72); font-weight: 500; }

/* ── Scrolling service tags ── */
.hero-tags-wrap {
    overflow: hidden;
    margin-bottom: 32px;
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    animation: fadeUp 0.7s 0.5s ease both;
}
.hero-tags-track {
    display: flex; gap: 10px;
    width: max-content;
    animation: tagScroll 28s linear infinite;
}
.hero-tags-track:hover { animation-play-state: paused; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: rgba(255,255,255,0.7);
    font-size: 12px; font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}
.hero-tag:hover { background: rgba(244,176,0,0.1); border-color: rgba(244,176,0,0.35); }
.hero-tag i { color: #f4b000; font-size: 11px; }
@keyframes tagScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── CTA Buttons ── */
.hero-actions {
    display: flex; gap: 14px; flex-wrap: wrap;
    margin-bottom: 44px;
    animation: fadeUp 0.7s 0.6s ease both;
}
.btn-primary {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #e8a800, #f4b000 40%, #ffd34e);
    color: #060d1a;
    font-weight: 800; font-size: 15px; border-radius: 10px;
    position: relative; overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 28px rgba(244,176,0,0.38), 0 2px 8px rgba(244,176,0,0.25);
    text-decoration: none;
}
.btn-glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.28), transparent 60%);
    opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(244,176,0,0.55); }
.btn-primary:hover .btn-glow { opacity: 1; }

.btn-outline {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 26px;
    border: 1.5px solid rgba(255,255,255,0.15);
    color: #fff; font-weight: 700; font-size: 15px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-arrow { font-size: 12px; transition: transform 0.3s; }
.btn-outline:hover { border-color: #f4b000; color: #f4b000; transform: translateY(-3px); }
.btn-outline:hover .btn-arrow { transform: translateX(5px); }

/* ── Stats row ── */
.hero-stats-row {
    display: flex; align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: fadeUp 0.7s 0.75s ease both;
}
.hero-stat-item {
    flex: 1; text-align: center; position: relative;
}
.hero-stat-item:not(:last-child)::after {
    content: '';
    position: absolute; right: 0; top: 5%; height: 90%; width: 1px;
    background: rgba(255,255,255,0.09);
}
.hero-stat-item > div:first-child {
    display: flex; align-items: baseline; justify-content: center; gap: 1px;
}
.hero-stat-num {
    font-size: 2rem; font-weight: 900; color: #f4b000; line-height: 1;
    filter: drop-shadow(0 0 12px rgba(244,176,0,0.4));
}
.hero-stat-suf { font-size: 1.3rem; font-weight: 900; color: #f4b000; }
.hero-stat-label {
    font-size: 10.5px; color: rgba(255,255,255,0.4);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px;
}

/* ── Typewriter ── */
.hero-typed-wrap { display: inline-block; }
#heroTyped {
    color: #f4b000;
    transition: color 0.4s ease, text-shadow 0.4s ease;
    font-style: normal;
}
#heroTyped::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 100%; height: 3px;
    background: currentColor;
    border-radius: 2px;
    animation: hlLine 2.5s linear infinite;
}
.hero-cursor {
    display: inline-block;
    color: #f4b000;
    font-weight: 300;
    margin-left: 2px;
    animation: cursorBlink 0.75s step-end infinite;
    font-size: 0.9em;
    vertical-align: middle;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
.hero-title-sub { display: inline-block; }

/* ── Floating cert badges ── */
.hero-cert-badges {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 24px;
    animation: fadeUp 0.7s 0.9s ease both;
}
.hero-cert-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 12px; font-weight: 700;
    backdrop-filter: blur(8px);
    animation: badgeFloat 3.5s var(--d, 0s) ease-in-out infinite;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.hero-cert-badge:hover {
    background: rgba(244,176,0,0.12);
    border-color: rgba(244,176,0,0.4);
    transform: translateY(-3px);
}
.hero-cert-badge i { color: #f4b000; font-size: 12px; }
@keyframes badgeFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* ── Scroll hint ── */
.hero-scroll-hint {
    position: absolute;
    bottom: 88px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 5;
    animation: fadeUp 1s 1.5s ease both;
}
.hero-scroll-hint span {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.35);
    letter-spacing: 2px; text-transform: uppercase;
}
.hero-scroll-mouse {
    width: 22px; height: 36px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex; justify-content: center;
    padding-top: 6px;
}
.hero-scroll-dot {
    width: 4px; height: 8px;
    background: #f4b000;
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
    0%   { transform: translateY(0); opacity: 1; }
    80%  { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}


.hero-cards-stack {
    display: flex; flex-direction: column; gap: 14px;
    position: relative;
    animation: fadeUp 0.8s 0.3s ease both;
}

/* Main service card */
.hero-service-card {
    background: rgba(8,18,42,0.72);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--c, #f4b000);
    border-radius: 18px;
    padding: 22px 24px;
    position: relative; overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.hero-service-card:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 16px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
    border-color: var(--c, #f4b000);
}
.hsc-glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 80% 70% at 50% 0%, var(--cg, rgba(244,176,0,0.1)), transparent);
    opacity: 0; transition: opacity 0.35s;
}
.hero-service-card:hover .hsc-glow { opacity: 1; }

.hsc-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.hsc-icon-wrap {
    width: 50px; height: 50px; border-radius: 13px;
    background: var(--cg, rgba(244,176,0,0.12));
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--c, #f4b000);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.hero-service-card:hover .hsc-icon-wrap { transform: scale(1.12) rotate(-6deg); }
.hsc-badge {
    background: var(--cg, rgba(244,176,0,0.1));
    border: 1px solid var(--c, #f4b000);
    border-radius: 50px; padding: 3px 12px;
    font-size: 11px; font-weight: 700; color: var(--c, #f4b000);
    white-space: nowrap;
}
.hsc-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--c, #f4b000); margin-bottom: 3px;
}
.hsc-main h3 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.hsc-main > p { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 14px; }

/* Progress bar inside main card */
.hsc-bar {
    height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden;
}
.hsc-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c, #f4b000), color-mix(in srgb, var(--c, #f4b000) 60%, #fff));
    border-radius: 2px;
    animation: barGrow 1.5s 1s ease both;
}
@keyframes barGrow { from { width: 0 !important; } }

/* 2-column row of small cards */
.hsc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hsc-sm { padding: 16px 18px; }
.hsc-sm .hsc-icon-wrap { width: 40px; height: 40px; font-size: 17px; margin-bottom: 10px; }
.hsc-sm h4 { font-size: 12.5px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.hsc-sm > p { font-size: 11px; color: rgba(255,255,255,0.38); }

/* Stagger card animations */
.hero-cards-stack > .hero-service-card:nth-child(2) { animation-delay: 0.45s; }
.hsc-row:nth-child(3) .hero-service-card:first-child  { animation-delay: 0.55s; }
.hsc-row:nth-child(3) .hero-service-card:last-child   { animation-delay: 0.65s; }
.hsc-row:nth-child(4) .hero-service-card:first-child  { animation-delay: 0.75s; }
.hsc-row:nth-child(4) .hero-service-card:last-child   { animation-delay: 0.85s; }

/* Floating badges */
.hero-float-badge {
    position: absolute;
    background: rgba(8,18,42,0.9);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 9px 18px;
    font-size: 12px; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: 7px;
    white-space: nowrap; z-index: 5;
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.hfb-1 { top: -22px; right: 30px; animation: floatY 3.2s ease-in-out infinite; }
.hfb-1 i { color: #10b981; }
.hfb-2 { bottom: -18px; left: 24px; animation: floatY 3.2s 1.6s ease-in-out infinite; }
.hfb-2 i { color: #f4b000; }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ====================================================
   BOTTOM MARQUEE
   ==================================================== */
.hero-bottom-marquee {
    overflow: hidden;
    padding: 16px 0;
    background: rgba(0,0,0,0.32);
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative; z-index: 2;
    mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.marquee-track {
    display: flex; align-items: center; gap: 28px;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track span {
    font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,0.38);
    letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap;
    transition: color 0.2s;
}
.marquee-track span:hover { color: #f4b000; }
.marquee-track .mdot { color: #f4b000 !important; font-size: 7px; opacity: 0.45; }
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ====================================================
   SHARED KEYFRAMES
   ==================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1200px) {
    .hca-scene { width: 400px; height: 460px; }
    .hca-panel { width: 250px; }
    .hca-card { width: 190px; }
}
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; padding: 80px 0 40px; gap: 40px; }
    .hero-right { justify-content: center; }
    .hero-watermark { font-size: 300px; opacity: 0.5; }
    .hca-scene { width: 420px; height: 480px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 32px; letter-spacing: -0.8px; }
    .hero-stats-row { flex-wrap: wrap; gap: 20px; }
    .hero-stat-item { min-width: 40%; }
    .hsc-row { grid-template-columns: 1fr; }
    .hfb-1, .hfb-2 { display: none; }
    .hero-inner { padding: 60px 0 30px; }
    .hero-right { display: none; }
}

/* Responsive logo (in header) */
@media (max-width: 768px) {
    .logo-img { height: 75px; }
}

/* ============================================================
   GLOBE + NETWORK + LIVE FEED + ENHANCED 3D CARDS
   ============================================================ */



/* ── Live Compliance Activity Feed ── */
.hero-live-feed {
    position: absolute;
    bottom: 22px;
    right: 18px;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
    max-width: 260px;
}
.hero-feed-item {
    background: rgba(3,10,32,0.88);
    border: 1px solid rgba(26,111,255,0.35);
    border-left: 3px solid #1a6fff;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: #e8f0ff;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    transform: translateX(30px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), opacity 0.45s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.hero-feed-item .feed-check {
    color: #10b981;
    font-size: 10px;
    margin-left: auto;
}
.hero-feed-item.show {
    transform: translateX(0);
    opacity: 1;
}

/* ── Enhanced 3D Card hover ── */
.hero-cards-stack {
    perspective: 1200px;
}
.hero-service-card {
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
}
.hsc-main:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(-3deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px var(--c, rgba(244,176,0,0.3));
}
.hsc-sm:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 20px 40px rgba(0,0,0,0.45), 0 0 25px var(--c, rgba(26,111,255,0.35));
}

/* New slides ken-burns offsets for extra slides */
.hero-slide:nth-child(6) { animation-delay: -4s; }
.hero-slide:nth-child(7) { animation-delay: -8s; }
.hero-slide:nth-child(8) { animation-delay: -1s; }

/* ── Compliance highlight strip (below cert badges) ── */
.hero-highlight-strip {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.hero-hl-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 10.5px;
    font-weight: 700;
    color: #c8d8f0;
    letter-spacing: 0.3px;
    animation: chipFloat 3s ease-in-out infinite alternate;
}
.hero-hl-chip i { font-size: 11px; }
.hero-hl-chip:nth-child(2) { animation-delay: 0.5s; }
.hero-hl-chip:nth-child(3) { animation-delay: 1s; }
.hero-hl-chip:nth-child(4) { animation-delay: 1.5s; }
@keyframes chipFloat {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

@media (max-width: 1024px) {
    .hero-globe-wrap { display: none; }
    .hero-live-feed { display: none; }
}
/* ── Bomb Blast Title Animation ── */
@keyframes heroBlast {
    0%   { transform: scale(3.5) translateY(-10px); opacity: 0; filter: blur(40px); letter-spacing: 50px; }
    30%  { transform: scale(0.88); opacity: 1; filter: blur(4px); letter-spacing: 4px; }
    55%  { transform: scale(1.06); filter: blur(1px); }
    75%  { transform: scale(0.97); filter: blur(0); }
    100% { transform: scale(1);   filter: blur(0); letter-spacing: inherit; }
}
@keyframes shockRing {
    0%   { transform: translate(-50%,-50%) scale(0.1); opacity: 1; }
    100% { transform: translate(-50%,-50%) scale(7);   opacity: 0; }
}
@keyframes flashBurst {
    0%   { opacity: 0.9; }
    100% { opacity: 0; }
}

.hero-title-blast { position: relative; display: inline-block; }

/* Typewriter cursor */
.tw-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: #f4b000;
    margin-left: 3px;
    vertical-align: middle;
    border-radius: 1px;
    animation: twBlink 0.65s ease-in-out infinite;
}
@keyframes twBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
.hero-title-blast.blast { animation: heroBlast 0.75s cubic-bezier(0.22,1,0.36,1) both; }

/* Shockwave ring element */
.hero-shock {
    position: absolute;
    left: 50%; top: 50%;
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(244,176,0,0.8);
    box-shadow: 0 0 30px rgba(244,176,0,0.5);
    pointer-events: none;
    animation: shockRing 0.7s ease-out both;
    z-index: 10;
}
.hero-shock.blue  { border-color: rgba(26,111,255,0.8);  box-shadow: 0 0 30px rgba(26,111,255,0.5); }
.hero-shock.green { border-color: rgba(16,185,129,0.8);  box-shadow: 0 0 30px rgba(16,185,129,0.5); }

/* Flash overlay per line */
.hero-flash {
    position: absolute; inset: -10px -20px;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(244,176,0,0.25), transparent 70%);
    border-radius: 8px;
    pointer-events: none;
    animation: flashBurst 0.5s ease-out both;
}
.hero-flash.blue  { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(26,111,255,0.25), transparent 70%); }
.hero-flash.green { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(16,185,129,0.2), transparent 70%); }
/* ── Pre-Blast Explosion Animation ── */
.hero-pre-blast {
    position: relative;
    width: 0; height: 0;
    pointer-events: none;
    z-index: 6;
    overflow: visible;
}
/* Core flash */
@keyframes blastCore {
    0%   { transform: scale(0);   opacity: 1; }
    40%  { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(4);   opacity: 0; }
}
/* Expanding ring */
@keyframes blastRing {
    0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%,-50%) scale(1);  opacity: 0; }
}
/* Spark shooting out */
@keyframes spark {
    0%   { transform: translate(0,0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}
@keyframes screenFlash {
    0%   { opacity: 0.55; }
    100% { opacity: 0; }
}

.pb-flash {
    position: absolute;
    left: 0; top: 0;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #f4b000 40%, transparent 70%);
    animation: blastCore 0.55s ease-out both;
}
.pb-ring {
    position: absolute;
    left: 30px; top: 30px;
    width: var(--sz, 200px); height: var(--sz, 200px);
    border-radius: 50%;
    border: var(--bw, 3px) solid var(--bc, rgba(244,176,0,0.9));
    box-shadow: 0 0 20px var(--bc, rgba(244,176,0,0.6));
    animation: blastRing var(--dur, 0.7s) ease-out var(--del, 0s) both;
}
.pb-spark {
    position: absolute;
    left: 26px; top: 26px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--sc, #f4b000);
    box-shadow: 0 0 10px var(--sc, #f4b000);
    animation: spark 0.6s ease-out var(--del, 0s) both;
}
.pb-screen-flash {
    position: absolute; inset: 0;
    background: rgba(255,220,80,0.18);
    animation: screenFlash 0.4s ease-out 0.1s both;
}

/* ── Window dot glow enhancement ── */
.hwd.r { box-shadow: 0 0 5px rgba(255,95,87,0.7); }
.hwd.y { box-shadow: 0 0 5px rgba(254,188,46,0.7); }
.hwd.g { box-shadow: 0 0 5px rgba(40,200,64,0.7); }

/* ── SVG connector lines ── */
.hca-connectors {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: visible;
}
.hca-conn-line {
    stroke: rgba(26,111,255,0.45);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
    fill: none;
    animation: connDraw 0.6s ease 1.4s both;
}
.hca-conn-blue { stroke: rgba(26,111,255,0.35); }
@keyframes connDraw {
    from { stroke-dashoffset: 80; opacity: 0; }
    to   { stroke-dashoffset: 0;  opacity: 1; }
}

/* ── Floating stats badge ── */
.hca-stats-badge {
    position: absolute;
    bottom: 0; left: 0;
    display: flex; align-items: center; gap: 14px;
    background: rgba(8,18,50,0.92);
    border: 1px solid rgba(26,111,255,0.28);
    border-radius: 10px;
    padding: 10px 16px;
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
    z-index: 7;
    animation: hcaFadeIn 0.6s ease 1.6s both;
}
.hca-stat-item { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.hca-stat-num { font-size: 14px; font-weight: 900; color: #f4b000; line-height: 1; }
.hca-stat-lbl { font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.4px; }
.hca-stat-div { width: 1px; height: 28px; background: rgba(255,255,255,0.1); }

/* ==========================================================
   HERO — FULL MOBILE RESPONSIVE (ALL DEVICES)
   ========================================================== */

/* ── Mobile blast animation: scale-up from small (avoids overflow clipping on mobile) ── */
@media (max-width: 768px) {
    @keyframes heroBlast {
        0%   { opacity: 0; filter: blur(22px); transform: translateY(14px) scale(0.65); }
        35%  { opacity: 1; filter: blur(2px);  transform: translateY(-4px) scale(1.06); }
        65%  { filter: blur(0);                transform: translateY(2px)  scale(0.97); }
        100% { opacity: 1; filter: blur(0);    transform: translateY(0)    scale(1); }
    }
    .hero-title-blast.blast {
        will-change: transform, opacity, filter;
    }
}

/* ── Fix: Hero-inner overrides .container padding — restore at tablet ── */
@media (max-width: 1024px) {
    .hero-inner { padding: 60px 24px 40px !important; }
    .hero-watermark { font-size: 200px; opacity: 0.2; right: -20px; }
}

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {
    .hero-section { min-height: 100vh; overflow-x: hidden; }

    /* Single-column: switch grid → flex column so nothing can bleed out */
    .hero-inner {
        display: flex !important;
        flex-direction: column !important;
        padding: 48px 20px 32px !important;
        gap: 20px;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-left, .hero-right { width: 100% !important; max-width: 100% !important; }

    /* Hero right: show hex-scene on mobile, scaled to fit */
    .hero-right {
        display: flex !important;
        justify-content: center;
        align-items: flex-start;
        margin-left: 0 !important;
        height: 320px;
        overflow: hidden;
    }
    .hex-scene {
        transform: scale(0.72) !important;
        transform-origin: top center;
        flex-shrink: 0;
    }

    /* Hide big decorative elements that overlap content on mobile */
    .hero-watermark  { display: none; }
    .hero-scroll-hint { display: none; }
    .hfb-1, .hfb-2  { display: none; }

    /* Title: make each span a full-width block so text wraps naturally */
    .hero-title {
        font-size: clamp(22px, 6.5vw, 34px) !important;
        letter-spacing: -0.3px;
        line-height: 1.2;
        margin-bottom: 14px;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }
    .hero-title-blast {
        display: block !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
    /* Hide <br> between spans since they're now block-level */
    .hero-title br { display: none; }

    /* Sub — hide the forced <br> so text flows naturally on narrow screens */
    .hero-sub br { display: none; }
    .hero-sub {
        font-size: 13.5px;
        line-height: 1.7;
        margin-bottom: 20px;
        overflow-wrap: break-word;
    }

    /* Eyebrow badge */
    .hero-eyebrow {
        font-size: 11px;
        padding: 7px 14px;
        gap: 7px;
        margin-bottom: 16px;
    }

    /* Scrolling tag strip */
    .hero-tags-wrap { margin-bottom: 20px; }
    .hero-tag { font-size: 11px; padding: 5px 11px; gap: 5px; }

    /* Action buttons */
    .hero-actions { gap: 10px; flex-wrap: wrap; margin-bottom: 0; }
    .btn-primary  { padding: 12px 22px; font-size: 13.5px; }
    .btn-outline  { padding: 11px 20px; font-size: 13.5px; }

    /* Stats row */
    .hero-stats-row { flex-wrap: wrap; gap: 14px; padding-top: 18px; }
    .hero-stat-item { min-width: 44%; flex: unset; }
    .hero-stat-item:not(:last-child)::after { display: none; }
    .hero-stat-num  { font-size: 1.5rem; }
    .hero-stat-label { font-size: 9px; }

    /* Cert badges */
    .hero-cert-badges { gap: 7px; margin-top: 16px; flex-wrap: wrap; }
    .hero-cert-badge  { font-size: 10.5px; padding: 5px 10px; }

    /* Highlight chips */
    .hero-highlight-strip { gap: 7px; margin-top: 12px; flex-wrap: wrap; }
    .hero-hl-chip { font-size: 9.5px; padding: 4px 8px; }

    /* Bottom marquee */
    .hero-bottom-marquee { padding: 10px 0; }
    .marquee-track span { font-size: 10px; letter-spacing: 1px; }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
    .hero-inner { padding: 40px 16px 28px !important; gap: 16px; }

    /* Eyebrow */
    .hero-eyebrow { font-size: 10px; padding: 6px 12px; margin-bottom: 12px; }
    .eyebrow-dot  { width: 6px; height: 6px; }

    /* Title: safe font size — "Compliance & Security" fits at 22px on 312px+ containers */
    .hero-title {
        font-size: clamp(18px, 5.5vw, 22px) !important;
        letter-spacing: -0.2px;
        margin-bottom: 12px;
    }

    /* Sub */
    .hero-sub { font-size: 12.5px; margin-bottom: 16px; }

    /* Tags */
    .hero-tag { font-size: 10px; padding: 4px 9px; }

    /* Buttons: full-width stack */
    .hero-actions { flex-direction: column; gap: 9px; }
    .btn-primary, .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
        box-sizing: border-box;
    }

    /* Stats */
    .hero-stat-item { min-width: 46%; }
    .hero-stat-num  { font-size: 1.35rem; }
    .hero-stat-label { font-size: 8.5px; }

    /* Cert / chips */
    .hero-cert-badge { font-size: 10px; padding: 4px 9px; }
    .hero-hl-chip    { font-size: 9px; padding: 3px 7px; }

    /* Hex scene: slightly smaller at 480px */
    .hero-right { height: 280px; }
    .hex-scene  { transform: scale(0.62) !important; }
}

/* ── Very small phones (≤ 360px) ── */
@media (max-width: 360px) {
    .hero-inner { padding: 32px 12px 24px !important; }
    .hero-title  { font-size: 17px !important; }
    .hero-eyebrow { font-size: 9.5px; padding: 5px 10px; }
    .hero-sub    { font-size: 12px; }
    .btn-primary, .btn-outline { font-size: 12px; padding: 11px 14px; }
    .hero-stat-item { min-width: 48%; }

    /* Hex scene: smallest on 360px phones */
    .hero-right { height: 248px; }
    .hex-scene  { transform: scale(0.54) !important; }
}