:root {
    --da-lime: #C6FF33;
    --da-black: #000000;
    --da-white: #FFFFFF;
    --da-violet: #7D39EB;
    --da-muted: rgba(255, 255, 255, 0.68);
    --da-border: rgba(255, 255, 255, 0.12);
    --da-border-violet: rgba(125, 57, 235, 0.34);
    --da-radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Figtree", Arial, sans-serif;
    color: var(--da-white);
    background: var(--da-black);
}

a {
    color: inherit;
    text-decoration: none;
}

.gateway {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.gateway::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
    pointer-events: none;
    z-index: -2;
}

.gateway::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 5%, rgba(125, 57, 235, 0.48), transparent 34%),
        radial-gradient(circle at 8% 92%, rgba(198, 255, 51, 0.18), transparent 28%),
        linear-gradient(145deg, rgba(125, 57, 235, 0.08), transparent 46%);
    z-index: -3;
}

.gateway-bg {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: -2;
}

.gateway-bg-1 {
    width: 640px;
    height: 640px;
    right: -260px;
    top: -260px;
    background: rgba(125, 57, 235, 0.38);
    animation: float-orb 12s ease-in-out infinite;
}

.gateway-bg-2 {
    width: 520px;
    height: 520px;
    left: -260px;
    bottom: -280px;
    background: rgba(198, 255, 51, 0.2);
    animation: float-orb 14s ease-in-out infinite reverse;
}

.gateway-header {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gateway-logo {
    display: inline-flex;
    align-items: center;
}

.gateway-logo img {
    height: 32px;
    width: auto;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.22));
}

.gateway-back {
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--da-border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--da-white);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.gateway-back:hover {
    transform: translateY(-2px);
    border-color: rgba(198, 255, 51, 0.52);
    background: rgba(198, 255, 51, 0.08);
}

.gateway-hero {
    width: min(1180px, 100%);
    margin: auto auto 34px;
    padding-top: clamp(56px, 8vw, 110px);
}

.gateway-label {
    margin: 0 0 14px;
    color: var(--da-lime);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
}

.gateway h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(54px, 10vw, 128px);
    line-height: 0.9;
    letter-spacing: 0;
    font-weight: 700;
}

.gateway-text {
    max-width: 720px;
    margin: 28px 0 0;
    color: var(--da-muted);
    font-size: clamp(19px, 2.3vw, 28px);
    line-height: 1.32;
    font-weight: 500;
}

.gateway-grid {
    width: min(1180px, 100%);
    margin: auto auto;
    padding-top: clamp(74px, 14vh, 170px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-self: center;
}

.gateway-card {
    min-height: 272px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--da-border-violet);
    border-radius: var(--da-radius);
    padding: 28px;
    background:
        radial-gradient(circle at 78% 18%, rgba(125, 57, 235, 0.24), transparent 32%),
        rgba(255, 255, 255, 0.06);
    display: grid;
    grid-template-rows: 86px minmax(92px, 1fr) 46px;
    align-content: stretch;
    gap: 18px;
    transition: transform 0.32s ease, border-color 0.32s ease, background-color 0.32s ease, box-shadow 0.32s ease;
}

.gateway-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.14) 42%, rgba(198, 255, 51, 0.24) 50%, transparent 58%);
    opacity: 0;
    transform: translateX(-120%);
    transition: opacity 0.32s ease;
    pointer-events: none;
}

.gateway-card::after {
    content: "";
    position: absolute;
    inset: auto -18% -42% 16%;
    height: 142px;
    border-radius: 999px;
    background: rgba(125, 57, 235, 0.18);
    transform: rotate(-10deg);
    transition: transform 0.32s ease, opacity 0.32s ease;
    opacity: 0.72;
}

.gateway-card:hover {
    transform: translateY(-8px);
    border-color: rgba(198, 255, 51, 0.58);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.gateway-card:hover::before {
    opacity: 1;
    animation: card-scan 1.05s ease forwards;
}

.gateway-card:hover::after {
    transform: rotate(-6deg) translateY(-18px);
    opacity: 1;
}

.gateway-card-lime {
    color: var(--da-white);
    background:
        radial-gradient(circle at 82% 14%, rgba(198, 255, 51, 0.34) 0 10%, rgba(198, 255, 51, 0.14) 18%, transparent 28%),
        radial-gradient(circle at 12% 100%, rgba(125, 57, 235, 0.2), transparent 34%),
        rgba(255, 255, 255, 0.06);
    border-color: rgba(198, 255, 51, 0.28);
    box-shadow: inset 0 0 0 1px rgba(198, 255, 51, 0.08);
}

.gateway-card-lime::after {
    inset: auto -12% -22% 54%;
    height: 98px;
    background: rgba(198, 255, 51, 0.24);
    box-shadow: 0 0 46px rgba(198, 255, 51, 0.18);
    opacity: 0.68;
}

.gateway-card-locked {
    background:
        radial-gradient(circle at 86% 16%, rgba(198, 255, 51, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(125, 57, 235, 0.22), rgba(255, 255, 255, 0.04));
}

.gateway-icon {
    width: 86px;
    height: 86px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--da-lime);
    background: rgba(0, 0, 0, 0.22);
    transition: transform 0.32s ease, background-color 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
    z-index: 1;
}

.gateway-card-lime .gateway-icon {
    color: var(--da-lime);
    background: rgba(198, 255, 51, 0.08);
    border-color: rgba(198, 255, 51, 0.18);
}

.gateway-card:hover .gateway-icon {
    transform: translateY(-4px) scale(1.04);
    box-shadow: inset 0 0 0 1px rgba(198, 255, 51, 0.2), 0 18px 44px rgba(0, 0, 0, 0.24);
}

.gateway-icon img {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: contain;
    border-radius: 14px;
    transform: scale(1);
    transition: transform 0.32s ease, filter 0.32s ease;
}

.mail-icon img {
    width: 66px;
    height: 54px;
}

.service-icon img {
    width: 68px;
    height: 68px;
}

.server-icon img {
    width: 66px;
    height: 66px;
}

.gateway-card:hover .gateway-icon img {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 10px 22px rgba(198, 255, 51, 0.2));
}

.gateway-card-lime:hover .gateway-icon img {
    filter: drop-shadow(0 10px 22px rgba(198, 255, 51, 0.2));
}

.gateway-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    gap: 12px;
    min-width: 0;
}

.gateway-card strong {
    max-width: 330px;
    font-size: clamp(26px, 2.55vw, 34px);
    line-height: 1;
    font-weight: 750;
    letter-spacing: 0;
}

.gateway-card small {
    max-width: 330px;
    color: var(--da-muted);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
}

.gateway-action {
    position: relative;
    z-index: 1;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    align-self: end;
}

.gateway-action-text {
    color: currentColor;
    opacity: 0.74;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.gateway-card:hover .gateway-action-text {
    opacity: 1;
    transform: translateX(2px);
}

.gateway-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--da-white);
    color: var(--da-black);
    font-size: 20px;
    font-weight: 800;
    transition: transform 0.32s ease, background-color 0.32s ease;
    flex: 0 0 auto;
}

.gateway-card:hover .gateway-arrow {
    transform: translate(4px, -4px);
    background: var(--da-lime);
}

.gateway-admin {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(198, 255, 51, 0.28);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: var(--da-lime);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    margin-left: auto;
    white-space: nowrap;
    transition: transform 0.32s ease, background-color 0.32s ease, color 0.32s ease;
}

.gateway-card:hover .gateway-admin {
    transform: translateY(-2px);
    background: var(--da-lime);
    color: var(--da-black);
}

@media (max-width: 980px) {
    .gateway-grid {
        grid-template-columns: 1fr;
        padding-top: clamp(54px, 9vh, 96px);
    }

    .gateway-card {
        min-height: 230px;
        grid-template-rows: 76px minmax(76px, 1fr) 46px;
    }
}

@media (max-width: 560px) {
    .gateway {
        padding: 22px 16px;
    }

    .gateway-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .gateway-back {
        min-height: 42px;
        padding: 0 18px;
    }

    .gateway-hero {
        padding-top: 52px;
        margin-bottom: 24px;
    }

    .gateway-logo img {
        height: 28px;
    }

    .gateway-card {
        min-height: 228px;
        padding: 22px;
        grid-template-rows: 74px minmax(82px, 1fr) 46px;
    }

    .gateway-icon {
        width: 74px;
        height: 74px;
        border-radius: 18px;
    }
}

@keyframes float-orb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, -14px, 0) scale(1.04);
    }
}

@keyframes card-scan {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes icon-pop {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
