/* Apply General Sans to all text on this page - but not images or icons */
body,
html,
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th,
.hero-title, .hero-description,
.section-title, .section-description,
.feature-title, .feature-description,
.benefit-content h3, .benefit-content p,
.cta-title, .cta-description,
.btn, .nav-link, .logo,
.metric-value, .metric-label,
.dashboard-header h3,
button, input, textarea, select {
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Ensure images and icons are visible */
img, .site-logo {
    font-family: inherit !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Font Awesome icons need to be inline-block and use their own font */
i, .fas, .fa, .far, .fal, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-style: normal !important;
    font-weight: 900 !important;
}

.feature-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.feature-icon i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide benefit icons */
.benefit-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.benefit-icon i {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Background - black below Frame.jpg, transparent above for video */
body,
html {
    background: #000000 !important; /* Solid black background */
    color: #ffffff !important;
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Hero section - contains video background */
.hero {
    background: #000000 !important; /* Black background outside video */
    color: #ffffff !important;
    position: relative !important;
    overflow: visible !important; /* Allow Frame.jpg to show below */
    z-index: 1;
    min-height: auto !important;
    height: auto !important;
}

/* Hero container - contains the video and content */
.hero .container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
}

/* Hero background video - positioned behind hero content only */
.hero-background-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important; /* Only cover viewport height, not Frame.jpg */
    z-index: 0 !important; /* Behind content */
    object-fit: cover !important;
    object-position: center !important;
    pointer-events: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 0; /* Start hidden for fade-in - allow JS to override */
    animation: videoFadeIn 2s ease-in-out forwards;
    background: #000000 !important;
}

/* Video quality and styling */
.hero-background-video {
    /* Maintain quality - no blur */
    filter: none !important;
    -webkit-filter: none !important;
    /* No borders */
    border: none !important;
    outline: none !important;
    /* Maintain aspect ratio and quality */
    min-width: 100% !important;
    max-width: 100% !important;
}

/* When video is playing, ensure it's visible */
.hero-background-video.playing {
    opacity: 1 !important;
}


/* Fade-in animation for video */
@keyframes videoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dark overlay on video for text readability (40-50% black) */
.hero-video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; /* Above video, below text */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.5) 100%
    ) !important;
    pointer-events: none !important;
    /* Smooth transition at bottom to blend with Frame.jpg */
    background-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.5) 85%,
        rgba(0, 0, 0, 0.7) 95%,
        rgba(0, 0, 0, 1) 100%
    ) !important;
}


/* Hero content - above video and overlay */
.hero .container,
.hero-content,
.hero-text,
.hero-visual,
.hero-title,
.hero-description,
.hero-actions {
    position: relative !important;
    z-index: 2 !important; /* Above video and overlay */
}


/* Hero title separator styling */
.hero-title-separator {
    color: #ffffff !important;
    margin: 0 0.5rem;
    opacity: 0.7;
}

/* Remove the light bar (::after) from hero-title-accent - keep only the separator */
.hero-title-accent::after {
    display: none !important;
    content: none !important;
}

/* Make dashboard wider */
.hero-card {
    max-width: 400px !important;
    width: 100%;
}

.orr-dashboard {
    width: 100%;
    min-width: 380px;
}

/* Hero content wrapper - contains text and dashboard */
.hero-content {
    position: relative;
    z-index: 2; /* Above video and overlay */
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 100vh;
}


/* Frame container - clean transition from hero video, below hero content */
.hero-frame-container {
    background: #000000 !important; /* Solid black background */
    position: relative !important;
    z-index: 10 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
    overflow: visible !important;
    /* Clean transition from hero section */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    /* Ensure it's below the video area */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: auto !important;
}

.main {
    background: #000000 !important; /* Solid black below Frame.jpg */
    color: #ffffff !important;
    position: relative;
    z-index: 1;
}

/* All sections below Frame.jpg - solid black to hide video */
section.benefits,
section.cta {
    background: #000000 !important; /* Solid black below Frame.jpg */
    color: #ffffff !important;
    position: relative;
    z-index: 1;
}

/* Reduce space above CTA section */
section.cta {
    padding-top: var(--spacing-8) !important; /* Reduced padding at top */
    margin-top: 0 !important;
}

/* Benefits section - add breathing room below AI explainer */
section.benefits {
    padding-top: var(--spacing-16) !important;
    margin-top: var(--spacing-6) !important;
}

/* Add spacing between description and benefit cards */
section.benefits .section-description {
    margin-bottom: var(--spacing-24) !important; /* Add space below description */
}

section.benefits .benefits-grid {
    margin-top: var(--spacing-24) !important; /* Add space above cards */
    margin-bottom: var(--spacing-8) !important; /* Reduced space below cards before CTA */
}

/* Hide logo image in header */
.site-logo {
    display: none !important;
}

/* Hide benefit icons completely */
.benefit-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Benefit items - center aligned with reduced padding */
.benefit-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: var(--spacing-3) !important; /* Reduced padding */
    gap: var(--spacing-2) !important; /* Reduced gap */
}

/* Circular metric cards with glow particle on the outer circumference */
.metric-benefit {
    position: relative !important;
    overflow: visible !important;
    width: clamp(280px, 32vw, 360px);
    height: clamp(280px, 32vw, 360px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: var(--spacing-6) !important;
}

/* Full-size wrapper so the dot orbits along the circle edge (50% = radius) */
.orbit-dot {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}

/* Flame-shaped particle: head in direction of motion, soft trailing tail */
.orbit-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 10px;
    height: 24px;
    margin-left: -5px;
    margin-top: -12px;
    border-radius: 50% 50% 40% 40%;
    background: linear-gradient(
        to top,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 35%,
        rgba(255, 255, 255, 0.7) 65%,
        #ffffff 100%
    );
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.85),
        0 0 24px rgba(255, 255, 255, 0.4),
        0 -2px 8px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* Counter‑clockwise card: flip flame so tail trails correctly */
.metric-benefit:nth-child(2) .orbit-dot::before {
    transform: scaleY(-1);
}

/* Card 1 – clockwise */
.metric-benefit:nth-child(1) .orbit-dot {
    animation: orbitCW 8s linear infinite;
}

/* Card 2 – counter‑clockwise */
.metric-benefit:nth-child(2) .orbit-dot {
    animation: orbitCCW 8s linear infinite;
}

/* Card 3 – clockwise, slower */
.metric-benefit:nth-child(3) .orbit-dot {
    animation: orbitCW 12s linear infinite;
}

@keyframes orbitCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitCCW {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.benefit-content {
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.benefit-content h3 {
    text-align: center !important;
    margin: 0 auto var(--spacing-3) auto !important;
    width: 100% !important;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
}

.benefit-content p {
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.8) !important;
}


/* Features section has its own styling for scroll reveal */
section.features {
    background: #000000 !important;
    color: #ffffff !important;
    position: relative;
    z-index: 1;
    padding-bottom: 0 !important; /* No padding at bottom */
    margin-bottom: 0 !important; /* No margin at bottom */
}

/* All text white */
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th,
.hero-title, .hero-description,
.section-title, .section-description,
.feature-title, .feature-description,
.benefit-content h3, .benefit-content p,
.cta-title, .cta-description {
    color: #ffffff !important;
}

/* Cards and containers - black background with white text */
.feature-card,
.benefit-item,
.hero-card,
.orr-dashboard,
.card-content {
    background: #000000 !important; /* Black to match website background */
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.feature-card h3,
.feature-card p,
.benefit-content h3,
.benefit-content p {
    color: #ffffff !important;
}


/* Remove old page background video styles - video is now in hero section */

/* Header must be above video but transparent */
/* Header styling removed - using default from components.css to match index page */

/* Header should use default styles from components.css - no overrides needed */

/* Make sure body and main are above video */
body, html {
    position: relative;
    z-index: 0;
}

.main {
    position: relative;
    z-index: 1; /* Above video and overlay */
    background: #000000 !important; /* Solid black below Frame.jpg */
}

/* Ensure all sections and content are above video */
section,
.hero,
.features,
.benefits,
.cta {
    position: relative;
    z-index: 1; /* Above video */
}

.nav-link,
.logo,
.logo span {
    color: #ffffff !important;
}

/* Buttons - visible on black */
.btn-outline {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-primary {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
}

/* Icons white and visible */
i, .fas, .fa, .far, .fal, .fab {
    color: #ffffff !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
}

/* Footer black */
.footer,
.cosmos-footer {
    background: #000000 !important;
    color: #ffffff !important;
}

.footer a,
.footer-column a {
    color: #ffffff !important;
}

/* Dashboard elements */
.dashboard-header h3,
.metric-value,
.metric-label {
    color: #ffffff !important;
}

/* Hero background video */
.hero {
    position: relative !important;
    overflow: hidden !important;
    min-height: 100vh;
}

.hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    display: block !important;
    visibility: visible !important;
}

/* Hero background - no longer needs video, video is page-wide */
.hero-background {
    display: none !important;
}

.hero-particles {
    display: none !important;
}

/* Frame image - full width edge-to-edge */

.hero-frame-image {
    width: 100vw;
    max-width: none;
    height: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.hero .container {
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure all content on top is visible and above video */
.hero-content,
.hero-text,
.hero-visual,
.hero-actions {
    position: relative;
    z-index: 2; /* Above video */
}

/* Ensure all containers and cards are above video */
.container,
.feature-card,
.benefit-item,
.hero-card,
.orr-dashboard,
.card-content {
    position: relative;
    z-index: 2; /* Above video */
}

/* Ensure all containers are black */
.container {
    background: transparent !important;
}

/* Ensure all design elements, logos, and icons are visible */
.site-logo,
.feature-icon,
.benefit-icon,
img:not([src=""]),
.hero-card,
.card-content,
.orr-dashboard,
.hero-frame-container,
.hero-frame-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.feature-icon i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Hide benefit icons */
.benefit-icon i {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Button icons */
.btn i, .btn .fas, .btn .fa {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
}

/* ORR Foundation section - auto-rotating full-width cards (Netflix-style) */
section.orr-foundation {
    background: #000000 !important;
    color: #ffffff !important;
    position: relative;
    z-index: 1;
    padding: var(--spacing-24) 0;
    overflow: hidden;
}

section.orr-foundation .container {
    max-width: 100%;
    padding-left: var(--spacing-6);
    padding-right: var(--spacing-6);
}

.orr-foundation-header {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff !important;
    margin: 0 0 var(--spacing-3);
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.orr-foundation-sub {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    color: rgba(255, 255, 255, 0.88) !important;
    margin: 0 0 var(--spacing-10);
    text-align: center;
}

/* Carousel: full-bleed so no black strips on sides; user can drag left/right */
.orr-foundation-carousel {
    margin: 0 calc(50% - 50vw) var(--spacing-10);
    width: 100vw;
    max-width: 100vw;
    position: relative;
}

.orr-foundation-carousel-viewport {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.orr-foundation-carousel-viewport:active {
    cursor: grabbing;
}

.orr-foundation-track {
    display: flex;
    width: 600%;
    /* Step animation: hold on each card, then move to next (not continuous) */
    animation: orr-foundation-slide 16s ease-in-out infinite;
}

/* When user drags, JS adds this class and controls transform */
.orr-foundation-track--dragging {
    animation: none !important;
}

.orr-foundation-slide {
    flex: 0 0 16.666%;
    width: 16.666%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-10) var(--spacing-8);
    box-sizing: border-box;
    /* Same as page background so card blends perfectly */
    background: #000000;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-right: 0;
    color: #ffffff !important;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.5;
    text-align: center;
    font-weight: 500;
}

/* Arrow buttons to move cards left/right */
.orr-foundation-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.orr-foundation-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.orr-foundation-arrow i {
    font-size: 1rem;
    color: #ffffff !important;
}

.orr-foundation-arrow--prev {
    left: var(--spacing-4);
}

.orr-foundation-arrow--next {
    right: var(--spacing-4);
}

/* Step animation: hold on card 1 → move → hold on card 2 → move → hold on card 3 → move → hold (duplicate 1) → loop */
@keyframes orr-foundation-slide {
    0%, 22% { transform: translateX(0); }
    28%, 50% { transform: translateX(-16.666%); }
    56%, 78% { transform: translateX(-33.333%); }
    84%, 100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .orr-foundation-track {
        animation: none;
        transform: translateX(0);
    }
}

.orr-foundation-close {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

/* Features Section - with scroll reveal animation */
.features {
    position: relative;
    padding: var(--spacing-32) 0;
    min-height: 100vh;
    overflow: hidden;
    /* Enable scrolling for entire horizontal area */
    cursor: grab;
}

.features:active {
    cursor: grabbing;
}

/* Spacing between header and cards */
.features .section-header {
    margin-bottom: var(--spacing-12);
}

/* Features Grid - Scrollable container with one card visible */
.features-grid {
    position: relative;
    z-index: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--spacing-8) !important;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0; /* No space between cards and test image */
    height: 500px; /* Fixed height for scrollable container */
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    padding: var(--spacing-4) var(--spacing-2); /* Reduced padding */
    /* Hide scrollbar but keep scrolling functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Make scrollable area wider for easier interaction */
    width: 100%;
    max-width: 100vw;
    pointer-events: auto;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.features-grid::-webkit-scrollbar {
    display: none;
}

/* Test Image Container - at the end of cards */
.features .test-image-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto; /* No space between cards and image */
    text-align: center;
    margin-bottom: var(--spacing-16) !important; /* Add space below tree image */
    padding-bottom: var(--spacing-8) !important; /* Add padding below tree image */
}

/* ORR AI explainer section (below tree image) */
.orr-ai-explainer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: var(--spacing-16);
    margin-top: var(--spacing-10);
}

.orr-ai-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-10);
}

.orr-ai-subtitle {
    margin-top: var(--spacing-4);
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.orr-ai-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-8);
    max-width: 900px;
    margin: 0 auto var(--spacing-10);
}

.orr-ai-column {
    background: #000000; /* same as page background */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-6);
}

.orr-ai-column-title {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: var(--spacing-3);
}

.orr-ai-emphasis {
    font-weight: 600;
}

.orr-ai-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.orr-ai-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.orr-ai-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
}

.orr-ai-footer-copy {
    text-align: center;
    margin: var(--spacing-8) auto 0;
    max-width: 640px;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    color: rgba(255, 255, 255, 0.9);
}

/* AI you can trust strip */
.orr-ai-trust {
    margin: var(--spacing-14) auto 0;
    max-width: 9000px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: var(--spacing-8);
}

.orr-ai-trust-title {
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    margin-bottom: var(--spacing-4);
}

.orr-ai-trust-body {
    background: #000000;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: var(--spacing-8) var(--spacing-8);
}

.orr-ai-trust-intro,
.orr-ai-trust-outro {
    text-align: center;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    color: rgba(255, 255, 255, 0.9);
}

.orr-ai-trust-intro {
    margin-bottom: var(--spacing-5);
}

.orr-ai-trust-outro {
    margin-top: var(--spacing-6);
}

.orr-ai-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-4);
    justify-items: stretch;
}

.orr-ai-trust-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-4);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.orr-ai-trust-item::before {
    content: '✓';
    flex-shrink: 0;
    font-size: 0.9rem;
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.9);
}

.orr-ai-trust-label {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

@media (max-width: 768px) {
    .orr-ai-grid {
        grid-template-columns: 1fr;
    }
}

.features .test-image-container .test-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

/* Feature Cards - One visible at a time with scroll snap */
.features-grid .feature-card {
    opacity: 0.3;
    transform: scale(0.95);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    min-height: 450px; /* Taller to ensure one card fills viewport */
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    flex-shrink: 0;
    border: none !important; /* Remove border for seamless blend */
    box-shadow: none !important; /* Remove shadow for seamless blend */
    outline: none !important;
    background: #000000 !important; /* Black background to match website */
    padding: var(--spacing-4) !important; /* Reduced padding - less space between content and border */
}

/* Card that is in view (centered in scroll container) */
.feature-card.visible {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
    background: #000000 !important; /* Black background to match website */
}

/* Cards above and below the visible one */
.features-grid .feature-card:not(.visible) {
    opacity: 0.4;
    transform: scale(0.9);
    background: #000000 !important; /* Black background to match website */
}

/* Ensure all text in feature cards is bright white - matching other text on page */
.features-grid .feature-card .feature-icon,
.features-grid .feature-card .feature-title,
.features-grid .feature-card .feature-description,
.features-grid .feature-card h3,
.features-grid .feature-card p {
    color: #ffffff !important;
    opacity: 1 !important; /* Text always at full opacity regardless of card opacity */
    font-weight: 400 !important; /* Ensure text is bright and clear */
}

/* Make sure icons are also bright white */
.features-grid .feature-card .feature-icon i {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Key feature image – small, centered, polished */
.orr-key-feature-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto var(--spacing-10);
    text-align: center;
}

.orr-key-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    object-fit: contain;
}

/* Test Image Container - above Why Choose ORR */
.test-image-container {
    width: 100%;
    margin-bottom: var(--spacing-8);
    text-align: center;
}

.test-image-container .test-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

/* ============================================
   MOBILE STYLES - Clean consolidated rules
   ============================================ */
@media (max-width: 768px) {
    /* Ensure main content is not blocked by header or navbar-menu */
    .main {
        position: relative !important;
        z-index: 1 !important;
        padding-top: 0 !important;
        overflow: visible !important;
    }
    
    /* Ensure navbar-menu doesn't interfere when not active */
    /* Only affect it when it's truly off-screen, not its normal transform behavior */
    .navbar-menu:not(.active) {
        pointer-events: none !important;
    }
    
    /* Hero section - natural height, padding for fixed header */
    /* Override components.css .hero rule that forces min-height: 100vh */
    section.hero,
    .hero {
        padding-top: 60px !important;
        position: relative !important;
        min-height: auto !important; /* Override components.css min-height: 100vh */
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 2rem !important;
        display: block !important; /* Override flex from components.css */
        align-items: normal !important;
        z-index: 1 !important; /* Below content but above video */
    }
    
    /* Hero container - natural height, visible content */
    /* Override components.css .hero .container and .hero-content rules */
    /* Use very high z-index to ensure content is above header (which has z-index: var(--z-fixed)) */
    .hero .container,
    section.hero .container {
        min-height: auto !important;
        height: auto !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        position: relative !important;
        z-index: 9999 !important; /* Very high to be above header and navbar-menu */
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
    }
    
    /* Hero content - natural height, visible */
    /* Override components.css .hero-content grid layout */
    .hero-content,
    section.hero .hero-content {
        min-height: auto !important;
        padding-top: 1rem !important;
        position: relative !important;
        z-index: 10000 !important; /* Very high to be above header and navbar-menu */
        align-items: flex-start !important;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important; /* Override grid from components.css */
        gap: var(--spacing-6) !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    /* Hero text and visual - visible */
    .hero-text {
        position: relative !important;
        z-index: 10001 !important; /* Above everything */
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        order: 1 !important;
        display: block !important;
    }
    
    .hero-visual {
        position: relative !important;
        z-index: 10001 !important; /* Above everything */
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        order: 2 !important;
        display: block !important;
    }
    
    /* Hero title, description, actions - visible */
    .hero-title,
    .hero-description,
    .hero-actions,
    .hero-card {
        position: relative !important;
        z-index: 10002 !important; /* Above everything */
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
    }
    
    /* Video - behind content, fixed height */
    .hero-background-video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        max-height: calc(100vh - 60px) !important;
        z-index: 0 !important; /* Behind content */
        object-fit: cover !important;
    }
    
    .hero-background-video.playing {
        opacity: 1 !important;
        z-index: 0 !important;
    }
    
    /* Overlay - completely hidden on mobile */
    .hero-video-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        width: 0 !important;
        position: absolute !important;
        z-index: -1 !important;
    }
    
    /* Header should use default styles from components.css - no overrides needed */
    /* Only ensure it doesn't block content, but keep its normal appearance */
    
    /* Make sure all sections below hero are visible */
    section.features,
    section.benefits,
    section.cta {
        position: relative !important;
        z-index: 1 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

