/* Logo entrance and hover */
.almib-logo {
    animation: almib-logo-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.almib-logo:hover {
    transform: scale(1.04);
}
.almib-logo img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
    transition: filter 280ms ease;
}
.almib-logo:hover img {
    filter: drop-shadow(0 4px 16px rgba(30, 14, 98, 0.2));
}
@media (prefers-reduced-motion: reduce) {
    .almib-logo { animation: none; }
    .almib-logo:hover { transform: none; }
}

.almib-hero {
    min-height: 560px;
}

.almib-hero-gradient {
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(99, 102, 241, 0.4), transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(139, 92, 246, 0.25), transparent 45%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(59, 130, 246, 0.2), transparent 40%),
        linear-gradient(160deg, #1e1b4b 0%, #312e81 25%, #3730a3 50%, #4338ca 75%, #4f46e5 100%);
    background-attachment: scroll;
}
@media (min-width: 768px) {
    .almib-hero-gradient {
        min-height: 620px;
    }
}
.dark .almib-hero-gradient {
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(99, 102, 241, 0.35), transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(139, 92, 246, 0.2), transparent 45%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(59, 130, 246, 0.15), transparent 40%),
        linear-gradient(160deg, #0f0a2e 0%, #1e1b4b 30%, #312e81 60%, #3730a3 100%);
}

.almib-hero-copy {
    padding: 0;
    text-shadow: 0 2px 14px rgba(7, 12, 32, 0.3);
}

.almib-hero .almib-hero-copy h1,
.almib-hero .almib-hero-copy p {
    color: #fff;
    opacity: 1;
}

.almib-hero .almib-hero-copy a {
    color: #fff;
}

.almib-hero .almib-hero-copy a[href="#about"] {
    backdrop-filter: blur(2px);
}

/* Staggered hero content reveal */
.almib-hero-item {
    opacity: 0;
    transform: translateY(20px);
    animation: almib-hero-reveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.almib-hero-item-1 { animation-delay: 0.1s; }
.almib-hero-item-2 { animation-delay: 0.25s; }
.almib-hero-item-3 { animation-delay: 0.4s; }
.almib-hero-item-4 { animation-delay: 0.55s; }
.almib-hero-item-5 { animation-delay: 0.75s; }
.almib-hero-item-6 { animation-delay: 0.9s; }

/* Hero button container - explicit spacing */
.almib-hero .almib-hero-item-5 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .almib-hero .almib-hero-item-5 {
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
}

/* Hero button borders, padding and hover */
.almib-hero .almib-hero-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-width: 2px;
    border-style: solid;
    text-decoration: none;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 280ms ease,
                background-color 280ms ease,
                border-color 280ms ease;
}
.almib-hero .almib-hero-btn-primary {
    border-color: rgba(255, 255, 255, 0.55);
}
.almib-hero .almib-hero-btn-primary:hover {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 28px rgba(30, 14, 98, 0.4);
}
.almib-hero .almib-hero-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
}
.almib-hero .almib-hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
.almib-hero-btn:hover {
    transform: translateY(-4px) scale(1.02);
}
.almib-hero-panel {
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 400ms ease;
}
.almib-hero-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(2, 6, 23, 0.45);
}
@media (prefers-reduced-motion: reduce) {
    .almib-hero-item { animation: none; opacity: 1; transform: none; }
    .almib-hero-btn:hover { transform: none; }
    .almib-hero-pill:hover { transform: none; }
    .almib-hero-panel:hover { transform: none; }
}

.almib-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
    transition: background 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}
.almib-hero-pill:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.almib-hero-panel {
    position: absolute;
    right: 1.5rem;
    top: 6rem;
    width: min(22rem, 38vw);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(6, 15, 40, 0.45);
    color: rgba(255, 255, 255, 0.96);
    padding: 1.1rem 1.2rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 14px 26px rgba(2, 6, 23, 0.35);
}

.dark .almib-hero-pill {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(148, 163, 184, 0.35);
    color: rgba(255, 255, 255, 0.88);
}

.almib-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.almib-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 900ms ease, transform 6000ms ease;
    will-change: opacity, transform;
}

.almib-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(7, 15, 40, 0.52), rgba(11, 24, 68, 0.24)),
        radial-gradient(50rem 24rem at 10% 10%, rgba(30, 64, 175, 0.35), transparent 65%);
}

.almib-hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.almib-hero-controls {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(10, 16, 42, 0.55);
    backdrop-filter: blur(6px);
}

.almib-hero-arrow {
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #fff;
    background: transparent;
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.55rem 0.9rem;
}

.almib-hero-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.almib-hero-dot {
    width: 0.5rem;
    height: 0.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: all 220ms ease;
}

.almib-hero-dot.is-active {
    width: 1.4rem;
    background: rgba(255, 255, 255, 0.95);
}

.almib-hero-glow {
    position: absolute;
    inset: -25% auto auto 55%;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.26), rgba(99, 102, 241, 0));
    filter: blur(20px);
    animation: almib-float 10s ease-in-out infinite;
    pointer-events: none;
}

.almib-stat-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(30, 14, 98, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    backdrop-filter: blur(8px);
}

.dark .almib-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.almib-reveal {
    animation: almib-reveal 700ms ease both;
}

.almib-slider {
    position: relative;
}

.almib-network-shell {
    background:
        radial-gradient(44rem 20rem at 85% 5%, rgba(59, 130, 246, 0.08), transparent 60%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.75), rgba(245, 243, 255, 0.68));
}

.dark .almib-network-shell {
    background:
        radial-gradient(44rem 20rem at 85% 5%, rgba(56, 189, 248, 0.14), transparent 60%),
        linear-gradient(140deg, rgba(26, 16, 69, 0.9), rgba(15, 10, 46, 0.92));
}

.almib-network-grid {
    min-height: 500px;
}

.almib-network-glow {
    position: absolute;
    top: -5rem;
    right: 15%;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0));
    filter: blur(20px);
    pointer-events: none;
}

.almib-gradient-text {
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.almib-globe-wrap {
    min-height: 400px;
}

.almib-network-copy {
    padding: 2rem;
}

.almib-network-pill {
    padding: 0.25rem 0.75rem;
}

.almib-network-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .almib-network-copy {
        padding: 2.5rem;
    }
}

.almib-globe-canvas {
    width: min(460px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
    cursor: grab;
}

.almib-globe-canvas:active {
    cursor: grabbing;
}

.almib-panel-pad {
    padding: 2rem;
}

@media (min-width: 768px) {
    .almib-panel-pad {
        padding: 2.5rem;
    }
}

.almib-slider-viewport {
    overflow: hidden;
}

.almib-slider-track {
    display: flex;
    transition: transform 420ms ease;
}

.almib-slide {
    min-width: 100%;
}

.almib-cardfx {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition:
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 360ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 260ms ease;
    will-change: transform;
}

.almib-cardfx::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 25%,
        rgba(255, 255, 255, 0.24) 50%,
        rgba(255, 255, 255, 0) 75%
    );
    transform: translateX(-135%);
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .almib-cardfx:hover {
        transform: perspective(960px) rotateX(3.5deg) rotateY(-4.5deg) translateY(-8px) scale(1.01);
        box-shadow:
            0 16px 30px rgba(30, 14, 98, 0.16),
            0 2px 8px rgba(30, 14, 98, 0.08);
        border-color: rgba(79, 70, 229, 0.25);
    }

    .almib-cardfx:hover::before {
        transform: translateX(135%);
    }
}

.dark .almib-cardfx:hover {
    box-shadow:
        0 14px 28px rgba(2, 6, 23, 0.58),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    border-color: rgba(165, 180, 252, 0.34);
}

@media (prefers-reduced-motion: reduce) {
    .almib-hero-slide {
        transition: none;
        transform: none;
    }

    .almib-hero-dot {
        transition: none;
    }

    .almib-cardfx,
    .almib-cardfx::before {
        transition: none;
    }

    .almib-cardfx:hover {
        transform: none;
        box-shadow: inherit;
    }
}

@media (max-width: 767px) {
    .almib-hero-gradient {
        min-height: 580px;
    }

    .almib-hero-copy {
        padding: 1rem 1rem 0.2rem;
    }

    .almib-hero-controls {
        gap: 0.5rem;
        padding: 0.35rem 0.5rem;
    }

    .almib-hero-arrow {
        padding: 0.5rem 0.75rem;
    }
}

.almib-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(30, 14, 98, 0.25);
    transition: all 180ms ease;
    border: 0;
}

.almib-dot.is-active {
    width: 1.65rem;
    background: rgba(30, 14, 98, 0.95);
}

.dark .almib-dot {
    background: rgba(255, 255, 255, 0.28);
}

.dark .almib-dot.is-active {
    background: rgba(255, 255, 255, 0.95);
}

@keyframes almib-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-12px, 20px, 0); }
}

@keyframes almib-reveal {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes almib-logo-enter {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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