/* ==========================================================================
   Rascasse Marketing — Page Sections (Bold Redesign)
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* overflow:visible so the search dropdown can extend over the logo bar.
       Video clipping moved to .hero__video-wrap below. */
    overflow: visible;
    background: var(--rm-text-1);
    padding: 120px var(--rm-space-6) 60px;
    z-index: 5;  /* lift hero above logo-bar so dropdown stacks correctly */
}

/* Hero Video Slideshow */
.hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;  /* contains the videos that .hero used to clip */
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.hero__video:first-child {
    opacity: 1;
}

.hero__video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(17, 24, 39, 0.55) 0%,
        rgba(17, 24, 39, 0.45) 40%,
        rgba(17, 24, 39, 0.7) 100%
    );
}


/* Text overlay — always on top */
.hero__content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 1100px;
    padding: 0 var(--rm-space-4);
    width: 100%;
}

.hero__tagline {
    font-size: var(--rm-text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--rm-primary);
    margin-bottom: var(--rm-space-8);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__title {
    font-family: var(--rm-font-display);
    font-size: clamp(2rem, 9vw, 8rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 0.95;
    margin-bottom: var(--rm-space-8);
    letter-spacing: -0.03em;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero__title em {
    font-style: italic;
    color: var(--rm-primary);
}

/* Typing cursor animation */
.hero-cursor {
    display: inline;
    font-style: normal;
    font-weight: 300;
    color: var(--rm-primary);
    animation: cursorBlink 0.7s steps(1) infinite;
    margin-left: -0.05em;
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero__subtitle {
    font-family: var(--rm-font-body);
    font-size: var(--rm-text-xl);
    color: rgba(255, 255, 255, 0.7);
    max-width: 50ch;
    margin: 0 auto var(--rm-space-10);
    line-height: 1.6;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__stats {
    font-family: var(--rm-font-body);
    font-size: var(--rm-text-sm);
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
    margin: calc(-1 * var(--rm-space-6)) auto var(--rm-space-10);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--rm-space-4);
    flex-wrap: wrap;
}

.hero__ctas .btn--outline {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.hero__ctas .btn--outline:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

@media (max-width: 480px) {
    .hero__ctas {
        flex-direction: column;
    }
    .hero__ctas .btn {
        width: 100%;
    }
}


/* ---------- Callout Annotations (GWI-style arrows) ---------- */
.callout__label {
    display: inline-block;
    padding: 6px 14px;
    border: 2px solid var(--rm-primary);
    border-radius: 6px;
    font-family: var(--rm-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rm-primary);
    background: rgba(17, 24, 39, 0.85);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .callout { display: none !important; }
}


/* ---------- Problem (Bold Statement) ---------- */
.problem {
    background: var(--rm-text-1);
    color: #fff;
    overflow: hidden;
}

.problem__content {
    max-width: 1000px;
    margin: 0 auto;
}

.problem__headline {
    font-family: var(--rm-font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: var(--rm-space-8);
    color: #fff;
}

.problem__headline em {
    font-style: italic;
    color: var(--rm-primary);
}

.problem__text {
    font-size: var(--rm-text-xl);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 60ch;
}

.problem__text strong {
    color: #fff;
    font-weight: 600;
}


/* ---------- Solution ---------- */
.solution__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rm-space-16);
    align-items: center;
}

.solution__headline {
    font-family: var(--rm-font-display);
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.1;
    margin-bottom: var(--rm-space-6);
}

.solution__headline em {
    font-style: italic;
    color: var(--rm-primary);
}

.solution__text {
    font-size: var(--rm-text-lg);
    color: var(--rm-text-2);
    line-height: 1.7;
}

.solution__compare {
    display: flex;
    flex-direction: column;
    gap: var(--rm-space-4);
}

.compare-row {
    display: grid;
    grid-template-columns: 1fr 32px 1fr;
    gap: var(--rm-space-3);
    align-items: center;
}

.compare-old {
    background: var(--rm-border-light);
    padding: var(--rm-space-3) var(--rm-space-4);
    border-radius: var(--rm-radius);
    font-size: var(--rm-text-sm);
    color: var(--rm-text-muted);
    text-align: center;
    text-decoration: line-through;
    text-decoration-color: var(--rm-primary);
    text-decoration-thickness: 2px;
}

.compare-arrow {
    color: var(--rm-primary);
    font-size: var(--rm-text-lg);
    font-weight: 700;
    text-align: center;
}

.compare-new {
    background: var(--rm-primary-light);
    border: 1.5px solid rgba(216, 27, 96, 0.2);
    padding: var(--rm-space-3) var(--rm-space-4);
    border-radius: var(--rm-radius);
    font-size: var(--rm-text-sm);
    font-weight: 600;
    color: var(--rm-primary);
    text-align: center;
}

@media (max-width: 768px) {
    .solution__grid {
        grid-template-columns: 1fr;
        gap: var(--rm-space-10);
    }
}


/* ---------- Product Showcase (Browser Mockups) ---------- */
.showcase {
    background: var(--rm-text-1);
    color: #fff;
    overflow: hidden;
}

.showcase__header {
    text-align: center;
    margin-bottom: var(--rm-space-10);
}

.showcase__title {
    font-family: var(--rm-font-display);
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: var(--rm-space-4);
}

.showcase__subtitle {
    font-size: var(--rm-text-lg);
    color: rgba(255, 255, 255, 0.5);
    max-width: 50ch;
    margin: 0 auto;
}

.showcase__item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--rm-space-12);
    align-items: center;
    margin-bottom: var(--rm-space-16);
}

.showcase__item:last-child {
    margin-bottom: 0;
}

.showcase__item.reverse {
    direction: rtl;
}

.showcase__item.reverse > * {
    direction: ltr;
}

.showcase__item-label {
    font-size: var(--rm-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--rm-accent);
    margin-bottom: var(--rm-space-4);
}

.showcase__item-title {
    font-family: var(--rm-font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.15;
    color: #fff;
    margin-bottom: var(--rm-space-4);
}

.showcase__item-desc {
    font-size: var(--rm-text-base);
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 45ch;
}

/* Light-background showcase override */
.showcase--light .showcase__item-title {
    color: var(--rm-text-1, #111827);
}
.showcase--light .showcase__item-desc {
    color: var(--rm-text-2, #374151);
}

/* Browser Frame */
.screen-frame,
.insight-card,
.rec-slide,
.decision-visual {
    position: relative;
}

.screen-frame::after,
.insight-card::after,
.rec-slide::after,
.decision-visual::after {
    content: 'Illustrative example \2014  not based on real data';
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(107, 114, 128, 0.5);
    padding: 8px 0 6px;
    background: inherit;
}

.insight-card::after,
.rec-slide::after,
.decision-visual::after {
    color: rgba(255, 255, 255, 0.3);
}

.screen-frame {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    font-family: var(--rm-font-body);
    color: #111827;
    font-size: 11px;
}

.screen-chrome {
    background: #1e1e2e;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.screen-dots {
    display: flex;
    gap: 6px;
}

.screen-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.screen-dots span:nth-child(1) { background: #ff5f56; }
.screen-dots span:nth-child(2) { background: #ffbd2e; }
.screen-dots span:nth-child(3) { background: #27c93f; }

.screen-url {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 11px;
    color: #888;
    margin-left: 12px;
}

.screen-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.screen-label .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27c93f;
}

/* Simplified Dashboard Content */
.screen-body {
    padding: 20px;
}

.screen-body__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.screen-body__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.screen-body__chips {
    display: flex;
    gap: 6px;
}

.screen-chip {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 9px;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
}

.screen-chip--pink {
    background: rgba(216, 27, 96, 0.08);
    color: #D81B60;
}

.screen-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.screen-kpi {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
}

.screen-kpi__label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    font-weight: 600;
}

.screen-kpi__value {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-top: 2px;
}

.screen-kpi__value--pink { color: #D81B60; }
.screen-kpi__value--teal { color: #0D9488; }

/* Table rows in mockup */
.screen-table {
    width: 100%;
    border-collapse: collapse;
}

.screen-table th {
    text-align: left;
    padding: 6px 8px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
}

.screen-table td {
    padding: 8px;
    font-size: 11px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.screen-table .entity-dot {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: white;
    margin-right: 8px;
    vertical-align: middle;
}

.screen-table .name-primary {
    font-weight: 600;
    color: #111827;
}

.screen-table .name-secondary {
    font-size: 9px;
    color: #9ca3af;
}

.screen-table .trend-up { color: #10b981; font-weight: 600; }
.screen-table .trend-down { color: #ef4444; font-weight: 600; }

.screen-table .affinity-bar {
    width: 48px;
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    position: relative;
    overflow: hidden;
}

.screen-table .affinity-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 2px;
    background: #D81B60;
}

.screen-table .score-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

@media (max-width: 900px) {
    .showcase__item,
    .showcase__item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}


/* ---------- How it Works ---------- */
.how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rm-space-8);
    margin-top: var(--rm-space-12);
    position: relative;
}

.how__steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.67% + 28px);
    right: calc(16.67% + 28px);
    height: 1px;
    background: var(--rm-border);
}

.how__step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.how__step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rm-surface);
    border: 2px solid var(--rm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--rm-space-5);
    transition: border-color var(--rm-duration) var(--rm-ease),
                background var(--rm-duration) var(--rm-ease);
}

.how__step:hover .how__step-icon {
    border-color: var(--rm-primary);
    background: var(--rm-primary-light);
}

.how__step-title {
    font-size: var(--rm-text-xl);
    font-weight: 700;
    margin-bottom: var(--rm-space-2);
}

.how__step-desc {
    font-size: var(--rm-text-sm);
    color: var(--rm-text-3);
    line-height: 1.6;
    max-width: 28ch;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .how__steps {
        grid-template-columns: 1fr;
        gap: var(--rm-space-10);
    }
    .how__steps::before { display: none; }
}


/* ---------- Big Statement Section ---------- */
.big-statement {
    padding: var(--rm-space-16) 0;
    text-align: center;
}

.big-statement__text {
    font-family: var(--rm-font-display);
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.15;
    color: var(--rm-text-1);
    max-width: 18ch;
    margin: 0 auto;
}

.big-statement__text em {
    font-style: italic;
    color: var(--rm-primary);
}


/* ---------- Industries ---------- */
.industries__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rm-space-5);
    margin-top: var(--rm-space-10);
}

/* Dark-mode cards inside showcase */
.showcase .industries__grid .card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
.showcase .industries__grid .card:hover {
    border-color: rgba(137, 200, 204, 0.25);
    background: rgba(137, 200, 204, 0.04);
}

@media (max-width: 1024px) {
    .industries__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .industries__grid { grid-template-columns: 1fr; }
}


/* ---------- Impact / Stats ---------- */
.impact {
    background: var(--rm-surface);
}

.impact__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--rm-space-8);
}

.impact__divider {
    width: 40px;
    height: 2px;
    background: var(--rm-primary);
    margin: var(--rm-space-4) auto 0;
    opacity: 0.4;
}

@media (max-width: 768px) {
    .impact__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--rm-space-10);
    }
}


/* ---------- Case Study Teaser ---------- */
.case-teaser__card {
    background: var(--rm-surface);
    border: 1px solid var(--rm-border-light);
    border-radius: var(--rm-radius-xl);
    padding: var(--rm-space-16);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.case-teaser__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rm-primary), var(--rm-accent));
}

.case-teaser__badge {
    display: inline-block;
    font-size: var(--rm-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rm-primary);
    background: var(--rm-primary-light);
    padding: var(--rm-space-2) var(--rm-space-4);
    border-radius: var(--rm-radius-full);
    margin-bottom: var(--rm-space-6);
}

.case-teaser__title {
    font-family: var(--rm-font-display);
    font-size: var(--rm-text-3xl);
    margin-bottom: var(--rm-space-4);
}

.case-teaser__desc {
    font-size: var(--rm-text-lg);
    color: var(--rm-text-3);
    max-width: 50ch;
    margin: 0 auto;
}
