/* =========================================================================
   TFast Rebuild — $100M-Tier Single Continuous Canvas Design System
   Surgical Swiss Grid · Obsidian Depth · Tactile Ergonomics · Linear+Stripe Feel
   ========================================================================= */

:root {
    color-scheme: light;
    
    /* Light Mode Tokens (Executive Crisp Canvas) */
    --rb-bg-page: #ffffff;
    --rb-bg-subtle: #f8fafc;
    --rb-bg-surface: #ffffff;
    --rb-bg-surface-hover: #f1f5f9;
    --rb-border-subtle: rgba(0, 0, 0, 0.07);
    --rb-border-strong: rgba(0, 0, 0, 0.14);
    --rb-border-focus: #2563eb;
    
    --rb-text-primary: #090d16;
    --rb-text-secondary: #475569;
    --rb-text-muted: #64748b;
    --rb-brand-primary: #0b4db8;
    --rb-brand-hover: #083e96;
    --rb-brand-glow: rgba(11, 77, 184, 0.12);
    
    --rb-header-bg: rgba(255, 255, 255, 0.82);
    --rb-header-border: rgba(0, 0, 0, 0.06);
    --rb-card-rim: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --rb-card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    
    --rb-font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --rb-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
    --rb-container: 1280px;
    --rb-radius-sm: 6px;
    --rb-radius-md: 10px;
    --rb-radius-lg: 14px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    
    /* Dark Mode Tokens (Deep Obsidian Atmosphere) */
    --rb-bg-page: #08090c;
    --rb-bg-subtle: #0e1117;
    --rb-bg-surface: #10131a;
    --rb-bg-surface-hover: #161b24;
    --rb-border-subtle: rgba(255, 255, 255, 0.08);
    --rb-border-strong: rgba(255, 255, 255, 0.16);
    --rb-border-focus: #3b82f6;
    
    --rb-text-primary: #f8fafc;
    --rb-text-secondary: #94a3b8;
    --rb-text-muted: #64748b;
    --rb-brand-primary: #2563eb;
    --rb-brand-hover: #1d4ed8;
    --rb-brand-glow: rgba(37, 99, 235, 0.15);
    
    --rb-header-bg: rgba(8, 9, 12, 0.78);
    --rb-header-border: rgba(255, 255, 255, 0.06);
    --rb-card-rim: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --rb-card-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        color-scheme: dark;
        --rb-bg-page: #08090c;
        --rb-bg-subtle: #0e1117;
        --rb-bg-surface: #10131a;
        --rb-bg-surface-hover: #161b24;
        --rb-border-subtle: rgba(255, 255, 255, 0.08);
        --rb-border-strong: rgba(255, 255, 255, 0.16);
        --rb-border-focus: #3b82f6;
        --rb-text-primary: #f8fafc;
        --rb-text-secondary: #94a3b8;
        --rb-text-muted: #64748b;
        --rb-brand-primary: #2563eb;
        --rb-brand-hover: #1d4ed8;
        --rb-brand-glow: rgba(37, 99, 235, 0.15);
        --rb-header-bg: rgba(8, 9, 12, 0.78);
        --rb-header-border: rgba(255, 255, 255, 0.06);
        --rb-card-rim: inset 0 1px 0 rgba(255, 255, 255, 0.12);
        --rb-card-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
    }
}

/* =========================================================================
   1. GLOBAL CANVAS & RESET
   ========================================================================= */

body {
    background-color: var(--rb-bg-page) !important;
    color: var(--rb-text-primary) !important;
    font-family: var(--rb-font-sans) !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Universal seamless background: No choppy sections */
.main-wrapper,
.stage-hero,
.agency-section,
.agency-close,
.footer {
    background-color: transparent !important;
    background-image: none !important;
}

/* =========================================================================
   2. FROSTED FLOATING HEADER
   ========================================================================= */

.rb-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--rb-header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rb-header-border);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--rb-container);
    margin: 0 auto;
    padding: 0 24px;
}

.rb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--rb-text-primary);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.rb-brand img {
    height: 32px;
    width: auto;
    display: block;
}

.rb-brand-tag {
    font-family: var(--rb-font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--rb-text-muted);
    letter-spacing: 0.08em;
    padding: 2px 6px;
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    border-radius: 4px;
}

.rb-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rb-nav-link {
    color: var(--rb-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.rb-nav-link:hover,
.rb-nav-link.is-active {
    color: var(--rb-text-primary);
}

.rb-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* =========================================================================
   3. THE FULL-PAGE UNIFIED HERO (Linear + Stripe Feel)
   ========================================================================= */

.rb-hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px 100px;
    overflow: hidden;
}

/* Atmospheric Top Ambient Glow (Linear Spotlight) */
.rb-hero-spotlight {
    position: absolute;
    top: -240px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 650px;
    background: radial-gradient(
        ellipse 60% 50% at 50% 30%,
        var(--rb-brand-glow) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* Radial-Masked Blueprint Grid */
.rb-hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, var(--rb-border-subtle) 1px, transparent 1px),
        linear-gradient(to bottom, var(--rb-border-subtle) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, black 25%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.rb-hero-container {
    position: relative;
    z-index: 2;
    max-width: var(--rb-container);
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Telemetry Micro-Badge */
.rb-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--rb-bg-surface);
    border: 1px solid var(--rb-border-subtle);
    border-radius: 9999px;
    font-family: var(--rb-font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--rb-text-secondary);
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    box-shadow: var(--rb-card-rim);
}

.rb-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: rbPulse 2.4s infinite ease-in-out;
}

@keyframes rbPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Master Display Headline */
.rb-hero-title {
    font-size: clamp(38px, 5.4vw, 68px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--rb-text-primary);
    max-width: 960px;
    margin: 0 auto 24px;
}

.rb-hero-lead {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.6;
    color: var(--rb-text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
    font-weight: 400;
}

/* Action Group */
.rb-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.rb-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--rb-brand-primary);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 13px 26px;
    border-radius: var(--rb-radius-md);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 16px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.rb-btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px rgba(37, 99, 235, 0.35);
}

.rb-btn-primary:active {
    transform: translateY(1px) scale(0.99);
}

.rb-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--rb-bg-surface);
    color: var(--rb-text-primary) !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 13px 24px;
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-md);
    box-shadow: var(--rb-card-rim);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.rb-btn-ghost:hover {
    background: var(--rb-bg-surface-hover);
    border-color: var(--rb-border-strong);
    transform: translateY(-1px);
}

/* =========================================================================
   4. INTERACTIVE SYSTEM ARCHITECTURE CANVAS (The Hero Centerpiece)
   ========================================================================= */

.rb-architecture-stage {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    background: var(--rb-bg-surface);
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-lg);
    box-shadow: var(--rb-card-rim), var(--rb-card-shadow);
    padding: 32px;
    overflow: hidden;
}

.rb-architecture-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rb-border-subtle);
}

.rb-telemetry-status {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--rb-font-mono);
    font-size: 11px;
    color: var(--rb-text-muted);
}

.rb-node-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
}

.rb-system-node {
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-md);
    padding: 20px;
    text-align: left;
    position: relative;
    box-shadow: var(--rb-card-rim);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rb-system-node:hover {
    border-color: var(--rb-border-focus);
    transform: translateY(-2px);
}

.rb-node-idx {
    font-family: var(--rb-font-mono);
    font-size: 10px;
    color: var(--rb-text-muted);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

.rb-node-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--rb-text-primary);
    margin: 0 0 6px;
}

.rb-node-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--rb-text-secondary);
    margin: 0;
}

/* =========================================================================
   5. SECTIONS & SWISS HAIRLINE GRID
   ========================================================================= */

.rb-section {
    max-width: var(--rb-container);
    margin: 0 auto;
    padding: 100px 24px;
    border-top: 1px solid var(--rb-border-subtle);
}

.rb-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.rb-section-eyebrow {
    font-family: var(--rb-font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--rb-brand-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.rb-section-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--rb-text-primary);
}

/* =========================================================================
   6. CASE STUDIES (Outcome Briefs & Border Beam)
   ========================================================================= */

.rb-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.rb-case-card {
    position: relative;
    background: var(--rb-bg-surface);
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-lg);
    padding: 36px;
    box-shadow: var(--rb-card-rim), var(--rb-card-shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.rb-case-card:hover {
    transform: translateY(-3px);
    border-color: var(--rb-border-strong);
}

.rb-case-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rb-case-tag {
    font-family: var(--rb-font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    color: var(--rb-text-muted);
}

.rb-case-metric {
    font-family: var(--rb-font-mono);
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
}

.rb-case-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: -0.015em;
    color: var(--rb-text-primary);
}

.rb-case-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--rb-text-secondary);
    margin: 0 0 24px;
}

.rb-case-preview {
    width: 100%;
    height: 240px;
    background: var(--rb-bg-subtle);
    border-radius: var(--rb-radius-md);
    overflow: hidden;
    border: 1px solid var(--rb-border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-case-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rb-case-card:hover .rb-case-preview img {
    transform: scale(1.03);
}

/* =========================================================================
   7. RESPONSIVE REFINEMENT (320px - 1024px)
   ========================================================================= */

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

@media (max-width: 768px) {
    .rb-nav-links {
        display: none; /* Collapses neatly into responsive drawer */
    }
    .rb-hero {
        padding: 48px 16px 80px;
        min-height: auto;
    }
    .rb-node-grid {
        grid-template-columns: 1fr;
    }
    .rb-actions {
        flex-direction: column;
        width: 100%;
    }
    .rb-btn-primary, .rb-btn-ghost {
        width: 100%;
    }
}



/* =========================================================================
   8. CONTINUOUS CANVAS & GLOBAL SUBPAGE RESETS
   ========================================================================= */

.rb-main-canvas {
    background-color: var(--rb-bg-canvas);
    color: var(--rb-text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rb-main-canvas main {
    flex: 1 0 auto;
}

/* Eliminate choppy zebra-striping backgrounds on all sub-sections */
.rb-main-canvas .agency-section,
.rb-main-canvas .bg--light-1,
.rb-main-canvas .bg--light {
    background-color: transparent !important;
    color: inherit;
}

/* =========================================================================
   9. SWISS HAIRLINE BREADCRUMB
   ========================================================================= */

.rb-breadcrumb-bar {
    border-bottom: 1px solid var(--rb-border-subtle);
    background: var(--rb-bg-canvas);
    padding: 12px 0;
    position: relative;
    z-index: 10;
}

.rb-breadcrumb-container {
    max-width: var(--rb-container);
    margin: 0 auto;
    padding: 0 24px;
}

.rb-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--rb-font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rb-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rb-text-muted);
}

.rb-breadcrumb-link {
    color: var(--rb-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.rb-breadcrumb-link:hover {
    color: var(--rb-brand-primary);
}

.rb-breadcrumb-sep {
    color: var(--rb-border-strong);
    user-select: none;
}

.rb-breadcrumb-current {
    color: var(--rb-text-primary);
    font-weight: 500;
}

/* =========================================================================
   10. STAGE HERO (Services, Contact, About, Sub-pages)
   ========================================================================= */

.rb-main-canvas .stage-hero,
.rb-main-canvas .stage-hero--band {
    position: relative;
    padding: 72px 0 60px;
    background: var(--rb-bg-canvas);
    border-bottom: 1px solid var(--rb-border-subtle);
    overflow: hidden;
}

.rb-main-canvas .stage-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, var(--rb-spotlight-color) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.rb-main-canvas .stage-hero__veil {
    display: none; /* replaced by modern CSS radial gradient */
}

.rb-main-canvas .stage-hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--rb-container);
    margin: 0 auto;
    padding: 0 24px;
}

.rb-main-canvas .stage-hero h1 {
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--rb-text-primary);
    margin: 0 0 18px;
}

.rb-main-canvas .agency-lead {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.6;
    color: var(--rb-text-secondary);
    max-width: 760px;
    margin: 0 0 28px;
}

.rb-main-canvas .agency-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rb-main-canvas .btn--base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--rb-brand-primary);
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: var(--rb-radius-sm);
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.28);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.rb-main-canvas .btn--base:hover {
    background: var(--rb-brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.4);
}

.rb-main-canvas .agency-price {
    font-family: var(--rb-font-mono);
    font-size: 13px;
    font-weight: 600;
    color: #10B981;
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    padding: 8px 16px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.04em;
}

.rb-main-canvas .agency-text-link {
    font-family: var(--rb-font-mono);
    font-size: 12.5px;
    color: var(--rb-text-secondary);
    text-decoration: none;
    border-bottom: 1px dashed var(--rb-border-strong);
    padding-bottom: 2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.rb-main-canvas .agency-text-link:hover {
    color: var(--rb-brand-primary);
    border-color: var(--rb-brand-primary);
}

/* =========================================================================
   11. SERVICES DIRECTORY & CATEGORY GROUPS
   ========================================================================= */

.rb-main-canvas .agency-section {
    padding: 64px 0;
}

.rb-main-canvas .agency-section .container {
    max-width: var(--rb-container);
    margin: 0 auto;
    padding: 0 24px;
}

.rb-main-canvas .agency-service-group {
    margin-bottom: 56px;
}

.rb-main-canvas .agency-service-group:last-child {
    margin-bottom: 0;
}

.rb-main-canvas .agency-section-heading h2 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--rb-text-primary);
    margin: 0 0 8px;
}

.rb-main-canvas .agency-section-heading h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.rb-main-canvas .agency-section-heading h2 a:hover {
    color: var(--rb-brand-primary);
}

.rb-main-canvas .agency-section-heading p {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--rb-text-secondary);
    max-width: 680px;
    margin: 0;
}

/* Responsive grid for services */
.rb-main-canvas .agency-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* Precision Swiss Service Card */
.rb-main-canvas .agency-service-row {
    position: relative;
    background: var(--rb-bg-surface);
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-md);
    padding: 24px;
    box-shadow: var(--rb-card-rim);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.rb-main-canvas .agency-service-row:hover {
    transform: translateY(-2px);
    border-color: var(--rb-border-strong);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rb-main-canvas .agency-service-row h3 {
    margin: 0 0 10px;
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.rb-main-canvas .agency-service-row h3 a {
    color: var(--rb-text-primary);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rb-main-canvas .agency-service-row h3 a span {
    font-family: var(--rb-font-mono);
    color: var(--rb-brand-primary);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.rb-main-canvas .agency-service-row:hover h3 a span {
    transform: translate(3px, -3px);
}

.rb-main-canvas .agency-service-row p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--rb-text-secondary);
    margin: 0;
}

/* Decision CTA Section at Bottom of Services */
.rb-main-canvas .agency-section--muted {
    background: var(--rb-bg-surface) !important;
    border-top: 1px solid var(--rb-border-subtle);
    border-bottom: 1px solid var(--rb-border-subtle);
    margin-top: 48px;
    padding: 64px 0;
}

/* =========================================================================
   12. SERVICE DETAIL PAGE ENHANCEMENTS
   ========================================================================= */

.rb-main-canvas .agency-service-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 20px;
}

.rb-main-canvas .agency-figure {
    margin: 0;
    border-radius: var(--rb-radius-md);
    overflow: hidden;
    border: 1px solid var(--rb-border-subtle);
    box-shadow: var(--rb-card-rim);
    background: var(--rb-bg-subtle);
}

.rb-main-canvas .agency-figure img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.rb-main-canvas .agency-deliverables {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rb-main-canvas .agency-deliverables li {
    position: relative;
    padding-left: 28px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--rb-text-secondary);
}

.rb-main-canvas .agency-deliverables li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--rb-font-mono);
    font-weight: 700;
    color: var(--rb-brand-primary);
    font-size: 14px;
}

/* =========================================================================
   13. CONTACT PAGE & FORMS
   ========================================================================= */

.rb-main-canvas .agency-contact {
    margin-top: 36px;
}

.rb-main-canvas .list--column {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rb-main-canvas .list--column__item-xl .d-flex {
    background: var(--rb-bg-surface) !important;
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-md);
    padding: 24px;
    box-shadow: var(--rb-card-rim);
}

.rb-main-canvas .contact-icon-box--primary {
    width: 44px;
    height: 44px;
    border-radius: var(--rb-radius-sm);
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rb-brand-primary);
    font-size: 22px;
}

.rb-main-canvas .t-text-heading {
    color: var(--rb-text-primary) !important;
}

.rb-main-canvas .query {
    background: var(--rb-bg-surface) !important;
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-lg);
    padding: 36px;
    box-shadow: var(--rb-card-rim), var(--rb-card-shadow);
}

.rb-main-canvas .form-control-custom {
    background: var(--rb-bg-subtle) !important;
    border: 1px solid var(--rb-border-subtle) !important;
    color: var(--rb-text-primary) !important;
    border-radius: var(--rb-radius-sm) !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.rb-main-canvas .form-control-custom:focus {
    border-color: var(--rb-brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.18) !important;
    outline: none !important;
}

.rb-main-canvas label {
    font-family: var(--rb-font-mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--rb-text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

/* =========================================================================
   14. $100M-TIER REBUILD FOOTER
   ========================================================================= */

.rb-footer {
    background: var(--rb-bg-canvas);
    border-top: 1px solid var(--rb-border-subtle);
    padding: 64px 0 36px;
    position: relative;
    z-index: 10;
    margin-top: auto;
}

.rb-footer-container {
    max-width: var(--rb-container);
    margin: 0 auto;
    padding: 0 24px;
}

.rb-footer-telemetry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 32px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--rb-border-subtle);
    font-family: var(--rb-font-mono);
    font-size: 11px;
    color: var(--rb-text-muted);
}

.rb-footer-telemetry-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rb-footer-telemetry-right {
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.08em;
}

.rb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.rb-footer-col--brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rb-footer-bio {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--rb-text-secondary);
    max-width: 320px;
    margin: 0;
}

.rb-footer-direct-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.rb-footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--rb-font-mono);
    font-size: 12px;
    color: var(--rb-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.rb-footer-contact-link:hover {
    color: var(--rb-brand-primary);
}

.rb-footer-heading {
    display: block;
    font-family: var(--rb-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rb-text-primary);
    margin-bottom: 20px;
}

.rb-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rb-footer-links a {
    font-size: 13.5px;
    color: var(--rb-text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.rb-footer-links a:hover {
    color: var(--rb-brand-primary);
}

.rb-footer-more-link {
    font-family: var(--rb-font-mono);
    font-size: 12px !important;
    color: var(--rb-brand-primary) !important;
}

.rb-footer-hq-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--rb-text-secondary);
    margin: 0 0 16px;
}

.rb-footer-hq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--rb-font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--rb-text-muted);
}

.rb-badge-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rb-brand-primary);
}

.rb-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid var(--rb-border-subtle);
    font-size: 12.5px;
    color: var(--rb-text-muted);
}

.rb-footer-legal-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rb-footer-legal-links a {
    color: var(--rb-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.rb-footer-legal-links a:hover {
    color: var(--rb-brand-primary);
}

/* =========================================================================
   15. POLISHED GDPR / COOKIE NOTICE
   ========================================================================= */

.cookies-card {
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    right: auto !important;
    top: auto !important;
    max-width: 340px !important;
    width: calc(100% - 48px) !important;
    background: var(--rb-bg-surface) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--rb-border-subtle) !important;
    border-radius: var(--rb-radius-md) !important;
    padding: 20px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
    z-index: 9999 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.cookies-card.hide {
    display: none !important;
}

.cookies-card__icon {
    display: none !important; /* Hide giant circle */
}

.cookies-card__content {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    color: var(--rb-text-secondary) !important;
    margin: 0 !important;
}

.cookies-card__content a {
    color: var(--rb-brand-primary) !important;
    text-decoration: underline !important;
}

.cookies-card__btn {
    margin: 0 !important;
}

.cookies-card__btn .policy {
    background: var(--rb-brand-primary) !important;
    color: #FFFFFF !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: var(--rb-radius-sm) !important;
    border: none !important;
    width: 100% !important;
    text-align: center !important;
}

/* =========================================================================
   16. RESPONSIVE SUBPAGE BREAKPOINTS
   ========================================================================= */

@media (max-width: 1024px) {
    .rb-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .rb-main-canvas .agency-service-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .rb-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .rb-main-canvas .agency-services {
        grid-template-columns: 1fr;
    }
    .cookies-card {
        bottom: 16px !important;
        left: 16px !important;
        width: calc(100% - 32px) !important;
    }
}


/* =========================================================================
   17. MOBILE NAVIGATION DRAWER
   ========================================================================= */

.rb-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--rb-text-primary);
    padding: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.rb-mobile-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--rb-bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rb-border-subtle);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.rb-mobile-drawer.is-open {
    display: block;
}

.rb-mobile-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rb-mobile-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--rb-text-primary);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--rb-border-subtle);
}

.rb-mobile-links a.is-active {
    color: var(--rb-brand-primary);
    font-weight: 600;
}

.rb-mobile-links .rb-mobile-cta {
    margin-top: 12px;
    background: var(--rb-brand-primary);
    color: #FFFFFF !important;
    text-align: center;
    padding: 12px 20px;
    border-radius: var(--rb-radius-sm);
    font-weight: 600;
    border-bottom: none;
}

@media (max-width: 768px) {
    .rb-mobile-toggle {
        display: flex;
    }
    .rb-nav-cta {
        display: none !important;
    }
}


/* =========================================================================
   18. PORTFOLIO / SYSTEMS CATALOGUE STYLES
   ========================================================================= */

.rb-main-canvas .agency-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.rb-main-canvas .agency-project-card {
    background: var(--rb-bg-surface);
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-lg);
    overflow: hidden;
    box-shadow: var(--rb-card-rim);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.rb-main-canvas .agency-project-card:hover {
    transform: translateY(-4px);
    border-color: var(--rb-border-strong);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rb-main-canvas .agency-project-card__media {
    height: 220px;
    overflow: hidden;
    background: var(--rb-bg-subtle);
    display: block;
    position: relative;
    border-bottom: 1px solid var(--rb-border-subtle);
}

.rb-main-canvas .agency-project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rb-main-canvas .agency-project-card:hover .agency-project-card__media img {
    transform: scale(1.04);
}

.rb-main-canvas .agency-media-placeholder--cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--rb-text-muted);
}

.rb-main-canvas .agency-media-placeholder--cover svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.rb-main-canvas .agency-project-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rb-main-canvas .agency-project-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--rb-text-primary);
}

.rb-main-canvas .agency-project-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.rb-main-canvas .agency-project-card__title a:hover {
    color: var(--rb-brand-primary);
}

.rb-main-canvas .agency-project-card__body p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--rb-text-secondary);
    margin: 0 0 18px;
}

.rb-main-canvas .agency-project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--rb-font-mono);
    font-size: 11px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--rb-border-subtle);
}

.rb-main-canvas .agency-project-card__meta span,
.rb-main-canvas .agency-project-card__meta a {
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    color: var(--rb-text-muted);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.rb-main-canvas .agency-project-card__meta a:hover {
    color: var(--rb-brand-primary);
    border-color: var(--rb-brand-primary);
}

.rb-main-canvas .agency-case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    font-family: var(--rb-font-mono);
    font-size: 12px;
}

.rb-main-canvas .agency-case-meta span,
.rb-main-canvas .agency-case-meta a {
    color: var(--rb-text-secondary);
    text-decoration: none;
}

.rb-main-canvas .agency-case-meta a:hover {
    color: var(--rb-brand-primary);
}

.rb-main-canvas .agency-availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10B981 !important;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 500;
}

/* =========================================================================
   19. PRODUCTS & SEARCH STYLES
   ========================================================================= */

.rb-main-canvas .agency-product-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    max-width: 600px;
    flex-wrap: wrap;
}

.rb-main-canvas .agency-product-search input[type="search"] {
    flex: 1 1 280px;
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-sm);
    padding: 11px 16px;
    font-size: 14px;
    color: var(--rb-text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rb-main-canvas .agency-product-search input[type="search"]:focus {
    border-color: var(--rb-brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.18);
    outline: none;
}

/* =========================================================================
   20. LABS & INTERACTIVE COMPARISON STYLES
   ========================================================================= */

.rb-main-canvas .labs-kicker {
    font-family: var(--rb-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--rb-brand-primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.rb-main-canvas .labs-page {
    padding: 48px 24px;
}

.rb-main-canvas .labs-finder {
    background: var(--rb-bg-surface);
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-md);
    padding: 32px;
    box-shadow: var(--rb-card-rim);
    margin-bottom: 48px;
}

.rb-main-canvas .labs-finder h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--rb-text-primary);
    margin: 0 0 20px;
}

.rb-main-canvas .labs-finder__row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.rb-main-canvas .labs-finder__row label {
    flex: 1 1 200px;
}

.rb-main-canvas .labs-finder__row select,
.rb-main-canvas .labs-finder__row input {
    width: 100%;
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-sm);
    padding: 10px 14px;
    color: var(--rb-text-primary);
    font-size: 14px;
}

.rb-main-canvas .labs-compare {
    margin: 48px 0;
}

.rb-main-canvas .labs-compare h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--rb-text-primary);
    margin-bottom: 24px;
}

.rb-main-canvas .labs-compare__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.rb-main-canvas .labs-compare__grid section {
    background: var(--rb-bg-surface);
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-md);
    padding: 28px;
    box-shadow: var(--rb-card-rim);
}

.rb-main-canvas .labs-compare__grid h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--rb-text-primary);
    margin: 0 0 16px;
}

.rb-main-canvas .labs-compare__grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--rb-text-secondary);
    font-size: 14px;
}

/* =========================================================================
   21. BLOG & KNOWLEDGE REBUILD STYLES
   ========================================================================= */

.rb-main-canvas .blog-head h1 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--rb-text-primary);
    margin-bottom: 16px;
}

.rb-main-canvas .blog-head__lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--rb-text-secondary);
    max-width: 680px;
    margin-bottom: 28px;
}

.rb-main-canvas .blog-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    margin-top: 24px;
}

.rb-main-canvas .blog-search__input {
    background: var(--rb-bg-subtle) !important;
    border: 1px solid var(--rb-border-subtle) !important;
    color: var(--rb-text-primary) !important;
    border-radius: var(--rb-radius-sm) !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
}

.rb-main-canvas .blog-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.rb-main-canvas .blog-chip {
    font-family: var(--rb-font-mono);
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    color: var(--rb-text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.rb-main-canvas .blog-chip.is-active,
.rb-main-canvas .blog-chip:hover {
    background: var(--rb-brand-primary);
    border-color: var(--rb-brand-primary);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .rb-main-canvas .agency-portfolio-grid {
        grid-template-columns: 1fr;
    }
    .rb-main-canvas .labs-compare__grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================================
   22. ACCESSIBILITY & HONEYPOT CONTROLS
   ========================================================================= */

/* Visually hide skip links unless keyboard-focused */
.rb-skip-link,
.tfast-skip-link {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    z-index: 10000 !important;
}

.rb-skip-link:focus,
.tfast-skip-link:focus {
    position: fixed !important;
    top: 16px !important;
    left: 16px !important;
    width: auto !important;
    height: auto !important;
    padding: 10px 18px !important;
    background: var(--rb-brand-primary) !important;
    color: #FFFFFF !important;
    border-radius: var(--rb-radius-sm) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    text-decoration: none !important;
}

/* Form honeypot spam traps must be strictly hidden from human visitors */
.form-hp {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* =========================================================================
   23. WEBSITE TEMPLATES & INTERACTIVE BLUEPRINTS SHOWROOM
   ========================================================================= */

.rb-template-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rb-border-subtle);
}

.rb-filter-btn {
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    border-radius: 9999px;
    padding: 8px 18px;
    font-family: var(--rb-font-mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--rb-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.rb-filter-btn:hover {
    color: var(--rb-text-primary);
    border-color: var(--rb-border-strong);
    background: rgba(255, 255, 255, 0.05);
}

.rb-filter-btn.is-active {
    background: var(--rb-brand-primary);
    border-color: var(--rb-brand-primary);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

.rb-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    margin-bottom: 64px;
}

.rb-template-card {
    background: var(--rb-bg-surface);
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-lg);
    overflow: hidden;
    box-shadow: var(--rb-card-rim);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.rb-template-card:hover {
    transform: translateY(-4px);
    border-color: var(--rb-border-strong);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Browser Mockup Window */
.rb-template-browser {
    border-bottom: 1px solid var(--rb-border-subtle);
    background: var(--rb-bg-subtle);
    overflow: hidden;
}

.rb-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--rb-border-subtle);
}

.rb-browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.rb-browser-url {
    font-family: var(--rb-font-mono);
    font-size: 10px;
    color: var(--rb-text-muted);
    margin-left: 8px;
    letter-spacing: 0.04em;
}

.rb-template-preview {
    padding: 32px 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.rb-preview-inner {
    max-width: 320px;
}

.rb-preview-badge {
    font-family: var(--rb-font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid currentColor;
    display: inline-block;
    margin-bottom: 10px;
}

.rb-preview-headline {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #FFFFFF;
    margin: 0 0 6px;
    letter-spacing: -0.015em;
}

.rb-preview-sub {
    font-size: 11px;
    line-height: 1.45;
    color: #94A3B8;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rb-preview-fake-btn {
    font-family: var(--rb-font-mono);
    font-size: 10px;
    font-weight: 600;
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    letter-spacing: 0.04em;
}

/* Card Body */
.rb-template-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rb-template-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rb-template-badge {
    font-family: var(--rb-font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--rb-brand-primary);
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.rb-template-turnaround {
    font-family: var(--rb-font-mono);
    font-size: 10.5px;
    color: var(--rb-text-muted);
}

.rb-template-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin: 0 0 10px;
}

.rb-template-title a {
    color: var(--rb-text-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.rb-template-title a:hover {
    color: var(--rb-brand-primary);
}

.rb-template-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--rb-text-secondary);
    margin: 0 0 20px;
}

.rb-template-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rb-template-features li {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--rb-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rb-template-features li span {
    color: #10B981;
    font-family: var(--rb-font-mono);
    font-weight: bold;
    flex-shrink: 0;
}

.rb-template-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--rb-border-subtle);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.rb-template-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rb-price-label {
    font-family: var(--rb-font-mono);
    font-size: 10px;
    color: var(--rb-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rb-price-val {
    font-family: var(--rb-font-mono);
    font-size: 13px;
    font-weight: 600;
    color: #10B981;
}

.rb-template-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rb-btn-preview {
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-sm);
    padding: 7px 12px;
    font-family: var(--rb-font-mono);
    font-size: 11px;
    color: var(--rb-text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.rb-btn-preview:hover {
    border-color: var(--rb-brand-primary);
    color: var(--rb-brand-primary);
}

.rb-btn-launch {
    background: var(--rb-brand-primary);
    color: #FFFFFF !important;
    border-radius: var(--rb-radius-sm);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.rb-btn-launch:hover {
    background: var(--rb-brand-hover);
}

/* =========================================================================
   24. INTERACTIVE DEVICE VIEWPORT MODAL PREVIEWER
   ========================================================================= */

.rb-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.rb-modal-container {
    position: relative;
    z-index: 2;
    width: 95vw;
    height: 92vh;
    background: var(--rb-bg-canvas);
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rb-modal-toolbar {
    height: 60px;
    border-bottom: 1px solid var(--rb-border-subtle);
    background: var(--rb-bg-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.rb-modal-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--rb-text-primary);
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rb-toolbar-center {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    padding: 4px;
    border-radius: 8px;
}

.rb-device-btn {
    background: transparent;
    border: none;
    color: var(--rb-text-secondary);
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rb-device-btn.is-active {
    background: var(--rb-bg-surface);
    color: var(--rb-text-primary);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.rb-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rb-modal-launch-btn {
    background: var(--rb-brand-primary);
    color: #FFFFFF !important;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--rb-radius-sm);
    text-decoration: none;
}

.rb-modal-close {
    background: var(--rb-bg-subtle);
    border: 1px solid var(--rb-border-subtle);
    color: var(--rb-text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.rb-modal-viewport-wrapper {
    flex-grow: 1;
    overflow: auto;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.rb-device-frame {
    height: 100%;
    background: #08090C;
    border: 1px solid var(--rb-border-subtle);
    border-radius: var(--rb-radius-md);
    overflow: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rb-device-frame.is-desktop {
    width: 100%;
    max-width: 100%;
}

.rb-device-frame.is-tablet {
    width: 768px;
    max-width: 768px;
}

.rb-device-frame.is-mobile {
    width: 375px;
    max-width: 375px;
    border-radius: 36px;
    border: 8px solid #1E293B;
}

.rb-frame-content {
    min-height: 100%;
}

@media (max-width: 768px) {
    .rb-templates-grid {
        grid-template-columns: 1fr;
    }
    .rb-modal-toolbar {
        flex-direction: column;
        height: auto;
        padding: 12px;
        gap: 10px;
    }
    .rb-toolbar-center {
        width: 100%;
        justify-content: center;
    }
}
