/* Design System */
:root {
    /* Colors */
    --bg-primary: #030303; /* Darker, deeper black */
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    /* Accents */
    --accent-cyan: #64D2FF; /* More refined cyan */
    --accent-cyan-dim: rgba(100, 210, 255, 0.1);
    --accent-gold: #F5D061; /* Premium gold */
    --accent-gold-dim: rgba(245, 208, 97, 0.1);
    
    /* Gradients */
    --gold-gradient: linear-gradient(135deg, #F5D061 0%, #E1B32E 100%);
    --cyan-gradient: linear-gradient(135deg, #64D2FF 0%, #2E93E1 100%);
    --dark-gradient: linear-gradient(to bottom, #050505, #0a0a0a);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --spacing-section: 160px; /* Increased breathing room */
    --max-width: 1100px; /* Slightly wider for drama */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;
    
    /* Glows */
    --glow-cyan: 0 0 40px rgba(100, 210, 255, 0.15);
    --glow-gold: 0 0 40px rgba(245, 208, 97, 0.15);
    --radial-glow: radial-gradient(circle at center, rgba(100, 210, 255, 0.08) 0%, transparent 70%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(4rem, 8vw, 7rem);
    background: linear-gradient(to bottom, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.1);
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 65ch;
    line-height: 1.8;
}

strong {
    color: #fff;
    font-weight: 600;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Layout */
header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    position: relative;
}

/* Hero glow effect */
.hero-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--radial-glow);
    pointer-events: none;
    z-index: -1;
}

.hero-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 16px;
    opacity: 0.95;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--glow-cyan);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 2rem 0;
}

section {
    margin-bottom: var(--spacing-section);
}

/* Components */
.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--spacing-section) 0;
    position: relative;
    height: 2px;
}

.divider::before {
    content: "";
    position: absolute;
    width: 100%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-cyan) 20%, var(--accent-gold) 80%, transparent 100%);
    opacity: 0.5;
}

.divider::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
}

.divider img {
    display: none;
}

/* Feature: Gold Gradient Text */
.gold-gradient-text {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    padding: 3rem;
    margin: 3rem 0;
    border: 1px solid var(--accent-gold-dim);
    background: radial-gradient(circle at center, rgba(245, 208, 97, 0.03) 0%, transparent 70%);
    border-radius: 2px;
    position: relative;
}

.gold-gradient-text::before, .gold-gradient-text::after {
    content: "+";
    position: absolute;
    color: var(--accent-gold);
    opacity: 0.5;
}
.gold-gradient-text::before { top: -10px; left: -5px; }
.gold-gradient-text::after { bottom: -10px; right: -5px; }

.bottleneck-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Feature: Highlight Box */
.highlight-box {
    border-left: 2px solid var(--accent-cyan);
    font-style: italic;
    color: #fff;
    background: linear-gradient(90deg, var(--accent-cyan-dim) 0%, transparent 100%);
    padding: 2rem;
    border-radius: 0 8px 8px 0;
}

/* Feature: Cards */
.approach-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

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

.approach {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.approach:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -15px rgba(0,0,0,0.6);
}

.ultrawork-approach:hover { 
    border-color: var(--accent-cyan); 
    box-shadow: var(--glow-cyan), 0 25px 50px -15px rgba(0,0,0,0.6); 
}
.prometheus-approach:hover { 
    border-color: var(--accent-gold); 
    box-shadow: var(--glow-gold), 0 25px 50px -15px rgba(0,0,0,0.6); 
}

.approach h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #fff;
    font-family: var(--font-serif);
}

.approach-tagline {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 1rem;
}

ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.prometheus-approach ul li::before { color: var(--accent-gold); }

/* Code & ASCII */
code {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    background: rgba(100, 210, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.ascii-art {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--accent-cyan);
    background: #000;
    padding: 2rem;
    border: 1px solid #333;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    font-family: var(--font-sans);
}

th {
    text-align: left;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
    color: var(--accent-gold);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
}

td {
    padding: 1.5rem;
    border-bottom: 1px solid #222;
    color: var(--text-secondary);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

/* Footer */
footer {
    margin-top: var(--spacing-section);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center bottom, rgba(100, 210, 255, 0.05) 0%, transparent 60%);
}

footer::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan-dim), var(--accent-gold-dim), transparent);
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-pattern {
    display: none;
}

a.cta-link,
a.cta-link:hover,
a.cta-link:focus,
a.cta-link:active {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--text-primary);
    color: #000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

a.cta-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4), var(--glow-cyan);
}

.final-statement {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --max-width: 90%;
        --spacing-section: 100px;
    }
    
    h1 { font-size: clamp(3rem, 6vw, 5rem); }
    h2 { font-size: 2.5rem; }
}

/* Mobile Landscape / Small Tablet */
@media (max-width: 768px) {
    :root {
        --spacing-section: 80px;
    }
    
    header {
        padding: 4rem 1.5rem 2rem;
    }
    
    main {
        padding: 1.5rem 1.5rem 0;
    }
    
    h2 { font-size: 2rem; }
    
    .hero-image {
        max-width: 100%;
    }
    
    .approach-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .approach {
        padding: 2rem;
    }
    
    .divider::before {
        max-width: 250px;
    }
    
    /* Table to card layout */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead {
        display: none;
    }
    
    tr {
        margin-bottom: 1.5rem;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 1rem;
    }
    
    td {
        padding: 0.75rem 0;
        border-bottom: none;
        position: relative;
    }
    
    td:first-child {
        color: var(--accent-gold);
        font-weight: 600;
        font-size: 1rem;
    }
    
    td:last-child {
        color: var(--text-secondary);
        font-size: 0.95rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    :root {
        --spacing-section: 60px;
    }
    
    header {
        padding: 2rem 1rem 1rem;
    }
    
    main {
        padding: 1rem 1rem 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.1rem; }
    
    p {
        font-size: 1.1rem;
    }
    
    .gold-gradient-text {
        padding: 1.5rem;
        font-size: 0.9rem;
    }
    
    .highlight-box {
        padding: 1.25rem;
    }
    
    .approach {
        padding: 1.5rem;
    }
    
    .approach h3 {
        font-size: 1.25rem;
    }
    
    .approach-tagline {
        font-size: 0.8rem;
    }
    
    .ascii-art {
        font-size: 0.7rem;
        padding: 1rem;
        overflow-x: auto;
    }
    
    .cta-link {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    
    .final-statement {
        font-size: 1.75rem;
    }
    
    footer {
        padding: 4rem 1rem;
    }
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.language-selector-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    display: block;
}

.language-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.language-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.language-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    text-decoration: none;
}

.language-link.active {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(100, 210, 255, 0.08);
}

/* Mobile responsive for language selector */
@media (max-width: 480px) {
    .language-links {
        gap: 0.4rem;
    }
    
    .language-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
