/* =============================================================================
   Depends on: common.css (variables, reset, .logo-box--glass)
   ============================================================================= */

/* ─── Header Shell ────────────────────────────────────────────────────────── */

.header {
    padding: var(--space-sm) 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn var(--transition-slow) forwards;
    position: relative;
    z-index: 100;
}

@media (min-width: 768px) {
    .header {
        padding: var(--space-sm) 0;
        justify-content: center;
    }
}

/* ─── Scroll Animations (Locomotive) ────────────────────────────────────────── */

[data-scroll-class="is-revealed"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

[data-scroll-class="is-revealed"].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.about__tile:nth-child(2) {
    transition-delay: 0.1s;
}

.about__tile:nth-child(3) {
    transition-delay: 0.2s;
}

.about__tile:nth-child(4) {
    transition-delay: 0.15s;
}

.about__tile:nth-child(5) {
    transition-delay: 0.25s;
}

/* ─── Mobile Menu Toggle (Burger) ────────────────────────────────────────── */

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-heading);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* ─── Nav List ────────────────────────────────────────────────────────────── */

.nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-xl) var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .nav__list {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* ─── Nav Item ────────────────────────────────────────────────────────────── */

.nav__item {
    position: relative;
    list-style: none;
    width: 100%;
}

@media (min-width: 768px) {
    .nav__item {
        width: auto;
    }
}

/* ─── Nav Link ────────────────────────────────────────────────────────────── */

.nav__link {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-text-heading);
    text-decoration: none;
    position: relative;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.nav__link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 24px);
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
    pointer-events: none;
}

.nav__link:hover::before,
.nav__link:focus-visible::before,
.nav__link.active::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.nav__link.active {
    color: var(--color-text-heading);
    font-weight: 700;
}

.nav__link:active::before {
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.1s ease;
    transform: translate(-50%, -50%) scale(0.95);
}

.nav__link:focus-visible {
    outline: 2px solid var(--color-text-heading);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .nav__link {
        font-size: var(--font-size-sm);
        width: auto;
        padding: var(--space-sm) 0;
    }
}

/* ─── Dropdown ────────────────────────────────────────────────────────────── */

.nav__dropdown-icon {
    font-size: 0.6em;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
    transition: transform var(--transition-fast);
}

.nav__item--dropdown:hover .nav__dropdown-icon,
.nav__item--dropdown:focus-within .nav__dropdown-icon,
.nav__item--dropdown.is-active .nav__dropdown-icon {
    transform: rotate(180deg);
}

.nav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: var(--space-sm);
    z-index: 100;
    width: 220px;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown,
.nav__item--dropdown.is-active .nav__dropdown {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@media (max-width: 767px) {
    .nav__dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        transform: none;
        width: 100%;
        padding-top: var(--space-xs);
        z-index: 105;
    }
}

.nav__dropdown-inner {
    display: flex;
    flex-direction: column;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.nav__dropdown-link {
    font-size: var(--font-size-sm);
    color: var(--color-text-body);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    text-align: center;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.nav__dropdown-link:hover,
.nav__dropdown-link:focus-visible,
.nav__dropdown-link.active {
    background: var(--color-bg-primary);
    color: var(--color-text-heading);
    transform: translateX(4px);
}

.nav__dropdown-link.active {
    font-weight: 700;
}

@media (min-width: 768px) {
    .nav__dropdown-link {
        text-align: left;
    }
}

/* ─── Hero Wrapper ────────────────────────────────────────────────────────── */

.hero {
    min-height: calc(100svh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: translateYFadeIn 0.8s ease-out 0.2s both;
}

/* ─── Hero Content (logos + heading + subtitle) ───────────────────────────── */

.hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ─── Logo Pair ───────────────────────────────────────────────────────────── */

.hero__logos {
    display: flex;
    gap: 1.25rem;
    margin-bottom: var(--space-lg);
}

@media (min-width: 769px) {
    .hero__logos {
        margin-bottom: var(--space-xl);
    }
}

/* ─── Logo Box sizes (hero context) ──────────────────────────────────────── */
/*
 * Base styles and .logo-box--glass live in common.css.
 * These rules only override the size at each breakpoint.
 */

.logo-box {
    width: 80px;
    height: 80px;
    border-radius: 16px;
}

@media (min-width: 481px) {
    .logo-box {
        width: 88px;
        height: 88px;
        border-radius: 20px;
    }
}

@media (min-width: 769px) {
    .logo-box {
        width: 100px;
        height: 100px;
        border-radius: var(--radius-lg);
    }
}

/* ─── Heading & Subtitle ──────────────────────────────────────────────────── */

.hero__title {
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--color-text-heading);
    letter-spacing: -0.01em;
    margin-top: 1rem;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    font-weight: 400;
}

@media (min-width: 481px) {
    .hero__title {
        font-size: clamp(2.5rem, 4vw, 3rem);
    }

    .hero__subtitle {
        font-size: var(--font-size-lg);
    }
}

@media (min-width: 769px) {
    .hero__title {
        font-size: clamp(2rem, 3.5vw, 3.25rem);
    }

    .hero__subtitle {
        font-size: var(--font-size-xl);
    }
}

/* ─── CTA Buttons Row ─────────────────────────────────────────────────────── */

.hero__actions {
    margin-top: var(--space-xl);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    animation: fadeIn 0.8s ease-out 0.4s both;
    width: 100%;
}

@media (min-width: 481px) {
    .hero__actions {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-2xl);
    }
}

/* ─── Hero Pill Wrapper (for joining buttons) ─────────────────────────────── */
.hero__pill-wrapper {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.hero__pill-divider {
    width: 1px;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin: 8px 0;
}

.hero__pill-divider {
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    align-self: center;
    height: 24px;
}

.hero__pill-wrapper .hero__action {
    width: auto;
    padding: 16px 32px;
    border-radius: 0;
}

.hero__pill-wrapper .hero__action:first-of-type {
    border-radius: 999px 0 0 999px;
}

.hero__pill-wrapper .hero__action:last-of-type {
    border-radius: 0 999px 999px 0;
}

.hero__pill-wrapper .hero__action::before {
    display: none;
}

.hero__pill-wrapper .hero__action {
    transition: background 0.3s ease;
}

.hero__pill-wrapper .hero__action:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hero__pill-wrapper .hero__action:active {
    background: rgba(255, 255, 255, 0.3);
}

/* ─── Individual CTA Button ───────────────────────────────────────────────── */

.hero__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-heading);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 1;
    padding: 0 var(--space-xl);
    height: 48px;
    width: 200px;
}

.hero__action::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 30%;
    width: 40%;
    height: 1px;
    background-color: var(--color-text-heading);
    transform: scaleX(0) translateZ(0);
    transform-origin: center;
    z-index: 5;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s;
    pointer-events: none;
}

.hero__action:hover::after,
.hero__action:focus-visible::after {
    transform: scaleX(1) translateZ(0);
}

.hero__action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
    pointer-events: none;
}

.hero__action:hover::before,
.hero__action:focus-visible::before {
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%) scale(1.02);
}

.hero__action:active::before {
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.1s ease;
    transform: translate(-50%, -50%) scale(0.98);
}

.hero__action:focus-visible {
    outline: 2px dashed var(--color-text-heading);
    outline-offset: 4px;
}

/* ─── Scroll Indicator Icon (inside "Explore EireID" button) ─────────────── */

.scroll-icon {
    width: 16px;
    height: 24px;
    border: 1.5px solid var(--color-text-heading);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 4px;
    width: 2px;
    height: 4px;
    background-color: var(--color-text-heading);
    border-radius: 2px;
    animation: scrollWheel 2s infinite ease-in-out;
}

/* =============================================================================
   quick-links.css — Quick Links Section
   ============================================================================= */

.quick-links {
    width: 100%;
    margin-top: var(--space-xl);
    position: relative;
    z-index: 10;
}

.quick-links__container {
    display: flex;
    gap: var(--space-md);
    height: 120px;
    width: 100%;
}

.quick-link-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    text-decoration: none;
    color: var(--color-text-heading);
    position: relative;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
}

.quick-links__container:hover .quick-link-btn:not(:hover) {
    flex: 0.9;
}

.quick-link-btn:hover,
.quick-link-btn:focus-visible {
    flex: 1.2;
    background-color: var(--color-bg-primary);
}

.quick-link-btn__bg-icon {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%) scale(1);
    font-size: 140px;
    opacity: 0.05;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    pointer-events: none;
    color: var(--color-text-heading);
}

.quick-link-btn:hover .quick-link-btn__bg-icon,
.quick-link-btn:focus-visible .quick-link-btn__bg-icon {
    transform: translateY(-50%) scale(1.15) rotate(-5deg);
    opacity: 0.2;
}

.quick-link-btn__text {
    font-size: var(--font-size-lg);
    font-weight: 700;
    z-index: 2;
    white-space: nowrap;
}

.quick-link-btn__arrow {
    font-size: 24px;
    z-index: 2;
    opacity: 0.3;
    transform: translateX(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.quick-link-btn:hover .quick-link-btn__arrow,
.quick-link-btn:focus-visible .quick-link-btn__arrow {
    opacity: 1;
    transform: translateX(10px);
}

@media (min-width: 768px) {
    .quick-link-btn__text {
        font-size: var(--font-size-xl);
    }
}

@media (max-width: 767px) {
    .quick-links__container {
        height: 90px;
        gap: var(--space-sm);
    }

    .quick-link-btn {
        padding: 0 var(--space-md);
    }

    .quick-link-btn__text {
        font-size: var(--font-size-sm);
        white-space: normal;
        text-align: left;
    }

    .quick-link-btn__bg-icon {
        font-size: 90px;
    }
}

/* =============================================================================
   about.css — EireID About / Bento Grid Section
   All styles scoped to the #about section and its five tiles.
   Depends on: common.css (variables, reset, .logo-box--glass, .pulse-animation)
   ============================================================================= */

/* ─── Section Shell ───────────────────────────────────────────────────────── */

.about {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    margin-top: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .about {
        padding: var(--space-2xl);
    }
}

@media (min-width: 1024px) {
    .about {
        padding: clamp(2rem, 5vw, 4rem);
    }
}

/* ─── Bento Grid ──────────────────────────────────────────────────────────── */

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .about__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
    }
}

@media (min-width: 1024px) {
    .about__grid {
        grid-template-columns: 3fr 4fr 3fr;
        grid-template-rows: minmax(300px, auto) minmax(300px, auto);
    }
}

/* ─── Tile Base ───────────────────────────────────────────────────────────── */

.about__tile {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.about__tile:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
}

.about__tile:nth-child(1) {
    --tile-delay: 0ms;
}

.about__tile:nth-child(2) {
    --tile-delay: 100ms;
}

.about__tile:nth-child(3) {
    --tile-delay: 200ms;
}

.about__tile:nth-child(4) {
    --tile-delay: 300ms;
}

.about__tile:nth-child(5) {
    --tile-delay: 400ms;
}

/* ─── Tile Size Modifiers ─────────────────────────────────────────────────── */

@media (min-width: 768px) {
    .about__tile--tall {
        grid-row: span 2;
    }

    .about__tile--wide {
        grid-column: span 1;
    }

    .about__tile--full {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .about__tile--tall {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .about__tile:nth-child(2) {
        grid-column: 2 / 4;
        grid-row: 1 / 2;
    }

    .about__tile:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .about__tile--small {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }

    .about__tile--full {
        grid-column: 1 / 4;
        grid-row: 3 / 4;
    }
}

/* ─── Tile Header (shared across all tiles) ───────────────────────────────── */

.tile-header h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-text-heading);
}

.tile-header p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ─── Tile 1: Phone Mockup & Document Carousel ────────────────────────────── */

.phone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    height: 475px;
    overflow: hidden;
}

.phone-mockup__frame {
    position: relative;
    left: 1px;
    top: 1px;
    height: 100%;
    width: auto;
    object-fit: contain;
    z-index: 2;
}

.phone-mockup__screen {
    position: absolute;
    top: 27px;
    left: 53%;
    transform: translateX(-52%);
    width: 216px;
    height: 442px;
    border-radius: 32px;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.doc-carousel {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.doc-carousel__track {
    display: flex;
    width: max-content;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.doc-carousel__track img {
    width: 217px;
    height: auto;
    border-radius: 8px;
    margin: 0;
    object-fit: cover;
}

.doc-caption {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    min-height: 20px;
    transition: opacity 0.3s ease;
}

/* ─── Tile 2: Service Hub / Orbit System ─────────────────────────────────── */

.service-hub {
    position: relative;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: auto;
}

.service-hub__orbit-container {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: orbitRotate 40s linear infinite;
}

.orbit-center {
    background: #fff;
    border-radius: 12px;
    width: 64px;
    height: 64px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.orbit-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.orbit-ring--inner {
    width: 60%;
    height: 60%;
    border-color: rgba(0, 0, 0, 0.05);
}

.orbit-item {
    position: absolute;
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(var(--angle)) translateY(-90px) rotate(calc(var(--angle) * -1));
    animation: orbitCounterRotate 40s linear infinite;
    box-shadow: var(--shadow-sm);
    padding: 8px;
    z-index: 5;
}

.orbit-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.orbit-modal {
    position: absolute;
    top: -40px;
    left: 50px;
    width: 150px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 10px;
    color: var(--color-text-body);
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* ─── Tile 3: Agent Assistance ────────────────────────────────────────────── */

.agent-ui {
    position: relative;
    height: 167px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    border-radius: var(--radius-md);
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.02) 10px,
            rgba(0, 0, 0, 0.02) 20px);
}

.agent-center {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.agent-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-bg-primary);
}

.agent-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff5e3a;
    border: 2px solid #fff;
}

.agent-action {
    position: absolute;
    background: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    color: var(--color-text-body);
}

.agent-action span {
    opacity: 0.5;
}

.agent-action--1 {
    top: 21px;
    left: 5%;
    transform: rotate(-5deg);
    animation: float 3s ease-in-out infinite 0.5s;
}

.agent-action--2 {
    top: 106px;
    right: 60%;
    transform: rotate(5deg);
    animation: float 3s ease-in-out infinite 1.0s;
}

.agent-action--3 {
    bottom: 22px;
    right: -1%;
    transform: rotate(-2deg);
    animation: float 3s ease-in-out infinite 1.5s;
}

/* ─── Tile 4: AI Message Preview ──────────────────────────────────────────── */

.ai-message {
    display: flex;
    gap: var(--space-sm);
    margin-top: auto;
    align-items: flex-end;
}

.ai-message__avatar-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid white;
}

.ai-message__avatar {
    width: 126%;
    height: auto;
    object-fit: contain;
    transform: translateY(-4px);
}

.ai-message__bubble {
    background: #ffffff;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    padding: 14px;
    box-shadow: var(--shadow-md);
    flex-grow: 1;
    position: relative;
}

.ai-message__text-container {
    position: relative;
    max-height: 80px;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.ai-message__text-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.ai-modal__body .ai-message__text-container::after {
    display: none;
}

.ai-modal__body .ai-message__text-container {
    max-height: none;
    overflow: visible;
    margin-bottom: var(--space-sm);
}

.ai-message__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-body);
    line-height: 1.5;
    margin: 0;
}

.ai-message__fade {
    display: none;
}

.ai-message__sources {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-message__sources-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin: 0 0 2px 0;
}

.ai-message__source-link {
    font-size: 11px;
    color: var(--color-bg-primary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.ai-message__source-link:hover {
    text-decoration: underline;
}

.ai-message__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.ai-action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font-family-base);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.ai-action-btn:hover {
    transform: translateY(-2px);
}

.ai-action-btn--primary {
    background: var(--color-bg-primary);
    color: var(--color-btn-primary);
}

.ai-action-btn--primary:hover {
    background: #90d3a2;
}

.ai-action-btn--secondary {
    background: #f1f3f5;
    color: var(--color-text-muted);
}

.ai-action-btn--secondary:hover {
    background: #e9ecef;
}

.ai-action-btn__icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

/* ─── Tile 5: Statistics Bar (Full-width) ─────────────────────────────────── */

.stat-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-md);
}

@media (min-width: 768px) {
    .stat-bar {
        flex-direction: row;
        align-items: flex-start;
    }
}

.stat-bar__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.stat-bar__number {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: baseline;
    background: linear-gradient(135deg, #000, #444);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-bar__unit {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-left: 2px;
    -webkit-text-fill-color: #333;
}

.stat-bar__label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-weight: 500;
    line-height: 1.3;
    max-width: 140px;
}

.stat-bar__divider {
    width: 80%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .stat-bar__divider {
        width: 1px;
        height: 60px;
        align-self: center;
    }
}

/* =============================================================================
   how-it-works.css — EireID How It Works Section
   Mobile: Standard list | Desktop: Sticky left & Scroll timeline
   ============================================================================= */

.how-it-works {
    position: relative;
    padding: var(--space-xl) 0;
    margin-top: var(--space-md);
    overflow: visible;
}

.how-it-works__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* ─── Левая колонка (Обычная на мобилках, Sticky на ПК) ─── */
.how-it-works__content {
    position: relative;
}

.how-it-works__title {
    font-size: var(--font-size-3xl);
    font-weight: 400;
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
}

.how-it-works__description {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.how-it-works__cta {
    width: fit-content;
    padding: var(--space-sm) var(--space-xl);
}

/* ─── Правая колонка с линией ─── */
.how-it-works__timeline-wrapper {
    position: relative;
    padding-left: 32px;
}

.how-it-works__timeline {
    position: relative;
    height: 100%;
}

.timeline-line {
    position: absolute;
    left: 0px;
    top: 0;
    bottom: 24px;
    width: 2px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
    border-radius: 2px;
}

.timeline-line__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    box-shadow: 0 0 15px var(--color-bg-primary);
    transform: scaleY(0);
    transform-origin: top;
    border-radius: 2px;
    will-change: transform;
}

.timeline-line__dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid var(--color-bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-bg-primary);
    z-index: 2;
    opacity: 0;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

/* ─── Шаги (Нормальные на мобилках, растянутые на ПК) ─── */
.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
}

.timeline-step {
    position: relative;
    display: flex;
    gap: var(--space-md);
    z-index: 2;

    opacity: 0.3;
    transform: translateX(10px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.timeline-step.is-active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-step__icon-box {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-step__icon-box .iconify {
    font-size: 24px;
    color: var(--color-text-heading);
    transition: color 0.4s ease;
}

.timeline-step.is-active .timeline-step__icon-box {
    background: var(--color-bg-primary);
    border-color: var(--color-bg-primary);
    transform: scale(1.1) translateX(-25px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.timeline-step.is-active .timeline-step__icon-box .iconify {
    color: white;
}

.timeline-step__text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text-heading);
}

.timeline-step__text p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .how-it-works__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }

    .how-it-works__content {
        margin-top: 5rem;
    }

    .how-it-works__timeline-wrapper {
        padding-left: 40px;
    }

    .timeline-step__icon-box {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .timeline-step__icon-box .iconify {
        font-size: 28px;
    }

    .timeline-step__text h4 {
        font-size: var(--font-size-2xl);
    }

    .timeline-steps {
        gap: 15vh;
        padding-top: 5vh;
        padding-bottom: 0;
    }
}

/* =============================================================================
   comparison.css — EireID Brand Comparison Section
   Glassmorphism-based pricing/feature comparison.
   ============================================================================= */

.comparison {
    padding: var(--space-section) var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.comparison__header {
    text-align: center;
    max-width: 700px;
    margin-bottom: var(--space-3xl);
}

.comparison__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
    animation: fadeIn 0.8s ease-out;
}

.comparison__title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-sm);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.comparison__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    opacity: 0.8;
}

/* ─── Table Structure ─── */

.compare-table-wrapper {
    width: 100%;
    max-width: 1100px;
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: visible;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.6fr 1.2fr 1.2fr 1.2fr;
}

.compare-cell {
    padding: var(--space-lg) var(--space-md);
    font-size: 14px;
    color: var(--color-text-body);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    line-height: 1.4;
    transition: background-color var(--transition-fast);
}

.compare-head {
    font-weight: 800;
    color: var(--color-text-heading);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding-bottom: var(--space-lg);
    height: 120px;
    transform: translate(0px, 11px);
}

.text-sm {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    display: block;
    margin-top: 4px;
}

/* ─── Column Highlighting ─── */

.label-col {
    font-weight: 700;
    color: var(--color-text-heading);
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    padding-left: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.label-icon {
    position: absolute;
    font-size: 64px;
    color: var(--color-bg-primary);
    opacity: 0.25;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.label-col>*:not(.label-icon) {
    position: relative;
    z-index: 1;
}

/* ─── The Premium EireID Column ─── */
.eireid-col {
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, rgba(164, 229, 183, 0.8) 100%);
    color: var(--color-text-heading);
    font-weight: 600;
    position: relative;
    z-index: 10;
    border-left: 1px solid rgba(164, 229, 183, 0.3);
    border-right: 1px solid rgba(164, 229, 183, 0.3);
}

.eireid-top {
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, rgba(164, 229, 183, 0.8) 100%);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    border-left: 1px solid rgba(255, 255, 252, 0.4);
    border-right: 1px solid rgba(255, 255, 252, 0.4);
    border-top: 1px solid rgba(255, 255, 252, 0.4);
    transform: scale(1.02);
    height: 140px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    justify-content: center;
    padding-top: var(--space-xl);
    transform: translate(0px, 11px);
}

.eireid-bottom {
    background: rgba(164, 229, 183, 0.8);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.eireid-head-logo {
    width: 70px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.compare-table-wrapper {
    overflow: hidden;
}

.compare-cell {
    will-change: transform, opacity;
}

/* ─── Mobile Adjustments (Rotating Competitor Focus) ─── */
@media (max-width: 1023px) {
    .compare-grid {
        grid-template-columns: 1fr 1fr;
    }

    .label-col {
        grid-column: 1 / -1;
        background: rgba(0, 0, 0, 0.03);
        padding: 12px var(--space-xl);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .comp-col {
        display: none;
        animation: translateYFadeIn 0.4s ease-out;
    }

    .comp-col.is-active {
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .eireid-top {
        transform: translateY(0) scale(1.05);
        height: 100px;
        border-radius: 0;
        border-top-left-radius: var(--radius-lg);
        border-top-right-radius: var(--radius-lg);
    }

    .eireid-bottom {
        transform: scale(1.05);
        border-radius: 0;
        border-bottom-left-radius: var(--radius-lg);
        border-bottom-right-radius: var(--radius-lg);
    }

    .compare-head {
        height: 90px;
    }
}

/* ─── Floating Rua AI Assistant ─────────────────── */
.ai-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 990;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.ai-fab.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-fab:hover,
.ai-fab:focus-visible {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.ai-fab__img {
    width: 120%;
    height: 120%;
    object-fit: contain;
}

.ai-modal {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(20px);
    transform-origin: bottom right;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);

    width: calc(100vw - 40px);
    height: calc(100vh - 140px);
    max-height: 500px;
}

.ai-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.ai-modal__header {
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #f8f9fa;
}

.ai-modal__header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin: 0;
}

.ai-modal__close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.ai-modal__close:hover {
    color: var(--color-text-heading);
    background: rgba(0, 0, 0, 0.05);
}

.ai-modal__body {
    padding: var(--space-md);
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    gap: var(--space-md);
}

.ai-message {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-end;
    max-width: 90%;
}

.ai-message--user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.ai-message--user .ai-message__bubble {
    background: var(--color-bg-primary);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
}

.ai-message__time {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    text-align: right;
    margin-top: 4px;
    opacity: 0.6;
}

.ai-modal__footer {
    padding: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #f8f9fa;
}

.ai-chat-form {
    display: flex;
    gap: var(--space-sm);
    background: #fff;
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ai-chat-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: var(--font-size-sm);
    color: var(--color-text-body);
}

.ai-chat-input:focus {
    outline: none;
}

.ai-chat-submit {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-text-heading);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.ai-chat-submit:hover {
    transform: scale(1.05);
}

.ai-chat-submit:focus-visible {
    outline: 2px solid var(--color-text-heading);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .ai-fab {
        bottom: 40px;
        right: 40px;
        width: 72px;
        height: 72px;
    }

    .ai-modal {
        bottom: 130px;
        right: 40px;
        width: 380px;
        height: 550px;
    }
}

/* =============================================================================
   allservices.css — EireID All Services Page (appended to styles.css)
   ============================================================================= */

/* ─── Layout Shell ────────────────────────────────────────────────────────── */

.services-library {
    width: 100%;
    margin-top: var(--space-xl);
    animation: translateYFadeIn 0.8s ease-out both;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.services-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    width: 100%;
}

@media (min-width: 1024px) {
    .services-content-wrapper {
        display: grid;
        grid-template-columns: 280px 1fr;
        align-items: start;
        gap: var(--space-2xl);
    }
}

/* ─── Resident Hero (Layout Replace) ───────────────────────────────────────── */

.resident-hero {
    position: relative;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--space-2xl);
}

.resident-hero .hero__content {
    align-items: start;
    flex-direction: row;
}

.resident-hero .hero-leftcol {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.resident-hero .hero__subtitle {
    text-align: start;
}

.resident-hero .hero__subtitle br {
    display: none;
}

@media (max-width: 767px) {
    .resident-hero .hero__subtitle br {
        display: block;
    }
}

/* ─── Quick Links Section ─────────────────────────────────────────────────── */
─────── */
/* ─── Hero Section ────────────────────────────────────────────────────────── */

.services-hero {
    text-align: center;
    position: relative;
    padding: var(--space-2xl) 0 var(--space-xl);
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.services-hero__title {
    font-size: var(--font-size-4xl);
    font-weight: 400;
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    text-align: center;
}

.services-hero__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 768px) {
    .services-hero__title {
        font-size: clamp(3rem, 5vw, 4rem);
    }

    .services-hero__subtitle {
        font-size: var(--font-size-xl);
    }
}

/* ─── Controls (Filters) ──────────────────────────────────────────────────── */

.services-controls {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.495);
}

@media (min-width: 768px) and (max-width: 1023px) {
    .services-controls {
        flex-direction: row;
        align-items: flex-end;
    }
}

@media (min-width: 1024px) {
    .services-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
}

.filter-group--search {
    flex: 2;
}

.filter-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: var(--space-xs);
}

.select-wrapper,
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    color: var(--color-text-body);
    outline: none;
    transition: all var(--transition-fast);
    appearance: none;
}

.filter-input {
    padding-left: 2.5rem;
}

.filter-select:hover,
.filter-input:hover {
    background: rgba(255, 255, 255, 0.8);
}

.filter-select:focus,
.filter-input:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--color-bg-primary);
    box-shadow: 0 0 0 3px rgba(164, 229, 183, 0.3);
}

.select-icon {
    position: absolute;
    right: 12px;
    pointer-events: none;
    color: var(--color-text-muted);
}

.search-icon {
    position: absolute;
    left: 12px;
    pointer-events: none;
    color: var(--color-text-muted);
}

/* ─── Services Grid ───────────────────────────────────────────────────────── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    width: 100%;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.no-results {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
}

/* ─── Service Card ────────────────────────────────────────────────────────── */

.service-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    text-align: left;
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    animation: fadeIn 0.4s ease-out backwards;
}

.service-card:hover,
.service-card:focus-visible {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    outline: 3px solid var(--color-bg-primary);
    outline-offset: 4px;
}

.service-card--featured {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.service-card--featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: multiply;
}

@media (min-width: 768px) {
    .service-card--featured {
        grid-column: span 2;
        grid-row: span 2;
    }

    .service-card--featured .service-card__title {
        font-size: var(--font-size-3xl);
    }
}

.service-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.service-card__provider {
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.service-card__action-icon {
    font-size: 24px;
    color: var(--color-text-muted);
    opacity: 0.5;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.service-card:hover .service-card__action-icon {
    opacity: 1;
    transform: translate(2px, -2px);
    color: var(--color-text-heading);
}

.service-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.service-card__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-heading);
    line-height: 1.2;
}

.service-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-body);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card__footer {
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.service-card__tag {
    font-size: 11px;
    color: var(--color-text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* ─── Pagination ──────────────────────────────────────────────────────────── */

.services-pagination {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

/* ─── Service Modal ───────────────────────────────────────────────────────── */

.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.service-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.service-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.service-modal__content {
    position: relative;
    background: rgba(255, 255, 255, 0.85) !important;
    width: 100%;
    height: 100%;
    margin: var(--space-sm);
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-modal.is-open .service-modal__content {
    transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
    .service-modal__content {
        margin: 0;
        width: 90%;
        max-width: 800px;
        height: auto;
        min-height: 500px;
        max-height: 90vh;
    }
}

.service-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: var(--color-text-heading);
    transition: background var(--transition-fast);
    z-index: 10;
}

.service-modal__close:hover {
    background: rgba(255, 255, 255, 0.9);
}

.service-modal__header {
    margin-bottom: var(--space-md);
    padding-right: 40px;
}

.service-modal__provider {
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.service-modal__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text-heading);
    margin: var(--space-xs) 0 var(--space-md);
    line-height: 1.1;
}

.service-modal__tags-container {
    margin-bottom: var(--space-md);
}

.service-modal__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.service-modal__desc {
    font-size: var(--font-size-lg);
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.service-modal__actions {
    margin-top: auto;
}

.service-modal__actions .btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 768px) {
    .service-modal__actions .btn {
        width: auto;
        min-width: 200px;
    }
}

.service-modal__footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.service-modal__similar-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text-heading);
}

.service-modal__similar-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .service-modal__similar-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-modal__similar-grid .service-card {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.6);
}

.service-modal__similar-grid .service-card__title {
    font-size: var(--font-size-lg);
}

.service-modal__similar-grid .service-card__desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* ─── Custom Dropdown ─── */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown__trigger {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    color: var(--color-text-body);
    outline: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.custom-dropdown__trigger:hover {
    background: rgba(255, 255, 255, 0.8);
}

.custom-dropdown__trigger:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--color-bg-primary);
    box-shadow: 0 0 0 3px rgba(164, 229, 183, 0.3);
}

.custom-dropdown__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: var(--space-sm);
}

.custom-dropdown__icon {
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
}

.custom-dropdown.is-open .custom-dropdown__icon {
    transform: rotate(180deg);
}

.custom-dropdown__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    z-index: 100;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.custom-dropdown.is-open .custom-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown__item {
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: var(--font-size-base);
    color: var(--color-text-body);
}

.custom-dropdown__item:hover,
.custom-dropdown__item.is-highlighted {
    background: rgba(164, 229, 183, 0.3);
}

.custom-dropdown__item.is-selected {
    font-weight: 700;
    background: rgba(164, 229, 183, 0.5);
    color: var(--color-text-heading);
}

.custom-dropdown__menu::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown__menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.custom-dropdown__menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.custom-dropdown__menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ─── Modal Multi-Step States ─── */
.sm-state-container {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: fadeIn var(--transition-base) forwards;
}

.sm-state-container.is-active {
    display: flex;
}

.sm-state--center {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.demo-form {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.demo-form__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.demo-form__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.demo-form__label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.demo-form__value {
    font-weight: 600;
    color: var(--color-text-heading);
    text-align: right;
}

.sm-actions--split {
    display: flex;
    gap: var(--space-sm);
}

.sm-actions--split .btn {
    flex: 1;
    min-width: 0;
}

.sm-status-icon {
    font-size: 64px;
    margin: 0 auto;
    margin-bottom: var(--space-md);
}

.sm-status-icon--error {
    color: #ef4444;
}

.sm-status-icon--success {
    color: #10b981;
}

.face-scanner {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.face-scanner__icon {
    font-size: 80px;
    color: rgba(0, 0, 0, 0.2);
}

.face-scanner__line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-bg-primary);
    box-shadow: 0 0 10px var(--color-bg-primary), 0 0 20px var(--color-bg-primary);
    animation: scanLine 2.5s infinite linear;
}

@keyframes scanLine {
    0% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(210px);
    }

    100% {
        transform: translateY(-10px);
    }
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--color-bg-primary);
    border-radius: 50%;
    animation: spinnerRotate 1s infinite linear;
    margin: 0 auto;
}

@keyframes spinnerRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.header__mobile-logo {
    display: block;
}

.header__mobile-logo img {
    height: 32px;
    width: auto;
}

@media (min-width: 768px) {
    .header__mobile-logo {
        display: none;
    }
}

/* =============================================================================
   genesis-security.css — Genesis Protocol Visualization
   ============================================================================= */

.genesis-security {
    position: relative;
    z-index: 10;
}

.genesis-security__container {
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ─── Background Matrix Effect ─── */
.genesis-matrix {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.4);
}

.genesis-matrix__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.genesis-matrix__code {
    position: absolute;
    top: -50%;
    left: var(--space-lg);
    font-family: monospace;
    font-size: 14px;
    line-height: 2;
    color: var(--color-bg-primary);
    opacity: 0.15;
    white-space: pre;
    z-index: 0;
    transform: translateY(0);
    animation: matrixScroll 20s linear infinite;
    transition: opacity 0.3s ease;
}

@keyframes matrixScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(50%);
    }
}

/* ─── Content Grid ─── */
.genesis-security__grid {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding: var(--space-xl);
}

@media (min-width: 1024px) {
    .genesis-security__grid {
        flex-direction: row;
        align-items: center;
        padding: var(--space-2xl);
    }
}

/* ─── Text Area ─── */
.genesis-security__text-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.genesis-security__title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

.genesis-security__desc {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.genesis-security__cta {
    width: fit-content;
    margin-top: var(--space-md);
    align-self: flex-start;
    color: #ffffff !important;
}

.genesis-security__cta::after {
    background-color: #ffffff !important;
}

@media (max-width: 1023px) {
    .genesis-security__text-area {
        align-items: center;
        text-align: center;
    }

    .genesis-security__cta {
        align-self: center;
    }
}

/* ─── Visual Area ─── */
.genesis-security__visual-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) 0;
    position: relative;
    min-height: 300px;
}

@media (max-width: 767px) {
    .genesis-security__visual-area {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

.genesis-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.genesis-node:nth-child(even) {
    animation-delay: -2s;
}

.genesis-node__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.genesis-node__icon--hex {
    width: 80px;
    height: 80px;
    font-size: 36px;
    border-color: var(--color-bg-primary);
    box-shadow: 0 0 30px rgba(164, 229, 183, 0.2);
}

.genesis-node__label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

.genesis-connector {
    flex: 1;
    position: relative;
    height: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 var(--space-xs);
}

@media (max-width: 767px) {
    .genesis-connector {
        flex: 0 0 center;
        width: 2px;
        height: 40px;
        margin: var(--space-xs) 0;
    }

    .genesis-connector__line {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.1) 100%);
    }

    .genesis-connector__particles {
        display: none !important;
    }
}

.genesis-connector__line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.1) 100%);
}

.genesis-connector__particles {
    position: absolute;
    top: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-bg-primary);
    box-shadow: 0 0 10px var(--color-bg-primary);
    animation: particleMove 2s linear infinite;
}

.genesis-connector__particles--alt {
    animation-delay: -1s;
}

@keyframes particleMove {
    0% {
        left: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.genesis-security__visual-area:hover .genesis-matrix__code {
    animation-duration: 5s;
    opacity: 0.3;
}

.genesis-security__visual-area:hover .genesis-node__icon--hex {
    box-shadow: 0 0 50px rgba(164, 229, 183, 0.5);
    transform: scale(1.1);
}

.genesis-security__visual-area:hover .genesis-connector__particles {
    animation-duration: 1s;
}

/* =============================================================================
   faq.css — FAQ Section Styles
   ============================================================================= */

.faq {
    padding: var(--space-section) 0;
    width: 100%;
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq__header {
    margin-bottom: var(--space-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.faq__title {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.faq__subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    font-weight: 400;
    margin-bottom: var(--space-md);
}

.faq__accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: left;
}

.faq__item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.6);
}

.faq__item.is-active {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--color-text-heading);
    transition: color var(--transition-base);
}

.faq__question:focus-visible {
    outline: 3px solid var(--color-bg-primary);
    outline-offset: -4px;
    border-radius: var(--radius-lg);
}

.faq__question-text {
    font-family: var(--font-family-base);
    font-weight: 400;
    transition: transform var(--transition-base);
    position: relative;
    display: flex;
    align-items: center;
}

.faq__question-text::before {
    content: '>';
    position: absolute;
    left: -24px;
    opacity: 0;
    transition: all var(--transition-base);
    font-weight: 700;
    color: var(--color-text-heading);
    transform: translateX(-10px);
}

.faq__item:hover .faq__question-text {
    transform: translateX(24px);
}

.faq__item:hover .faq__question-text::before {
    opacity: 1;
    transform: translateX(0);
}

.faq__icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.faq__item.is-active .faq__icon {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--color-bg-primary);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 var(--space-xl);
    opacity: 0;
}

.faq__item.is-active .faq__answer {
    max-height: 500px;
    padding-bottom: var(--space-lg);
    opacity: 1;
}

.faq__answer p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: var(--font-size-base);
}

@media (max-width: 768px) {
    .faq__question {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-base);
    }

    .faq__answer {
        padding: 0 var(--space-lg);
    }

    .faq__item.is-active .faq__answer {
        padding-bottom: var(--space-md);
    }
}

/* =============================================================================
   floating-pill.css — Sticky Top Menu Pill
   ============================================================================= */

.floating-pill {
    position: fixed;
    top: var(--space-md);
    left: 50%;
    transform: translate(-50%, -150%);
    z-index: 1000;
    padding: 0 var(--space-lg);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    border-radius: var(--radius-full);
    will-change: transform, opacity;
}

.floating-pill.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.floating-pill .nav__list {
    position: static;
    display: flex;
    flex-direction: row;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    padding: 0;
    gap: clamp(1rem, 1.5vw, 2.5rem);
    height: 56px;
    align-items: center;
}

.floating-pill .nav__item {
    width: auto;
}

.floating-pill .nav__link {
    width: auto;
    font-size: var(--font-size-sm);
    padding: var(--space-xs) 0;
}

.floating-pill__desktop {
    display: block;
}

.floating-pill__mobile {
    display: none;
}

.floating-pill .nav__dropdown {
    top: 100%;
    padding-top: var(--space-xs);
}

@media (max-width: 768px) {

    .header__mobile-logo {
        order: 1;
    }

    .nav {
        order: 2;
    }

    .menu-toggle {
        order: 3;
        position: relative;
        z-index: 5001;
    }

    .floating-pill {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 4px;
        top: 24px;
        right: var(--container-padding);
        left: auto;
        transform: translateY(-150%);
        opacity: 0;
        border-radius: var(--radius-full);
        box-shadow: var(--shadow-sm);
        z-index: 5000;
        transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
    }

    .floating-pill.is-visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .floating-pill__desktop {
        display: none;
    }

    .floating-pill__mobile {
        display: block;
    }

    .floating-pill__mobile .menu-toggle {
        display: flex;
        padding: 6px;
    }

    .nav__list.is-open {
        position: fixed;
        top: 70px;
        left: 20px;
        right: 20px;
        bottom: auto;

        height: auto;
        min-height: 35vh;
        z-index: 4500;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-md);

        background: rgba(255, 255, 255, 0.9);
        border-radius: 24px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        padding: var(--space-xl) var(--space-md);

        visibility: visible;
        opacity: 1;
        transform: translateY(0) scale(1);
        margin: 0;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.4);

        transition:
            opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav__item {
        text-align: center;
    }

    .nav__link {
        font-size: var(--font-size-lg);
        font-weight: 500;
    }
}

/* =============================================================================
   footer.css — EireID Footer
   ============================================================================= */

.footer {
    width: 100%;
    margin-top: var(--space-3xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    z-index: 10;
}

/* --- Top CTA Card --- */
.footer__cta {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.footer__cta-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
    color: var(--color-text-heading);
}

.footer__cta-desc {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl) auto;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* --- Main Footer Card --- */
.footer__main {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-md) var(--space-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .footer__main {
        padding: var(--space-3xl) var(--space-2xl) var(--space-xl);
    }
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 1.5fr 2fr;
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 2fr 3fr;
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer__logo-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer__logo-text {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-text-heading);
    letter-spacing: -0.02em;
}

.footer__brand-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    max-width: 340px;
    line-height: 1.6;
}

.footer__socials {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xs);
}

.footer__socials a {
    color: var(--color-text-heading);
    font-size: 1.25rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer__socials a:hover {
    color: var(--color-text-muted);
    transform: translateY(-2px);
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-md);
}

@media (min-width: 600px) {
    .footer__links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__col-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-text-heading);
}

.footer__col a {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__col a:hover {
    color: var(--color-text-heading);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__copy {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.footer__legal a {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer__legal a:hover {
    color: var(--color-bg-primary);
}

/* ─── CTA Section ─────────────────── */
.cta {
    display: flex;
    justify-content: center;
}

.cta__inner {
    width: 100%;
    max-width: 760px;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
    border-radius: var(--radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.cta__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--color-text-heading);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.cta__subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    max-width: 480px;
    line-height: 1.6;
}

.cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-xl);
    height: 48px;
    font-family: var(--font-family-base);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-heading);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast);
    position: relative;
    z-index: 1;
}

.cta__btn::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 30%;
    width: 40%;
    height: 1px;
    background-color: var(--color-text-heading);
    transform: scaleX(0) translateZ(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    z-index: 5;
}

.cta__btn:hover::after,
.cta__btn:focus-visible::after {
    transform: scaleX(1) translateZ(0);
}

.cta__btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
    pointer-events: none;
}

.cta__btn:hover::before,
.cta__btn:focus-visible::before {
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%) scale(1.02);
}

.cta__btn:active::before {
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.1s ease;
    transform: translate(-50%, -50%) scale(0.98);
}

/* ─── Footer Main ─────────────────── */
.footer-giant-brand {
    font-size: clamp(4rem, 18vw, 15rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    text-align: center;
    
    background: linear-gradient(180deg, rgba(12, 155, 78, 0.07) 0%, rgba(12, 155, 78, 0.02) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    line-height: 0.85;
    margin-bottom: -0.12em;
    pointer-events: none;
    user-select: none;
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer-main {
    padding: var(--space-3xl) var(--container-padding) var(--space-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: var(--space-section);
}

.footer-main__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
    .footer-main__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .footer-main__inner {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        align-items: start;
    }

    .footer-brand {
        grid-column: auto;
    }
}

.footer-brand__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-brand__logo span {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-heading);
    letter-spacing: -0.01em;
}

.footer-brand__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 280px;
    margin-bottom: var(--space-lg);
}

.footer-brand__socials {
    display: flex;
    gap: var(--space-md);
}

.footer-brand__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-text-heading);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.footer-brand__socials a:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.footer-col__title {
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-heading);
    margin-bottom: var(--space-md);
}

.footer-col__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col__list a {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col__list a:hover {
    color: var(--color-text-heading);
}

.footer-main__bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

@media (min-width: 640px) {
    .footer-main__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-main__legal {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-main__legal a {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.footer-main__legal a:hover {
    color: var(--color-text-heading);
}

/* ─── Contact Form ─────────────────── */
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none !important;
    border-color: var(--color-bg-primary) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(164, 229, 183, 0.2);
    transition: all 0.3s ease;
}

.button--glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-2xl);
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-text-heading);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.button--glass:hover {
    background: rgba(164, 229, 183, 0.3);
    border-color: rgba(164, 229, 183, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(164, 229, 183, 0.2);
}

.button--glass:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .contact-form .form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── Resident Carousel Nav ─────────────────────────────────────────────── */
.resident-services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: var(--space-sm);
}

.carousel-nav {
    display: flex;
    gap: var(--space-sm);
}

.carousel-nav__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    color: var(--color-text-heading);
    transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-nav__btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.carousel-nav__btn:active {
    transform: scale(0.95);
}

.resident-card {
    box-shadow: none !important;
}

.resident-services-carousel {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.5rem;
    align-items: stretch;
    scroll-behavior: smooth;
    width: 100%;
    max-width: calc(280px * 2 + 2rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

.resident-services-carousel::-webkit-scrollbar {
    display: none;
}

@media (max-width: 767px) {
    .resident-services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .resident-services-container {
        width: 100% !important;
    }

    .resident-services-carousel {
        max-width: 280px;
    }
}

/* =============================================================================
   Cyber Card Layout (from Uiverse.io, adapted) 
   ============================================================================= */
.cyber-container {
    position: relative;
    width: 420px;
    height: 520px;
    transition: 200ms;
}

@media (max-width: 991px) {
    .cyber-container {
        display: none !important;
    }

    .resident-hero .hero__content {
        gap: 0;
        width: fit-content;
    }
}

.cyber-container:active {
    width: 410px;
    height: 510px;
}

#cyber-card {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    transition: 700ms;
    background: rgba(242, 252, 238, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.cyber-card-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.cyber-id-info {
    position: absolute;
    inset: 0;
    padding: 36px 36px 40px 36px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: opacity 0.3s ease;
    z-index: 10;
    font-family: 'Inter', system-ui, sans-serif;
}

.cyber-card-context-title {
    font-size: 1.7rem;
    color: #1a1a1a;
    font-weight: 500;
    margin: 0;
    text-align: left;
}

.cyber-card-main-body {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cyber-photo-actual {
    width: 170px;
    height: 220px;
    border-radius: 20px;
    background-color: #fff;
    background-image: url("./../assets/img/mascot_3.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cyber-card-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 0.5rem;
    text-align: left;
}

.cyber-data-group label {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 400;
    margin-bottom: 0.4rem;
    display: block;
}

.cyber-pill-grey {
    background: #e5e5e5;
    font-family: monospace;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-weight: bold;
    color: #1a1a1a;
    display: inline-block;
    letter-spacing: 2px;
}

.cyber-expiry-date {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.cyber-valid-status {
    color: #0c9b4e;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cyber-floating-update-chip {
    position: absolute;
    right: 0;
    top: 290px;
    background: #bbf7d0;
    padding: 0.8rem 1rem;
    border-radius: 16px 0 0 16px;
    width: auto;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 15;
}

.cyber-floating-update-chip label {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 0.25rem;
    display: block;
    font-weight: 400;
}

.cyber-floating-update-chip div {
    font-size: 0.95rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.cyber-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.cyber-name-large {
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.15;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    text-align: left;
}

.cyber-more-btn {
    background: #000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.cyber-more-btn span {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.cyber-protected-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
    transform: translateY(20px);
    z-index: 20;
}

.cyber-shield-icon {
    font-size: 4rem;
    color: #00ca72;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 0 15px rgba(0, 202, 114, 0.4));
}

.cyber-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--color-text-heading);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.cyber-subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--color-text-body);
}

.cyber-highlight {
    color: #00ca72;
    font-weight: bold;
}

.cyber-glowing-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cyber-glow-1,
.cyber-glow-2,
.cyber-glow-3 {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
            rgba(0, 202, 114, 0.3) 0%,
            rgba(0, 202, 114, 0) 70%);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyber-glow-1 {
    top: -20px;
    left: -20px;
}

.cyber-glow-2 {
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
}

.cyber-glow-3 {
    bottom: -20px;
    left: 30%;
}

.cyber-card-particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #00ca72;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyber-tracker:hover~.tilt-target .cyber-id-info {
    opacity: 0;
    filter: blur(5px);
}

.cyber-tracker:hover~.tilt-target .cyber-protected-overlay {
    opacity: 1;
    transform: translateY(0);
}

.cyber-tracker:hover~.tilt-target .cyber-glowing-elements div {
    opacity: 1;
}

.cyber-tracker:hover~.tilt-target .cyber-card-particles span {
    animation: cyberParticleFloat 2s infinite;
}

@keyframes cyberParticleFloat {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(calc(var(--x, 0) * 30px), calc(var(--y, 0) * 30px));
        opacity: 0;
    }
}

.cyber-card-particles span:nth-child(1) {
    --x: 1;
    --y: -1;
    top: 40%;
    left: 20%;
}

.cyber-card-particles span:nth-child(2) {
    --x: -1;
    --y: -1;
    top: 60%;
    right: 20%;
}

.cyber-card-particles span:nth-child(3) {
    --x: 0.5;
    --y: 1;
    top: 20%;
    left: 40%;
}

.cyber-card-particles span:nth-child(4) {
    --x: -0.5;
    --y: 1;
    top: 80%;
    right: 40%;
}

.cyber-card-particles span:nth-child(5) {
    --x: 1;
    --y: 0.5;
    top: 30%;
    left: 60%;
}

.cyber-card-particles span:nth-child(6) {
    --x: -1;
    --y: 0.5;
    top: 70%;
    right: 60%;
}

#cyber-card::before {
    content: "";
    background: radial-gradient(circle at center,
            rgba(0, 202, 114, 0.1) 0%,
            rgba(0, 162, 255, 0.05) 50%,
            transparent 100%);
    filter: blur(20px);
    opacity: 0;
    width: 150%;
    height: 150%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.cyber-tracker:hover~.tilt-target::before {
    opacity: 1;
}

.cyber-tracker {
    position: absolute;
    z-index: 200;
    width: 100%;
    height: 100%;
}

.cyber-tracker:hover {
    cursor: pointer;
}

.cyber-tracker:hover~.tilt-target #cyber-prompt {
    opacity: 0;
}

.cyber-tracker:hover~.tilt-target {
    transition: 300ms;
    filter: brightness(1.1);
}

.cyber-container:hover #cyber-card::before {
    transition: 200ms;
    content: "";
    opacity: 80%;
}

.cyber-canvas {
    perspective: 800px;
    inset: 0;
    z-index: 200;
    position: absolute;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    gap: 0px 0px;
    grid-template-areas:
        "tr-1 tr-2 tr-3 tr-4 tr-5"
        "tr-6 tr-7 tr-8 tr-9 tr-10"
        "tr-11 tr-12 tr-13 tr-14 tr-15"
        "tr-16 tr-17 tr-18 tr-19 tr-20"
        "tr-21 tr-22 tr-23 tr-24 tr-25";
}

.tr-1 {
    grid-area: tr-1;
}

.tr-2 {
    grid-area: tr-2;
}

.tr-3 {
    grid-area: tr-3;
}

.tr-4 {
    grid-area: tr-4;
}

.tr-5 {
    grid-area: tr-5;
}

.tr-6 {
    grid-area: tr-6;
}

.tr-7 {
    grid-area: tr-7;
}

.tr-8 {
    grid-area: tr-8;
}

.tr-9 {
    grid-area: tr-9;
}

.tr-10 {
    grid-area: tr-10;
}

.tr-11 {
    grid-area: tr-11;
}

.tr-12 {
    grid-area: tr-12;
}

.tr-13 {
    grid-area: tr-13;
}

.tr-14 {
    grid-area: tr-14;
}

.tr-15 {
    grid-area: tr-15;
}

.tr-16 {
    grid-area: tr-16;
}

.tr-17 {
    grid-area: tr-17;
}

.tr-18 {
    grid-area: tr-18;
}

.tr-19 {
    grid-area: tr-19;
}

.tr-20 {
    grid-area: tr-20;
}

.tr-21 {
    grid-area: tr-21;
}

.tr-22 {
    grid-area: tr-22;
}

.tr-23 {
    grid-area: tr-23;
}

.tr-24 {
    grid-area: tr-24;
}

.tr-25 {
    grid-area: tr-25;
}

.tr-1:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(20deg) rotateY(-10deg) rotateZ(0deg);
}

.tr-2:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(20deg) rotateY(-5deg) rotateZ(0deg);
}

.tr-3:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(20deg) rotateY(0deg) rotateZ(0deg);
}

.tr-4:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(20deg) rotateY(5deg) rotateZ(0deg);
}

.tr-5:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(20deg) rotateY(10deg) rotateZ(0deg);
}

.tr-6:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(10deg) rotateY(-10deg) rotateZ(0deg);
}

.tr-7:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(10deg) rotateY(-5deg) rotateZ(0deg);
}

.tr-8:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(10deg) rotateY(0deg) rotateZ(0deg);
}

.tr-9:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(10deg) rotateY(5deg) rotateZ(0deg);
}

.tr-10:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(10deg) rotateY(10deg) rotateZ(0deg);
}

.tr-11:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(0deg) rotateY(-10deg) rotateZ(0deg);
}

.tr-12:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(0deg) rotateY(-5deg) rotateZ(0deg);
}

.tr-13:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}

.tr-14:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(0deg) rotateY(5deg) rotateZ(0deg);
}

.tr-15:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(0deg) rotateY(10deg) rotateZ(0deg);
}

.tr-16:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(-10deg) rotateY(-10deg) rotateZ(0deg);
}

.tr-17:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(-10deg) rotateY(-5deg) rotateZ(0deg);
}

.tr-18:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(-10deg) rotateY(0deg) rotateZ(0deg);
}

.tr-19:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(-10deg) rotateY(5deg) rotateZ(0deg);
}

.tr-20:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(-10deg) rotateY(10deg) rotateZ(0deg);
}

.tr-21:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(-20deg) rotateY(-10deg) rotateZ(0deg);
}

.tr-22:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(-20deg) rotateY(-5deg) rotateZ(0deg);
}

.tr-23:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(-20deg) rotateY(0deg) rotateZ(0deg);
}

.tr-24:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(-20deg) rotateY(5deg) rotateZ(0deg);
}

.tr-25:hover~.tilt-target {
    transition: 125ms ease-in-out;
    transform: rotateX(-20deg) rotateY(10deg) rotateZ(0deg);
}

.cyber-noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cyber-card-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 45%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 55%,
            rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 300ms;
}

.cyber-lines span {
    position: absolute;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 202, 114, 0.2),
            transparent);
}

.cyber-lines span:nth-child(1) {
    top: 20%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    animation: cyberLineGrow 3s linear infinite;
}

.cyber-lines span:nth-child(2) {
    top: 40%;
    right: 0;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: right;
    animation: cyberLineGrow 3s linear infinite 1s;
}

.cyber-lines span:nth-child(3) {
    top: 60%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    animation: cyberLineGrow 3s linear infinite 2s;
}

.cyber-lines span:nth-child(4) {
    top: 80%;
    right: 0;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: right;
    animation: cyberLineGrow 3s linear infinite 1.5s;
}

.cyber-corner-elements span {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(0, 202, 114, 0.3);
}

.cyber-corner-elements span:nth-child(1) {
    top: 10px;
    left: 10px;
    border-right: 0;
    border-bottom: 0;
}

.cyber-corner-elements span:nth-child(2) {
    top: 10px;
    right: 10px;
    border-left: 0;
    border-bottom: 0;
}

.cyber-corner-elements span:nth-child(3) {
    bottom: 10px;
    left: 10px;
    border-right: 0;
    border-top: 0;
}

.cyber-corner-elements span:nth-child(4) {
    bottom: 10px;
    right: 10px;
    border-left: 0;
    border-top: 0;
}

.cyber-scan-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent,
            rgba(0, 202, 114, 0.1),
            transparent);
    transform: translateY(-100%);
    animation: cyberScanMove 2s linear infinite;
}

@keyframes cyberLineGrow {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    50% {
        transform: scaleX(1);
        opacity: 1;
    }

    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

@keyframes cyberScanMove {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

#cyber-card:hover .cyber-card-glare {
    opacity: 1;
}

.cyber-corner-elements span {
    transition: all 0.3s ease;
}

#cyber-card:hover .cyber-corner-elements span {
    border-color: rgba(0, 202, 114, 0.8);
    box-shadow: 0 0 10px rgba(0, 202, 114, 0.5);
}

@media (max-width: 1024px) {
    .resident-scroll-icon {
        margin-bottom: var(--space-lg) !important;
        opacity: 0;
    }
}

/* =============================================================================
   Resident Flow Animation Styles
   ============================================================================= */

@media (min-width: 992px) {
    .resident-flow {
        min-height: 100vh;
        display: flex;
        align-items: center;
        position: relative;
        z-index: 50;
        margin-bottom: 6rem;
    }
}

@media (max-width: 991px) {
    .resident-flow {
        height: auto !important;
        display: block;
        position: relative;
        z-index: 50;
        margin-bottom: 4rem;
        padding-top: 2rem;
    }

    .resident-flow__sticky-wrap {
        height: auto !important;
        position: relative;
        display: block !important;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr !important;
        padding: 2rem !important;
        gap: 1.5rem !important;
    }
}

.how-it-works-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.5);
}

.resident-step {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: transform 0.3s ease;
    will-change: transform, opacity, background-color;
}

.resident-step .flow-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-text-heading);
    will-change: background-color, color;
}

.resident-step .step-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--color-text-heading);
}

.resident-step .step-desc {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {

    .how-it-works__content,
    .services-controls {
        position: relative !important;
        transform: none !important;
        top: 0 !important;
    }

    .floating-pill {
        display: none !important;
    }
}

/* === Glass Marquee Section === */
.partners-glass-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    margin-top: 120px;
    margin-bottom: 80px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    overflow: hidden;
    z-index: 10;
}

.marquee-track {
    display: flex;
    width: 110vw;
    margin-left: -5vw;

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.05);

    padding: 22px 0;
    position: relative;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    width: max-content;
}

.logo-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 110vw;
}

.track-right .marquee-content {
    animation: scroll-right 40s linear infinite;
}

.track-left .marquee-content {
    animation: scroll-left 40s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.partners-glass-section:hover .marquee-content {
    animation-play-state: paused;
}

.logo-item {
    padding: 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.4) contrast(1.2);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.logo-item span {
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.5s ease;
}

.partners-glass-section:hover .logo-item img {
    filter: grayscale(100%) opacity(0.7) contrast(1.2);
}

.partners-glass-section:hover .logo-item span {
    color: rgba(0, 0, 0, 0.6);
}

.logo-item:hover img {
    transform: scale(1.05);
    filter: grayscale(100%) opacity(0.9) contrast(1.2) !important;
}

.logo-item:hover span {
    color: rgba(0, 0, 0, 0.9) !important;
}

.residents-column__container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* =============================================================================
   Trust Section (Resident Page)
   ============================================================================= */

.trust-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-2xl) var(--space-md);
    max-width: 500px;
    margin: 0 auto;
}

.trust-visual {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2xl);
    z-index: 10;
}

.trust-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(164, 229, 183, 0.4) 0%, rgba(164, 229, 183, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulseLogo 4s infinite ease-in-out;
}

.trust-shield {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(255, 255, 255, 0.6);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.trust-shield .iconify {
    font-size: 64px;
    color: var(--color-bg-primary);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.trust-pill {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    color: var(--color-text-heading);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 3;
    will-change: transform;
}

.trust-pill .iconify {
    font-size: 16px;
    color: var(--color-text-muted);
}

.trust-pill--1 {
    top: -5%;
    left: -25%;
    animation: sway-1 6s ease-in-out infinite;
}

.trust-pill--2 {
    top: 15%;
    right: -35%;
    animation: sway-2 7s ease-in-out infinite 1s;
}

.trust-pill--3 {
    bottom: 15%;
    left: -30%;
    animation: sway-3 6.5s ease-in-out infinite 0.5s;
}

.trust-pill--4 {
    bottom: -5%;
    right: -20%;
    animation: sway-4 7.5s ease-in-out infinite 1.5s;
}

.trust-footer {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.trust-footer .iconify {
    font-size: 24px;
    color: var(--color-bg-primary);
    flex-shrink: 0;
}

.trust-footer p {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin: 0;
}

/* ─── Keyframe-анимации легкого покачивания ─── */
@keyframes sway-1 {

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

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

@keyframes sway-2 {

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

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

@keyframes sway-3 {

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

    50% {
        transform: translate(6px, 10px) rotate(-1deg);
    }
}

@keyframes sway-4 {

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

    50% {
        transform: translate(-8px, 12px) rotate(1deg);
    }
}

/* ─── Адаптивность ─── */
@media (max-width: 991px) {
    .residents-column__container {
        flex-direction: column;
        gap: var(--space-2xl);
    }

    .trust-section {
        max-width: 100%;
        padding-top: var(--space-xl);
    }

    .trust-visual {
        transform: scale(0.9);
        margin-bottom: var(--space-xl);
    }

    .trust-pill--1 {
        left: -10%;
    }

    .trust-pill--2 {
        right: -15%;
    }

    .trust-pill--3 {
        left: -15%;
    }

    .trust-pill--4 {
        right: -5%;
    }
}

/* =============================================================================
   Resident FAQ Layout Tweaks
   ============================================================================= */

.resident-faq {
    flex: 1.2;
    padding: var(--space-2xl) var(--space-md);
    max-width: 650px;
    margin: 0 auto;
}

.resident-faq__container {
    text-align: left;
    max-width: 100%;
}

.resident-faq__header {
    align-items: flex-start;
    text-align: left;
    margin-bottom: var(--space-xl);
}

.resident-faq .faq__title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: var(--space-xs);
}

.resident-faq .faq__subtitle {
    font-size: var(--font-size-base);
    margin-bottom: 0;
}

.resident-faq .faq__question {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
}

.resident-faq .faq__answer p {
    font-size: var(--font-size-sm);
}

.resident-faq__action {
    margin-top: var(--space-xl);
    display: flex;
    justify-content: flex-start;
}

.resident-faq__btn {
    width: auto;
    min-width: 220px;
}

@media (max-width: 991px) {
    .resident-faq {
        padding-top: 0;
        width: 100%;
    }

    .resident-faq__action {
        justify-content: center;
    }
}

/* =============================================================================
   Genesis Modal Styles — "EireGenesis" Cyber-Organic Dark Theme
   ============================================================================= */

.genesis-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: radial-gradient(circle at center, #060c08 0%, #020804 100%);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: none;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding: 0;
    pointer-events: none;
    transition: visibility 0s 0.8s;
}

#genesis-scroller {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: clamp(2rem, 8vw, 6rem) var(--container-padding);
}

.genesis-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://www.transparenttextures.com/patterns/dark-matter.png");
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

.genesis-modal.is-active {
    pointer-events: auto;
    transition: visibility 0s 0s;
}

.genesis-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    z-index: 10;
}

.genesis-modal__logo {
    width: 40px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(164, 229, 183, 0.4));
}

.genesis-modal__close {
    background: rgba(164, 229, 183, 0.05);
    border: 1px solid rgba(164, 229, 183, 0.2);
    color: #a4e5b7;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.genesis-modal__close:hover {
    background: rgba(164, 229, 183, 0.2);
    border-color: #a4e5b7;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(164, 229, 183, 0.3);
}

.genesis-modal__content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* --- Entrance Scan Line --- */
.genesis-scan {
    position: absolute;
    top: 0;
    left: -10vw;
    width: 120vw;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            #a4e5b7 50%,
            transparent 100%);
    box-shadow: 0 0 20px #a4e5b7, 0 0 40px #a4e5b7;
    opacity: 0;
    z-index: 100;
    pointer-events: none;
}

/* --- Scrollbar Customization --- */
#genesis-scroller::-webkit-scrollbar {
    width: 4px;
}

#genesis-scroller::-webkit-scrollbar-track {
    background: transparent;
}

#genesis-scroller::-webkit-scrollbar-thumb {
    background: #a4e5b7;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(164, 229, 183, 0.4);
}

/* --- Manifesto Section (Positioning Preserved) --- */
.genesis-manifesto {
    margin-bottom: 5rem;
    text-align: center;
}

.genesis-manifesto__headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.genesis-manifesto__lead {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: #a4e5b7;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
    letter-spacing: 0.03em;
    border-right: 2px solid #a4e5b7;
    display: inline-block;
    padding-right: 5px;
}

/* --- Bento Grid Layout --- */
.genesis-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 5rem;
}

.genesis-bento__card {
    background: rgba(5, 12, 10, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(164, 229, 183, 0.1);
    border-top: 1px solid rgba(164, 229, 183, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.genesis-bento__card::before {
    content: "";
    position: absolute;
    inset: 0;
    filter: url(#noiseFilter);
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.genesis-bento__card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(164, 229, 183, 0.05);
}

.bento-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.bento-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    color: #a4e5b7;
    background: rgba(164, 229, 183, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    letter-spacing: 1px;
}

.bento-title {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
}

.genesis-bento--main {
    grid-column: span 12;
    min-height: 500px;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.bento-svg-container {
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.vault-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.interactive-layer {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.interactive-layer:hover {
    stroke: #a4e5b7;
    stroke-width: 18;
    filter: drop-shadow(0 0 15px rgba(164, 229, 183, 0.6));
}

.vault-center-glow {
    filter: drop-shadow(0 0 10px #a4e5b7);
}

.vault-tooltip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #a4e5b7;
    margin-top: 2rem;
    text-align: center;
    min-height: 1.5em;
    position: relative;
    z-index: 2;
}

.genesis-bento--tech {
    grid-column: span 7;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: help;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(164, 229, 183, 0.08);
    border-color: rgba(164, 229, 183, 0.2);
    transform: translateX(5px);
}

.tech-item .iconify {
    font-size: 20px;
    color: #a4e5b7;
}

.tech-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.genesis-bento--path {
    grid-column: span 5;
}

.data-path-viz {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 1rem 0;
}

.path-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    width: 80px;
}

.node-icon-box {
    width: 44px;
    height: 44px;
    background: rgba(164, 229, 183, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #a4e5b7;
    border: 1px solid rgba(164, 229, 183, 0.2);
}

.path-node small {
    font-size: 9px;
    text-transform: uppercase;
    color: #a4e5b7;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.path-connector {
    flex: 1;
    height: 1px;
    position: relative;
    margin-top: -15px;
}

.connector-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(164, 229, 183, 0.3), transparent);
}

.connector-pulse {
    position: absolute;
    top: -3px;
    left: 0;
    width: 8px;
    height: 8px;
    background: #a4e5b7;
    border-radius: 50%;
    filter: blur(2px);
    animation: slidePulse 3s infinite linear;
}

@keyframes slidePulse {
    0% {
        left: 0;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.genesis-bento--recovery {
    grid-column: span 12;
}

.bento-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.recovery-tags {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.recovery-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #a4e5b7;
    background: rgba(164, 229, 183, 0.05);
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid rgba(164, 229, 183, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recovery-tag .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a4e5b7;
    box-shadow: 0 0 5px #a4e5b7;
}

@media (max-width: 1024px) {
    .genesis-bento--tech {
        grid-column: span 12;
    }

    .genesis-bento--path {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .genesis-bento {
        gap: 1rem;
    }

    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

    .data-path-viz {
        flex-direction: column;
        gap: 2rem;
    }

    .path-connector {
        height: 40px;
        width: 1px;
        margin: 0;
    }

    .connector-line {
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
    }
}

/* --- Genesis Hub Detailed Sections & Polish --- */
.genesis-hub-sections {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding-top: 4rem;
}

.genesis-hub-section {
    width: 100%;
    position: relative;
}

.accent-text {
    color: #a4e5b7 !important;
    text-shadow: 0 0 15px rgba(164, 229, 183, 0.2);
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-lead {
    font-size: 1.15rem;
    color: #ffffff !important;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 3.5rem;
}

.small-title {
    font-size: 1.15rem !important;
    color: #a4e5b7 !important;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.small-desc {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6;
}

.font-bold { font-weight: 700; }
.text-white { color: #ffffff !important; }

.highlight {
    color: #a4e5b7 !important;
    border-left: 2px solid #a4e5b7;
    padding-left: 1rem;
}

.card-half { grid-column: span 6; }
.card-full { grid-column: span 12; }
.card-third { grid-column: span 4; }

.alert-card {
    border-color: rgba(164, 229, 183, 0.3) !important;
    background: rgba(164, 229, 183, 0.05) !important;
}

.item-accent {
    border-color: rgba(164, 229, 183, 0.2) !important;
}

.item-accent:hover {
    background: rgba(164, 229, 183, 0.12) !important;
    box-shadow: 0 0 20px rgba(164, 229, 183, 0.1);
}

.tech-details-expander__container {
    margin-top: 2rem;
}

.tech-details-trigger {
    width: 100%;
    cursor: pointer;
    border: 1px dashed rgba(164, 229, 183, 0.4) !important;
    background: rgba(164, 229, 183, 0.03) !important;
    padding: 1.25rem !important;
    transition: all 0.4s ease !important;
    text-align: center;
}

.tech-details-trigger:hover {
    background: rgba(164, 229, 183, 0.08) !important;
    transform: translateY(-2px);
    border-style: solid !important;
}

.tech-details-panel {
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.tech-details-panel.is-active {
    max-height: 600px;
    margin-top: 1.5rem;
}

.inner-panel {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(164, 229, 183, 0.1);
}

.tech-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tech-spec-item .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #a4e5b7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tech-spec-item .value {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.mt-md { margin-top: 1.5rem; }
.pb-32 { padding-bottom: 8rem; }
.text-left { text-align: left; }

.recovery-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recovery-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.recovery-list li strong {
    color: #a4e5b7;
    font-weight: 600;
}

.recovery-dot {
    width: 6px;
    height: 6px;
    background: #a4e5b7;
    border-radius: 50%;
    margin-top: 10px;
    box-shadow: 0 0 10px #a4e5b7;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .genesis-hub-sections { gap: 6rem; }
}

@media (max-width: 768px) {
    .genesis-hub-sections { gap: 4rem; }
    .card-half, .card-third { grid-column: span 12; }
    .tech-spec-grid { grid-template-columns: 1fr; }
    .section-lead { font-size: 1rem; }
}

/* =============================================================================
   Business Model Canvas Grid
   ============================================================================= */
.bmc-section {
    position: relative;
    z-index: 5;
}

.bmc-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    position: relative;
}

@media (min-width: 1024px) {
    .bmc-grid {
        grid-template-columns: repeat(10, 1fr);
        grid-auto-rows: 180px 180px auto;
    }
}

.bmc-cell {
    position: relative;
}

@media (min-width: 1024px) {
    .bmc-kp   { grid-column: 1 / span 2;  grid-row: 1 / span 2; }
    .bmc-ka   { grid-column: 3 / span 2;  grid-row: 1; }
    .bmc-kr   { grid-column: 3 / span 2;  grid-row: 2; }
    .bmc-vp   { grid-column: 5 / span 2;  grid-row: 1 / span 2; }
    .bmc-cr   { grid-column: 7 / span 2;  grid-row: 1; }
    .bmc-ch   { grid-column: 7 / span 2;  grid-row: 2; }
    .bmc-cs   { grid-column: 9 / span 2;  grid-row: 1 / span 2; }
    .bmc-cost { grid-column: 1 / span 5;  grid-row: 3; }
    .bmc-rev  { grid-column: 6 / span 5;  grid-row: 3; }
}

.bmc-tile-glass {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.bmc-tile {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 1.5rem;
    border-radius: 1.5rem;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    z-index: 1;
    pointer-events: auto;
    font-family: var(--font-family-base) !important;
}

@media (max-width: 1023px) {
    .bmc-tile {
        position: relative;
        height: auto;
        min-height: 200px;
    }
}

.bmc-tile:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 1) !important;
    z-index: 10;
}

.bmc-cell.is-expanded {
    z-index: 99 !important;
    position: relative;
}

.bmc-cell.is-expanded .bmc-tile {
    align-items: flex-start;
    justify-content: flex-start;
}

.bmc-tile-header {
    font-family: var(--font-family-base) !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-heading);
    margin-bottom: 0;
    text-align: center;
    transition: all 0.4s ease;
}

.bmc-cell.is-expanded .bmc-tile-header {
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 1.25rem;
}

.bmc-tile-content {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    opacity: 0;
}

.bmc-cell.is-expanded .bmc-tile.bmc-tile-glass {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
}

.bmc-pill {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-body);
    white-space: nowrap;
}

.investor-hero {
    margin-bottom: var(--space-3xl);
}
.bmc-cost,
.bmc-rev {
    min-height: 160px;
}

/* =============================================================================
   Growth Roadmap (Cyber-Track)
   ============================================================================= */

.growth-roadmap-container {
    position: relative;
    padding: var(--space-3xl) var(--container-padding);
}

.growth-roadmap-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px; 
    z-index: 5;
}

/* ─── The Track ─── */
.cyber-track {
    position: absolute;
    top: 50px;
    bottom: 0;
    left: 20px;
    width: 4px;
    background: rgba(164, 229, 183, 0.1);
    border-radius: 4px;
    overflow: hidden;
    z-index: 0;
}

.cyber-track-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 0%; 
    background: var(--color-bg-primary); 
    box-shadow: 0 0 15px var(--color-bg-primary), 0 0 30px var(--color-bg-primary);
    border-radius: 4px;
}

.track-particle {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 20px;
    background: #fff;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--color-bg-primary);
    border-radius: 10px;
    opacity: 0;
}

/* ─── Roadmap Nodes ─── */
.roadmap-node-wrapper {
    position: relative;
    width: 100%;
    z-index: 10;
}

.roadmap-node-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -40px;
    width: 40px;
    height: 2px;
    background: rgba(164, 229, 183, 0.3);
    z-index: -1;
}

.roadmap-node {
    position: relative;
    padding: var(--space-xl);
    padding-left: var(--space-2xl);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: auto;
    background: rgba(255, 255, 255, 0.03);
}

.roadmap-node:hover {
    transform: scale(1.02) translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(164, 229, 183, 0.15), inset 0 0 20px rgba(164, 229, 183, 0.1);
}

.node-year {
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm);
    color: var(--color-bg-primary);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
}

.node-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-sm);
}

.node-desc {
    color: var(--color-text-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    max-width: 90%;
}

/* ─── Active Pulsing State (Phase 1) ─── */
.roadmap-node.active {
    border: 1px solid rgba(164, 229, 183, 0.4);
    box-shadow: 0 0 30px rgba(164, 229, 183, 0.1);
}

.node-pulse {
    position: absolute;
    top: 50%;
    left: -48px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--color-bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-bg-primary);
    z-index: 2;
}

.node-pulse::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--color-bg-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulseGlow 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulseGlow {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(3.5); opacity: 0; }
}

/* ─── Tech Data Tooltip ─── */
.technical-tooltip {
    position: absolute;
    top: -20px;
    right: 20px;
    background: rgba(10, 10, 12, 0.75);
    border: 1px solid rgba(164, 229, 183, 0.3);
    border-radius: 8px;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(10px);
    z-index: 20;
}

.technical-tooltip span {
    font-family: var(--font-family-base);
    font-size: 0.8rem;
    color: var(--color-bg-primary);
    white-space: nowrap;
}

.roadmap-node:hover .technical-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Desktop (Horizontal Layout) ─── */
@media (min-width: 1024px) {
    .growth-roadmap-inner {
        flex-direction: row;
        padding-left: 0;
        padding-top: 80px;
        align-items: flex-start;
    }

    .cyber-track {
        top: 20px;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: 4px;
    }

    .cyber-track-fill {
        width: 0%; 
        height: 4px;
    }

    .track-particle {
        top: 50%;
        left: -20px;
        transform: translateY(-50%);
        width: 20px;
        height: 6px;
    }

    .roadmap-node-wrapper {
        flex: 1;
    }

    .roadmap-node-wrapper::before {
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 60px;
    }

    .roadmap-node {
        padding-left: var(--space-xl);
        height: 100%;
    }
    
    .node-pulse {
        top: -68px;
        left: 50%;
        transform: translateX(-50%);
    }

    .technical-tooltip {
        top: auto;
        bottom: 110%;
        right: 50%;
        transform: translate(50%, 10px);
    }

    .roadmap-node:hover .technical-tooltip {
        transform: translate(50%, 0);
    }
}

/* --- Global Font Forcing For Investor Page --- */
.hero.investor-hero, 
.hero.investor-hero *,
.bmc-section .section-title,
.growth-roadmap-container .section-title,
.investor-hero .hero__subtitle,
.bmc-tile-header,
.node-year,
.node-title,
.node-desc,
.technical-tooltip span,
.bmc-pill {
    font-family: 'Lato', sans-serif !important;
}

.bmc-tile-content {
    width: 100%;
}

/* --- Support & Help Styles --- */
.search-bar-interactive:hover,
.search-bar-interactive:focus-within {
    transform: translateY(-4px) scale(1.01);
    background: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.search-bar-interactive input:focus {
    color: var(--color-text-heading);
}

.search-bar-interactive .iconify {
    transition: opacity 0.3s ease, color 0.3s ease;
}

.search-bar-interactive:focus-within .iconify {
    opacity: 1 !important;
    color: var(--color-bg-primary) !important;
}

/* --- Search Filter Styles --- */
.search-filter-divider {
    width: 1px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 var(--space-sm);
    flex-shrink: 0;
}

.search-filter-btn {
    background: transparent;
    border: none;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    color: var(--color-text-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-filter-btn:hover {
    background: var(--color-bg-primary) !important;
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(164, 229, 183, 0.4);
}

.search-filter-btn:active {
    transform: translateY(1px);
}

.search-filter-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: 100%;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    display: none;
    z-index: 2000;
    text-align: left;
    transform-origin: top right;
    animation: filterDropdownIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: #ffffff !important;
    backdrop-filter: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

@keyframes filterDropdownIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-filter-dropdown.is-open {
    display: block;
}

.filter-dropdown__title {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.6;
    margin-bottom: var(--space-lg);
    font-weight: 900;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: var(--space-sm);
    color: var(--color-text-heading);
}

.search-filter-backdrop {
    position: fixed;
    top: -100vh;
    left: -100vw;
    width: 300vw;
    height: 300vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    display: none;
    pointer-events: auto;
    animation: fadeIn var(--transition-base) forwards;
}

.search-filter-backdrop.is-active {
    display: block;
}

.carousel-nav__btn.is-disabled {
    opacity: 0.3 !important;
    cursor: default !important;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.hero__search-container.has-open-filter {
    z-index: 1600;
    position: relative;
}

.filter-dropdown__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md) var(--space-xl);
}

@media (max-width: 850px) {
    .filter-dropdown__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .filter-dropdown__list {
        grid-template-columns: 1fr;
    }
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    user-select: none;
    color: var(--color-text-heading);
    font-size: var(--font-size-sm);
    padding: var(--space-xs) 0;
    transition: all 0.2s ease;
}

.filter-checkbox-item:hover {
    transform: translateX(4px);
}

.filter-checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.filter-checkbox-item input[type="checkbox"]:checked {
    background: var(--color-bg-primary);
    border-color: var(--color-bg-primary);
    transform: scale(1.1);
}

.filter-checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-heading);
    font-size: 14px;
    font-weight: 900;
}

.hero:not(:has(.hero__actions)) .hero__content {
    justify-content: center;
    padding-bottom: var(--space-xl);
    margin-top: calc((var(--space-3xl)) * 2);
}

/* --- Search Suggestion Pills --- */
.search-suggestion-pill {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.search-suggestion-pill:hover {
    background: var(--color-bg-primary) !important;
    color: var(--color-text-heading) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* --- Answer Modal (Quick Questions) --- */
.q-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90vw;
    max-width: 650px;
    z-index: 5000;
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translate(-50%, -40%) scale(0.95);
}

.q-modal.is-active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.q-modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 20;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-heading);
}

.q-modal__close:hover {
    background: rgba(0,0,0,0.1);
    transform: scale(1.1);
}

.q-modal__content {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    display: flex;
    padding: var(--space-xl);
    gap: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 30px 60px -12px rgba(0,0,0,0.15), 
        0 18px 36px -18px rgba(0,0,0,0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    align-items: center;
    border: none !important;
}

.q-modal__text {
    flex: 1;
    text-align: left;
}

.q-modal__question {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text-heading);
    letter-spacing: -0.02em;
}

.q-modal__answer {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-body);
    opacity: 0.8;
}

.q-modal__image {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.q-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

@media (max-width: 768px) {
    .q-modal {
        top: 15px !important;
        left: 15px !important;
        right: 15px !important;
        bottom: 15px !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        transform: none !important;
        border-radius: var(--radius-lg);
        z-index: 9999;
        overflow: hidden;
    }

    .q-modal__content {
        width: 100% !important;
        height: 100% !important;
        border-radius: var(--radius-lg) !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: var(--space-xl) !important;
        text-align: center;
        position: relative;
        overflow-y: auto;
    }

    .q-modal__close {
        top: 15px !important;
        right: 15px !important;
        background: rgba(0,0,0,0.08); 
    }

    .q-modal__text {
        text-align: center;
        width: 100%;
        margin-top: 20px;
    }
    .q-modal__question {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-md);
    }
    .q-modal__image {
        display: none;
    }
    .q-modal__sticker {
        display: none !important;
    }
}

/* --- Support & Help Grid (Guidelines) --- */
.kb-grid .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .kb-grid .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .kb-grid .grid-3 {
        grid-template-columns: 1fr;
    }
}

.guideline-card {
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-xl) !important;
}

.guideline-card:hover,
.guideline-card:focus-visible {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.1), 0 0 30px rgba(164, 229, 183, 0.2);
    border-color: rgba(164, 229, 183, 0.4);
    outline: 3px solid var(--color-bg-primary);
    outline-offset: 4px;
}

.guideline-card .icon-circle {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    background: rgba(164, 229, 183, 0.1);
    transition: transform 0.4s ease;
}

.guideline-card:hover .icon-circle {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(164, 229, 183, 0.25);
}

/* --- Guide Modal Adjustments --- */
.q-modal__content {
    display: flex;
    flex-direction: row;
}

.q-modal__sticker {
    display: none;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    z-index: 100;
    pointer-events: none;
}

.q-modal__sticker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.2));
    animation: stickerFloat 3s ease-in-out infinite alternate;
    border-radius: 40%;
}

@keyframes stickerFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.q-modal--guideline .q-modal__content {
    flex-direction: column;
    text-align: center;
    padding-top: var(--space-3xl);
    max-width: 550px;
}

.q-modal--guideline .q-modal__sticker {
    display: block;
}

.q-modal--guideline .q-modal__image {
    display: none;
}

.q-modal--guideline .q-modal__text {
    text-align: center;
}

.q-modal--guideline .q-modal__answer {
    line-height: 1.8;
}

.kb-grid .container--narrow {
    max-width: 1200px;
    margin: 0 auto;
}

/* === WAITLIST MODAL === */
.waitlist-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.waitlist-modal.is-open {
    display: block;
}

.waitlist-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 20, 0.4);
    backdrop-filter: blur(12px);
}

.waitlist-modal__dialog {
    position: relative;
    width: min(92vw, 700px);
    margin: 3.5rem auto;
    padding: 2.5rem;
    border-radius: 24px;
    z-index: 2;
    box-shadow: 0 0 50px rgba(164, 229, 183, 0.1), inset 0 0 0 1px rgba(164, 229, 183, 0.2);
    border: 1px solid rgba(164, 229, 183, 0.1);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.85);
}

.waitlist-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.waitlist-modal__close:hover {
    background: rgba(164, 229, 183, 0.1);
    color: var(--color-bg-primary);
    transform: scale(1.05);
}

.waitlist-modal__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.waitlist-modal__eyebrow {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-bg-primary);
    font-weight: 700;
}

.waitlist-modal__title {
    margin: 0;
}

.waitlist-modal__subtitle {
    margin: 0 0 1rem;
    opacity: 0.8;
}

.waitlist-form {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .waitlist-form {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    .waitlist-form__group:nth-child(3) {
        grid-column: 1 / -1;
    }
    .waitlist-form__submit {
        grid-column: 1 / -1;
    }
    .waitlist-form__error,
    .waitlist-form__success {
        grid-column: 1 / -1;
    }
}

.waitlist-form__group {
    display: grid;
    gap: 0.45rem;
}

.waitlist-form__group label {
    font-weight: 700;
}

.waitlist-form__group input,
.waitlist-form__group textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: inherit;
    font: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.waitlist-form__group input::placeholder,
.waitlist-form__group textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.waitlist-form__group input:focus,
.waitlist-form__group textarea:focus {
    border-color: rgba(164, 229, 183, 0.6);
    box-shadow: 0 0 0 3px rgba(164, 229, 183, 0.12);
}

.waitlist-form__group textarea {
    min-height: 100px;
    resize: vertical;
}

.waitlist-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-height: 52px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-heading);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 1.5rem;
}

.waitlist-form__submit::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 40%;
    width: 20%;
    height: 1px;
    background-color: var(--color-text-heading);
    transform: scaleX(0) translateZ(0);
    transform-origin: center;
    z-index: 5;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s;
    pointer-events: none;
}

.waitlist-form__submit:hover::after,
.waitlist-form__submit:focus-visible::after {
    transform: scaleX(1) translateZ(0);
}

.waitlist-form__submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
    pointer-events: none;
}

.waitlist-form__submit:hover::before,
.waitlist-form__submit:focus-visible::before {
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%) scale(1.02);
}

.waitlist-form__submit:active::before {
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.1s ease;
    transform: translate(-50%, -50%) scale(0.98);
}

.waitlist-form__error {
    display: none;
    font-size: 0.85rem;
    color: #ff8f8f;
}

.waitlist-form__error.is-visible {
    display: block;
}

.waitlist-form__success {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(164, 229, 183, 0.12);
    border: 1px solid rgba(164, 229, 183, 0.25);
    color: #a4e5b7;
}

@media (max-width: 640px) {
    .waitlist-modal__dialog {
        width: 100%;
        min-height: 100svh;
        margin: 0;
        padding: 3rem 1.5rem 5rem;
        border-radius: 0;
    }
}

/* === GDPR CONSENT CHECKBOX === */
.form-consent-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 1.5rem 0;
    cursor: pointer;
    user-select: none;
}

.form-consent-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-consent-group input[type="checkbox"]:checked {
    background: var(--color-bg-primary);
    border-color: var(--color-bg-primary);
}

.form-consent-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #0d1117;
}

.form-consent-group label {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-body);
    font-weight: 400;
}

.form-consent-group label a {
    color: var(--color-bg-primary);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.form-consent-group label a:hover {
    opacity: 0.8;
}

/* =============================================================================
   Email Verification Toast
   ============================================================================= */
.verified-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 10000;
    padding: 16px 24px;
    min-width: 320px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verified-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.verified-toast__content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verified-toast__content .iconify {
    font-size: 24px;
    color: #a4e5b7;
}

.verified-toast__content p {
    font-weight: 700;
    color: var(--color-text-heading);
    margin: 0;
    font-size: var(--font-size-base);
}

@media (max-width: 768px) {
    .verified-toast {
        width: 90%;
        bottom: 20px;
        padding: 12px 16px;
    }
}

