/* =========================================
   1. Reset & Variables
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #65c434;
    --primary-dark: #3d7a1f;
    --primary-light: #a3e085;
    --primary-green: #65c434;
    /* Alias for consistency */
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark-grey: #000000;
    --dark-surface: #0a0a0a;
    --light-grey: #ECEFF1;
    --white: #FFFFFF;
    --red: #EF4444;
    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
}

/* =========================================
   2. Global Typography & Layout
   ========================================= */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--dark-grey);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* =========================================
   3. Navigation
   ========================================= */
nav {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.5rem 0;
    background: transparent;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.5rem 0.9rem;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    line-height: 1;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.lang-btn.active {
    background: var(--white);
    color: var(--dark-grey);
    border-color: var(--white);
}

/* Special nav right alignment for background page */
.nav-right {
    gap: 0.5rem;
}

/* =========================================
   4. Hero Section
   ========================================= */
.hero {
    height: 100svh;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 6rem;
    padding-bottom: 6rem;
    overflow: hidden;
    background: #000;
}

.hero-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(0.6) contrast(1.2) saturate(1.1);
    animation: slowOrbit 30s linear infinite alternate;
}

@keyframes slowOrbit {
    from {
        transform: scale(1.1) translate(-2%, -2%) rotate(0deg);
    }

    to {
        transform: scale(1.2) translate(1%, 1%) rotate(1deg);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 40%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    padding-left: 3rem;
    border-left: 6px solid var(--primary);
}

.hero-category {
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    text-transform: none;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-bottom: 1.75rem;
    font-weight: 400;
    line-height: 1.5;
}

/* =========================================
   5. Buttons
   ========================================= */
.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 3rem;
    background: var(--primary);
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    border-radius: 8px;
    /* Standardize radius */
}

.cta-button:hover {
    background: var(--white);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* =========================================
   6. Hero Tabs + Mobile Nav Menu
   ========================================= */

/* Burger button — hidden on desktop */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}
.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.mobile-nav.open { display: flex; }

.mobile-nav-item {
    color: rgba(255,255,255,0.55);
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    width: min(280px, 85vw);
    text-align: center;
}
.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--white);
    background: rgba(101,196,52,0.08);
}
.mobile-nav-item.active {
    color: var(--primary);
    border: 1px solid rgba(101,196,52,0.3);
}

/* Lang switcher inside mobile menu */
.mobile-nav-lang {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: min(280px, 85vw);
    justify-content: center;
}

.hero-tabs {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4rem;
    z-index: 20;
    width: max-content;
}

.tab-item {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding-bottom: 0.6rem;
    position: relative;
    transition: color 0.3s;
    text-decoration: none;
}

.tab-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.tab-item.active {
    color: var(--white);
}

.tab-item.active::after {
    width: 100%;
}

/* =========================================
   7. Playback Controls
   ========================================= */
.playback-controls {
    position: absolute;
    bottom: 3rem;
    right: 4rem;
    display: flex;
    gap: 1.5rem;
    z-index: 20;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* =========================================
   8. Section Styles (Background Page)
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--light-grey);
    max-width: 700px;
    margin: 0 auto;
}

/* Death of Incrementalism */
.death-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, #1a2328 0%, var(--dark-grey) 100%);
    position: relative;
    overflow: hidden;
}

.death-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
}

.comparison-column {
    padding: 3rem;
    border-radius: 16px;
    position: relative;
}

.comparison-column.old {
    background: rgba(239, 68, 68, 0.05);
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.comparison-column.new {
    background: rgba(101, 196, 52, 0.05);
    border: 2px solid rgba(101, 196, 52, 0.3);
}

.column-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.icon-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.old .icon-container {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.new .icon-container {
    background: rgba(101, 196, 52, 0.1);
    border: 2px solid var(--primary);
}

.icon-container svg {
    width: 32px;
    height: 32px;
}

.column-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.old .column-header h3 {
    color: #FCA5A5;
}

.new .column-header h3 {
    color: var(--primary);
}

.comparison-item {
    margin-bottom: 2.5rem;
}

.comparison-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.old .comparison-item h4 {
    color: #FCA5A5;
}

.new .comparison-item h4 {
    color: var(--primary-light);
}

.item-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.comparison-item p {
    color: var(--light-grey);
    line-height: 1.8;
    font-size: 1.05rem;
}

.metric {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.old .metric {
    background: rgba(239, 68, 68, 0.1);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.new .metric {
    background: rgba(101, 196, 52, 0.1);
    color: var(--primary);
    border: 1px solid rgba(101, 196, 52, 0.3);
}

/* Value Props */
.value-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--dark-grey) 0%, #1a2328 100%);
    position: relative;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(101, 196, 52, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.value-card p {
    color: var(--light-grey);
    line-height: 1.8;
}

/* Visual Section */
.visual-section {
    padding: 8rem 0;
    background: var(--dark-grey);
    text-align: center;
}

.visual-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 4rem;
    font-weight: 700;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
    align-items: center;
}

.visual-item {
    position: relative;
    padding: 2rem;
}

.visual-item img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.visual-item:hover img {
    transform: scale(1.05);
}

.visual-caption {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--light-grey);
    font-weight: 500;
}

/* Footer */
footer {
    background: #1a2328;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(101, 196, 52, 0.2);
    margin-top: auto;
}

footer p {
    color: var(--light-grey);
}

/* =========================================
   9. Forms & Downloads
   ========================================= */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 40px;
}

.background-wrapper.fixed {
    /* Differentiating from hero bg */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.form-container {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.form-header {
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    padding-right: 4rem;
}

p.subtitle {
    color: var(--light-grey);
    font-size: 1rem;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light-grey);
    letter-spacing: 0.05em;
}

input:not([type="checkbox"]) {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:not([type="checkbox"]):focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(101, 196, 52, 0.1);
}

.artifacts-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.artifact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.artifact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.artifact-item:last-child {
    margin-bottom: 0;
}

.artifact-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.artifact-item label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--white);
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--primary);
    color: var(--dark-grey);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.error-message,
.success-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
    line-height: 1.5;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.success-message {
    background: rgba(101, 196, 52, 0.1);
    border: 1px solid rgba(101, 196, 52, 0.3);
    color: var(--primary);
}

.download-links {
    display: none;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.download-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s;
}

.download-link:hover {
    border-color: var(--primary);
    background: rgba(101, 196, 52, 0.1);
}

.download-icon {
    margin-right: 1rem;
    color: var(--primary);
}

.terms {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.terms a {
    color: var(--primary);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* =========================================
   10. Utilities & Language
   ========================================= */
[data-lang] {
    display: none !important;
}

/* Default / Danish active */
html:not([lang="en"]) [data-lang="da"] {
    display: block !important;
}

html:not([lang="en"]) span[data-lang="da"],
html:not([lang="en"]) a[data-lang="da"] {
    display: inline !important;
}

html:not([lang="en"]) h3[data-lang="da"],
html:not([lang="en"]) h4[data-lang="da"] {
    display: inline-block !important;
}

/* English active */
html[lang="en"] [data-lang="en"] {
    display: block !important;
}

html[lang="en"] span[data-lang="en"],
html[lang="en"] a[data-lang="en"] {
    display: inline !important;
}

html[lang="en"] h3[data-lang="en"],
html[lang="en"] h4[data-lang="en"] {
    display: inline-block !important;
}

html[lang="en"] [data-lang="da"] {
    display: none !important;
}

/* Complex comparison item handling */
.comparison-item h4[data-lang],
.comparison-item p[data-lang] {
    display: none;
}

html[lang="da"] .comparison-item h4[data-lang="da"],
html[lang="da"] .comparison-item p[data-lang="da"] {
    display: flex;
}

/* Flex for h4 */
html[lang="da"] .comparison-item p[data-lang="da"] {
    display: block;
}

/* Block for p */
html[lang="en"] .comparison-item h4[data-lang="en"],
html[lang="en"] .comparison-item p[data-lang="en"] {
    display: flex;
}

html[lang="en"] .comparison-item p[data-lang="en"] {
    display: block;
}


/* =========================================
   11. Utility Classes
   ========================================= */

/* Hero CTA button group — stacks vertically on small screens */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Generic auto-fit grid — safe on all screen widths */
.grid-auto {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 560px) {
    .grid-auto {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* Section padding utility */
.section-pad {
    padding: var(--space-lg) 0;
}

@media (min-width: 768px) {
    .section-pad {
        padding: var(--space-2xl) 0;
    }
}

/* =========================================
   12. Responsiveness
   ========================================= */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-tabs {
        gap: 2rem;
    }

    .playback-controls {
        right: 2rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .death-section::before {
        display: none;
    }
}

@media (max-width: 768px) {
    /* ── Layout ─────────────────────────── */
    .nav-links { display: none; }
    .nav-burger { display: flex; }

    .container { padding: 0 1.25rem; }

    /* ── Hero ───────────────────────────── */
    .hero {
        height: auto;
        min-height: 100svh;
        padding-top: 5rem;
        padding-bottom: 5rem;
        justify-content: center;
    }

    /* Stronger overlay — readable on portrait photo */
    .hero-overlay {
        background:
            linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.0) 30%),
            linear-gradient(to top,    rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.0) 65%),
            linear-gradient(to right,  rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 100%);
    }

    /* Drop the left accent bar — wastes horizontal space */
    .hero-content {
        padding-left: 0;
        border-left: none;
    }

    .hero-category {
        font-size: 0.7rem;
        letter-spacing: 0.18em;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 9vw, 3.5rem);
        line-height: 1.08;
        letter-spacing: -0.025em;
        margin-bottom: 1.25rem;
    }

    .hero-description {
        font-size: 1.05rem;
        line-height: 1.65;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    /* Hero CTA buttons — full width and stacked on mobile */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions > * {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    /* ── Hero tabs — centered, wrapping on mobile */
    .hero-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        gap: 0.5rem 1.25rem;
        bottom: 1.5rem;
    }
    .tab-item { font-size: 0.72rem; }

    /* ── Hide decorative controls ────────── */
    .playback-controls { display: none; }

    /* ── Section spacing ────────────────── */
    .death-section,
    .value-section,
    .visual-section,
    .blitz-section,
    .cases-section,
    .text-section,
    .expertise-section {
        padding: 4.5rem 0 !important;
    }

    /* ── Section typography ─────────────── */
    .section-header h2 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .section-header p {
        font-size: 1rem;
    }

    /* ── Cards — all two-column grids stack ─ */
    .comparison-column { padding: 1.5rem; }
    .comparison-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }

    .visual-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Prevent auto-fit minmax grids from overflowing on narrow screens */
    [style*="minmax(260px"], [style*="minmax(280px"], [style*="minmax(300px"],
    [style*="minmax(400px"] {
        grid-template-columns: 1fr !important;
    }

    .form-container { padding: 1.5rem; }

    .value-card { padding: 1.75rem; }
}

@media (max-width: 480px) {
    /* ── Container ──────────────────────── */
    .container { padding: 0 1rem; }

    /* ── Nav ────────────────────────────── */
    nav { padding: 1.25rem 0; }
    .logo { font-size: 1.8rem; }

    /* ── Hero ───────────────────────────── */
    .hero {
        padding-bottom: 4rem;
    }

    .hero-category {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.8rem);
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .hero-tabs {
        bottom: 1rem;
        padding: 0 1rem;
        gap: 0.9rem 1.5rem;
    }

    .tab-item {
        font-size: 0.72rem;
    }

    /* ── Sections ───────────────────────── */
    .death-section,
    .value-section,
    .visual-section,
    .blitz-section,
    .cases-section,
    .text-section,
    .expertise-section {
        padding: 3.5rem 0 !important;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    /* ── General body text bump ─────────── */
    /* Inline styles often use 0.85–0.95rem — override to readable minimum */
    .text-section p,
    section p {
        font-size: max(1rem, 1em) !important;
        line-height: 1.75 !important;
    }

    /* ── Accordion ──────────────────────── */
    .phil-header {
        padding: 1.25rem 1rem !important;
        gap: 0.75rem !important;
    }

    .phil-body > div {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* ── Cards ──────────────────────────── */
    .comparison-column { padding: 1.25rem; }
    .value-card { padding: 1.5rem; }

    .form-container { padding: 1.25rem; }

    footer { padding: 2rem 0; }

    /* ── Timeline (extra narrow) ─────────── */
    .timeline-container {
        padding-left: 1.5rem !important;
    }
    .timeline-line {
        left: 0.5rem !important;
    }
    .timeline-dot {
        left: 0.5rem !important;
    }

    /* ── Hero actions — explicit small screen ── */
    .hero-actions {
        gap: 0.75rem;
    }
}

/* =========================================
   10. Accordion (Philosophy Page)
   ========================================= */
.phil-item {
    transition: all 0.3s ease;
}

.phil-item:hover {
    border-color: rgba(101, 196, 52, 0.3) !important;
}

.phil-item.open {
    border-color: rgba(101, 196, 52, 0.4) !important;
}

.phil-item.open .phil-header {
    background: rgba(101, 196, 52, 0.05) !important;
}

.phil-item.open .phil-chevron {
    transform: rotate(180deg);
    color: var(--primary) !important;
}

.phil-item.open .phil-body {
    max-height: 1000px !important;
    opacity: 1 !important;
    padding-bottom: 2rem !important;
}

.phil-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   11. Footer
   ========================================= */
footer {
    background: #1a2328;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(101, 196, 52, 0.2);
}

footer p {
    color: var(--white);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* =========================================
   12. Powered by AILEAN Badge
   ========================================= */
.powered-by-badge {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: min(300px, 90vw);
    white-space: nowrap;
}

.powered-by-badge:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: #ffffff;
}

.powered-by-badge span:first-child {
    font-size: 11px;
    font-weight: 700;
    color: #5a5c6e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.powered-by-badge .lean-logo {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'DM Sans', sans-serif;
}

/* =========================================
   13. Section Background Variants
   ========================================= */
.bg-alt-1 { background: #07090a !important; }
.bg-alt-2 { background: #080b07 !important; }
.bg-alt-3 { background: #0f1214 !important; }
.bg-alt-4 { background: #0b0e10 !important; }
.bg-alt-5 { background: #090e0b !important; }
.bg-alt-6 { background: #08100e !important; }

/* =========================================
   14. Blitz Timeline — Responsive
   ========================================= */
.timeline-day-num {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .timeline-container {
        padding-left: 2rem !important;
        max-width: 100% !important;
    }

    .timeline-line {
        left: 0.75rem !important;
        transform: none !important;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    .timeline-item .content-box {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .timeline-dot {
        left: 0.75rem !important;
        position: absolute !important;
        top: 1.5rem !important;
    }

    .timeline-day-num {
        display: none;
    }
}

/* =========================================
   15. API Endpoint Rows — Responsive
   ========================================= */
.endpoint-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    flex-wrap: wrap;
}

.endpoint-row .endpoint-desc {
    margin-left: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 640px) {
    .endpoint-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .endpoint-row .endpoint-desc {
        margin-left: 0;
        white-space: normal;
        font-size: 0.75rem !important;
        color: rgba(255,255,255,0.4) !important;
    }
}

/* =========================================
   16. Page header (non-hero pages)
   ========================================= */
.page-header {
    padding: 5rem 0 4rem;
    border-bottom: 1px solid rgba(101, 196, 52, 0.12);
}

.page-header-inner {
    border-left: 6px solid var(--primary);
    padding-left: 2rem;
    max-width: 860px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 3.5rem 0 2.5rem;
    }
    .page-header-inner {
        border-left: 4px solid var(--primary);
        padding-left: 1.25rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2.5rem 0 2rem;
    }
    .page-header-inner {
        border-left: none;
        padding-left: 0;
        border-top: 4px solid var(--primary);
        padding-top: 1rem;
    }
}

/* =========================================
   17. Global stat card label size
   ========================================= */
.stat-card p,
.stat-label {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    line-height: 1.55;
}

/* =========================================
   18. Mobile responsiveness
   ========================================= */

/* Reduce container side padding on tablets and phones */
@media (max-width: 900px) {
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.25rem;
    }

    /* Hero content — reduce left border indent */
    .hero-content {
        padding-left: 1rem;
        border-left-width: 4px;
    }

    /* Hero tabs — smaller gap, wrap if needed */
    .hero-tabs {
        gap: 1.5rem;
        bottom: 1.75rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Playback controls — pull in from edge */
    .playback-controls {
        right: 1.25rem;
        bottom: 1.75rem;
        gap: 0.75rem;
    }

    /* Nav — reduce logo size */
    .logo {
        font-size: 1.6rem;
    }

    /* Hero actions — stack buttons vertically on very small screens */
    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Comparison grid on background page */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Comparison column padding */
    .comparison-column {
        padding: 1.75rem 1.25rem;
    }
}