/* ============================================================
   BEYOND [SERVICE] — animated typographic card row
   ============================================================ */

.bey {
    position: relative;
    padding: clamp(80px, 10vw, 140px) clamp(20px, 6vw, 90px);
    background: transparent;
    overflow: hidden;
}

/* ---- Heading block ---- */
.bey-head {
    max-width: 1280px;
    margin: 0 auto clamp(50px, 6vw, 80px);
}

.bey-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, .55);
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 100px;
    margin-bottom: 26px;
}
.bey-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ff9201;
    box-shadow: 0 0 8px rgba(255, 146, 1, .55);
    animation: beyPulse 1.8s ease-in-out infinite;
}
@keyframes beyPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
body.dark-mode .bey-eyebrow { color: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .1); }

.bey-head h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.035em;
    text-transform: uppercase;
    margin: 0 0 24px;
}
.bey-grad {
    font-weight: 300;
    background: linear-gradient(135deg, #ff9201, #00b1e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -.02em;
}

.bey-head p {
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.7;
    max-width: 640px;
    opacity: .65;
    margin: 0;
}

/* ============================================================
   THE CARD ROW
   ============================================================ */
.bey-row {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.bey-card {
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 5 / 7;
    padding: 26px 22px;
    border-radius: 18px;
    background: linear-gradient(160deg, #14141a 0%, #0a0a0e 100%);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 4px 10px rgba(0, 0, 0, .2);
    transform: translateY(40px);
    opacity: 0;
    transition:
        transform .7s cubic-bezier(.2, .7, .3, 1),
        opacity .7s cubic-bezier(.2, .7, .3, 1),
        box-shadow .35s ease;
}
.bey-card.is-in { transform: translateY(0); opacity: 1; }

/* Gradient accent — top edge bar */
.bey-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9201, #00b1e1);
    transform: scaleX(.18);
    transform-origin: left;
    transition: transform .6s cubic-bezier(.2, .7, .3, 1);
    z-index: 3;
}

/* Glow / fill that reveals on hover */
.bey-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 146, 1, .25), transparent 70%),
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 177, 225, .2), transparent 70%);
    opacity: 0;
    transition: opacity .55s ease;
    pointer-events: none;
    z-index: 1;
}

.bey-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 30px 60px rgba(255, 146, 1, .25),
        0 8px 20px rgba(0, 0, 0, .35);
}
.bey-card:hover::before { transform: scaleX(1); }
.bey-card:hover::after { opacity: 1; }

/* ---- Card content ---- */
.bey-card-tag {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 22px;
}
.bey-card-tag::before {
    content: '';
    width: 14px;
    height: 1px;
    background: currentColor;
}

.bey-card-name {
    position: relative;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.025em;
    margin: 0;
    color: #fff;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.bey-card:hover .bey-card-name { transform: translateY(-4px); }

/* Spacer pushes the stat to the bottom */
.bey-card-spacer { flex: 1; }

.bey-card-stat {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}
.bey-card-stat b {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #ff9201, #00b1e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}
.bey-card-stat span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    line-height: 1.4;
}

.bey-card-foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    transition: color .3s;
}
.bey-card:hover .bey-card-foot { color: #fff; }

.bey-card-foot svg {
    width: 16px;
    height: 16px;
    transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}
.bey-card:hover .bey-card-foot svg { transform: translateX(6px); }

/* Stagger reveal delays */
.bey-card:nth-child(1) { transition-delay: 0s; }
.bey-card:nth-child(2) { transition-delay: .08s; }
.bey-card:nth-child(3) { transition-delay: .16s; }
.bey-card:nth-child(4) { transition-delay: .24s; }
.bey-card:nth-child(5) { transition-delay: .32s; }

/* Subtle ambient motion — gradient slowly drifts */
@keyframes beyDrift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================================
   "ALL SIX" FOOTER
   ============================================================ */
.bey-all-wrap {
    text-align: center;
    margin-top: clamp(50px, 6vw, 80px);
}
.bey-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    border: 1.5px solid currentColor;
    border-radius: 100px;
    transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.bey-all:hover {
    background: linear-gradient(135deg, #ff9201, #00b1e1);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}
.bey-all svg { width: 16px; height: 16px; transition: transform .35s; }
.bey-all:hover svg { transform: translateX(6px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
    .bey-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 760px) {
    .bey { padding: 70px 5vw 80px; }
    .bey-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .bey-card { aspect-ratio: 4 / 5; padding: 20px 18px; }
    .bey-card-name { font-size: clamp(1.3rem, 5vw, 1.8rem); }
    .bey-card-stat b { font-size: clamp(1.4rem, 6vw, 2rem); }
}
@media (max-width: 480px) {
    .bey-row { grid-template-columns: 1fr; gap: 14px; }
    .bey-card { aspect-ratio: 5 / 4; }
}

/* ============================================================
   RTL
   ============================================================ */
body.rtl .bey-card { direction: rtl; text-align: right; }
body.rtl .bey-card-tag::before { display: none; }
body.rtl .bey-card-tag::after { content: ''; width: 14px; height: 1px; background: currentColor; }
body.rtl .bey-card-foot svg { transform: scaleX(-1); }
body.rtl .bey-card:hover .bey-card-foot svg { transform: scaleX(-1) translateX(-6px); }
body.rtl .bey-card::before { transform-origin: right; }
body.rtl .bey-all svg { transform: scaleX(-1); }
body.rtl .bey-all:hover svg { transform: scaleX(-1) translateX(-6px); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .bey-card { transform: none; opacity: 1; transition: none; }
    .bey-card::before, .bey-card::after { transition: none; }
    .bey-card:hover { transform: none; }
}
