/* ==========================================================================
   STACKPILOT TECHNICAL HERO MODULE - DIVI 4 & DIVI 5 COMPATIBLE
   ========================================================================== */

.et_pb_stackpilot_hero {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.stackpilot-hero-section {
    --sph-c50: #f8f7f5;
    --sph-c100: #e6e1d7;
    --sph-c200: #c8b4a0;
    --sph-c500: #6b5545;
    --sph-c800: #2a2e26;
    --sph-c900: #1a1d18;
    --sph-accent: #c8b4a0;
    --sph-hover-color: #ffffff;
    --sph-hover-glow: rgba(200, 180, 160, 0.55);
    --sph-mouse-glow: rgba(107, 85, 69, 0.16);

    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sph-c900) 0%, #000000 50%, var(--sph-c800) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    color: var(--sph-c100);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.stackpilot-hero-section *,
.stackpilot-hero-section *::before,
.stackpilot-hero-section *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   SVG TECHNICAL BACKGROUND GRID
   ========================================================================== */
.stackpilot-hero-section .hero-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.stackpilot-hero-section .hero-grid-line {
    stroke: rgba(200, 180, 160, 0.12);
    stroke-width: 0.5;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0;
    animation: sph-grid-draw 2s ease-out forwards;
}

.stackpilot-hero-section .hero-detail-dot {
    fill: var(--sph-accent);
    opacity: 0;
    animation: sph-dot-appear 1s ease-out forwards;
    transition: fill 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

/* ==========================================================================
   FOUR CORNER TECHNICAL BOXES (With "Stirred" Animation)
   ========================================================================== */
.stackpilot-hero-section .corner-box {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(200, 180, 160, 0.25);
    z-index: 15;
    pointer-events: auto;
    cursor: pointer;
    background: rgba(26, 29, 24, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    will-change: transform, opacity;
}

/* Corner Positioning, Staggered Entrance on Reload & Continuous Ambient Stirring */
.stackpilot-hero-section .corner-box.top-left {
    top: 2rem;
    left: 2rem;
    animation: sph-corner-box-appear 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both, sph-stir-motion 6s ease-in-out 1.15s infinite;
}

.stackpilot-hero-section .corner-box.top-right {
    top: 2rem;
    right: 2rem;
    animation: sph-corner-box-appear 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both, sph-stir-motion 6s ease-in-out 1.4s infinite;
}

.stackpilot-hero-section .corner-box.bottom-left {
    bottom: 2rem;
    left: 2rem;
    animation: sph-corner-box-appear 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both, sph-stir-motion 6s ease-in-out 1.65s infinite;
}

.stackpilot-hero-section .corner-box.bottom-right {
    bottom: 2rem;
    right: 2rem;
    animation: sph-corner-box-appear 0.85s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both, sph-stir-motion 6s ease-in-out 1.9s infinite;
}

/* Inner Geometric Shapes with reload entrance & continuous orbital stirring */
.stackpilot-hero-section .corner-box .box-circle {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sph-accent);
    opacity: 0.55;
    animation: sph-inner-shape-appear 0.75s ease-out 0.4s both, sph-stir-inner 4s ease-in-out 1.15s infinite alternate;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, opacity;
}

.stackpilot-hero-section .corner-box .box-square {
    position: absolute;
    width: 7px;
    height: 7px;
    background: var(--sph-accent);
    opacity: 0.55;
    animation: sph-inner-shape-appear 0.75s ease-out 0.4s both, sph-stir-inner 4s ease-in-out 1.15s infinite alternate-reverse;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, opacity;
}

/* Positioning inside corner matrix */
.stackpilot-hero-section .corner-box.top-left .box-circle {
    top: 0px;
    left: 0px;
}

.stackpilot-hero-section .corner-box.top-left .box-square {
    bottom: 0px;
    left: 0px;
}

.stackpilot-hero-section .corner-box.top-right .box-circle {
    top: 0px;
    right: 0px;
}

.stackpilot-hero-section .corner-box.top-right .box-square {
    bottom: 0px;
    right: 0px;
}

.stackpilot-hero-section .corner-box.bottom-left .box-circle {
    top: 0px;
    left: 0px;
}

.stackpilot-hero-section .corner-box.bottom-left .box-square {
    bottom: 0px;
    left: 0px;
}

.stackpilot-hero-section .corner-box.bottom-right .box-circle {
    top: 0px;
    right: 0px;
}

.stackpilot-hero-section .corner-box.bottom-right .box-square {
    bottom: 0px;
    right: 0px;
}

/* Direct Corner Box Hover */
.stackpilot-hero-section .corner-box:hover {
    border-color: var(--sph-active-hover, rgba(200, 180, 160, 0.7)) !important;
    box-shadow: 0 0 16px var(--sph-active-glow, rgba(200, 180, 160, 0.25)) !important;
    animation-duration: 2s !important;
}

.stackpilot-hero-section .corner-box:hover .box-circle,
.stackpilot-hero-section .corner-box:hover .box-square {
    opacity: 1;
    background-color: var(--sph-hover-color, #c8b4a0);
    box-shadow: 0 0 8px var(--sph-hover-glow, rgba(200, 180, 160, 0.8));
}

/* ==========================================================================
   ACTIVE HOVER TYPES & SYNCHRONIZED CORNER BOX-SHADOW / PARTICLES GLOW
   ========================================================================== */
.stackpilot-hero-section.hover-type-top {
    --sph-active-hover: var(--sph-top-hover, #ffffff);
    --sph-active-glow: var(--sph-top-glow, rgba(255, 255, 255, 0.7));
    --sph-active-glow-soft: var(--sph-top-glow-soft, rgba(255, 255, 255, 0.35));
}

.stackpilot-hero-section.hover-type-title {
    --sph-active-hover: var(--sph-title-hover, #ffffff);
    --sph-active-glow: var(--sph-title-glow, rgba(255, 255, 255, 0.75));
    --sph-active-glow-soft: var(--sph-title-glow-soft, rgba(255, 255, 255, 0.4));
}

.stackpilot-hero-section.hover-type-subline {
    --sph-active-hover: var(--sph-subline-hover, #ffffff);
    --sph-active-glow: var(--sph-subline-glow, rgba(255, 255, 255, 0.7));
    --sph-active-glow-soft: var(--sph-subline-glow-soft, rgba(255, 255, 255, 0.35));
}

.stackpilot-hero-section.hover-type-bottom {
    --sph-active-hover: var(--sph-bottom-hover, #ffffff);
    --sph-active-glow: var(--sph-bottom-glow, rgba(255, 255, 255, 0.7));
    --sph-active-glow-soft: var(--sph-bottom-glow-soft, rgba(255, 255, 255, 0.35));
}

/* When hovering any text, automatically update corner boxes with dynamic box-shadow */
.stackpilot-hero-section.text-hovering .corner-box {
    border-color: var(--sph-active-hover, #ffffff) !important;
    box-shadow: 0 0 20px var(--sph-active-glow, rgba(255, 255, 255, 0.65)), inset 0 0 10px var(--sph-active-glow-soft, rgba(255, 255, 255, 0.35)) !important;
    animation-duration: 2.2s;
}

.stackpilot-hero-section.text-hovering .corner-box .box-circle,
.stackpilot-hero-section.text-hovering .corner-box .box-square {
    background-color: var(--sph-active-hover, #ffffff) !important;
    opacity: 1 !important;
    box-shadow: 0 0 10px var(--sph-active-glow, rgba(255, 255, 255, 0.8)) !important;
}

.stackpilot-hero-section.text-hovering .floating-particle {
    background-color: var(--sph-active-hover, #ffffff) !important;
    box-shadow: 0 0 14px var(--sph-active-glow, rgba(255, 255, 255, 0.85)) !important;
    opacity: 0.95 !important;
    transform: scale(1.6);
}

.stackpilot-hero-section.text-hovering .hero-detail-dot {
    fill: var(--sph-active-hover, #ffffff) !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 8px var(--sph-active-glow, rgba(255, 255, 255, 0.8))) !important;
}

.stackpilot-hero-section.text-hovering .bottom-dots span {
    background-color: var(--sph-active-hover, #ffffff) !important;
    box-shadow: 0 0 10px var(--sph-active-glow, rgba(255, 255, 255, 0.8)) !important;
    opacity: 1 !important;
}

/* ==========================================================================
   FLOATING ATMOSPHERE PARTICLES
   ========================================================================== */
.stackpilot-hero-section .floating-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--sph-accent);
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
    animation: sph-float 7s ease-in-out infinite;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
}

/* ==========================================================================
   MOUSE TRACKING GLOW & RIPPLE
   ========================================================================== */
.stackpilot-hero-section .mouse-gradient {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(4rem);
    pointer-events: none;
    opacity: 0;
    z-index: 5;
    background: radial-gradient(circle, var(--sph-mouse-glow) 0%, transparent 70%);
    transition: opacity 0.4s ease;
    will-change: left, top;
}

.stackpilot-hero-section .ripple-effect {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sph-hover-glow);
    pointer-events: none;
    z-index: 99;
    transform: translate(-50%, -50%);
    animation: sph-pulse-glow 1s ease-out forwards;
}

/* ==========================================================================
   HERO CONTENT CONTAINER & WORDS
   ========================================================================== */
.stackpilot-hero-section .hero-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 1.5rem;
    text-align: center;
    width: 100%;
}

.stackpilot-hero-section .word {
    display: inline-block;
    opacity: 0;
    margin-right: 0.22em;
    transition: text-shadow 0.25s ease, color 0.25s ease, transform 0.2s ease, filter 0.25s ease;
    cursor: default;
    will-change: transform, opacity, filter;
    animation-fill-mode: forwards;
}

/* Fallback when JS is disabled */
.no-js .stackpilot-hero-section .word {
    animation: sph-word-appear 0.8s ease-out forwards;
    animation-delay: var(--delay, 0ms);
}

/* Individual text hover colors and automatic text-shadow glow */
.stackpilot-hero-section .hero-top .word:hover,
.et_pb_stackpilot_hero .hero-top .word:hover {
    color: var(--sph-top-hover, #ffffff) !important;
    text-shadow: 0 0 14px var(--sph-top-glow, rgba(255, 255, 255, 0.7)), 0 0 28px var(--sph-top-glow-soft, rgba(255, 255, 255, 0.35)) !important;
}

.stackpilot-hero-section .hero-center h1 .main-title-line .word:hover,
.et_pb_stackpilot_hero .hero-center h1 .main-title-line .word:hover {
    color: var(--sph-title-hover, #ffffff) !important;
    text-shadow: 0 0 18px var(--sph-title-glow, rgba(255, 255, 255, 0.75)), 0 0 36px var(--sph-title-glow-soft, rgba(255, 255, 255, 0.4)) !important;
}

.stackpilot-hero-section .hero-center .subline .word:hover,
.et_pb_stackpilot_hero .hero-center .subline .word:hover {
    color: var(--sph-subline-hover, #ffffff) !important;
    text-shadow: 0 0 15px var(--sph-subline-glow, rgba(255, 255, 255, 0.7)), 0 0 30px var(--sph-subline-glow-soft, rgba(255, 255, 255, 0.35)) !important;
}

.stackpilot-hero-section .hero-bottom .word:hover,
.et_pb_stackpilot_hero .hero-bottom .word:hover {
    color: var(--sph-bottom-hover, #ffffff) !important;
    text-shadow: 0 0 14px var(--sph-bottom-glow, rgba(255, 255, 255, 0.7)), 0 0 28px var(--sph-bottom-glow-soft, rgba(255, 255, 255, 0.35)) !important;
}

/* Visual Builder: Ensure text is always rendered cleanly */
.et-fb .stackpilot-hero-section .word,
.et-vb .stackpilot-hero-section .word {
    animation-fill-mode: forwards;
}

/* ==========================================================================
   TOP TAGLINE
   ========================================================================== */
.stackpilot-hero-section .hero-top {
    padding-top: 0.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.stackpilot-hero-section .hero-top-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.stackpilot-hero-section .hero-top h2 {
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(0.65rem, 0.8vw, 0.8rem);
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sph-accent);
    opacity: 0.85;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    line-height: 1.4;
}

.stackpilot-hero-section .hero-top-divider {
    width: 4.2rem;
    height: 1px;
    margin-top: 0.75rem;
    margin-left: 0.15rem;
    --sph-divider-target-opacity: 0.45;
    opacity: 0;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(to right, transparent, var(--sph-divider-color, var(--sph-accent)) 40%, var(--sph-divider-color, var(--sph-accent)) 70%, transparent);
    animation: sph-line-draw-lr 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    transition: width 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   CENTER MAIN HEADLINE
   ========================================================================== */
.stackpilot-hero-section .hero-center {
    position: relative;
    max-width: 68rem;
    width: 100%;
    margin: auto 0;
    padding: 2rem 0;
    text-align: center;
}

.stackpilot-hero-section .hero-center h1 {
    color: var(--sph-c50);
    font-size: clamp(2.2rem, 5.2vw, 4.2rem);
    font-weight: 200;
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin: 0;
    padding: 0;
}

.stackpilot-hero-section .hero-center .main-title-line {
    display: block;
    margin-bottom: 0.2rem;
}

.stackpilot-hero-section .hero-center .subline {
    display: block;
    margin-top: 1.45rem;
    color: var(--sph-accent);
    font-size: clamp(1.1rem, 2.1vw, 2.1rem);
    font-weight: 200;
    line-height: 1.4;
    letter-spacing: -0.03em;
    opacity: 0.92;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.stackpilot-hero-section .hero-center .subline .subline-line {
    display: block;
    margin-bottom: 0.35rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Underline beneath the subline */
.stackpilot-hero-section .hero-center-divider {
    display: block;
    width: min(53vw, 920px);
    height: 1px;
    margin: 0.75rem auto 0;
    --sph-divider-target-opacity: 0.7;
    opacity: 0;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(to right,
            transparent 0%,
            var(--sph-divider-color, var(--sph-accent, rgba(200, 180, 160, 0.4))) 18%,
            var(--sph-divider-color, var(--sph-accent, rgba(200, 180, 160, 0.4))) 82%,
            transparent 100%);
    animation: sph-line-draw-lr 2.6s cubic-bezier(0.16, 1, 0.3, 1) 4.8s forwards;
    transition: width 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

.stackpilot-hero-section .side-tick {
    position: absolute;
    top: 50%;
    width: 1.5rem;
    height: 1px;
    background: var(--sph-accent);
    opacity: 0.2;
}

.stackpilot-hero-section .side-tick.left {
    left: -2.5rem;
}

.stackpilot-hero-section .side-tick.right {
    right: -2.5rem;
}


/* ==========================================================================
   BOTTOM TAGLINE
   ========================================================================== */
.stackpilot-hero-section .hero-bottom {
    padding-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.stackpilot-hero-section .hero-bottom-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.stackpilot-hero-section .hero-bottom-divider {
    width: 4.4rem;
    height: 1px;
    margin-bottom: 0.75rem;
    margin-left: 0.15rem;
    --sph-divider-target-opacity: 0.45;
    opacity: 0;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(to right, transparent, var(--sph-divider-color, var(--sph-accent)) 40%, var(--sph-divider-color, var(--sph-accent)) 70%, transparent);
    animation: sph-line-draw-lr 1.4s cubic-bezier(0.16, 1, 0.3, 1) 7.6s forwards;
    transition: width 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

.stackpilot-hero-section .hero-bottom h2 {
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(0.62rem, 0.78vw, 0.76rem);
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sph-accent);
    opacity: 0.8;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    line-height: 1.4;
}

/* 3 Bottom Center Dots */
.stackpilot-hero-section .bottom-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.stackpilot-hero-section .bottom-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--sph-accent);
    transition: background-color 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.stackpilot-hero-section .bottom-dots span:nth-child(1),
.stackpilot-hero-section .bottom-dots span:nth-child(3) {
    opacity: 0.35;
}

.stackpilot-hero-section .bottom-dots span:nth-child(2) {
    opacity: 0.7;
    width: 5px;
    height: 5px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
/* Technical Corner Matrix Entrance Appearance on Reload */
@keyframes sph-corner-box-appear {
    0% {
        opacity: 0;
        transform: scale(0.35) rotate(-12deg);
        filter: blur(4px);
    }

    60% {
        opacity: 0.95;
        transform: scale(1.08) rotate(2deg);
        filter: blur(0px);
    }

    80% {
        transform: scale(0.97) rotate(-1deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

/* Inner Geometric Shapes Entrance Appearance */
@keyframes sph-inner-shape-appear {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    70% {
        opacity: 0.9;
        transform: scale(1.25);
    }

    100% {
        opacity: 0.55;
        transform: scale(1);
    }
}

@keyframes sph-stir-motion {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    25% {
        transform: translate(2px, -3px) rotate(1.5deg);
    }

    50% {
        transform: translate(-2px, 2px) rotate(-1.5deg);
    }

    75% {
        transform: translate(3px, 1px) rotate(1deg);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}

@keyframes sph-stir-inner {
    0% {
        transform: scale(0.9) translate(0px, 0px);
    }

    50% {
        transform: scale(1.15) translate(1px, 1px);
    }

    100% {
        transform: scale(0.95) translate(-1px, 0px);
    }
}

@keyframes sph-word-appear {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.85);
        filter: blur(8px);
    }

    50% {
        opacity: 0.8;
        transform: translateY(8px) scale(0.96);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes sph-grid-draw {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.15;
    }
}

@keyframes sph-dot-appear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 0.6;
        transform: scale(1);
    }
}

@keyframes sph-pulse-glow {

    0%,
    100% {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.65;
        transform: translate(-50%, -50%) scale(2.4);
    }
}

@keyframes sph-float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.25;
    }

    25% {
        transform: translateY(-10px) translateX(6px);
        opacity: 0.65;
    }

    50% {
        transform: translateY(-5px) translateX(-4px);
        opacity: 0.45;
    }

    75% {
        transform: translateY(-14px) translateX(8px);
        opacity: 0.8;
    }
}

/* Left-to-right line draw entrance animation for dividers */
@keyframes sph-line-draw-lr {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    15% {
        opacity: var(--sph-divider-target-opacity, 0.7);
    }

    100% {
        transform: scaleX(1);
        opacity: var(--sph-divider-target-opacity, 0.7);
    }
}

/* Keyframe Aliases (Same to same as section.css) */
@keyframes word-appear {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.85);
        filter: blur(8px);
    }

    50% {
        opacity: 0.8;
        transform: translateY(8px) scale(0.96);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes grid-draw {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.15;
    }
}

@keyframes dot-appear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 0.6;
        transform: scale(1);
    }
}

@keyframes corner-box-appear {
    0% {
        opacity: 0;
        transform: scale(0.35) rotate(-12deg);
        filter: blur(4px);
    }

    60% {
        opacity: 0.95;
        transform: scale(1.08) rotate(2deg);
        filter: blur(0px);
    }

    80% {
        transform: scale(0.97) rotate(-1deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

@keyframes inner-shape-appear {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    70% {
        opacity: 0.9;
        transform: scale(1.25);
    }

    100% {
        opacity: 0.55;
        transform: scale(1);
    }
}

@keyframes stir-motion {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    25% {
        transform: translate(2px, -3px) rotate(1.5deg);
    }

    50% {
        transform: translate(-2px, 2px) rotate(-1.5deg);
    }

    75% {
        transform: translate(3px, 1px) rotate(1deg);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}

@keyframes stir-inner {
    0% {
        transform: scale(0.9) translate(0px, 0px);
    }

    50% {
        transform: scale(1.15) translate(1px, 1px);
    }

    100% {
        transform: scale(0.95) translate(-1px, 0px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.25;
    }

    25% {
        transform: translateY(-10px) translateX(6px);
        opacity: 0.65;
    }

    50% {
        transform: translateY(-5px) translateX(-4px);
        opacity: 0.45;
    }

    75% {
        transform: translateY(-14px) translateX(8px);
        opacity: 0.8;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 980px) {
    .stackpilot-hero-section .hero-content {
        padding: 2.5rem 1.5rem;
    }

    .stackpilot-hero-section .hero-center h1 {
        font-size: clamp(2rem, 5vw, 3.4rem);
    }

    .stackpilot-hero-section .hero-center .subline {
        font-size: clamp(1rem, 2.5vw, 1.6rem);
        white-space: normal;
    }

    .stackpilot-hero-section .hero-center-divider {
        width: 75vw;
    }

    .stackpilot-hero-section .side-tick {
        display: none;
    }
}

@media (max-width: 768px) {
    .stackpilot-hero-section .hero-content {
        padding: 2rem 1.25rem;
    }

    .stackpilot-hero-section .hero-top h2,
    .stackpilot-hero-section .hero-bottom h2 {
        font-size: 0.55rem;
        letter-spacing: 0.14em;
        white-space: normal;
    }

    .stackpilot-hero-section .hero-center h1 .subline {
        font-size: clamp(0.95rem, 3.8vw, 1.35rem);
        white-space: normal;
        line-height: 1.4;
    }

    .stackpilot-hero-section .hero-center-divider {
        width: 85vw;
    }

    .stackpilot-hero-section .corner-box.top-left,
    .stackpilot-hero-section .corner-box.top-right {
        top: 1rem;
    }

    .stackpilot-hero-section .corner-box.bottom-left,
    .stackpilot-hero-section .corner-box.bottom-right {
        bottom: 1rem;
    }

    .stackpilot-hero-section .corner-box.top-left,
    .stackpilot-hero-section .corner-box.bottom-left {
        left: 1rem;
    }

    .stackpilot-hero-section .corner-box.top-right,
    .stackpilot-hero-section .corner-box.bottom-right {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .stackpilot-hero-section .corner-box {
        width: 28px;
        height: 28px;
    }

    .stackpilot-hero-section .corner-box .box-circle,
    .stackpilot-hero-section .corner-box .box-square {
        width: 5px;
        height: 5px;
    }
}