/* ============================================
   RMDS - Cinematic Editorial Design
   Full-screen sections with dramatic typography,
   split compositions, and scroll-driven animations
   ============================================ */

/* ============================================
   1. CUSTOM PROPERTIES
   ============================================ */

:root {
    /* Colors */
    --ink: #0c1018;
    --ink-90: #141926;
    --ink-80: #1e2534;
    --slate: #333333;
    --steel: #999999;
    --silver: #9ba3bf;
    --mist: #c9cfdf;
    --cloud: #e8ebf2;
    --snow: #f5f5f5;
    --white: #ffffff;

    --blue: #0274be;
    --blue-dark: #0162a0;
    --blue-light: #3d9fd8;
    --blue-glow: rgba(2, 116, 190, 0.15);

    /* Typography */
    --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Sizing */
    --nav-height: 80px;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ============================================
   2. RESET & BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

::selection {
    background: var(--blue);
    color: var(--white);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--ink);
}
::-webkit-scrollbar-thumb {
    background: var(--blue);
}

/* ============================================
   3. NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    transition: all 0.4s var(--ease-out-expo);
}

.nav--scrolled {
    padding: 1rem 3rem;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    background: var(--ink);
}

.nav__logo img {
    height: 22px;
    transition: opacity 0.3s;
    filter: brightness(0) invert(1);
}

.nav__logo:hover img {
    opacity: 0.7;
}

.nav__cta {
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s var(--ease-out-expo);
}

.nav__cta:hover {
    background: var(--blue);
    border-color: var(--blue);
    transform: translateY(-2px);
}

.nav--scrolled .nav__cta {
    background: var(--blue);
    border-color: var(--blue);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    opacity: 0.85;
    transition: opacity 0.3s;
}

.nav__link:hover {
    opacity: 1;
}

/* ============================================
   4. SCENES (Full-Screen Sections)
   ============================================ */

.scene {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scene__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Shared noise texture overlay */
.scene__noise {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Shared gradient layer base - positioned absolutely to fill parent */
.scene__gradient,
.challenge__gradient,
.about__gradient,
.services__gradient,
.platform__gradient,
.contact__gradient {
    position: absolute;
    inset: 0;
}

.scene__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

@media (min-width: 768px) {
    .scene__content {
        padding: 5rem 4rem;
    }
}

/* ============================================
   5. TYPOGRAPHY UTILITIES
   ============================================ */

.overline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1rem;
}

.overline--light {
    color: var(--blue-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.section-title--light {
    color: var(--white);
}

.section-title em {
    font-style: italic;
    color: var(--blue);
}

.section-title--light em {
    color: var(--blue-light);
}

.section-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--slate);
    margin-top: 1.5rem;
    max-width: 540px;
    letter-spacing: 0.5px;
}

/* ============================================
   6. SHARED CARD COMPONENTS
   ============================================ */

/* Base glassmorphic card - shared by all card types */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Animated gradient border effect - add to any glass-card */
.glass-card--bordered::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%, rgba(2,116,190,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: inherit;
}

.glass-card--bordered:hover::before {
    opacity: 1;
}

/* Base icon container - shared by all card icons */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-glow);
    color: var(--blue);
    transition: all 0.4s var(--ease-out-expo);
}

.glass-card:hover .card-icon {
    background: var(--blue);
    color: var(--white);
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   7. SCENE: HERO
   ============================================ */

.scene--hero {
    background: var(--ink);
    color: var(--white);
}

.scene--hero .scene__gradient {
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(2,116,190,0.25) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(2,116,190,0.12) 0%, transparent 50%);
}

/* Hero Main Container */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 8rem 4rem 10rem;
}

/* Hero Header - Top Section */
.hero__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    max-width: 900px;
}

/* Hero Brand - Tagline */
.hero__brand {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.hero__logo img {
    height: 26px;
    transition: opacity 0.3s;
    filter: brightness(0) invert(36%) sepia(98%) saturate(1000%) hue-rotate(187deg) brightness(93%);
}

.hero__tagline {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.75;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.hero__headline em {
    font-style: normal;
    color: var(--blue-light);
    opacity: 0.6;
}

.hero__answer {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 3rem;
}

.hero__answer .highlight-underline {
    color: var(--blue-light);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.link__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--blue);
    transition: all 0.3s var(--ease-out-expo);
}

.link__cta:hover {
    color: var(--blue-light);
    text-shadow: 0 0 20px rgba(61, 159, 216, 0.5);
}

.link__cta svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-out-expo);
}

.link__cta:hover svg {
    transform: translateX(4px);
}

/* Hero Footer - Glass Panel */
.hero__footer {
    position: absolute;
    bottom: 2rem;
    left: 4rem;
    right: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero__footer-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
}

.hero__footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
}

.hero__stat {
    text-align: center;
}

.hero__stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero__stat-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* Hero Scroll */
.hero__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero__scroll-text {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: -100%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav__menu {
        display: none;
    }

    .nav__cta {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero__header {
        max-width: 100%;
    }

    .hero__brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .hero__logo img {
        height: 18px;
    }

    .hero__tagline {
        font-size: 0.6875rem;
        letter-spacing: 0.09em;
        padding-left: 0;
        border-left: none;
        padding-top: 0;
        border-top: none;
        opacity: 0.7;
        text-align: left;
    }

    .hero__headline {
        font-size: 1.5rem;
        white-space: normal;
        margin-bottom: 1rem;
        text-align: left;
    }

    .hero__answer {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .hero__footer {
        display: none;
    }

    .platform-cta__solution img.platform-cta__solution-logo {
        display: none;
    }

    .link__cta {
        font-size: 1rem;
    }

}

/* ============================================
   8. SCENE: CHALLENGE
   ============================================ */

.scene--challenge {
    background: var(--ink);
    min-height: 80vh;
}

/* Challenge Background System - Smooth flow from Hero */
.scene--challenge .challenge__gradient {
    background:
        linear-gradient(180deg,
            var(--ink) 0%,
            var(--ink-90) 50%,
            var(--ink) 100%
        ),
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(2, 116, 190, 0.18) 0%, transparent 60%);
}

/* Challenge Layout - Centered editorial */
.challenge-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
}

/* Challenge Intro Text */
.challenge__intro {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--silver);
    margin-top: 0.5rem;
}

/* Challenge Pillars */
.challenge__pillars {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.challenge__pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2.5rem;
    border-radius: 20px;
    width: 270px;
}

.challenge__pillar:hover {
    box-shadow:
        0 20px 40px -20px rgba(0, 0, 0, 0.4),
        0 0 60px -30px rgba(2, 116, 190, 0.3);
}

.challenge__pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.challenge__pillar:hover .challenge__pillar-icon {
    transform: scale(1.1);
    box-shadow: 0 0 40px -5px rgba(2, 116, 190, 0.5);
}

.challenge__pillar-icon svg {
    width: 28px;
    height: 28px;
}

.challenge__pillar span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--silver);
    letter-spacing: 0.5px;
}

/* Challenge Statement */
.challenge__statement {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}


/* Mobile adjustments for Challenge */
@media (max-width: 767px) {
    .challenge__pillars {
        gap: 1rem;
    }

    .challenge__pillar {
        padding: 1.5rem 2rem;
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
    }

    .challenge__pillar-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .challenge__pillar-icon svg {
        width: 22px;
        height: 22px;
    }

    .challenge__pillar span {
        font-size: 0.875rem;
    }
}

/* ============================================
   9. SCENE: ABOUT
   ============================================ */

.scene--about {
    background: var(--ink);
    min-height: auto;
    overflow: visible;
}

.scene--about .scene__bg {
    overflow: hidden;
}

/* About Background System */
.scene--about .about__gradient {
    background:
        /* Consistent dark background with subtle depth */
        linear-gradient(180deg,
            var(--ink) 0%,
            var(--ink-90) 50%,
            var(--ink-80) 100%
        ),
        /* Blue accent glow */
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(2, 116, 190, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(2, 116, 190, 0.12) 0%, transparent 50%);
}

/* Typography variants for About section */
.section-title--large {
    font-size: clamp(2.25rem, 6vw, 3rem);
}

.section-lead--light {
    color: var(--silver);
}

/* Split Layout - shared */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr 1.2fr;
        gap: 6rem;
        align-items: start;
    }
}

.split-layout__text {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.split-layout__cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* About section split layout specifics */
.split-layout--about .split-layout__text {
    padding-right: 2rem;
}

.split-layout__text .link__cta {
    margin-top: 2rem;
}

/* Value Cards */
.value-card--glass {
    padding: 2rem 2rem 2rem 5rem;
    border-radius: 20px;
}

.value-card--glass:hover {
    box-shadow:
        0 20px 40px -20px rgba(0, 0, 0, 0.4),
        0 0 60px -30px rgba(2, 116, 190, 0.3);
}

/* Card Icon */
.value-card__icon {
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.value-card--glass:hover .value-card__icon {
    transform: scale(1.1);
}

.value-card__icon svg {
    width: 20px;
    height: 20px;
}

.value-card--glass h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.value-card--glass p {
    font-size: 1.1rem;
    color: var(--silver);
    line-height: 1.8;
    max-width: 360px;
    letter-spacing: 0.5px;
}

/* Featured card variant */
.value-card--glass.value-card--featured {
    background: linear-gradient(135deg, rgba(2, 116, 190, 0.1) 0%, rgba(2, 116, 190, 0.05) 100%);
    border-color: rgba(2, 116, 190, 0.2);
}

.value-card--glass.value-card--featured:hover {
    background: linear-gradient(135deg, rgba(2, 116, 190, 0.15) 0%, rgba(2, 116, 190, 0.08) 100%);
    border-color: rgba(2, 116, 190, 0.3);
}

/* Mobile adjustments for About section */
@media (max-width: 1023px) {
    .split-layout--about .split-layout__text {
        padding-right: 0;
        position: relative;
        top: auto;
    }

    .value-card--glass {
        padding: 1.5rem 1.5rem 1.5rem 4.5rem;
    }

    .value-card__icon {
        left: 1rem;
        top: 1.5rem;
        width: 36px;
        height: 36px;
    }

}

/* ============================================
   10. SCENE: SERVICES
   ============================================ */

.scene--services {
    background: var(--ink);
    min-height: auto;
}

.services-subtitle {
    margin-top: 1.25rem;
}

/* Services Logo Watermark */
.scene--services::before {
    content: '';
    position: absolute;
    bottom: -19%;
    left: -15%;
    width: 65%;
    height: 85%;
    background-image: url('../images/rainmaker-logo-rmkr.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.025;
    pointer-events: none;
    z-index: 1;
    /* Transform black SVG to brand blue tint */
    filter: blur(1px) brightness(0) invert(36%) sepia(98%) saturate(1000%) hue-rotate(187deg) brightness(93%);
}

/* Services Background System */
.scene--services .services__gradient {
    background:
        linear-gradient(180deg,
            var(--ink-80) 0%,
            var(--ink-90) 50%,
            var(--ink) 100%
        ),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(2, 116, 190, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 10% 20%, rgba(2, 116, 190, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 90% 20%, rgba(2, 116, 190, 0.10) 0%, transparent 50%);
}

/* Centered layout - different from About's split layout */
.services-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.services-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* 3-column grid - horizontal arrangement vs About's vertical stack */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Service Cards - vertical card layout (icon top) */
.service-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem 2rem;
    border-radius: 20px;
}

/* Service card uses vertical gradient border */
.service-card.glass-card--bordered::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent 40%, rgba(2,116,190,0.3));
}

.service-card:hover {
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.5),
        0 0 40px -20px rgba(2, 116, 190, 0.3);
}

/* Icon - centered at top */
.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 0 40px -5px rgba(2, 116, 190, 0.5);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
}

/* Title */
.service-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

/* Description */
.service-card__desc {
    font-size: 0.9375rem;
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Tags - at bottom */
.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.service-card__tags span {
    padding: 0.5rem 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--steel);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-expo);
}

.service-card:hover .service-card__tags span {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--silver);
}

/* Services CTA */
.services-cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Featured card - enhanced glow */
.service-card--featured {
    background: linear-gradient(180deg, rgba(2, 116, 190, 0.08) 0%, rgba(2, 116, 190, 0.03) 100%);
    border-color: rgba(2, 116, 190, 0.15);
}

.service-card--featured::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    opacity: 0.5;
}

.service-card--featured:hover {
    background: linear-gradient(180deg, rgba(2, 116, 190, 0.12) 0%, rgba(2, 116, 190, 0.05) 100%);
    border-color: rgba(2, 116, 190, 0.25);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.6),
        0 0 60px -20px rgba(2, 116, 190, 0.4);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .service-card {
        padding: 2rem 1.5rem 1.5rem;
    }

    .service-card__icon {
        width: 56px;
        height: 56px;
    }

    .service-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .service-card__title {
        font-size: 1.25rem;
    }
}

/* ============================================
   11. SCENE: PLATFORM
   ============================================ */

.scene--platform {
    background: var(--ink);
    position: relative;
}

.platform__subtitle {
    font-size: 2rem;
    color: var(--silver);
    margin-top: 1rem;
}

/* Background System - Dark cinematic depth */
.scene--platform .platform__gradient {
    background:
        linear-gradient(180deg,
            var(--ink) 0%,
            var(--ink-90) 50%,
            var(--ink-80) 100%
        ),
        radial-gradient(ellipse 70% 50% at 50% 20%, rgba(2,116,190,0.15), transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(2,116,190,0.10), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(2,116,190,0.10), transparent 50%);
    pointer-events: none;
}

.platform-layout {
    text-align: center;
}

/* Platform Header */
.platform-header {
    margin: 0 auto 4rem;
}

/* Feature Cards Grid */
.platform-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .platform-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .platform-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Feature Cards */
.feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: 20px;
    text-align: left;
}

.feature-card:hover {
    box-shadow:
        0 20px 40px -20px rgba(0, 0, 0, 0.4),
        0 0 60px -30px rgba(2, 116, 190, 0.3);
}

/* Feature Card Icon */
.feature-card__icon {
    grid-row: 1;
    grid-column: 1;
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.08);
    box-shadow: 0 0 40px -5px rgba(2, 116, 190, 0.5);
}

/* Feature Card Content */
.feature-card__title {
    grid-row: 1;
    grid-column: 2;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    align-self: center;
}

.feature-card__desc {
    grid-row: 2;
    grid-column: 1 / -1;
    font-size: 1rem;
    color: var(--silver);
    line-height: 1.8;
    margin-top: 0.625rem;
    letter-spacing: 0.5px;
}

/* Problem/Solution CTA */
.platform-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0 auto 4rem;
}

@media (min-width: 768px) {
    .platform-cta {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 2rem;
    }
}

.platform-cta__problem,
.platform-cta__solution {
    padding: 2rem;
    border-radius: 20px;
    text-align: left;
    transition: all 0.4s var(--ease-out-expo);
    border: 1px solid rgba(2, 116, 190, 0.25);
}

/* Problem Card - Muted dark styling */
.platform-cta__problem {
    background: rgba(255, 255, 255, 0.02);
}

.platform-cta__problem:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Solution Card - Featured glassmorphic */
.platform-cta__solution {
    background: linear-gradient(135deg, rgba(2, 116, 190, 0.15) 0%, rgba(2, 116, 190, 0.05) 100%);
    box-shadow:
        0 4px 16px rgba(0,0,0,0.15),
        0 0 40px -20px rgba(2, 116, 190, 0.3);
}

.platform-cta__solution:hover {
    background: linear-gradient(135deg, rgba(2, 116, 190, 0.2) 0%, rgba(2, 116, 190, 0.08) 100%);
    border-color: rgba(2, 116, 190, 0.35);
    box-shadow:
        0 20px 40px -10px rgba(0,0,0,0.3),
        0 0 60px -20px rgba(2, 116, 190, 0.4);
}

.platform-cta__problem span,
.platform-cta__solution span {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.platform-cta__problem span {
    background: rgba(255, 255, 255, 0.06);
    color: var(--steel);
    border: 1px solid rgba(2, 116, 190, 0.25);
}

.platform-cta__solution span {
    background: var(--blue-glow);
    color: var(--blue-light);
    margin-bottom: 0;
}

/* Solution Header Row - badge + logo */
.platform-cta__solution-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.platform-cta__solution-logo {
    height: 20px;
    width: auto;
    opacity: 0.7;
    filter: brightness(0) invert(1) drop-shadow(0 4px 30px rgba(2, 116, 190, 0.3));
    transition: opacity 0.3s ease;
}

.platform-cta__solution:hover .platform-cta__solution-logo {
    opacity: 1;
}

.platform-cta__problem p {
    font-size: 1.2rem;
    color: var(--silver);
    line-height: 1.6;
}

.platform-cta__solution p {
    font-size: 1.2rem;
    color: var(--silver);
    line-height: 1.6;
}

/* Animated Arrow */
.platform-cta__arrow {
    display: none;
    color: var(--blue);
    position: relative;
}

@media (min-width: 768px) {
    .platform-cta__arrow {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.platform-cta__arrow svg {
    width: 28px;
    height: 28px;
    animation: pulseArrow 2s ease-in-out infinite;
}

@keyframes pulseArrow {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(4px);
        opacity: 1;
    }
}


/* Mobile adjustments */
@media (max-width: 767px) {
    .feature-card {
        padding: 1.25rem;
        column-gap: 0.875rem;
    }

    .feature-card__icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .feature-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-card__title {
        font-size: 1rem;
    }

    .feature-card__desc {
        font-size: 0.875rem;
        margin-top: 0.75rem;
    }

    .platform-cta__problem,
    .platform-cta__solution {
        padding: 1.5rem;
    }
}

/* ============================================
   12. SCENE: CONTACT
   ============================================ */

.scene--contact {
    background: var(--ink);
    min-height: auto;
}

/* Contact Logo Watermark */
.scene--contact::before {
    content: '';
    position: absolute;
    bottom: 28%;
    right: -5%;
    width: 50%;
    height: 70%;
    background-image: url('../images/rainmaker-logo-rmkr.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.025;
    pointer-events: none;
    z-index: 1;
    /* Transform black SVG to brand blue tint */
    filter: blur(1px) brightness(0) invert(36%) sepia(98%) saturate(1000%) hue-rotate(187deg) brightness(93%);
}

/* Contact Background System - Full cinematic depth */
.scene--contact .contact__gradient {
    background:
        /* Linear depth gradient */
        linear-gradient(180deg,
            var(--ink-80) 0%,
            var(--ink-90) 40%,
            var(--ink) 100%
        ),
        /* Center spotlight - focal point for CTA */
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(2, 116, 190, 0.22) 0%, transparent 60%),
        /* Top accent glow */
        radial-gradient(ellipse 100% 50% at 50% 0%, rgba(2, 116, 190, 0.15) 0%, transparent 50%),
        /* Bottom left accent */
        radial-gradient(ellipse 50% 40% at 10% 100%, rgba(2, 116, 190, 0.08) 0%, transparent 50%),
        /* Bottom right accent */
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(2, 116, 190, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.scene--contact .contact__accent {
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(2, 116, 190, 0.4), transparent);
    pointer-events: none;
}

/* Contact Layout */
.contact-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
}

/* Contact Header */
.contact-header {
    max-width: 800px;
    margin-bottom: 1rem;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* CTA Card Content */
.contact-cta-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.services-subtitle,
.contact-cta-card__desc {
    font-size: 1.5rem;
    color: var(--silver);
    line-height: 1.6;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Footer */
.contact-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    margin-top: 5rem;
}

@media (min-width: 768px) {
    .contact-footer {
        grid-template-columns: 1fr auto 1fr;
        text-align: left;
        align-items: center;
    }
}

.contact-footer__brand img {
    height: 22px;
    filter: brightness(0) invert(1);
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.contact-footer__brand:hover img {
    opacity: 1;
}

@media (min-width: 768px) {
    .contact-footer__brand {
        text-align: left;
    }

    .contact-footer__brand img {
        margin-left: 0;
        margin-right: auto;
    }
}

.contact-footer__brand p {
    font-size: 0.8125rem;
    color: var(--steel);
}

.contact-footer__nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-footer__nav a {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--steel);
    transition: color 0.3s;
}

.contact-footer__nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blue);
    transition: width 0.3s var(--ease-out-expo);
}

.contact-footer__nav a:hover {
    color: var(--white);
}

.contact-footer__nav a:hover::after {
    width: 100%;
}

.contact-footer__legal {
    text-align: center;
}

@media (min-width: 768px) {
    .contact-footer__legal {
        text-align: right;
    }
}

.contact-footer__legal p {
    font-size: 0.75rem;
    color: var(--slate);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .contact-cta-card__content {
        padding: 2rem 1.5rem;
    }

    .contact-cta-card__title {
        font-size: 1.25rem;
    }

    .contact-footer__nav {
        gap: 1.5rem;
    }
}

/* ============================================
   13. SCROLL-REVEAL ANIMATIONS
   ============================================ */

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   14. REDUCED MOTION
   ============================================ */

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

    html {
        scroll-behavior: auto;
    }

    .scene {
        opacity: 1;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   15. HIGHLIGHT UNDERLINES
   ============================================ 

.highlight-underline {
    position: relative;
    display: inline-block;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.2em;
    background: rgba(61, 159, 216, 0.3);
    z-index: -1;
    border-radius: 0 0 50px 50px;
}


#hero .highlight-underline::after {
    display: none;
}

#services p .highlight-underline::after {
    bottom: 0.3rem;
}

#contact .highlight-underline::after {
    height: 0.1em;
    bottom: 4px;
}
*/