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

:root {
    --bg: #0a0a0b;
    --bg-card: #111113;
    --bg-elevated: #1a1a1d;
    --text: #f5f5f7;
    --text-muted: #8e8e93;
    --text-dim: #636366;
    --accent: #ff6b35;
    --accent-cool: #4ecdc4;
    --accent-gold: #ffd700;
    --border: #2c2c2e;
    --radius: 12px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

/* Subtle film grain texture */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(78, 205, 196, 0.05) 0%, transparent 40%);
    animation: subtleShift 20s ease-in-out infinite;
}

@keyframes subtleShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 1%); }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
}

.hero-tag {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 500px;
    margin-inline: auto;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.scroll-cue {
    position: absolute;
    bottom: -4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1s;
}

.scroll-cue span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

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

/* === DEVIN CARDS === */
.devins-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.devin-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (min-width: 768px) {
    .devin-card {
        grid-template-columns: 1fr 1.2fr;
    }
    
    .devin-card:nth-child(even) {
        direction: rtl;
    }
    
    .devin-card:nth-child(even) > * {
        direction: ltr;
    }
}

.card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.devin-card:hover .card-image img {
    transform: scale(1.03);
}

.card-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.card-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.card-sport {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.card-team {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-name {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.card-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* === STATS === */
.card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 480px) {
    .card-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* === STAT VISUALIZATIONS === */
.stat-viz {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-elevated);
    aspect-ratio: 16/9;
    position: relative;
}

.stat-viz canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* === HONORABLE MENTION === */
.honorable-mention {
    border-color: var(--accent-gold);
    position: relative;
}

.honorable-mention::before {
    content: 'HONORABLE MENTION';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-gold);
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.75rem;
    border-radius: 0 var(--radius) 0 8px;
    z-index: 2;
}

/* === FOOTER === */
.site-footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.site-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* === RESPONSIVE TWEAKS === */
@media (max-width: 767px) {
    .card-image {
        aspect-ratio: 4/3;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .card-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .devins-grid {
        gap: 3rem;
        padding: 2rem 1rem;
    }
    
    .stat-viz {
        aspect-ratio: 4/3;
    }
}

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