﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Relatives Analysis Product Page - Scholarly Design
 * Redesigned to match the AI Assistant page's elegant, academic aesthetic.
 * Features Cormorant Garamond serif + Inter sans-serif typography, muted teal/gold palette.
 */

/* ==========================================
   CSS VARIABLES - SCHOLARLY DESIGN SYSTEM
   ========================================== */
:root {
    /* Primary Brand Colors - Muted, Scholarly */
    --ra-deep: #0f1419;
    --ra-deep-soft: #1a2332;
    --ra-navy: #162029;
    --ra-slate: #1e2d38;

    /* Accent Colors - Teal & Gold */
    --ra-primary: #2c7a7b;
    --ra-primary-dark: #1a5456;
    --ra-primary-light: #81e6d9;
    --ra-teal: #319795;
    --ra-teal-light: #4fd1c5;
    --ra-gold: #b7945e;
    --ra-gold-light: #d4a863;

    /* Neutral Palette - Warm Paper Tones */
    --ra-white: #ffffff;
    --ra-off-white: #faf9f7;
    --ra-cream: #f5f3ef;
    --ra-gray-100: #f1f0ed;
    --ra-gray-200: #e4e2dc;
    --ra-gray-300: #c5c2ba;
    --ra-gray-400: #9a968c;
    --ra-gray-500: #706c64;
    --ra-gray-600: #4a473f;
    --ra-gray-700: #2d2a24;
    --ra-gray-800: #1a1815;
    --ra-gray-900: #0d0c0a;

    /* Text Colors */
    --ra-text-dark: #1a1815;
    --ra-text-body: #4a473f;
    --ra-text-muted: #706c64;
    --ra-text-light: #f0f0f2;
    --ra-text-light-muted: rgba(240, 240, 242, 0.7);

    /* Typography */
    --ra-font-serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    --ra-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --ra-space-xs: 0.5rem;
    --ra-space-sm: 1rem;
    --ra-space-md: 1.5rem;
    --ra-space-lg: 2.5rem;
    --ra-space-xl: 4rem;
    --ra-space-2xl: 6rem;
    --ra-space-3xl: 8rem;

    /* Border Radius */
    --ra-radius-sm: 4px;
    --ra-radius-md: 8px;
    --ra-radius-lg: 12px;
    --ra-radius-xl: 16px;

    /* Shadows - Soft and Subtle */
    --ra-shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
    --ra-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --ra-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
    --ra-shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.1);
    --ra-shadow-primary: 0 8px 32px rgba(44, 122, 123, 0.15);

    /* Transitions */
    --ra-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ra-ease-gentle: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ra-transition-fast: 0.15s var(--ra-ease);
    --ra-transition: 0.3s var(--ra-ease);
    --ra-transition-slow: 0.6s var(--ra-ease-gentle);

    /* Cluster Colors (kept for demo) */
    --cluster-1: #3498db;
    --cluster-2: #e74c3c;
    --cluster-3: #2ecc71;
    --cluster-4: #9b59b6;
    --cluster-5: #f39c12;
    --cluster-6: #1abc9c;
    --cluster-7: #e91e63;
    --cluster-8: #00bcd4;
}

/* ==========================================
   BASE STYLES
   ========================================== */
.ra-main {
    font-family: var(--ra-font-sans);
    color: var(--ra-text-body);
    background: var(--ra-off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.75;
}

.ra-main *,
.ra-main *::before,
.ra-main *::after {
    box-sizing: border-box;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--ra-primary);
    color: var(--ra-white);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--ra-radius-sm);
    z-index: 10000;
    transition: top var(--ra-transition-fast);
}

.skip-link:focus {
    top: 16px;
    outline: 3px solid var(--ra-primary-light);
    outline-offset: 2px;
}

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
.ra-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--ra-primary) 0%, var(--ra-gold) 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ==========================================
   PAGE NAVIGATION DOTS (Desktop)
   ========================================== */
.page-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-nav a {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(44, 122, 123, 0.2);
    border: 2px solid var(--ra-primary);
    transition: var(--ra-transition);
    position: relative;
}

.page-nav a:hover,
.page-nav a.active {
    background: var(--ra-primary);
    transform: scale(1.2);
}

.page-nav a::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ra-slate);
    color: var(--ra-white);
    padding: 6px 12px;
    border-radius: var(--ra-radius-sm);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--ra-transition);
    font-family: var(--ra-font-sans);
}

.page-nav a:hover::before {
    opacity: 1;
    right: 28px;
}

@media (max-width: 1199px) {
    .page-nav {
        display: none;
    }
}

/* ==========================================
   MOBILE BOTTOM NAVIGATION
   ========================================== */
.ra-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--ra-gray-200);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
}

.ra-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: var(--ra-text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: var(--ra-transition-fast);
    border-radius: var(--ra-radius-sm);
}

.ra-bottom-nav-item .dna-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ra-bottom-nav-item.active,
.ra-bottom-nav-item:hover {
    color: var(--ra-primary);
}

.ra-bottom-nav-item.active {
    background: rgba(44, 122, 123, 0.08);
}

@media (min-width: 768px) {
    .ra-bottom-nav {
        display: none !important;
    }
}

/* Add padding for mobile bottom nav */
@media (max-width: 767px) {
    .ra-main {
        padding-bottom: 70px;
    }
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.ra-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--ra-white);
    color: var(--ra-primary);
    border: 1px solid var(--ra-gray-200);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--ra-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--ra-transition);
    z-index: 99;
}

.ra-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ra-back-to-top:hover {
    background: var(--ra-primary);
    color: var(--ra-white);
    border-color: var(--ra-primary);
    transform: translateY(-4px);
}

@media (max-width: 767px) {
    .ra-back-to-top {
        bottom: 90px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideSegment {
    from { width: 0; }
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease both;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease both;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.ra-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--ra-deep) 0%, var(--ra-navy) 50%, var(--ra-slate) 100%);
    padding: var(--ra-space-3xl) var(--ra-space-lg);
    padding-top: calc(var(--ra-space-3xl) + 80px);
    overflow: hidden;
}

.ra-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(44, 122, 123, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(183, 148, 94, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.ra-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ra-dna-helix {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(44, 122, 123, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(183, 148, 94, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.ra-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(183, 148, 94, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(44, 122, 123, 0.3), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(183, 148, 94, 0.2), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(44, 122, 123, 0.3), transparent);
    background-size: 250px 250px;
    animation: float 20s linear infinite;
}

.ra-hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ra-space-xl);
    align-items: center;
}

@media (min-width: 992px) {
    .ra-hero .container {
        grid-template-columns: 1fr 1fr;
    }
}

.ra-hero-content {
    color: var(--ra-white);
}

.ra-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ra-text-light-muted);
    margin-bottom: var(--ra-space-lg);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ra-hero-badge .dna-icon {
    color: var(--ra-primary-light);
}

.ra-hero-title {
    font-family: var(--ra-font-serif);
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--ra-text-light) !important;
    margin-bottom: var(--ra-space-md);
    letter-spacing: -0.02em;
}

.ra-highlight {
    color: var(--ra-gold);
    -webkit-text-fill-color: var(--ra-gold);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.ra-hero-subtitle {
    font-family: var(--ra-font-sans);
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ra-text-light-muted);
    max-width: 540px;
    margin-bottom: var(--ra-space-lg);
}

.ra-hero-stats {
    display: flex;
    gap: var(--ra-space-xl);
    margin-bottom: var(--ra-space-lg);
    flex-wrap: wrap;
}

.ra-stat {
    text-align: center;
}

.ra-stat-value {
    display: block;
    font-family: var(--ra-font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--ra-gold);
    line-height: 1;
}

.ra-stat-label {
    font-size: 0.85rem;
    color: var(--ra-text-light-muted);
    margin-top: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ra-stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    align-self: stretch;
}

/* CTA Buttons */
.ra-hero-cta {
    display: flex;
    gap: var(--ra-space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--ra-space-lg);
}

.ra-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--ra-primary);
    color: var(--ra-white);
    font-family: var(--ra-font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--ra-radius-md);
    cursor: pointer;
    transition: var(--ra-transition);
    box-shadow: var(--ra-shadow-primary);
}

.ra-btn-primary:hover {
    background: var(--ra-primary-dark);
    color: var(--ra-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(44, 122, 123, 0.25);
    text-decoration: none;
}

.ra-btn-primary.ra-btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.ra-btn-primary.ra-btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.ra-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--ra-text-light);
    font-family: var(--ra-font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--ra-radius-md);
    cursor: pointer;
    transition: var(--ra-transition);
}

.ra-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ra-text-light);
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* Platforms / Social Proof */
.ra-hero-platforms {
    display: flex;
    align-items: center;
    gap: var(--ra-space-sm);
    flex-wrap: wrap;
}

.ra-platforms-label {
    font-size: 0.9rem;
    color: var(--ra-text-light-muted);
}

.ra-platform-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ra-platform-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ra-text-light-muted);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ra-platform-badge .dna-icon {
    color: var(--ra-gold);
}

/* Hero Visual Preview */
.ra-hero-visual {
    display: none;
}

@media (min-width: 992px) {
    .ra-hero-visual {
        display: block;
    }
}

.ra-hero-preview {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ra-radius-xl);
    overflow: hidden;
    box-shadow: var(--ra-shadow-xl);
}

.ra-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ra-preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.ra-preview-dot:nth-child(1) { background: #ff5f56; }
.ra-preview-dot:nth-child(2) { background: #ffbd2e; }
.ra-preview-dot:nth-child(3) { background: #27ca40; }

.ra-preview-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--ra-text-light-muted);
    font-family: var(--ra-font-sans);
}

.ra-preview-content {
    padding: 1.25rem;
}

.ra-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ra-mini-stat {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--ra-radius-md);
}

.ra-mini-stat .dna-icon {
    color: var(--ra-gold);
    width: 20px;
    height: 20px;
    margin-bottom: 0.25rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Legacy icon support in hero preview */
.ra-mini-stat i {
    color: var(--ra-gold);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    display: block;
}

.ra-mini-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ra-white);
    font-family: var(--ra-font-serif);
}

.ra-mini-label {
    font-size: 0.7rem;
    color: var(--ra-text-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ra-mini-chromo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ra-chromo-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--ra-radius-sm);
    position: relative;
    overflow: hidden;
}

.ra-chromo-segment {
    position: absolute;
    top: 3px;
    height: 14px;
    background: linear-gradient(90deg, var(--ra-primary) 0%, var(--ra-teal) 100%);
    border-radius: 3px;
    animation: slideSegment 1s ease forwards;
}

.ra-chromo-segment.ra-segment-alt {
    background: linear-gradient(90deg, var(--ra-gold) 0%, var(--ra-gold-light) 100%);
}

/* Scroll Indicator */
.ra-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--ra-text-light-muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: var(--ra-transition);
}

.ra-scroll-indicator:hover {
    opacity: 1;
    color: var(--ra-text-light);
}

.ra-scroll-indicator .dna-icon {
    animation: bounceDown 2s infinite;
}

/* Legacy icon support */
.ra-scroll-indicator i {
    font-size: 1.25rem;
    animation: bounceDown 2s infinite;
}

/* ==========================================
   SECTIONS - BASE STYLES
   ========================================== */
.ra-section {
    padding: var(--ra-space-3xl) 0;
    position: relative;
}

.ra-section-light {
    background: var(--ra-off-white);
}

.ra-section-warm {
    background: var(--ra-cream);
}

.ra-section-dark {
    background: linear-gradient(135deg, var(--ra-deep) 0%, var(--ra-slate) 100%);
}

/* Section Headers - Scholarly Style */
.ra-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--ra-space-xl);
}

.ra-section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ra-primary);
    background: rgba(44, 122, 123, 0.08);
    border: 1px solid rgba(44, 122, 123, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: var(--ra-space-md);
}

.ra-section-badge.ra-badge-accent {
    background: rgba(183, 148, 94, 0.1);
    border-color: rgba(183, 148, 94, 0.2);
    color: var(--ra-gold);
}

.ra-section-title {
    font-family: var(--ra-font-serif);
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
    font-weight: 500;
    color: var(--ra-text-dark);
    margin-bottom: var(--ra-space-sm);
    line-height: 1.2;
}

.ra-section-subtitle {
    font-size: 1.1rem;
    color: var(--ra-text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Dark section text */
.ra-section-dark .ra-section-title {
    color: var(--ra-text-light);
}

.ra-section-dark .ra-section-subtitle {
    color: var(--ra-text-light-muted);
}

.ra-section-dark .ra-section-badge {
    background: rgba(183, 148, 94, 0.2);
    border-color: rgba(183, 148, 94, 0.4);
    color: var(--ra-gold-light);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.ra-features {
    background: var(--ra-off-white);
    padding: var(--ra-space-3xl) 0;
}

.ra-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--ra-space-lg);
}

.ra-feature-card {
    background: var(--ra-white);
    border: 1px solid var(--ra-gray-200);
    border-radius: var(--ra-radius-lg);
    padding: var(--ra-space-lg);
    transition: var(--ra-transition);
    position: relative;
    overflow: hidden;
}

.ra-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ra-primary) 0%, var(--ra-teal) 100%);
}

.ra-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ra-shadow-lg);
    border-color: var(--ra-primary);
}

.ra-feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--ra-primary) 0%, var(--ra-teal) 100%);
    border-radius: var(--ra-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--ra-space-md);
    color: var(--ra-white);
}

.ra-feature-icon .dna-icon {
    width: 28px;
    height: 28px;
}

.ra-feature-icon i {
    font-size: 1.5rem;
    color: var(--ra-white);
}

.ra-feature-card h3 {
    font-family: var(--ra-font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ra-text-dark);
    margin-bottom: 0.75rem;
}

.ra-feature-card p {
    color: var(--ra-text-muted);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================
   DEMO SECTION
   ========================================== */
.ra-demo-section {
    background: var(--ra-cream);
    padding: var(--ra-space-3xl) 0;
}

/* Demo Tabs */
.ra-demo-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--ra-space-lg);
    flex-wrap: wrap;
    padding: 0.5rem;
    background: var(--ra-white);
    border-radius: var(--ra-radius-xl);
    box-shadow: var(--ra-shadow-soft);
    border: 1px solid var(--ra-gray-200);
}

.ra-demo-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--ra-text-muted);
    font-family: var(--ra-font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--ra-radius-lg);
    cursor: pointer;
    transition: var(--ra-transition);
}

.ra-demo-tab:hover {
    background: var(--ra-gray-100);
    color: var(--ra-primary);
}

.ra-demo-tab.active {
    background: var(--ra-primary);
    color: var(--ra-white);
}

.ra-demo-tab i,
.ra-demo-tab .dna-icon {
    font-size: 1rem;
}

/* Demo Container */
.ra-demo-container {
    background: var(--ra-white);
    border-radius: var(--ra-radius-xl);
    box-shadow: var(--ra-shadow-md);
    overflow: hidden;
    min-height: 500px;
    border: 1px solid var(--ra-gray-200);
}

/* Demo Panels */
.ra-demo-panel {
    display: none;
    padding: var(--ra-space-lg);
}

.ra-demo-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.ra-demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--ra-space-lg);
    padding-bottom: var(--ra-space-md);
    border-bottom: 1px solid var(--ra-gray-200);
}

.ra-demo-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ra-font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ra-text-dark);
    margin: 0;
}

.ra-demo-header h3 i,
.ra-demo-header h3 .dna-icon {
    color: var(--ra-primary);
}

.ra-demo-badge {
    background: var(--ra-gold);
    color: var(--ra-deep);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ==========================================
   OVERVIEW DEMO
   ========================================== */
.ra-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--ra-space-md);
    margin-bottom: var(--ra-space-lg);
}

.ra-stat-card {
    display: flex;
    align-items: center;
    gap: var(--ra-space-md);
    padding: var(--ra-space-md);
    background: var(--ra-off-white);
    border-radius: var(--ra-radius-lg);
    border: 1px solid var(--ra-gray-200);
    transition: var(--ra-transition);
}

.ra-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ra-shadow-md);
}

.ra-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--ra-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ra-stat-icon i {
    font-size: 1.25rem;
    color: var(--ra-white);
}

.ra-stat-surname { background: linear-gradient(135deg, var(--ra-primary), var(--ra-teal)); }
.ra-stat-location { background: linear-gradient(135deg, #2c7a7b, #319795); }
.ra-stat-mtdna { background: linear-gradient(135deg, var(--ra-gold), var(--ra-gold-light)); }
.ra-stat-ydna { background: linear-gradient(135deg, #1a5456, #2c7a7b); }

.ra-stat-content {
    flex: 1;
}

.ra-stat-content .ra-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--ra-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.ra-stat-content .ra-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ra-text-dark);
    font-family: var(--ra-font-serif);
}

.ra-stat-content .ra-stat-count {
    font-size: 0.8rem;
    color: var(--ra-text-muted);
}

/* Overview Tables */
.ra-overview-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--ra-space-lg);
}

.ra-table-card {
    background: var(--ra-off-white);
    border-radius: var(--ra-radius-lg);
    padding: var(--ra-space-md);
    border: 1px solid var(--ra-gray-200);
}

.ra-table-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ra-font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ra-text-dark);
    margin-bottom: var(--ra-space-md);
}

.ra-table-card h4 i,
.ra-table-card h4 .dna-icon {
    color: var(--ra-primary);
}

.ra-distribution-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ra-distribution-item {
    display: grid;
    grid-template-columns: 120px 1fr 50px;
    align-items: center;
    gap: 0.75rem;
}

.ra-dist-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ra-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ra-dist-bar-container {
    height: 8px;
    background: var(--ra-gray-200);
    border-radius: var(--ra-radius-sm);
    overflow: hidden;
}

.ra-dist-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ra-primary) 0%, var(--ra-teal) 100%);
    border-radius: var(--ra-radius-sm);
    transition: width 1s ease;
}

.ra-dist-bar.ra-bar-location {
    background: linear-gradient(90deg, var(--ra-gold) 0%, var(--ra-gold-light) 100%);
}

.ra-dist-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ra-text-muted);
    text-align: right;
}

/* ==========================================
   CHROMOSOME BROWSER DEMO
   ========================================== */
.ra-chromo-browser {
    padding: var(--ra-space-sm);
}

.ra-chromo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: var(--ra-space-md);
    padding: 0.5rem;
    background: var(--ra-off-white);
    border-radius: var(--ra-radius-md);
}

.ra-chromo-tab {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--ra-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--ra-radius-sm);
    cursor: pointer;
    transition: var(--ra-transition-fast);
    font-family: var(--ra-font-sans);
}

.ra-chromo-tab:hover {
    background: var(--ra-gray-200);
    color: var(--ra-text-dark);
}

.ra-chromo-tab.active {
    background: var(--ra-primary);
    color: var(--ra-white);
}

.ra-chromo-display {
    background: var(--ra-off-white);
    border-radius: var(--ra-radius-lg);
    padding: var(--ra-space-md);
    margin-bottom: var(--ra-space-md);
    border: 1px solid var(--ra-gray-200);
}

.ra-chromo-title {
    font-family: var(--ra-font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ra-text-dark);
    margin-bottom: var(--ra-space-md);
}

.ra-chromo-visualization {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ra-chromo-row {
    position: relative;
}

.ra-chromo-row-label {
    font-size: 0.75rem;
    color: var(--ra-text-muted);
    margin-bottom: 0.25rem;
}

.ra-chromo-track {
    height: 28px;
    background: var(--ra-gray-200);
    border-radius: var(--ra-radius-sm);
    position: relative;
    overflow: visible;
}

.ra-segment {
    position: absolute;
    top: 4px;
    height: 20px;
    border-radius: var(--ra-radius-sm);
    cursor: pointer;
    transition: var(--ra-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ra-segment:hover {
    transform: scaleY(1.3);
    z-index: 10;
    box-shadow: var(--ra-shadow-md);
}

.ra-segment-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--ra-white);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 0 4px;
}

.ra-segment-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ra-deep);
    color: var(--ra-white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--ra-radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ra-transition-fast);
    z-index: 100;
    margin-bottom: 8px;
}

.ra-segment:hover .ra-segment-tooltip {
    opacity: 1;
}

.ra-chromo-scale {
    display: flex;
    justify-content: space-between;
    margin-top: var(--ra-space-sm);
    font-size: 0.7rem;
    color: var(--ra-text-muted);
}

.ra-chromo-legend {
    background: var(--ra-off-white);
    border-radius: var(--ra-radius-lg);
    padding: var(--ra-space-md);
    border: 1px solid var(--ra-gray-200);
}

.ra-chromo-legend h4 {
    font-family: var(--ra-font-serif);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ra-text-dark);
    margin-bottom: var(--ra-space-sm);
}

.ra-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ra-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--ra-white);
    border-radius: var(--ra-radius-sm);
    font-size: 0.8rem;
    border: 1px solid var(--ra-gray-200);
}

.ra-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.ra-legend-name {
    font-weight: 500;
    color: var(--ra-text-dark);
}

.ra-legend-cm {
    color: var(--ra-text-muted);
}

/* ==========================================
   DNA MATCHES TABLE DEMO
   ========================================== */
.ra-matches-container {
    overflow: hidden;
}

.ra-table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ra-space-md);
    margin-bottom: var(--ra-space-md);
    flex-wrap: wrap;
}

.ra-search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--ra-off-white);
    border: 1px solid var(--ra-gray-200);
    border-radius: var(--ra-radius-md);
    flex: 1;
    max-width: 300px;
}

.ra-search-box i,
.ra-search-box .dna-icon {
    color: var(--ra-text-muted);
}

.ra-search-box input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 0.9rem;
    font-family: var(--ra-font-sans);
    color: var(--ra-text-dark);
    outline: none;
}

.ra-search-box input::placeholder {
    color: var(--ra-text-muted);
}

.ra-table-actions {
    display: flex;
    gap: 0.5rem;
}

.ra-action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--ra-gray-200);
    background: var(--ra-white);
    border-radius: var(--ra-radius-md);
    color: var(--ra-text-muted);
    cursor: pointer;
    transition: var(--ra-transition-fast);
}

.ra-action-btn:hover {
    background: var(--ra-off-white);
    color: var(--ra-primary);
    border-color: var(--ra-primary);
}

.ra-table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--ra-space-md);
}

.ra-matches-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    font-family: var(--ra-font-sans);
}

.ra-matches-table thead {
    background: var(--ra-off-white);
}

.ra-matches-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--ra-text-dark);
    border-bottom: 2px solid var(--ra-gray-200);
    white-space: nowrap;
}

.ra-matches-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.ra-matches-table th.sortable:hover {
    background: var(--ra-gray-100);
}

.ra-matches-table th i {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: var(--ra-text-muted);
}

.ra-matches-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--ra-gray-100);
    color: var(--ra-text-body);
}

.ra-matches-table tbody tr:hover {
    background: var(--ra-off-white);
}

.ra-match-name {
    font-weight: 600;
    color: var(--ra-primary);
}

.ra-match-cm {
    font-weight: 600;
    color: var(--ra-text-dark);
}

.ra-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--ra-space-sm);
}

.ra-page-info {
    font-size: 0.875rem;
    color: var(--ra-text-muted);
}

.ra-page-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ra-page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--ra-gray-200);
    background: var(--ra-white);
    border-radius: var(--ra-radius-sm);
    color: var(--ra-text-body);
    cursor: pointer;
    transition: var(--ra-transition-fast);
}

.ra-page-btn:hover:not(:disabled) {
    background: var(--ra-primary);
    color: var(--ra-white);
    border-color: var(--ra-primary);
}

.ra-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ra-page-current {
    font-size: 0.875rem;
    color: var(--ra-text-body);
    padding: 0 0.5rem;
}

/* ==========================================
   AUTOCLUSTER DEMO
   ========================================== */
.ra-autocluster-container {
    padding: var(--ra-space-sm);
}

.ra-cluster-info {
    margin-bottom: var(--ra-space-md);
}

.ra-cluster-info p {
    color: var(--ra-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.ra-cluster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: var(--ra-space-lg);
}

.ra-cluster-card {
    aspect-ratio: 1;
    border-radius: var(--ra-radius-lg);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--ra-transition);
    border: 2px solid transparent;
}

.ra-cluster-card:hover {
    transform: scale(1.05);
    box-shadow: var(--ra-shadow-md);
}

.ra-cluster-card.active {
    border-color: var(--ra-deep);
    box-shadow: var(--ra-shadow-lg);
}

.ra-cluster-id {
    font-family: var(--ra-font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ra-white);
    margin-bottom: 0.25rem;
}

.ra-cluster-count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ra-cluster-chr {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

.ra-cluster-details {
    background: var(--ra-off-white);
    border-radius: var(--ra-radius-lg);
    padding: var(--ra-space-md);
    margin-bottom: var(--ra-space-md);
    border: 1px solid var(--ra-gray-200);
}

.ra-cluster-details h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ra-font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ra-text-dark);
    margin-bottom: var(--ra-space-sm);
}

.ra-cluster-details h4 i,
.ra-cluster-details h4 .dna-icon {
    color: var(--ra-primary);
}

.ra-cluster-hint {
    color: var(--ra-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.ra-cluster-members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.ra-member-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--ra-white);
    border-radius: var(--ra-radius-md);
    border: 1px solid var(--ra-gray-200);
}

.ra-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ra-white);
    font-weight: 600;
    font-size: 0.875rem;
}

.ra-member-info {
    flex: 1;
}

.ra-member-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ra-text-dark);
}

.ra-member-cm {
    font-size: 0.75rem;
    color: var(--ra-text-muted);
}

.ra-cluster-chromo {
    background: var(--ra-off-white);
    border-radius: var(--ra-radius-lg);
    padding: var(--ra-space-md);
    border: 1px solid var(--ra-gray-200);
}

.ra-cluster-chromo h4 {
    font-family: var(--ra-font-serif);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ra-text-dark);
    margin-bottom: var(--ra-space-sm);
}

.ra-mini-chromo-display {
    position: relative;
}

.ra-mini-chromo-bar {
    height: 30px;
    background: var(--ra-gray-200);
    border-radius: var(--ra-radius-sm);
    position: relative;
    overflow: hidden;
}

.ra-mini-chromo-segment {
    position: absolute;
    top: 5px;
    height: 20px;
    border-radius: var(--ra-radius-sm);
}

.ra-mini-chromo-info {
    margin-top: var(--ra-space-sm);
    font-size: 0.8rem;
    color: var(--ra-text-muted);
}

/* ==========================================
   GEOGRAPHIC MAP DEMO
   ========================================== */
.ra-map-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ra-space-md);
}

@media (min-width: 768px) {
    .ra-map-container {
        grid-template-columns: 280px 1fr;
    }
}

.ra-map-sidebar {
    background: var(--ra-off-white);
    border-radius: var(--ra-radius-lg);
    padding: var(--ra-space-md);
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--ra-gray-200);
}

.ra-map-sidebar h4 {
    font-family: var(--ra-font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ra-text-dark);
    margin-bottom: var(--ra-space-md);
}

.ra-location-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ra-location-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    background: var(--ra-white);
    border-radius: var(--ra-radius-md);
    cursor: pointer;
    transition: var(--ra-transition-fast);
    border: 1px solid transparent;
}

.ra-location-item:hover {
    border-color: var(--ra-primary);
}

.ra-location-item.active {
    border-color: var(--ra-primary);
    background: rgba(44, 122, 123, 0.04);
}

.ra-location-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ra-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ra-white);
    font-size: 0.75rem;
    flex-shrink: 0;
    font-weight: 600;
}

.ra-location-info {
    flex: 1;
}

.ra-location-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ra-text-dark);
}

.ra-location-matches {
    font-size: 0.75rem;
    color: var(--ra-text-muted);
}

.ra-map-wrapper {
    border-radius: var(--ra-radius-lg);
    overflow: hidden;
    min-height: 400px;
}

.ra-leaflet-map {
    height: 400px;
    width: 100%;
    background: var(--ra-gray-100);
    border-radius: var(--ra-radius-lg);
}

/* Leaflet custom styles */
.ra-leaflet-map .leaflet-control-zoom {
    border: none;
    border-radius: var(--ra-radius-md);
    overflow: hidden;
    box-shadow: var(--ra-shadow-md);
}

.ra-leaflet-map .leaflet-control-zoom a {
    width: 34px;
    height: 34px;
    line-height: 34px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ra-text-dark);
    border: none !important;
    font-size: 16px;
    transition: var(--ra-transition-fast);
}

.ra-leaflet-map .leaflet-control-zoom a:hover {
    background: var(--ra-primary);
    color: var(--ra-white);
}

.ra-leaflet-map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.7rem;
    padding: 4px 8px;
}

.ra-leaflet-map .leaflet-control-attribution a {
    color: var(--ra-primary) !important;
}

.ra-leaflet-map .leaflet-popup-content-wrapper {
    border-radius: var(--ra-radius-lg);
    box-shadow: var(--ra-shadow-lg);
    border: 1px solid rgba(44, 122, 123, 0.15);
}

.ra-leaflet-map .leaflet-popup-tip {
    box-shadow: none;
}

.ra-leaflet-map .leaflet-popup-content {
    margin: 12px 16px;
    font-size: 0.875rem;
    font-family: var(--ra-font-sans);
}

.ra-map-popup-title {
    font-weight: 600;
    color: var(--ra-text-dark);
    margin-bottom: 0.25rem;
}

.ra-map-popup-count {
    color: var(--ra-text-muted);
}

/* ==========================================
   DEMO CTA
   ========================================== */
.ra-demo-cta {
    text-align: center;
    margin-top: var(--ra-space-xl);
    padding: var(--ra-space-lg);
    background: var(--ra-white);
    border-radius: var(--ra-radius-xl);
    border: 1px solid var(--ra-gray-200);
}

.ra-demo-cta p {
    color: var(--ra-text-body);
    font-size: 1.1rem;
    margin-bottom: var(--ra-space-md);
    font-family: var(--ra-font-serif);
}

/* ==========================================
   HOW IT WORKS
   ========================================== */
.ra-how-it-works {
    background: var(--ra-off-white);
    padding: var(--ra-space-3xl) 0;
}

.ra-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ra-space-xl);
    max-width: 1000px;
    margin: var(--ra-space-xl) auto 0;
}

@media (max-width: 992px) {
    .ra-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.ra-step {
    text-align: center;
    position: relative;
}

.ra-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--ra-gold);
    color: var(--ra-deep);
    border-radius: 50%;
    font-family: var(--ra-font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--ra-space-md);
}

.ra-step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--ra-space-md);
    background: linear-gradient(135deg, var(--ra-primary), var(--ra-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ra-white);
}

.ra-step-icon .dna-icon {
    width: 32px;
    height: 32px;
}

.ra-step-icon i {
    font-size: 1.75rem;
    color: var(--ra-white);
}

.ra-step h3 {
    font-family: var(--ra-font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ra-text-dark);
    margin-bottom: 0.75rem;
}

.ra-step p {
    color: var(--ra-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.ra-step-connector {
    display: none;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.ra-faq {
    background: var(--ra-cream);
    padding: var(--ra-space-3xl) 0;
}

.ra-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--ra-space-lg);
}

.ra-faq-item {
    background: var(--ra-white);
    border-radius: var(--ra-radius-lg);
    padding: var(--ra-space-lg);
    border: 1px solid var(--ra-gray-200);
    transition: var(--ra-transition);
}

.ra-faq-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--ra-shadow-md);
}

.ra-faq-question {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: var(--ra-space-sm);
}

.ra-faq-question i,
.ra-faq-question .dna-icon {
    color: var(--ra-primary);
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.ra-faq-question .dna-icon {
    width: 20px;
    height: 20px;
}

.ra-faq-question h4 {
    font-family: var(--ra-font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ra-text-dark);
    margin: 0;
}

.ra-faq-item p {
    color: var(--ra-text-muted);
    line-height: 1.7;
    margin: 0;
    padding-left: 2rem;
    font-size: 0.95rem;
}

/* ==========================================
   FINAL CTA
   ========================================== */
.ra-final-cta {
    background: linear-gradient(135deg, var(--ra-deep) 0%, var(--ra-slate) 100%);
    padding: var(--ra-space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.ra-final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(44, 122, 123, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(183, 148, 94, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.ra-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.ra-cta-content h2 {
    font-family: var(--ra-font-serif);
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
    font-weight: 500;
    color: var(--ra-text-light);
    margin-bottom: var(--ra-space-sm);
}

.ra-cta-content > p {
    font-size: 1.1rem;
    color: var(--ra-text-light-muted);
    margin-bottom: var(--ra-space-lg);
}

.ra-cta-buttons {
    margin-bottom: var(--ra-space-lg);
}

.ra-cta-trust {
    display: flex;
    justify-content: center;
    gap: var(--ra-space-lg);
    flex-wrap: wrap;
}

.ra-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ra-text-light-muted);
    font-size: 0.9rem;
}

.ra-trust-item .dna-icon {
    color: var(--ra-gold);
}

.ra-trust-item i {
    color: var(--ra-gold);
}

/* ==========================================
   STICKY CTA BAR
   ========================================== */
.ra-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--ra-gray-200);
    padding: 12px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform var(--ra-transition);
}

.ra-sticky-cta.visible {
    transform: translateY(0);
}

.ra-sticky-cta .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ra-sticky-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ra-sticky-cta-text h4 {
    font-family: var(--ra-font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ra-text-dark);
    margin: 0;
}

.ra-sticky-cta-text p {
    font-size: 0.8rem;
    color: var(--ra-text-muted);
    margin: 0;
}

.ra-sticky-text {
    font-weight: 500;
    color: var(--ra-text-dark);
    display: none;
}

@media (min-width: 576px) {
    .ra-sticky-text {
        display: block;
    }
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 991px) {
    .ra-hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .ra-hero-stats {
        justify-content: flex-start;
    }

    .ra-demo-tabs {
        padding: 0.25rem;
    }

    .ra-demo-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .ra-demo-tab span {
        display: none;
    }

    .ra-demo-panel {
        padding: var(--ra-space-md);
    }

    .ra-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .ra-hero-cta {
        flex-direction: column;
    }

    .ra-btn-primary,
    .ra-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .ra-overview-grid {
        grid-template-columns: 1fr;
    }

    .ra-stat-card {
        flex-direction: column;
        text-align: center;
    }

    .ra-distribution-item {
        grid-template-columns: 100px 1fr 40px;
    }

    .ra-chromo-tabs {
        justify-content: center;
    }

    .ra-chromo-tab {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    .ra-matches-table {
        font-size: 0.8rem;
    }

    .ra-matches-table th,
    .ra-matches-table td {
        padding: 0.5rem;
    }

    .ra-cluster-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ra-faq-grid {
        grid-template-columns: 1fr;
    }

    .ra-sticky-cta .container {
        justify-content: center;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .ra-hero-title {
        font-size: 2rem;
    }

    .ra-hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .ra-hero-subtitle {
        font-size: 1rem;
    }

    .ra-hero-stats {
        gap: var(--ra-space-md);
    }

    .ra-stat-value {
        font-size: 2rem;
    }

    .ra-platform-badges {
        justify-content: center;
    }

    .ra-section-title {
        font-size: 1.5rem;
    }

    .ra-features-grid {
        grid-template-columns: 1fr;
    }

    .ra-feature-card {
        padding: var(--ra-space-md);
    }

    .ra-demo-container {
        border-radius: var(--ra-radius-lg);
    }

    .ra-overview-tables {
        grid-template-columns: 1fr;
    }

    .ra-distribution-item {
        grid-template-columns: 80px 1fr 35px;
        font-size: 0.8rem;
    }

    .ra-chromo-tabs {
        gap: 0.125rem;
    }

    .ra-chromo-tab {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .ra-cluster-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .ra-cluster-card {
        padding: 0.5rem;
    }

    .ra-cluster-id {
        font-size: 1.25rem;
    }

    .ra-map-sidebar {
        max-height: 200px;
    }

    .ra-leaflet-map {
        height: 300px;
    }

    .ra-step {
        padding: var(--ra-space-md);
    }

    .ra-faq-item {
        padding: var(--ra-space-md);
    }

    .ra-faq-question h4 {
        font-size: 1rem;
    }

    .ra-faq-item p {
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }

    .ra-cta-trust {
        flex-direction: column;
        gap: var(--ra-space-sm);
    }
}

/* ==========================================
   TOUCH-FRIENDLY ENHANCEMENTS
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    .ra-demo-tab {
        min-height: 44px;
        min-width: 44px;
    }

    .ra-chromo-tab {
        min-height: 40px;
        min-width: 40px;
    }

    .ra-btn-primary,
    .ra-btn-secondary {
        min-height: 48px;
    }

    .ra-page-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .ra-action-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .ra-location-item {
        min-height: 48px;
    }

    .ra-cluster-card {
        min-height: 80px;
    }

    .ra-feature-card:hover,
    .ra-stat-card:hover,
    .ra-faq-item:hover {
        transform: none;
    }

    .ra-segment-tooltip {
        display: none;
    }

    .ra-segment.tapped .ra-segment-tooltip {
        opacity: 1;
        display: block;
    }

    .ra-table-wrapper {
        -webkit-overflow-scrolling: touch;
    }

    .ra-chromo-tabs {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .ra-chromo-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .ra-chromo-tabs::-webkit-scrollbar-thumb {
        background: var(--ra-gray-300);
        border-radius: 2px;
    }
}

/* ==========================================
   KEYBOARD NAVIGATION FOCUS STYLES
   ========================================== */
.keyboard-navigation *:focus {
    outline: 3px solid var(--ra-gold);
    outline-offset: 2px;
}

.keyboard-navigation .ra-demo-tab:focus,
.keyboard-navigation .ra-chromo-tab:focus,
.keyboard-navigation .ra-btn-primary:focus,
.keyboard-navigation .ra-btn-secondary:focus {
    outline: 3px solid var(--ra-gold);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(183, 148, 94, 0.25);
}

.keyboard-navigation .ra-cluster-card:focus {
    outline: 3px solid var(--ra-white);
    outline-offset: 2px;
}

.keyboard-navigation .ra-location-item:focus {
    outline: 2px solid var(--ra-primary);
    outline-offset: 1px;
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ra-dna-helix,
    .ra-particles {
        animation: none;
    }

    .ra-scroll-indicator,
    .ra-scroll-indicator .dna-icon,
    .ra-scroll-indicator i {
        animation: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================
   HIGH CONTRAST MODE
   ========================================== */
@media (prefers-contrast: high) {
    .ra-segment {
        border: 2px solid var(--ra-deep);
    }

    .ra-cluster-card {
        border: 2px solid var(--ra-deep);
    }

    .ra-btn-primary {
        border: 2px solid var(--ra-deep);
    }

    .ra-demo-tab.active {
        border: 2px solid var(--ra-white);
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .ra-hero,
    .ra-sticky-cta,
    .page-nav,
    .ra-bottom-nav,
    .ra-back-to-top,
    .ra-scroll-progress,
    .ra-demo-section {
        display: none !important;
    }

    .ra-features,
    .ra-how-it-works,
    .ra-faq {
        break-inside: avoid;
    }

    .ra-feature-card,
    .ra-faq-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ==========================================
   RELATED PRODUCTS
   ========================================== */
.relatives-related-products {
    padding: 60px 0;
    background: var(--ra-off-white);
}

.relatives-related-title {
    text-align: center;
    font-family: var(--ra-font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--ra-text-dark);
    margin-bottom: 40px;
    font-weight: 500;
}

.relatives-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

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

@media (max-width: 575px) {
    .relatives-related-grid {
        grid-template-columns: 1fr;
    }
}

.relatives-related-card {
    background: var(--ra-white);
    border-radius: var(--ra-radius-lg);
    overflow: hidden;
    box-shadow: var(--ra-shadow-md);
    transition: var(--ra-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--ra-gray-200);
}

.relatives-related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ra-shadow-lg);
}

.relatives-related-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--ra-gray-200);
}

.relatives-related-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.relatives-related-content h4 {
    font-family: var(--ra-font-serif);
    font-size: 1.2rem;
    color: var(--ra-text-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.relatives-related-content p {
    font-size: 0.95rem;
    color: var(--ra-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.relatives-related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ra-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ra-transition);
    margin-top: auto;
}

.relatives-related-link:hover {
    color: var(--ra-primary-dark);
    text-decoration: underline;
}

.relatives-related-link i {
    transition: transform 0.2s ease;
}

.relatives-related-link:hover i {
    transform: translateX(4px);
}
