/* ============================================
   PARLAY BUDDY - Clean, Professional Design
   Inspired by seats.aero
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --color-bg: #f8fafc;
    --color-bg-alt: #ffffff;
    --color-bg-dark: #0f172a;
    
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-text-light: #ffffff;
    
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    
    --color-accent: #8b5cf6;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    
    --color-border: #e2e8f0;
    --color-border-light: rgba(255, 255, 255, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Typography - Responsive with clamp */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: clamp(0.65rem, 1.5vw, 0.75rem);
    --font-size-sm: clamp(0.75rem, 1.8vw, 0.875rem);
    --font-size-base: clamp(0.875rem, 2vw, 1rem);
    --font-size-lg: clamp(1rem, 2.2vw, 1.125rem);
    --font-size-xl: clamp(1.1rem, 2.5vw, 1.25rem);
    --font-size-2xl: clamp(1.25rem, 3vw, 1.5rem);
    --font-size-3xl: clamp(1.5rem, 4vw, 2rem);
    --font-size-4xl: clamp(1.75rem, 5vw, 2.5rem);
    --font-size-5xl: clamp(2rem, 6vw, 3rem);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,255,255,0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139,92,246,0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px var(--space-lg) var(--space-3xl);
    position: relative;
    z-index: 1;
}

.logo-container-hero {
    margin-bottom: var(--space-xl);
}

.hero-logo {
    width: clamp(80px, 15vw, 140px);
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--color-text-light);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.2em;
}

/* Rotator Wrapper & Animation */
.rotator-wrapper {
    display: inline-block;
    position: relative;
    min-width: 180px;
    text-align: center;
}

.rotator {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.05em 0.4em;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    animation: none;
}

/* Rotator fade animation */
.rotator.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.rotator.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

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

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    position: relative;
    z-index: 1;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   PREDICTIONS SECTION
   ============================================ */
.predictions-section {
    padding: var(--space-3xl) 0;
    background: var(--color-bg);
}

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

.prediction-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.prediction-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.team-row + .team-row {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
}

.team-info {
    flex: 0 0 130px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-info .odds {
    font-weight: 500;
    color: var(--color-text-secondary);
    font-size: var(--font-size-xs);
}

.bar-container {
    flex: 1;
    height: 28px;
    background: var(--color-bg);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: calc(var(--percent) * 1%);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-value {
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--color-text);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: var(--space-3xl) 0;
    background: var(--gradient-hero);
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
    color: var(--color-text-light);
}

.testimonials-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.carousel {
    max-width: 600px;
    margin: 0 auto;
}

.carousel-track {
    position: relative;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
    animation: fadeSlideIn 0.4s ease;
}

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

.testimonial-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 700;
    color: var(--color-text);
    font-size: var(--font-size-base);
}

.testimonial-role {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--color-border);
    font-size: var(--font-size-lg);
}

.star.filled {
    color: var(--color-warning);
}

.testimonial-quote {
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.testimonial-image-btn {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    cursor: pointer;
}

.testimonial-image-btn img {
    width: 100%;
    transition: transform var(--transition-base);
}

.testimonial-image-btn:hover img {
    transform: scale(1.02);
}

.image-hint {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: var(--font-size-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.testimonial-image-btn:hover .image-hint {
    opacity: 1;
}

.testimonial-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.highlight-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.highlight-value {
    font-weight: 700;
    color: var(--color-primary);
    font-size: var(--font-size-sm);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.carousel-controls .carousel-dots {
    display: flex;
    gap: var(--space-sm);
}

.carousel-controls .carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
}

.carousel-controls .carousel-dots button.active {
    background: var(--color-text-light);
    transform: scale(1.2);
}

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

.faq-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.faq-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    padding: var(--space-lg) 0;
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-base);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    font-weight: 400;
    transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--color-primary);
}

.faq-item p {
    padding-bottom: var(--space-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: var(--font-size-sm);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-dark);
    text-align: center;
}

.cta-section h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.cta-section p {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    color: var(--color-text-light);
    font-size: 2.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    transition: background var(--transition-base);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

#lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-inner {
        padding: 100px var(--space-md) var(--space-2xl);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .rotator-wrapper {
        min-width: 140px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
    }
    
    .predictions-grid {
        grid-template-columns: 1fr;
    }
    
    .team-info {
        flex: 0 0 110px;
    }
    
    .faq-card {
        padding: var(--space-lg);
    }
    
    .testimonial-card {
        padding: var(--space-lg);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 var(--space-md);
    }
    
    .predictions-section,
    .testimonials-section,
    .faq-section,
    .cta-section {
        padding: var(--space-2xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .rotator-wrapper {
        min-width: 100px;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    .bar-container {
        height: 24px;
    }
}

/* ============================================
   ITERATIONS SECTION - How It Works
   ============================================ */
.iterations-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.iterations-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

/* Left: Iteration Stack */
.iterations-input {
    text-align: center;
}

.iteration-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 280px;
    margin: 0 auto var(--space-md);
}

.iteration-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    animation: cardPulse 3s ease-in-out infinite;
}

.iteration-card:nth-child(odd) {
    animation-delay: 0.5s;
}

.iteration-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

@keyframes cardPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.iteration-num {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.iteration-picks {
    display: flex;
    gap: 3px;
    justify-content: center;
    flex-wrap: wrap;
}

.pick {
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.pick.favorite {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.pick.underdog {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.iterations-label,
.process-label,
.output-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
}

/* Center: Process/Brain */
.iterations-process {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.process-arrows {
    display: flex;
    align-items: center;
}

.flow-arrow {
    width: 60px;
    height: 20px;
}

.arrow-flow {
    animation: flowPulse 2s ease-in-out infinite;
}

@keyframes flowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.process-brain {
    text-align: center;
}

.brain-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.brain-icon .neuron {
    animation: neuronFire 1.5s ease-in-out infinite;
}

.brain-icon .n1 { animation-delay: 0s; }
.brain-icon .n2 { animation-delay: 0.5s; }
.brain-icon .n3 { animation-delay: 1s; }

@keyframes neuronFire {
    0%, 100% { opacity: 0.5; r: 3; }
    50% { opacity: 1; r: 4; }
}

/* Right: Prediction Output */
.iterations-output {
    text-align: center;
}

.prediction-result {
    background: var(--color-bg-alt);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.result-icon {
    font-size: 1.5rem;
}

.result-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text);
}

.result-picks {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.result-pick {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.result-team {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

.result-confidence {
    font-weight: 700;
    font-size: var(--font-size-sm);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.result-confidence.high {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.result-confidence.medium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.result-insight {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
}

.insight-icon {
    font-size: 1rem;
}

.insight-text {
    color: var(--color-primary);
    font-weight: 500;
}

/* Steps */
.iterations-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0 auto var(--space-md);
}

.step h3 {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.step p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.step-arrow {
    color: var(--color-primary);
    margin-top: 12px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 900px) {
    .iterations-visual {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .iterations-process {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        width: 40px;
    }
    
    .iteration-stack {
        grid-template-columns: repeat(4, 1fr);
        max-width: 320px;
    }
}

@media (max-width: 600px) {
    .iterations-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: var(--space-sm) 0;
    }
    
    .iteration-stack {
        grid-template-columns: repeat(3, 1fr);
        max-width: 240px;
    }
    
    .iteration-card {
        padding: 6px;
    }
    
    .pick {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .prediction-result {
        min-width: 180px;
        padding: var(--space-md);
    }
}

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