/* ============================================
   GLOBAL REACH PAGE — gr- prefix
   ============================================ */


/* HEADER (solid white to match the top wave) */

.header {
    background-color: #ffffff;
}


/* HERO (dark, centered, full viewport) */

.gr-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: var(--color-ink);
    padding: 0 25px;
    position: relative;
    overflow: hidden;
}

.gr-hero .gr-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.gr-hero .gr-hero__bg .gr-hero__char {
    position: absolute;
    color: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

.gr-hero .gr-hero__bg .gr-hero__char--drift-a {
    animation: grDriftA 12s ease-in-out infinite;
}

.gr-hero .gr-hero__bg .gr-hero__char--drift-b {
    animation: grDriftB 15s ease-in-out infinite;
}

.gr-hero .gr-hero__bg .gr-hero__char--drift-c {
    animation: grDriftC 18s ease-in-out infinite;
}

@keyframes grDriftA {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

@keyframes grDriftB {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(15px) rotate(-2deg); }
    66% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes grDriftC {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(-3deg); }
    75% { transform: translateY(10px) rotate(4deg); }
}

.gr-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,0 L1440,0 L1440,32 C1200,72 960,8 720,48 C480,80 240,20 0,56 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.gr-hero .gr-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gr-hero .gr-hero__inner .gr-hero__logo {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.gr-hero .gr-hero__inner .gr-hero__headline {
    font-size: 28px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 25px rgba(0, 0, 0, 0.3);
}

.gr-hero .gr-hero__inner .gr-hero__subheadline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0;
    max-width: 650px;
}


/* TICKER WAVE (visible wave between dark hero and dark ticker) */

.gr-hero + .global-reach-section {
    background: #1e293b;
}

.gr-hero + .global-reach-section::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%231e293b' d='M0,56 C180,72 320,8 540,24 C760,40 900,72 1100,16 C1260,-12 1380,48 1440,64 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
}


/* HOW IT WORKS (white section) */

.gr-how {
    background: var(--color-surface);
    position: relative;
    z-index: 1;
}

.gr-how::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,40 C200,72 420,-8 680,32 C940,72 1160,0 1440,48 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.gr-how .content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
}

.gr-how .content-inner .gr-how__description {
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.gr-how .content-inner .gr-how__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    width: 100%;
}

.gr-how .content-inner .gr-how__steps .gr-how__step {
    flex: 1 1 280px;
    max-width: 380px;
    background: var(--color-background);
    border-radius: 10px;
    padding: 50px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gr-how .content-inner .gr-how__steps .gr-how__step .gr-how__step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-secondary);
    opacity: 0.5;
    line-height: 1;
}

.gr-how .content-inner .gr-how__steps .gr-how__step .gr-how__step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0;
}

.gr-how .content-inner .gr-how__steps .gr-how__step .gr-how__step-desc {
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
}


/* LANGUAGE SHOWCASE (light blue section) */

.gr-showcase {
    background: #dbeafe;
    position: relative;
    z-index: 1;
}

.gr-showcase::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23dbeafe' d='M0,24 C240,68 480,4 720,56 C960,80 1200,12 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.gr-showcase .content-inner {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.gr-showcase .content-inner .gr-showcase__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.gr-showcase .content-inner .gr-showcase__grid .gr-showcase__email {
    flex: 1 1 280px;
    max-width: 340px;
    background: var(--color-surface);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.gr-showcase .content-inner .gr-showcase__grid .gr-showcase__email .gr-showcase__email-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: var(--color-background);
}

.gr-showcase .content-inner .gr-showcase__grid .gr-showcase__email .gr-showcase__email-header .gr-showcase__email-flag {
    font-size: 20px;
}

.gr-showcase .content-inner .gr-showcase__grid .gr-showcase__email .gr-showcase__email-header .gr-showcase__email-lang {
    font-weight: 600;
    color: var(--color-ink);
}

.gr-showcase .content-inner .gr-showcase__grid .gr-showcase__email .gr-showcase__email-subject {
    padding: 25px 25px 10px;
    font-weight: 700;
    color: var(--color-ink);
    font-size: 14px;
}

.gr-showcase .content-inner .gr-showcase__grid .gr-showcase__email .gr-showcase__email-body {
    padding: 0 25px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
}

.gr-showcase .content-inner .gr-showcase__grid .gr-showcase__email .gr-showcase__email-sender {
    padding: 25px;
    font-size: 11px;
    color: var(--color-secondary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.gr-showcase .content-inner .gr-showcase__grid .gr-showcase__email--rtl .gr-showcase__email-subject,
.gr-showcase .content-inner .gr-showcase__grid .gr-showcase__email--rtl .gr-showcase__email-body {
    text-align: right;
}


/* STATS (dark section) */

.gr-stats {
    background: var(--color-ink);
    position: relative;
    z-index: 1;
}

.gr-stats::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%230f172a' d='M0,64 C300,16 520,72 760,28 C1000,-16 1200,56 1440,32 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.gr-stats .content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
}

.gr-stats .content-inner .section-header .section-title {
    color: #ffffff;
}

.gr-stats .content-inner .gr-stats__description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.gr-stats .content-inner .gr-stats__items {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    width: 100%;
}

.gr-stats .content-inner .gr-stats__items .gr-stats__item {
    flex: 1 1 250px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.gr-stats .content-inner .gr-stats__items .gr-stats__item .gr-stats__item-value {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.gr-stats .content-inner .gr-stats__items .gr-stats__item .gr-stats__item-label {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.gr-stats .content-inner .gr-stats__items .gr-stats__item .gr-stats__item-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}


/* USE CASES (surface section) */

.gr-cases {
    background: var(--color-background);
    position: relative;
    z-index: 1;
}

.gr-cases::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f6f7fc' d='M0,48 C160,8 380,72 600,20 C820,-24 1080,64 1440,56 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.gr-cases .content-inner {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.gr-cases .content-inner .gr-cases__list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.gr-cases .content-inner .gr-cases__list .gr-cases__card {
    flex: 1 1 280px;
    max-width: 320px;
    background: var(--color-surface);
    border-radius: 10px;
    padding: 50px 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.gr-cases .content-inner .gr-cases__list .gr-cases__card .gr-cases__card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.gr-cases .content-inner .gr-cases__list .gr-cases__card .gr-cases__card-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.gr-cases .content-inner .gr-cases__list .gr-cases__card .gr-cases__card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0;
}

.gr-cases .content-inner .gr-cases__list .gr-cases__card .gr-cases__card-desc {
    color: var(--color-muted);
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}


/* FAQ WAVE DIVIDER (dark FAQ from faq-editorial) */

.gr-faq-wave {
    position: relative;
    z-index: 1;
}

.gr-faq-wave::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%230f172a' d='M0,32 C280,72 460,-4 720,44 C980,80 1140,8 1440,52 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}


/* CTA (light blue section, after dark FAQ) */

.gr-cta {
    background: #dbeafe;
    position: relative;
    z-index: 1;
}

.gr-cta::before {
    content: "";
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23dbeafe' d='M0,60 C340,4 560,68 800,24 C1040,-20 1280,52 1440,44 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.gr-cta .content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.gr-cta .content-inner .gr-cta__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0;
}

.gr-cta .content-inner .gr-cta__subtitle {
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 500px;
    margin: 0;
}

.gr-cta .content-inner .gr-cta__subtext {
    font-size: 13px;
    color: var(--color-muted);
    margin: 0;
}


/* FLOATING CTA */

.gr-floating-cta {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
}


/* RESPONSIVE — TABLET (768px+) */

@media (min-width: 768px) {

    .gr-hero .gr-hero__inner .gr-hero__logo {
        width: 75px;
        height: 75px;
    }

    .gr-hero .gr-hero__inner .gr-hero__headline {
        font-size: 40px;
    }

    .gr-stats .content-inner .gr-stats__items .gr-stats__item .gr-stats__item-value {
        font-size: 64px;
    }

    .gr-cta .content-inner .gr-cta__title {
        font-size: 36px;
    }

}


/* RESPONSIVE — DESKTOP (1024px+) */

@media (min-width: 1024px) {

    .gr-hero .gr-hero__inner .gr-hero__headline {
        font-size: 48px;
    }

    .gr-stats .content-inner .gr-stats__items .gr-stats__item .gr-stats__item-value {
        font-size: 80px;
    }

    .gr-cta .content-inner .gr-cta__title {
        font-size: 42px;
    }

}


/* RESPONSIVE — MOBILE WAVE DIVIDERS */

@media (max-width: 767px) {

    .gr-how::before,
    .gr-showcase::before,
    .gr-stats::before,
    .gr-cases::before,
    .gr-faq-wave::before,
    .gr-cta::before {
        height: 50px;
        top: -49px;
    }

    .gr-hero .gr-hero__bg .gr-hero__char {
        opacity: 0.5;
    }

    .gr-hero::after {
        height: 25px;
    }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .gr-hero .gr-hero__bg .gr-hero__char--drift-a,
    .gr-hero .gr-hero__bg .gr-hero__char--drift-b,
    .gr-hero .gr-hero__bg .gr-hero__char--drift-c {
        animation: none;
    }

}
