.gateway-onepage {
    margin: 0; min-height: 100vh; min-height: 100dvh;
    background: #000 url('../img/hex-bg.jpg') center/cover no-repeat fixed;
    color: #fff; font-family: 'Vazirmatn', Tahoma, sans-serif;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem 1rem 2rem; overflow-x: hidden; position: relative;
}
.gateway-onepage::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(0,142,50,.15), transparent 60%),
                rgba(0,0,0,.55);
    z-index: 0; pointer-events: none;
}
#hexCanvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}
.gw-onepage-wrap { width: 100%; max-width: 980px; position: relative; z-index: 2; }
.gw-one-header { margin-bottom: 1.75rem; }
.gw-logo-sm {
    width: 56px; height: 56px; margin: 0 auto .75rem;
    background: rgba(0,142,50,.25); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #008E32;
    animation: gwPulse 2.5s ease-in-out infinite;
}
@keyframes gwPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(0,142,50,.35); }
    50% { box-shadow: 0 0 0 14px rgba(0,142,50,0); }
}
.gw-one-title {
    font-size: clamp(1.75rem, 5vw, 2.4rem); font-weight: 800; margin: 0 0 .35rem;
    background: linear-gradient(135deg, #fff 30%, #008E32);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gw-one-tagline { color: #A7A7A7; margin: 0 0 .25rem; font-size: 1.05rem; }
.gw-one-sub { color: rgba(255,255,255,.45); font-size: .9rem; margin: 0; }

/* برچسب‌ها بیرون و چرخیده — z-index بالای پس‌زمینه، زیر کارت‌ها نه */
.gw-tags {
    position: absolute; inset: -30px -50px; pointer-events: none;
    z-index: 1; overflow: visible;
}
.gw-tag {
    position: absolute; font-size: .7rem; color: rgba(255,255,255,.75);
    background: rgba(0,142,50,.18); border: 1px solid rgba(0,142,50,.4);
    border-radius: 999px; padding: .4rem .85rem; white-space: nowrap;
    backdrop-filter: blur(6px);
    animation: tagFloat 7s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.gw-tag-1 { top: 2%; right: -12%; transform: rotate(12deg); animation-delay: 0s; }
.gw-tag-2 { top: 42%; left: -14%; transform: rotate(-14deg); animation-delay: -1.5s; }
.gw-tag-3 { bottom: 12%; right: -10%; transform: rotate(8deg); animation-delay: -3s; }
.gw-tag-4 { top: -2%; left: 8%; transform: rotate(-6deg); animation-delay: -2s; }
.gw-tag-5 { top: 62%; left: -8%; transform: rotate(16deg); animation-delay: -4s; }
.gw-tag-6 { bottom: 2%; left: 18%; transform: rotate(-10deg); animation-delay: -2.5s; }
.gw-tag-7 { top: 22%; right: -4%; transform: rotate(20deg); animation-delay: -5s; }
.gw-tag-8 { bottom: 28%; left: -12%; transform: rotate(-18deg); animation-delay: -1s; }
@keyframes tagFloat {
    0%, 100% { translate: 0 0; opacity: .75; }
    50% { translate: 0 -8px; opacity: 1; }
}

.gw-cards-container { position: relative; z-index: 3; }
.gw-photo-card {
    display: block; position: relative; border-radius: 20px; overflow: hidden;
    min-height: 280px; color: #fff; text-decoration: none;
    border: 1px solid rgba(0,142,50,.35); box-shadow: 0 8px 32px rgba(0,0,0,.45);
    transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .3s ease;
}
.gw-photo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease; z-index: 0; }
.gw-photo-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.75) 55%, rgba(0,20,10,.9) 100%);
}
.gw-photo-body {
    position: relative; z-index: 2; padding: 2rem 1.5rem;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    min-height: 280px; text-align: center;
}
.gw-photo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 22px 48px rgba(0,142,50,.4), 0 0 0 2px #008E32;
    border-color: #008E32; color: #fff;
}
.gw-photo-card:hover .gw-photo-bg { transform: scale(1.1); }
.gateway-card-icon {
    width: 64px; height: 64px; margin: 0 auto .75rem;
    background: rgba(0,142,50,.35); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; color: #008E32;
}
.gw-photo-card h2 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; margin: .5rem 0 .35rem; }
.gw-photo-card p { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 1rem; }
.gateway-btn {
    display: inline-block; padding: .5rem 1.15rem; background: #008E32; color: #fff;
    border-radius: 8px; font-weight: 600; font-size: .9rem;
}
.gw-photo-card:hover .gateway-btn { background: #00a83a; }
.gw-enter {
    opacity: 0; transform: scale(0.95) translateY(16px);
    animation: gwEnter .7s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes gwEnter { to { opacity: 1; transform: scale(1) translateY(0); } }
.gw-tags-mobile .gw-pill {
    display: inline-block; margin: .25rem; padding: .35rem .75rem; font-size: .8rem;
    background: rgba(0,142,50,.15); border: 1px solid rgba(0,142,50,.3);
    border-radius: 999px; color: #e0e0e0;
}
@media (min-width: 768px) { .gw-photo-card, .gw-photo-body { min-height: 340px; } }
@media (max-width: 767.98px) {
    .gw-photo-card, .gw-photo-body { min-height: 220px; }
    .gw-tags { display: none !important; }
}
