/*
 * Site — home page
 * ---------------------------------------------------------------------------
 * Sections unique to the landing page: hero, network cards, pinned steps,
 * feature marquees, service cards, and coverage map. Loads after base.css.
 */

/* Hero */
.site-hero {
    min-height: 100vh;
    padding: 7rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.site-hero__squiggle {
    position: absolute;
    pointer-events: none;
    opacity: 0.35;
}

.site-hero__squiggle--1 {
    top: 12%;
    right: -5%;
    width: 280px;
}

.site-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - 8rem);
}

.site-hero__eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rt-green-mid);
    margin-bottom: 1rem;
}

.site-hero__title {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.site-hero__title-line {
    display: block;
}

/*
 * Rotating hero word. Every word is stacked into a single grid cell, so the
 * container sizes itself to the widest/tallest word with no JS measurement —
 * the old measure-then-set-pixel-height approach ran before the webfont
 * settled and clipped the word in half.
 *
 * The padding/negative-margin pair adds slack inside the overflow clip for
 * ascenders and descenders without moving the text off its baseline.
 */
.site-hero__rotate {
    display: inline-grid;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
    color: var(--rt-green);
    line-height: 1.05;
    padding-block: 0.1em;
    margin-block: -0.1em;
}

.site-hero__rotate .word {
    grid-area: 1 / 1;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

/*
 * No-JS / no-GSAP fallback. The animated state absolutely positions every
 * word and relies on GSAP to give the container its width and height, so
 * without GSAP the first word must sit in normal flow or it is clipped to
 * a zero-height box.
 */
.site-hero__rotate:not(.is-animated) .word:first-child {
    visibility: visible;
    opacity: 1;
}

.site-hero__rotate.is-animated .word {
    visibility: visible;
}

.site-hero__sub {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--rt-muted);
    max-width: 28rem;
    margin-bottom: 2rem;
}

.site-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.site-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}

.site-hero__ambient {
    position: absolute;
    inset: -8% -12%;
    pointer-events: none;
    z-index: 0;
}

.site-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.55;
}

.site-hero__orb--1 {
    width: 280px;
    height: 280px;
    top: 5%;
    left: 10%;
    background: radial-gradient(circle, rgba(27, 77, 62, 0.4), transparent 70%);
}

.site-hero__orb--2 {
    width: 220px;
    height: 220px;
    bottom: 8%;
    right: 5%;
    background: radial-gradient(circle, rgba(45, 122, 99, 0.4), transparent 70%);
}

.site-hero__orb--3 {
    width: 160px;
    height: 160px;
    top: 35%;
    right: 18%;
    background: radial-gradient(circle, rgba(132, 225, 188, 0.55), transparent 70%);
}

.site-hero__arc {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: site-arc-spin 48s linear infinite;
}

@keyframes site-arc-spin {
    to {
        transform: rotate(360deg);
    }
}

.site-phone {
    position: relative;
    z-index: 1;
    width: min(340px, 90%);
    border-radius: 2.5rem;
    padding: 0.75rem;
    background: linear-gradient(155deg, #2a2a2a 0%, #111 55%, #3a3a3a 100%);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transform: rotate(-4deg);
}

.site-phone__screen {
    border-radius: 2rem;
    overflow: hidden;
    background: var(--rt-green-light);
    aspect-ratio: 9/19;
    position: relative;
}

.site-phone__shot {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.site-phone__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(160deg, var(--rt-green-light), #fff);
    text-align: center;
}

.site-phone__placeholder i {
    font-size: 3rem;
    color: var(--rt-green);
}

.site-float-card {
    position: absolute;
    background: var(--rt-white);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-float-card--1 {
    top: 8%;
    left: -8%;
    z-index: 2;
}

.site-float-card--2 {
    bottom: 12%;
    right: -5%;
    background: var(--rt-green-mid);
    color: var(--rt-white);
    z-index: 2;
}


/* Network */
.site-network {
    padding: 6rem 0;
    background: var(--rt-white);
}

.site-network__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.site-network-card {
    border-radius: var(--rt-radius-lg);
    padding: 2rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    color: var(--rt-white);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-network-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
    z-index: 1;
}

.site-network-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.site-network-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.site-network-card:hover .site-network-card__bg {
    transform: scale(1.08);
}

.site-network-card--vendor {
    background-color: var(--rt-green);
}

.site-network-card--rider {
    background-color: var(--rt-green-mid);
}

.site-network-card--team {
    background-color: var(--rt-green-dark);
}

.site-network-card__content {
    position: relative;
    z-index: 2;
}

.site-network-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.site-network-card p {
    font-size: 0.9375rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.site-network-card__link {
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}


/* Steps (pinned scroll) */
.site-steps-wrap {
    background: var(--rt-green-muted);
}

.site-steps {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    padding: 6rem 0;
    min-height: 100vh;
}

.site-steps__sticky h2 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.site-steps__sticky p {
    margin-top: 1rem;
    color: var(--rt-muted);
    font-size: 1.0625rem;
    max-width: 22rem;
}

.site-steps__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.site-step {
    background: var(--rt-white);
    border-radius: var(--rt-radius-lg);
    padding: 2rem 2.25rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    opacity: 0.4;
    transform: translateY(24px);
    transition: opacity 0.4s, transform 0.4s, box-shadow 0.4s;
}

.site-step.is-active {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 20px 50px rgba(27, 77, 62, 0.12);
}

.site-step__num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--rt-green-light);
    line-height: 1;
    -webkit-text-stroke: 2px var(--rt-green);
    color: transparent;
}

.site-step.is-active .site-step__num {
    color: var(--rt-green);
    -webkit-text-stroke: 0;
}

.site-step h3 {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.site-step p {
    color: var(--rt-muted);
    line-height: 1.6;
}


/* Marquee features */
.site-covered {
    padding: 6rem 0;
    overflow: hidden;
}

.site-covered__intro {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 3rem;
}

.site-covered__intro p {
    color: var(--rt-muted);
    font-size: 1.0625rem;
    margin-top: 1rem;
    line-height: 1.65;
}

.site-marquee {
    overflow: hidden;
    padding: 1rem 0;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.site-marquee__track {
    display: flex;
    gap: 1rem;
    width: max-content;
}

.site-marquee__item {
    flex-shrink: 0;
    padding: 0.85rem 1.35rem;
    background: var(--rt-white);
    border: 2px solid var(--rt-ink);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.site-marquee--reverse .site-marquee__track {
    margin-top: 1rem;
}


/* Categories */
.site-categories {
    padding: 6rem 0;
    background: var(--rt-green);
    color: var(--rt-white);
}

.site-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.site-category-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--rt-radius-lg);
    padding: 2rem;
    transition: background 0.3s, transform 0.3s;
}

.site-category-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-6px);
}

.site-category-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.site-category-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.site-category-card p {
    opacity: 0.85;
    font-size: 0.9375rem;
    line-height: 1.55;
}


/* Map / coverage */
.site-map {
    padding: 6rem 0;
    background: var(--rt-white);
}

.site-map__box {
    border-radius: var(--rt-radius-lg);
    background: var(--rt-green-muted);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site-map__dots {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: radial-gradient(var(--rt-green) 2px, transparent 2px);
    background-size: 28px 28px;
}

.site-map__pins {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

.site-map__pin {
    padding: 0.5rem 1rem;
    background: var(--rt-white);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8125rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    cursor: default;
    transition: transform 0.25s, background 0.25s;
}

.site-map__pin:hover {
    transform: scale(1.05);
    background: var(--rt-green-light);
}


.site-map__text {
    position: relative;
    z-index: 1;
    color: var(--rt-muted);
    max-width: 28rem;
    line-height: 1.65;
}

.site-map__pins {
    list-style: none;
}

@media (max-width: 992px) {
    .site-hero__grid,
    .site-steps,
    .site-network__grid,
    .site-categories__grid {
        grid-template-columns: 1fr;
    }

    .site-steps {
        min-height: auto;
    }

    .site-network-card {
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .site-hero__title {
        font-size: 2.5rem;
    }

    .site-float-card {
        display: none;
    }

    .site-hero__visual {
        min-height: 440px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-hero__arc {
        animation: none;
    }
}
