/* homepage.css - Political DNA Homepage Styles
   Version 3.0 - Fluid scaling for mobile to ultrawide displays
   Aesthetic: Genetic Laboratory / Clinical Precision meets Bold Science
*/

/* ============================================
   CUSTOM FONTS & VARIABLES
   ============================================ */

:root {
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Extended palette */
    --glow-green: rgba(6, 255, 165, 0.4);
    --glow-red: rgba(230, 57, 70, 0.3);
    --surface-elevated: rgba(30, 58, 95, 0.4);
    --surface-glass: rgba(255, 255, 255, 0.03);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(6, 255, 165, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-fluid-xl, 3rem);
    background: linear-gradient(180deg, 
        var(--dark) 0%, 
        var(--primary-dark) 50%,
        var(--dark) 100%
    );
}

/* Animated DNA Background */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.6;
}

/* DNA Helix Strands - FLUID WIDTH */
.helix-strand {
    position: absolute;
    width: clamp(250px, 25vw, 600px);
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 40px,
        var(--glow-green) 40px,
        var(--glow-green) 42px,
        transparent 42px,
        transparent 80px
    );
    animation: helix-drift 20s linear infinite;
    opacity: 0.3;
}

.strand-1 {
    left: clamp(-100px, -5vw, 5%);
    animation-delay: 0s;
    transform: skewX(-15deg);
}

.strand-2 {
    right: clamp(-100px, -5vw, 5%);
    animation-delay: -10s;
    transform: skewX(15deg);
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 40px,
        var(--glow-red) 40px,
        var(--glow-red) 42px,
        transparent 42px,
        transparent 80px
    );
}

/* Ultrawide: strands more visible */
@media (min-width: 1920px) {
    .helix-strand {
        width: clamp(400px, 30vw, 800px);
        opacity: 0.4;
    }
    
    .strand-1 {
        left: 0;
    }
    
    .strand-2 {
        right: 0;
    }
}

@media (min-width: 2560px) {
    .helix-strand {
        width: clamp(500px, 32vw, 1000px);
        opacity: 0.5;
    }
}

@keyframes helix-drift {
    0% { transform: translateY(0) skewX(-15deg); }
    100% { transform: translateY(-50%) skewX(-15deg); }
}

/* Grid Overlay - FLUID SIZE */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(6, 255, 165, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 255, 165, 0.03) 1px, transparent 1px);
    background-size: clamp(40px, 5vw, 80px) clamp(40px, 5vw, 80px);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Hero Content - FLUID MAX-WIDTH */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: clamp(320px, 80vw, 800px);
    padding: var(--space-fluid-md, var(--space-6));
}

@media (min-width: 1280px) {
    .hero-content {
        max-width: clamp(600px, 55vw, 900px);
    }
}

@media (min-width: 1920px) {
    .hero-content {
        max-width: clamp(700px, 50vw, 1100px);
    }
}

@media (min-width: 2560px) {
    .hero-content {
        max-width: clamp(900px, 45vw, 1400px);
    }
}

/* Lab Badge */
.lab-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--surface-glass);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-fluid-lg, var(--space-8));
    animation: fadeIn 0.6s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Headline - FLUID FONT SIZE */
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw + 1rem, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-fluid-lg, var(--space-8));
    letter-spacing: -0.03em;
}

@media (min-width: 1920px) {
    .hero-headline {
        font-size: clamp(4rem, 4vw + 1rem, 7rem);
    }
}

@media (min-width: 2560px) {
    .hero-headline {
        font-size: clamp(5rem, 3.5vw + 1rem, 8rem);
    }
}

.hero-headline .line-1,
.hero-headline .line-2 {
    display: block;
    color: var(--gray-400);
    animation: fadeIn 0.6s ease-out backwards;
}

.hero-headline .line-1 { animation-delay: 0.1s; }
.hero-headline .line-2 { animation-delay: 0.2s; }

.hero-headline .line-3 {
    display: block;
    color: var(--white);
    animation: fadeIn 0.6s ease-out backwards;
    animation-delay: 0.3s;
}

.hero-headline em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle - FLUID */
.hero-subtitle {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.5rem);
    color: var(--gray-400);
    line-height: 1.6;
    max-width: clamp(400px, 70vw, 800px);
    margin: 0 auto var(--space-fluid-xl, var(--space-10));
    animation: fadeIn 0.6s ease-out backwards;
    animation-delay: 0.4s;
}

@media (min-width: 1920px) {
    .hero-subtitle {
        max-width: clamp(600px, 50vw, 900px);
    }
}

/* CTA Group */
.hero-cta-group {
    animation: fadeIn 0.6s ease-out backwards;
    animation-delay: 0.5s;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-fluid-sm, var(--space-5)) var(--space-fluid-lg, var(--space-10));
    background: linear-gradient(135deg, var(--accent-green) 0%, #00d68f 100%);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-xl);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 4px 20px var(--glow-green),
        0 0 60px rgba(6, 255, 165, 0.2);
}

.cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px var(--glow-green),
        0 0 80px rgba(6, 255, 165, 0.3);
}

.cta-primary:active {
    transform: translateY(-1px) scale(1);
}

.cta-primary .cta-icon {
    font-size: var(--text-xl);
    transition: transform 0.3s ease;
}

.cta-primary:hover .cta-icon {
    transform: translateX(4px);
}

.cta-primary.large {
    padding: var(--space-fluid-md, var(--space-6)) var(--space-fluid-xl, var(--space-12));
    font-size: var(--text-xl);
}

/* CTA Meta */
.cta-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.meta-sep {
    opacity: 0.3;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-fluid-lg, var(--space-8));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-600);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeIn 1s ease-out backwards;
    animation-delay: 1s;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--gray-600) 0%, transparent 100%);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================
   DISCOVER SECTION
   ============================================ */

.discover-section {
    padding: var(--section-padding-y, var(--space-20)) 0;
    background: var(--dark);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--section-gap, var(--space-12));
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-3);
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw + 0.5rem, 3.5rem);
    font-weight: 700;
    color: var(--white);
}

@media (min-width: 1920px) {
    .section-title {
        font-size: clamp(2.5rem, 2.5vw + 0.5rem, 4rem);
    }
}

/* Discover Grid - FLUID */
.discover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-fluid-md, var(--space-6));
    max-width: clamp(700px, 80vw, 1100px);
    margin: 0 auto;
}

@media (min-width: 1536px) {
    .discover-grid {
        max-width: clamp(900px, 70vw, 1300px);
        gap: var(--space-fluid-lg, var(--space-8));
    }
}

@media (min-width: 1920px) {
    .discover-grid {
        max-width: clamp(1000px, 65vw, 1500px);
    }
}

@media (min-width: 2560px) {
    .discover-grid {
        max-width: clamp(1200px, 55vw, 1800px);
    }
}

/* Discover Cards - FLUID PADDING */
.discover-card {
    position: relative;
    padding: var(--space-fluid-lg, var(--space-8));
    background: var(--surface-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.discover-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.discover-card:hover {
    border-color: var(--border-accent);
    background: var(--surface-elevated);
    transform: translateY(-4px);
}

.discover-card.featured {
    background: linear-gradient(135deg, 
        rgba(114, 9, 183, 0.15) 0%, 
        rgba(6, 255, 165, 0.1) 100%
    );
    border-color: rgba(114, 9, 183, 0.3);
}

.discover-card.featured:hover {
    border-color: rgba(114, 9, 183, 0.5);
}

.card-number {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--gray-600);
}

.discover-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--white);
}

.discover-card p {
    font-size: var(--text-base);
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

/* Card Examples */
.card-example {
    padding: var(--space-4);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    margin-top: var(--space-4);
}

.example-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.example-value {
    font-size: var(--text-lg);
    font-weight: 700;
}

/* Axis Preview */
.axis-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
}

.axis-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.axis-label {
    font-size: var(--text-xs);
    color: var(--gray-500);
    min-width: 60px;
}

.axis-label:last-child {
    text-align: right;
}

.axis-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.axis-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-green) 100%);
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

/* Markers Preview */
.markers-preview {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3);
}

.marker {
    padding: var(--space-1) var(--space-3);
    background: rgba(6, 255, 165, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--accent-green);
}

/* Paradox Preview */
.paradox-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.paradox-badge {
    font-size: var(--text-xs);
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.paradox-title {
    font-weight: 700;
    color: var(--white);
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process-section {
    padding: var(--section-padding-y, var(--space-20)) 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--primary-dark) 100%);
}

/* Process Steps - FLUID */
.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-fluid-md, var(--space-4));
    max-width: clamp(700px, 80vw, 1100px);
    margin: 0 auto;
}

@media (min-width: 1536px) {
    .process-steps {
        max-width: clamp(900px, 70vw, 1300px);
        gap: var(--space-fluid-lg, var(--space-6));
    }
}

@media (min-width: 1920px) {
    .process-steps {
        max-width: clamp(1000px, 65vw, 1500px);
    }
}

@media (min-width: 2560px) {
    .process-steps {
        max-width: clamp(1200px, 55vw, 1800px);
    }
}

.process-step {
    flex: 1;
    max-width: clamp(220px, 20vw, 350px);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step:nth-child(1) { transition-delay: 0.1s; }
.process-step:nth-child(3) { transition-delay: 0.2s; }
.process-step:nth-child(5) { transition-delay: 0.3s; }

.step-number {
    width: clamp(50px, 4vw, 80px);
    height: clamp(50px, 4vw, 80px);
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-red) 100%);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--dark);
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--white);
}

.step-content p {
    font-size: var(--text-sm);
    color: var(--gray-400);
    line-height: 1.5;
    margin: 0;
}

.process-connector {
    flex-shrink: 0;
    width: clamp(40px, 5vw, 80px);
    height: 2px;
    margin-top: clamp(25px, 2vw, 40px);
    background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-red) 100%);
    opacity: 0.3;
}

/* ============================================
   PROOF STRIP
   ============================================ */

.proof-strip {
    padding: var(--space-fluid-lg, var(--space-8)) 0;
    background: var(--surface-glass);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.proof-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-fluid-xl, var(--space-10));
}

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

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* ============================================
   WHY SECTION (SEO CONTENT)
   ============================================ */

.why-section {
    padding: var(--section-padding-y, var(--space-16)) 0;
    background: rgba(0, 0, 0, 0.2);
}

.why-content {
    max-width: clamp(500px, 60vw, 800px);
    margin: 0 auto;
}

@media (min-width: 1920px) {
    .why-content {
        max-width: clamp(600px, 50vw, 900px);
    }
}

@media (min-width: 2560px) {
    .why-content {
        max-width: clamp(700px, 40vw, 1000px);
    }
}

.why-content p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--gray-300);
    margin-bottom: var(--space-6);
}

.why-content p:last-child {
    margin-bottom: 0;
}

.why-content strong {
    color: var(--gray-100);
    font-weight: 600;
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */

.final-cta {
    padding: var(--section-padding-y, var(--space-20)) 0;
    background: radial-gradient(ellipse at center, var(--primary-dark) 0%, var(--dark) 100%);
    text-align: center;
}

/* CTA Content - FLUID */
.cta-content {
    max-width: clamp(400px, 60vw, 700px);
    margin: 0 auto;
    padding: 0 var(--space-fluid-md, var(--space-4));
}

@media (min-width: 1920px) {
    .cta-content {
        max-width: clamp(600px, 50vw, 900px);
    }
}

@media (min-width: 2560px) {
    .cta-content {
        max-width: clamp(700px, 40vw, 1000px);
    }
}

.cta-headline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw + 0.5rem, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--white);
}

@media (min-width: 1920px) {
    .cta-headline {
        font-size: clamp(2rem, 2.5vw + 0.5rem, 3.5rem);
    }
}

.cta-subtext {
    font-size: var(--text-lg);
    color: var(--gray-400);
    margin-bottom: var(--space-fluid-lg, var(--space-8));
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-fluid-md, var(--space-6));
    margin-top: var(--space-6);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.trust-badge svg {
    color: var(--accent-green);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 900px) {
    .discover-grid {
        grid-template-columns: 1fr;
        max-width: clamp(320px, 90vw, 500px);
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .process-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }
    
    .process-step {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: var(--space-4);
    }
    
    .hero-content {
        padding: var(--space-4);
        max-width: 100%;
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 8vw, 2.75rem);
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .cta-primary {
        width: 100%;
        justify-content: center;
        padding: var(--space-4) var(--space-6);
    }
    
    .cta-primary.large {
        padding: var(--space-5) var(--space-8);
    }
    
    .cta-meta {
        flex-direction: column;
        gap: var(--space-1);
    }
    
    .meta-sep {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .proof-stats {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    .proof-divider {
        width: 40px;
        height: 1px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .discover-card {
        padding: var(--space-6);
    }
    
    .why-content {
        max-width: 100%;
    }
    
    .cta-content {
        max-width: 100%;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .helix-strand,
    .scroll-line {
        animation: none;
    }
    
    .discover-card,
    .process-step {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   SCREEN READER ONLY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}