﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Ancestry Communities Product Page - Cinematic Community-Focused Design
 * Warm, inviting dark theme with network-based visualizations and community-focused styling.
 */

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
    /* Primary Colors - Warm Community Dark Theme */
    --comm-bg-primary: #0a1620;
    --comm-bg-secondary: #0f1f2a;
    --comm-bg-tertiary: #152535;
    --comm-bg-card: #1a2f40;
    
    /* Text Colors */
    --comm-text-primary: #f5f0e8;
    --comm-text-secondary: #c4beb0;
    --comm-text-tertiary: #9a9385;
    --comm-text-muted: #6b655a;
    
    /* Accent Colors - Warm Amber/Gold & Teal */
    --comm-accent-primary: #d4a574;
    --comm-accent-secondary: #e0b890;
    --comm-accent-teal: #4a9d9d;
    --comm-accent-subtle: rgba(212, 165, 116, 0.15);
    --comm-accent-glow: rgba(212, 165, 116, 0.3);
    
    /* Structural Colors */
    --comm-border: rgba(255, 255, 255, 0.08);
    --comm-border-strong: rgba(255, 255, 255, 0.15);
    --comm-grid-line: rgba(255, 255, 255, 0.03);
    
    /* Spacing Scale */
    --comm-space-xs: 0.5rem;
    --comm-space-sm: 1rem;
    --comm-space-md: 2rem;
    --comm-space-lg: 4rem;
    --comm-space-xl: 6rem;
    --comm-space-2xl: 10rem;
    
    /* Typography */
    --comm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --comm-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Transitions */
    --comm-transition-fast: 0.15s ease;
    --comm-transition-base: 0.3s ease;
    --comm-transition-slow: 0.5s ease;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
.comm-page {
    font-family: var(--comm-font-sans);
    color: var(--comm-text-primary);
    background-color: var(--comm-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.comm-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--comm-accent-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 500;
    transition: top var(--comm-transition-fast);
}

.comm-skip-link:focus {
    top: 0;
    outline: 2px solid var(--comm-accent-secondary);
    outline-offset: 2px;
}

/* ========================================
   SCROLL PROGRESS
   ======================================== */
.comm-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--comm-accent-primary), var(--comm-accent-teal));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========================================
   PAGE NAVIGATION
   ======================================== */
.comm-page-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: none;
}

@media (min-width: 1200px) {
    .comm-page-nav {
        display: block;
    }
}

.comm-nav-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--comm-border-strong);
    margin: 1.25rem 0;
    transition: all var(--comm-transition-base);
    position: relative;
}

.comm-nav-dot:hover,
.comm-nav-dot.active {
    background: var(--comm-accent-primary);
    transform: scale(1.4);
}

.comm-nav-dot::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--comm-bg-card);
    color: var(--comm-text-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--comm-transition-fast);
    border: 1px solid var(--comm-border);
}

.comm-nav-dot:hover::before {
    opacity: 1;
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
   ======================================== */
.comm-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--comm-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 1000;
}

.comm-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: var(--comm-text-tertiary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color var(--comm-transition-fast);
    border-radius: 8px;
}

.comm-mobile-nav-item.active {
    color: var(--comm-accent-primary);
}

.comm-mobile-nav-icon {
    font-size: 1.25rem;
}

.comm-mobile-nav-label {
    font-weight: 500;
}

.comm-page {
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    .comm-page {
        padding-bottom: 0;
    }
}

/* ========================================
   SECTION BASE
   ======================================== */
.comm-section {
    padding: var(--comm-space-xl) var(--comm-space-md);
    position: relative;
}

.comm-section-content {
    max-width: 900px;
    margin: 0 auto;
}

.comm-section-marker {
    width: 40px;
    height: 2px;
    background: var(--comm-accent-primary);
    margin-bottom: var(--comm-space-md);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.comm-heading-2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--comm-text-primary);
    margin-bottom: var(--comm-space-md);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.comm-prose {
    color: var(--comm-text-secondary);
    line-height: 1.75;
    font-size: 1.0625rem;
}

.comm-prose p {
    margin-bottom: 1.5rem;
}

.comm-prose p:last-child {
    margin-bottom: 0;
}

.comm-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--comm-text-primary);
}

.comm-prose strong {
    color: var(--comm-text-primary);
    font-weight: 600;
}

/* ========================================
   HERO SECTION
   ======================================== */
.comm-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--comm-space-xl) var(--comm-space-md);
}

.comm-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.comm-hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--comm-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--comm-grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
}

.comm-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 0%, var(--comm-bg-primary) 70%);
}

.comm-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.comm-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--comm-space-md);
}

.comm-label-line {
    width: 40px;
    height: 1px;
    background: var(--comm-accent-primary);
}

.comm-label-text {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--comm-accent-secondary);
}

.comm-hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--comm-text-primary);
    margin-bottom: var(--comm-space-md);
}

.comm-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--comm-text-secondary);
    max-width: 640px;
    margin: 0 auto var(--comm-space-lg);
}

.comm-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--comm-accent-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--comm-transition-base);
}

.comm-hero-cta:hover {
    background: var(--comm-accent-secondary);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--comm-accent-glow);
}

.comm-cta-icon {
    font-size: 0.875rem;
    transition: transform var(--comm-transition-fast);
    transform: rotate(-90deg);
}

.comm-hero-cta:hover .comm-cta-icon {
    transform: rotate(-90deg) translateX(4px);
}

.comm-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--comm-text-tertiary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.comm-hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--comm-text-tertiary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========================================
   HERO NETWORK VISUALIZATION
   ======================================== */
.comm-hero-visualization {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.comm-network-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--comm-text-tertiary);
    opacity: 0.5;
    transition: all 2s ease;
}

.comm-node-center {
    width: 14px;
    height: 14px;
    background: var(--comm-accent-primary);
    opacity: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--comm-accent-glow);
    animation: nodePulse 3s ease-in-out infinite;
}

.comm-node-1 { left: 35%; top: 40%; }
.comm-node-2 { left: 62%; top: 35%; }
.comm-node-3 { left: 45%; top: 65%; }
.comm-node-4 { left: 70%; top: 55%; }
.comm-node-5 { left: 28%; top: 58%; }
.comm-node-6 { left: 55%; top: 75%; }
.comm-node-7 { left: 20%; top: 45%; }
.comm-node-8 { left: 75%; top: 40%; }

.comm-network-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--comm-accent-subtle), transparent);
    transform-origin: left center;
    opacity: 0.3;
}

.comm-conn-1 {
    left: 50%;
    top: 50%;
    width: 120px;
    transform: rotate(-25deg);
}

.comm-conn-2 {
    left: 50%;
    top: 50%;
    width: 100px;
    transform: rotate(35deg);
}

.comm-conn-3 {
    left: 50%;
    top: 50%;
    width: 80px;
    transform: rotate(160deg);
}

.comm-conn-4 {
    left: 50%;
    top: 50%;
    width: 90px;
    transform: rotate(-50deg);
}

.comm-conn-5 {
    left: 50%;
    top: 50%;
    width: 110px;
    transform: rotate(120deg);
}

.comm-conn-6 {
    left: 50%;
    top: 50%;
    width: 95px;
    transform: rotate(-140deg);
}

.comm-conn-7 {
    left: 50%;
    top: 50%;
    width: 85px;
    transform: rotate(70deg);
}

.comm-conn-8 {
    left: 50%;
    top: 50%;
    width: 105px;
    transform: rotate(-100deg);
}

@keyframes nodePulse {
    0%, 100% { 
        box-shadow: 0 0 20px var(--comm-accent-glow);
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        box-shadow: 0 0 30px var(--comm-accent-glow);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ========================================
   DEFINITION SECTION
   ======================================== */
.comm-definition {
    background: var(--comm-bg-secondary);
}

.comm-network-viz {
    position: relative;
    height: 300px;
    margin: var(--comm-space-lg) 0;
    border-radius: 8px;
    background: var(--comm-bg-card);
    border: 1px solid var(--comm-border);
    overflow: hidden;
}

.comm-network-circle {
    position: absolute;
    border: 1px dashed var(--comm-border);
    border-radius: 50%;
    opacity: 0.2;
}

.comm-circle-1 {
    left: 20%;
    top: 30%;
    width: 150px;
    height: 120px;
}

.comm-circle-2 {
    left: 55%;
    top: 50%;
    width: 180px;
    height: 100px;
}

.comm-circle-3 {
    left: 35%;
    top: 60%;
    width: 120px;
    height: 100px;
}

.comm-network-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--comm-accent-primary);
    opacity: 0.6;
}

.comm-dot-1 { left: 25%; top: 35%; }
.comm-dot-2 { left: 60%; top: 55%; }
.comm-dot-3 { left: 40%; top: 65%; }
.comm-dot-4 { left: 70%; top: 60%; }
.comm-dot-5 { left: 30%; top: 50%; }
.comm-dot-6 { left: 50%; top: 40%; }

.comm-network-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--comm-accent-subtle), transparent);
    opacity: 0.3;
}

.comm-line-1 {
    left: 25%;
    top: 35%;
    width: 35%;
    transform: rotate(15deg);
}

.comm-line-2 {
    left: 40%;
    top: 65%;
    width: 30%;
    transform: rotate(-20deg);
}

.comm-line-3 {
    left: 50%;
    top: 40%;
    width: 20%;
    transform: rotate(45deg);
}

.comm-network-label {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--comm-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.comm-definition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--comm-space-md);
    margin-top: var(--comm-space-lg);
}

.comm-definition-item {
    padding: var(--comm-space-md);
    background: var(--comm-bg-card);
    border: 1px solid var(--comm-border);
    border-radius: 8px;
    transition: all var(--comm-transition-base);
}

.comm-definition-item:hover {
    border-color: var(--comm-border-strong);
    transform: translateY(-4px);
}

.comm-definition-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--comm-accent-subtle);
    border-radius: 8px;
    margin-bottom: var(--comm-space-sm);
    color: var(--comm-accent-primary);
    font-size: 1.5rem;
}

.comm-definition-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--comm-text-primary);
    margin-bottom: 0.5rem;
}

.comm-definition-item p {
    font-size: 0.9375rem;
    color: var(--comm-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   VALUE SECTION
   ======================================== */
.comm-value {
    background: var(--comm-bg-primary);
}

.comm-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--comm-space-md);
    margin-top: var(--comm-space-lg);
}

.comm-value-card {
    padding: var(--comm-space-md);
    background: var(--comm-bg-card);
    border: 1px solid var(--comm-border);
    border-radius: 12px;
    text-align: center;
    transition: all var(--comm-transition-base);
    position: relative;
}

.comm-value-card:hover {
    border-color: var(--comm-accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--comm-accent-glow);
}

.comm-value-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--comm-accent-primary);
    opacity: 0.5;
    font-family: var(--comm-font-mono);
}

.comm-value-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--comm-space-md) auto;
    background: var(--comm-accent-subtle);
    border-radius: 50%;
    color: var(--comm-accent-primary);
    font-size: 2rem;
}

.comm-value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--comm-text-primary);
    margin-bottom: var(--comm-space-sm);
}

.comm-value-card p {
    font-size: 0.9375rem;
    color: var(--comm-text-secondary);
    line-height: 1.65;
    margin: 0;
}

.comm-value-note {
    margin-top: var(--comm-space-lg);
    padding: var(--comm-space-md);
    background: var(--comm-accent-subtle);
    border-radius: 8px;
    border-left: 3px solid var(--comm-accent-primary);
}

.comm-value-note p {
    margin: 0;
    color: var(--comm-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.comm-value-note strong {
    color: var(--comm-text-primary);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.comm-features {
    background: var(--comm-bg-secondary);
}

.comm-features-grid {
    margin-top: var(--comm-space-lg);
}

.comm-feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--comm-space-md);
    padding: var(--comm-space-md) 0;
    border-bottom: 1px solid var(--comm-border);
}

.comm-feature-item:last-child {
    border-bottom: none;
}

.comm-feature-visual {
    display: flex;
    align-items: flex-start;
}

.comm-feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--comm-accent-subtle);
    border-radius: 12px;
    color: var(--comm-accent-primary);
    font-size: 1.75rem;
}

.comm-feature-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--comm-text-primary);
    margin-bottom: 0.5rem;
}

.comm-feature-text p {
    font-size: 0.9375rem;
    color: var(--comm-text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.comm-how-it-works {
    background: var(--comm-bg-primary);
}

.comm-steps {
    margin-top: var(--comm-space-lg);
}

.comm-step-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--comm-space-md);
    padding: var(--comm-space-md) 0;
    border-left: 2px solid var(--comm-accent-primary);
    padding-left: var(--comm-space-md);
    margin-left: 1rem;
    position: relative;
}

.comm-step-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: var(--comm-space-md);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--comm-accent-primary);
    border: 2px solid var(--comm-bg-primary);
}

.comm-step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--comm-accent-primary);
    font-family: var(--comm-font-mono);
    line-height: 1;
}

.comm-step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--comm-text-primary);
    margin-bottom: 0.5rem;
}

.comm-step-content p {
    font-size: 0.9375rem;
    color: var(--comm-text-secondary);
    line-height: 1.65;
    margin: 0;
}

.comm-how-it-works-note {
    margin-top: var(--comm-space-lg);
    padding: var(--comm-space-md);
    background: var(--comm-bg-card);
    border-radius: 8px;
    border: 1px solid var(--comm-border);
}

.comm-how-it-works-note p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--comm-text-secondary);
    line-height: 1.65;
}

/* ========================================
   COMMUNITY TYPES SECTION
   ======================================== */
.comm-community-types {
    background: var(--comm-bg-secondary);
}

.comm-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--comm-space-md);
    margin-top: var(--comm-space-lg);
}

.comm-type-card {
    padding: var(--comm-space-md);
    background: var(--comm-bg-card);
    border: 1px solid var(--comm-border);
    border-radius: 8px;
    text-align: center;
    transition: all var(--comm-transition-base);
}

.comm-type-card:hover {
    border-color: var(--comm-accent-teal);
    transform: translateY(-4px);
}

.comm-type-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--comm-space-sm);
    background: rgba(74, 157, 157, 0.15);
    border-radius: 50%;
    color: var(--comm-accent-teal);
    font-size: 1.75rem;
}

.comm-type-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--comm-text-primary);
    margin-bottom: 0.5rem;
}

.comm-type-card p {
    font-size: 0.9375rem;
    color: var(--comm-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   FINALE SECTION
   ======================================== */
.comm-finale {
    background: linear-gradient(180deg, var(--comm-bg-secondary) 0%, var(--comm-bg-primary) 100%);
    text-align: center;
    padding: var(--comm-space-2xl) var(--comm-space-md);
    position: relative;
    overflow: hidden;
}

.comm-finale-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.comm-converge-line {
    position: absolute;
    background: linear-gradient(to center, transparent, var(--comm-accent-subtle), transparent);
    opacity: 0.2;
}

.comm-line-tl {
    top: 0;
    left: 0;
    width: 200px;
    height: 1px;
    transform: rotate(45deg);
    transform-origin: left center;
}

.comm-line-tr {
    top: 0;
    right: 0;
    width: 200px;
    height: 1px;
    transform: rotate(-45deg);
    transform-origin: right center;
}

.comm-line-bl {
    bottom: 0;
    left: 0;
    width: 200px;
    height: 1px;
    transform: rotate(-45deg);
    transform-origin: left center;
}

.comm-line-br {
    bottom: 0;
    right: 0;
    width: 200px;
    height: 1px;
    transform: rotate(45deg);
    transform-origin: right center;
}

.comm-line-l {
    left: 0;
    top: 50%;
    width: 300px;
    height: 1px;
    transform: translateY(-50%) rotate(90deg);
}

.comm-line-r {
    right: 0;
    top: 50%;
    width: 300px;
    height: 1px;
    transform: translateY(-50%) rotate(-90deg);
}

.comm-line-t {
    top: 0;
    left: 50%;
    width: 300px;
    height: 1px;
    transform: translateX(-50%);
}

.comm-line-b {
    bottom: 0;
    left: 50%;
    width: 300px;
    height: 1px;
    transform: translateX(-50%);
}

.comm-converge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--comm-accent-primary);
    border-radius: 50%;
    opacity: 0.5;
}

.comm-finale-quote {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    font-style: italic;
    color: var(--comm-text-secondary);
    margin-bottom: var(--comm-space-lg);
    position: relative;
    z-index: 1;
}

.comm-finale-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--comm-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--comm-space-md);
    position: relative;
    z-index: 1;
}

.comm-finale-subtitle {
    font-size: 1.125rem;
    color: var(--comm-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--comm-space-lg);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.comm-finale-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background: var(--comm-accent-primary);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all var(--comm-transition-base);
    position: relative;
    z-index: 1;
}

.comm-finale-cta:hover {
    background: var(--comm-accent-secondary);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--comm-accent-glow);
}

.comm-finale-cta .comm-cta-icon {
    transform: rotate(-90deg);
}

.comm-finale-cta:hover .comm-cta-icon {
    transform: rotate(-90deg) translateX(4px);
}

.comm-finale-note {
    margin-top: var(--comm-space-md);
    font-size: 0.875rem;
    color: var(--comm-text-tertiary);
    position: relative;
    z-index: 1;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.comm-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.comm-animate.comm-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .comm-section {
        padding: var(--comm-space-lg) var(--comm-space-sm);
    }
    
    .comm-hero {
        padding: var(--comm-space-lg) var(--comm-space-sm);
        min-height: calc(100vh - 60px);
    }
    
    .comm-hero-scroll {
        display: none;
    }
    
    .comm-definition-grid,
    .comm-value-grid,
    .comm-types-grid {
        grid-template-columns: 1fr;
    }
    
    .comm-feature-item,
    .comm-step-item {
        grid-template-columns: 1fr;
        gap: var(--comm-space-sm);
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        border-bottom: 1px solid var(--comm-border);
        padding-bottom: var(--comm-space-md);
    }
    
    .comm-feature-item::before,
    .comm-step-item::before {
        display: none;
    }
    
    .comm-step-number {
        margin-bottom: var(--comm-space-sm);
    }
    
    .comm-finale {
        padding: var(--comm-space-xl) var(--comm-space-sm);
    }
}

@media print {
    .comm-page-nav,
    .comm-mobile-nav,
    .comm-scroll-progress,
    .comm-hero-scroll {
        display: none !important;
    }
}
