/* Scrumlin Technology Pvt Ltd � Website styles (scrumlin-hero.css) */

/* Hero � reference mockup fidelity */

.hero {
    position: relative;
    min-height: 100vh;
    padding: 108px 0 24px;
    overflow-x: clip;
    overflow-y: visible;
    background: transparent;
    z-index: 1;
    max-width: 100%;
}

.hero.is-offscreen .hero-nebula,
.hero.is-offscreen .hero-star {
    animation-play-state: paused;
}

.hero-bg {
    position: absolute;
    inset: 0 0 -120px 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-stars { position: absolute; inset: 0; }

.hero-star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    /* Opacity-only twinkle � cheaper than transform scale */
    animation: star-twinkle 3.5s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(120, 140, 180, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 140, 180, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 55% 40%, #000 10%, transparent 72%);
}

.hero-nebula {
    position: absolute;
    border-radius: 50%;
    /* Gradient glow � avoid filter: blur() during scroll */
    will-change: opacity, transform;
}

.hero-nebula--violet {
    width: min(55vw, 620px);
    height: min(55vw, 620px);
    top: 8%;
    right: -8%;
    background: radial-gradient(circle, rgba(var(--sc-purple-deep-rgb), 0.42) 0%, transparent 68%);
    animation: nebula-breathe 12s ease-in-out infinite;
}

.hero-nebula--cyan {
    width: min(42vw, 480px);
    height: min(42vw, 480px);
    bottom: -10%;
    left: -8%;
    background: radial-gradient(circle, rgba(var(--sc-cyan-rgb), 0.28) 0%, transparent 68%);
    animation: nebula-breathe 14s ease-in-out infinite 1.5s;
}

.hero-nebula--indigo {
    width: min(36vw, 400px);
    height: min(36vw, 400px);
    top: 35%;
    left: 35%;
    background: radial-gradient(circle, rgba(var(--sc-blue-rgb), 0.22) 0%, transparent 68%);
    animation: nebula-breathe 16s ease-in-out infinite 0.8s;
}

@keyframes nebula-breathe {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.1); }
}

.hero-shell {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    max-width: 100%;
    min-width: 0;
}

.hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: start;
    min-width: 0;
}

.hero-copy {
    max-width: 560px;
    min-width: 0;
    width: 100%;
}

.hero-reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: hero-reveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-reveal-1 { animation-delay: 0.05s; }
.hero-reveal-2 { animation-delay: 0.14s; }
.hero-reveal-3 { animation-delay: 0.24s; }
.hero-reveal-4 { animation-delay: 0.34s; }
.hero-reveal-5 { animation-delay: 0.48s; }

@keyframes hero-reveal {
    to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.15rem;
    padding: 0.28rem 0.7rem 0.28rem 0.28rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--sc-violet-rgb), 0.35);
    background: rgba(10, 14, 35, 0.65);
    backdrop-filter: blur(12px);
    max-width: 100%;
}

.hero-eyebrow__tag {
    flex-shrink: 0;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--sc-purple-deep), var(--sc-blue));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-eyebrow__text {
    color: var(--sc-text-soft);

    font-size: 0.75rem;
    font-weight: 500;
    padding-right: 0.25rem;
    min-width: 0;
    line-height: 1.35;
}

.hero-title {
    margin: 0 0 0.9rem;
    font-family: var(--sc-display);
    font-size: clamp(2.15rem, 4.4vw, 3.55rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.hero-title__accent {
    display: inline;
    background: var(--sc-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(var(--sc-cyan-rgb), 0.28));
}

.hero-subtitle {
    margin: 0 0 0.9rem;
    color: var(--sc-text);
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    font-weight: 500;
    min-height: 1.5em;
}

.hero-subtitle__accent {
    color: var(--sc-cyan);

    font-weight: 600;
    text-shadow: 0 0 18px rgba(var(--sc-cyan-rgb), 0.45);
}

.hero-cursor {
    color: var(--sc-cyan);

    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    margin: 0 0 1.6rem;
    max-width: 48ch;
    color: var(--sc-muted);
    font-size: 0.98rem;
    line-height: 1.75;
    font-weight: 400;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 0.25rem;
}

/* Hero primary — magnetic glass CTA with icon chip + soft aurora */
.hero-btn-primary {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1.15rem 0.55rem 0.55rem;
    border-radius: 16px;
    border: 1px solid rgba(var(--sc-violet-rgb), 0.35);
    background:
        linear-gradient(120deg, rgba(var(--sc-blue-rgb), 0.55), rgba(var(--sc-cyan-rgb), 0.28) 70%, rgba(var(--sc-surface-rgb), 0.55));
    color: var(--sc-text-bright);
    text-decoration: none;
    font-weight: 650;
    font-size: 0.94rem;
    letter-spacing: -0.01em;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 12px 32px rgba(var(--sc-blue-rgb), 0.28);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-btn-primary__glow {
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.18), transparent 65%);
    transform: translateX(-60%);
    transition: transform 0.55s ease;
    z-index: 0;
    pointer-events: none;
}

.hero-btn-primary__icon,
.hero-btn-primary__label,
.hero-btn-primary__arrow {
    position: relative;
    z-index: 1;
}

.hero-btn-primary__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(var(--sc-surface-rgb), 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--sc-accent);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.hero-btn-primary__arrow {
    font-size: 0.9rem;
    opacity: 0.85;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-btn-primary:hover {
    color: #fff;
    border-color: rgba(var(--sc-accent-rgb), 0.5);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 16px 36px rgba(var(--sc-cyan-rgb), 0.22),
        0 0 28px rgba(var(--sc-indigo-rgb), 0.2);
}

.hero-btn-primary:hover .hero-btn-primary__glow {
    transform: translateX(60%);
}

.hero-btn-primary:hover .hero-btn-primary__arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Hero secondary — quiet text-forward with lightning orb */
.hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem 0.55rem 0.5rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--sc-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-btn-ghost:hover {
    color: #fff;
    border-color: rgba(var(--sc-border-rgb), 0.2);
    background: rgba(var(--sc-surface-rgb), 0.35);
}

.hero-btn-ghost__orb {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(var(--sc-cyan-rgb), 0.4);
    background:
        radial-gradient(circle at 35% 30%, rgba(var(--sc-accent-rgb), 0.35), transparent 55%),
        rgba(var(--sc-surface-rgb), 0.65);
    color: var(--sc-accent);
    font-size: 1rem;
    box-shadow: 0 0 18px rgba(var(--sc-cyan-rgb), 0.22);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-btn-ghost:hover .hero-btn-ghost__orb {
    border-color: rgba(var(--sc-accent-rgb), 0.7);
    box-shadow: 0 0 24px rgba(var(--sc-cyan-rgb), 0.35);
    transform: scale(1.04);
}

.hero-btn-ghost__chev {
    font-size: 0.85rem;
    color: var(--sc-accent);
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-btn-ghost:hover .hero-btn-ghost__chev {
    opacity: 1;
    transform: translateX(3px);
}

/* Visual stage */
.hero-visual-wrap {
    position: relative;
    min-height: 520px;
    padding-top: 0.5rem;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}

.hero-visual-wrap.is-pointer-live::before {
    content: '';
    position: absolute;
    inset: 10% 8%;
    z-index: 0;
    pointer-events: none;
    border-radius: 42%;
    background: radial-gradient(
        circle at 50% 48%,
        rgba(var(--sc-cyan-rgb), 0.16),
        rgba(var(--sc-blue-rgb), 0.06) 40%,
        transparent 70%
    );
}

.hero-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    perspective: 1100px;
    transform-style: preserve-3d;
    --orbit-x: 50%;
    --orbit-y: 52%;
    --orbit-r: clamp(152px, 24vw, 200px);
    --orbit-offset: 0deg;
}

.hero-service {
    --angle: 0deg;
    --hover-scale: 1;
    --depth: calc(0.82 + (sin(calc(var(--angle) + var(--orbit-offset))) + 1) * 0.12);
    position: absolute;
    z-index: 4;
    left: calc(var(--orbit-x) + cos(calc(var(--angle) + var(--orbit-offset))) * var(--orbit-r));
    top: calc(
        var(--orbit-y)
        + sin(calc(var(--angle) + var(--orbit-offset))) * var(--orbit-r) * 0.78
    );
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 148px;
    max-width: 168px;
    padding: 0.55rem 0.85rem 0.55rem 0.55rem;
    border-radius: 14px;
    border: 1px solid rgba(var(--sc-cyan-rgb), 0.55);
    background: rgba(var(--sc-surface-rgb), 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 0 1px rgba(var(--sc-cyan-rgb), 0.12),
        0 0 22px rgba(var(--sc-cyan-rgb), 0.28),
        0 12px 30px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%) scale(var(--depth));
    will-change: transform, left, top;
    animation: service-float 4.2s ease-in-out infinite;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        opacity 0.25s ease,
        filter 0.25s ease;
}

a.hero-service:hover,
a.hero-service:focus-visible {
    color: inherit;
    text-decoration: none;
}

.hero-stage.is-pointer-live .hero-service {
    cursor: pointer;
}

.hero-service__icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.hero-service__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(var(--sc-cyan-rgb), 0.5);
    background: linear-gradient(145deg, rgba(var(--sc-cyan-rgb), 0.38), rgba(var(--sc-blue-rgb), 0.32));
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 0 16px rgba(var(--sc-cyan-rgb), 0.4);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.hero-service__label {
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    white-space: normal;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-stage.has-hot-service .hero-service.is-dim {
    opacity: 0.55;
    filter: saturate(0.85);
}

.hero-service.is-hot,
.hero-service:hover {
    z-index: 6;
    --hover-scale: 1.07;
    border-color: rgba(var(--sc-accent-rgb), 0.9);
    background: rgba(var(--sc-surface-rgb), 0.96);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 0 0 1px rgba(var(--sc-cyan-rgb), 0.28),
        0 0 32px rgba(var(--sc-cyan-rgb), 0.48),
        0 0 52px rgba(var(--sc-blue-rgb), 0.28),
        0 14px 32px rgba(0, 0, 0, 0.5);
    animation-play-state: paused;
    transform: translate(-50%, -50%) translateY(-4px) scale(calc(var(--depth) * 1.07));
}

.hero-service.is-hot .hero-service__icon,
.hero-service:hover .hero-service__icon {
    color: var(--sc-text-bright);

    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 0 22px rgba(var(--sc-cyan-rgb), 0.55);
}

/* Equal-radius orbit (60� steps around globe center) */
.hero-service--top {
    --angle: -90deg;
    animation-delay: 0s;
}

.hero-service--tr {
    --angle: -30deg;
    animation-delay: 0.35s;
}

.hero-service--br {
    --angle: 30deg;
    animation-delay: 0.7s;
}

.hero-service--bottom {
    --angle: 90deg;
    animation-delay: 1.05s;
}

.hero-service--bl {
    --angle: 150deg;
    animation-delay: 1.4s;
}

.hero-service--tl {
    --angle: -150deg;
    animation-delay: 1.75s;
}

@keyframes service-float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) scale(calc(var(--depth) * var(--hover-scale)));
    }
    50% {
        transform: translate(-50%, -50%) translateY(-8px) scale(calc(var(--depth) * var(--hover-scale)));
    }
}

.hero-ring {
    position: absolute;
    left: 50%;
    top: 52%;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--sc-violet-rgb), 0.55);
    box-shadow:
        0 0 12px rgba(var(--sc-violet-rgb), 0.45),
        inset 0 0 12px rgba(var(--sc-cyan-rgb), 0.15);
    transform-style: preserve-3d;
    animation: ring-spin 18s linear infinite;
}

.hero-ring--a {
    width: min(78%, 360px);
    aspect-ratio: 1;
    margin-left: calc(min(78%, 360px) / -2);
    margin-top: calc(min(78%, 360px) / -2);
    transform: translateZ(0) rotateX(68deg) rotateZ(-18deg);
    animation-name: ring-spin-a;
}

.hero-ring--b {
    width: min(62%, 290px);
    aspect-ratio: 1;
    margin-left: calc(min(62%, 290px) / -2);
    margin-top: calc(min(62%, 290px) / -2);
    border-color: rgba(var(--sc-cyan-rgb), 0.5);
    box-shadow: 0 0 14px rgba(var(--sc-cyan-rgb), 0.4);
    transform: translateZ(0) rotateX(68deg) rotateZ(24deg);
    animation-name: ring-spin-b;
    animation-duration: 14s;
    animation-direction: reverse;
}

.hero-ring--c {
    width: min(48%, 220px);
    aspect-ratio: 1;
    margin-left: calc(min(48%, 220px) / -2);
    margin-top: calc(min(48%, 220px) / -2);
    border-color: rgba(var(--sc-indigo-rgb), 0.45);
    transform: translateZ(0) rotateX(68deg) rotateZ(-40deg);
    animation-name: ring-spin-c;
    animation-duration: 11s;
}

@keyframes ring-spin-a {
    to { transform: translateZ(0) rotateX(68deg) rotateZ(342deg); }
}

@keyframes ring-spin-b {
    to { transform: translateZ(0) rotateX(68deg) rotateZ(-336deg); }
}

@keyframes ring-spin-c {
    to { transform: translateZ(0) rotateX(68deg) rotateZ(320deg); }
}

.hero-system {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: min(76%, 360px);
    aspect-ratio: 1;
    transition: filter 0.35s ease;
    filter: drop-shadow(0 0 16px rgba(var(--sc-cyan-rgb), 0.32));
}

.hero-stage.is-pointer-live .hero-system {
    filter: drop-shadow(0 0 26px rgba(var(--sc-cyan-rgb), 0.5));
}

.hero-system__canvas {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.hero-system__caption {
    position: absolute;
    left: 50%;
    bottom: 8%;
    z-index: 3;
    margin: 0;
    transform: translateX(-50%);
    font-family: var(--sc-display, "Space Grotesk", sans-serif);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(var(--sc-cyan-rgb), 0.72);
    pointer-events: none;
    text-shadow: 0 0 12px rgba(var(--sc-cyan-rgb), 0.35);
}

.hero-system__pedestal {
    position: absolute;
    left: 50%;
    top: 78%;
    transform: translateX(-50%);
    width: 150%;
    height: 120px;
    z-index: 0;
    pointer-events: none;
}

.hero-system__beam {
    position: absolute;
    left: 50%;
    bottom: 42px;
    width: 70%;
    height: 110px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(var(--sc-cyan-rgb), 0.35), rgba(var(--sc-cyan-rgb), 0));
    filter: blur(18px);
    animation: beam-pulse 3.5s ease-in-out infinite;
}

@keyframes beam-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

.hero-system__disk {
    position: absolute;
    left: 50%;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(var(--sc-cyan-rgb), 0.45);
    box-shadow: 0 0 20px rgba(var(--sc-cyan-rgb), 0.35), inset 0 0 16px rgba(var(--sc-purple-deep-rgb), 0.2);
}

.hero-system__disk--1 {
    bottom: 52px;
    width: 48%;
    height: 14px;
    background: radial-gradient(ellipse, rgba(var(--sc-cyan-rgb), 0.5), transparent 70%);
}

.hero-system__disk--2 {
    bottom: 40px;
    width: 68%;
    height: 18px;
    opacity: 0.7;
    border-color: rgba(var(--sc-violet-rgb), 0.45);
}

.hero-system__disk--3 {
    bottom: 26px;
    width: 88%;
    height: 22px;
    opacity: 0.4;
}

.hero-system__floor {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 110%;
    height: 50px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(var(--sc-cyan-rgb), 0.28), transparent 70%);
    filter: blur(8px);
}

/* Stats � icon above number */
.hero-stats {
    list-style: none;
    position: relative;
    z-index: 4;
    margin: 0.5rem 0 0;
    padding: 1.25rem 0 1.75rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    border-top: 0;
    background: transparent;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.hero-stats__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(var(--sc-violet-rgb), 0.4);
    background: rgba(var(--sc-purple-deep-rgb), 0.12);
    color: var(--sc-violet-soft);
    font-size: 1rem;
    box-shadow: 0 0 16px rgba(var(--sc-purple-deep-rgb), 0.25);
}

.hero-stats strong {
    color: #fff;
    font-family: var(--sc-display);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-stats span {
    color: var(--sc-muted);
    font-size: 0.78rem;
}

/* Trust */
.hero-trust {
    position: relative;
    margin-top: 1.5rem;
    padding: 1.2rem 1.25rem 1.1rem;
    border-radius: 18px 18px 14px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(12, 18, 40, 0.55);
    overflow: hidden;
}

.hero-trust__glow {
    position: absolute;
    top: 0;
    left: 50%;
    width: 180px;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    box-shadow: 0 0 18px rgba(var(--sc-cyan-rgb), 0.8);
}

.hero-trust__label {
    margin: 0 0 0.85rem;
    text-align: center;
    color: var(--sc-muted);
    font-size: 0.8rem;
}

.hero-trust__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem 1.5rem;
}

.hero-trust__row span {
    color: rgba(226, 232, 240, 0.55);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
    .hero-nebula,
    .hero-star,
    .hero-ring,
    .hero-service,
    .hero-system__beam,
    .hero-reveal,
    .hero-cursor {
        animation: none !important;
    }

    .hero-reveal {
        opacity: 1;
        transform: none;
    }

    .hero-visual-wrap.is-pointer-live::before {
        display: none;
    }

    .hero-service.is-hot,
    .hero-service:hover {
        transform: translate(-50%, -50%);
    }

    .hero-stage {
        --orbit-offset: 0deg !important;
    }
}

@media (max-width: 991.98px) {
    .hero { padding-top: 100px; }

    .hero-main {
        grid-template-columns: 1fr;
    }

    .hero-visual-wrap,
    .hero-stage {
        min-height: 460px;
        --orbit-y: 50%;
        --orbit-r: clamp(128px, 30vw, 164px);
        overflow: hidden;
        max-width: 100%;
    }

    .hero-system {
        width: min(80%, 320px);
    }

    .hero-service {
        min-width: 0;
        max-width: 142px;
        gap: 0.4rem;
        padding: 0.42rem 0.65rem 0.42rem 0.42rem;
        border-radius: 12px;
    }

    .hero-service__icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.85rem;
    }

    .hero-service__label {
        font-size: 0.68rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
        text-align: center;
    }

    .hero-stats li {
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .hero-shell {
        width: calc(100% - 1.25rem);
    }

    .hero-eyebrow {
        align-items: flex-start;
    }

    .hero-eyebrow__text {
        font-size: 0.68rem;
    }

    .hero-title {
        font-size: clamp(1.85rem, 8.5vw, 2.35rem);
    }

    .hero-visual-wrap,
    .hero-stage {
        min-height: 400px;
        --orbit-r: clamp(108px, 31vw, 140px);
        --orbit-y: 50%;
        overflow: hidden;
        max-width: 100%;
    }

    .hero-system {
        width: min(86%, 288px);
    }

    .hero-system__caption {
        font-size: 0.58rem;
        bottom: 6%;
    }

    .hero-service {
        max-width: 112px;
        padding: 0.32rem 0.45rem 0.32rem 0.32rem;
    }

    .hero-service__icon {
        width: 24px;
        height: 24px;
        font-size: 0.72rem;
    }

    .hero-service__label {
        font-size: 0.58rem;
        line-height: 1.15;
    }

    /* Keep all 6 services visible on a tighter orbit */
    .hero-service--top { --angle: -90deg; }
    .hero-service--tr { --angle: -30deg; }
    .hero-service--br { --angle: 30deg; }
    .hero-service--bottom { --angle: 90deg; }
    .hero-service--bl { --angle: 150deg; }
    .hero-service--tl { --angle: -150deg; }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        text-align: center;
        gap: 1.1rem 0.75rem;
    }

    .hero-stats li {
        align-items: center;
    }

    .hero-cta-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
    }

    .hero-btn-primary {
        padding: 0.35rem 0.7rem 0.35rem 0.35rem;
        gap: 0.4rem;
        border-radius: 12px;
        font-size: 0.78rem;
    }

    .hero-btn-primary__icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.8rem;
    }

    .hero-btn-primary__arrow {
        font-size: 0.7rem;
    }

    .hero-btn-ghost {
        padding: 0.28rem 0.45rem 0.28rem 0.28rem;
        gap: 0.35rem;
        font-size: 0.78rem;
    }

    .hero-btn-ghost__orb {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
        box-shadow: 0 0 12px rgba(var(--sc-cyan-rgb), 0.18);
    }

    .hero-btn-ghost__chev {
        font-size: 0.68rem;
    }

    .hero-btn-primary,
    .hero-btn-ghost {
        justify-content: center;
        width: auto;
        flex: 0 1 auto;
        max-width: 100%;
    }
}
