:root {
    --accent: #47c596;
    --stealth-gray: rgba(255, 255, 255, 0.05);
}

body {
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* LOGO STYLING */
.brand-logo {
    height: 64px;
    width: auto;
    transition: all 0.5s ease;
}

.brand-logo:hover {
    filter: grayscale(0) brightness(1);
}

h1.hero-title {
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff 0%, #888 50%, #fff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    padding-bottom: 5px;
    animation: shine 8s linear infinite, titleEntry 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes titleEntry {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(8px) brightness(0.5);
    }

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

h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.04em;
}

.eyebrow {
    letter-spacing: 0.5em;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
}

/* CINEMATIC WIPE OVERLAY */
.wipe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 9999;
    transform: translateX(-100%);
    pointer-events: none;
    border-right: 1px solid var(--stealth-gray);
}

#wipe-content {
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#wipe-content.active {
    transform: scale(1);
    opacity: 1;
}

@keyframes blurIn {
    0% {
        filter: blur(12px);
        opacity: 0;
        transform: translateY(10px);
    }

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

.animate-blur-in {
    animation: blurIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* HERO IMAGE DRIFT */
.hero-bg-3d {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 88%;
    height: 100%;
    z-index: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    filter: brightness(0.5);
    mask-image: linear-gradient(to left, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 75%, transparent 100%);
    animation: drift 10s ease-in-out infinite alternate;
}

@keyframes drift {
    from {
        transform: translateY(-52%) scale(1);
    }

    to {
        transform: translateY(-48%) scale(1.05);
    }
}

/* GLOBAL SECTION ARCHITECTURE */
.section-container {
    position: relative;
    min-height: 100vh;
    padding: 12rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: brightness(0.2);
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    background-attachment: fixed;
}

/* CONSISTENT REVEAL SYSTEM */
.reveal-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 3.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 3.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- PREMIUM EXPANDING STANDARD ITEMS (CONFLICT RESOLVED) --- */

.standard-item {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3rem 0;
    cursor: crosshair;
    /* !important forces the browser to ignore the 3.5s reveal-item transition on hover */
    transition: border-color 0.4s ease, opacity 0.15s ease-out !important;
}

/* MODERN SPOTLIGHT EFFECT */
/* Only dims sibling items if you are specifically hovering over one of them */
.standards-wrapper:has(.standard-item:hover) .standard-item:not(:hover) {
    opacity: 0.25;
}

/* Background Wash */
.standard-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(71, 197, 150, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
}
.standard-item:first-child {
    border-top: none;
    padding-top: 0;
}
/* Content wrapper */
.standard-item-content {
    position: relative;
    z-index: 1;
}

/* The Grid Expansion Trick */
.expand-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.inner-content {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --- HOVER TRIGGERS --- */
.standard-item:hover {
    border-top-color: var(--accent);
}

.standard-item:hover::before {
    opacity: 1;
}

.standard-item:hover h4 {
    text-shadow: 0 0 15px rgba(71, 197, 150, 0.3);
}

.standard-item:hover .expand-content {
    grid-template-rows: 1fr;
}

.standard-item:hover .inner-content {
    opacity: 1;
    transition-delay: 0.05s;
}

/* PARTNER LOGO HOVER EFFECTS */
.partner-logo-item {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.partner-logo-item span {
    color: #4b5563;
    transition: color 0.6s ease;
}

.partner-logo-item:hover span {
    color: #fff;
}

.partner-logo-item .underline-bar {
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.6s ease;
    margin-top: 8px;
}

.partner-logo-item:hover .underline-bar {
    width: 48px;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 999;
}

#fiberNetwork {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(0.4px) drop-shadow(0 0 10px rgba(71, 197, 150, 0.1));
}

/* TESTIMONIALS CUSTOM STYLING */
.swiper {
    overflow: hidden !important;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 50;
}

.quote-icon {
    font-family: serif;
    font-size: 4rem;
    line-height: 0;
    color: var(--accent);
    opacity: 0.3;
}

.swiper-slide {
    height: auto;
}

.swiper-pagination-bullet {
    background: #4b5563;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--accent);
}

#video-feature {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    #video-feature {
        height: 80vh;
    }
    /* Shrinks the massive gap below the hero button on mobile */
    #hero.section-container {
        min-height: auto !important;
        padding-bottom: 0rem !important; 
    }
}

#video-feature video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.2);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

#video-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#video-feature h2 {
    text-shadow: 0 0 30px rgba(71, 197, 150, 0.3);
}

/* CONNECT & FOOTER STYLING */
.footer-link {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #4b5563;
    transition: color 0.4s ease;
}

.footer-link:hover {
    color: #fff;
}

.partnerSwiper {
    padding: 40px 0;
}

.partner-logo-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 220px;
    height: 120px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    overflow: hidden;
}

.partner-logo-item .inner-bg {
    position: absolute;
    inset: 2px;
    background: transparent;
    transition: background 0.4s ease;
    z-index: 1;
}

.partner-logo-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: conic-gradient(transparent, transparent, transparent, #51dfaa, #389f76);
    transform-origin: center center;
    animation: border-spin 2s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.partner-logo-item:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(71, 197, 150, 0.2);
}

.partner-logo-item:hover::before {
    opacity: 1;
}

.partner-logo-item:hover .inner-bg {
    background: #ffffff;
}

.partner-logo-item img {
    filter: invert(1) grayscale(1) brightness(1.5);
    opacity: 0.4;
    max-height: 75px;
    max-width: 85%;
    width: auto;
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
}

.partner-logo-item:hover img {
    filter: invert(0) grayscale(0) brightness(1);
    opacity: 1;
}

.partnerSwiper .swiper-wrapper,
.partnerSwiperReverse .swiper-wrapper {
    transition-timing-function: linear !important;
}

@keyframes border-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* --- IDENTITY CARDS (VISION & MISSION) --- */
.identity-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    padding: 4rem 3rem;
    cursor: crosshair;
    overflow: hidden;
    transition: border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.8s ease;
}

.identity-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    box-shadow: 0 0 15px rgba(71, 197, 150, 0.8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.identity-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(71, 197, 150, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(71, 197, 150, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
    pointer-events: none;
}

.identity-card-content {
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.identity-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.03);
}

.identity-card:hover::before {
    transform: scaleX(1);
}

.identity-card:hover::after {
    opacity: 1;
}

.identity-card:hover .identity-card-content {
    transform: translateY(-4px);
}

.font-tech {
    font-family: 'Space Grotesk', sans-serif !important;
}