:root {
    /* 60-30-20 Dark Editorial Theme Variables */
    --bg-main: #000000;
    --bg-card: #252422;
    --accent-cta: #F27E09;
    --border-structural: #EE580D;
    --border-color: #EE580D;
    --small-elements: #B07747;
    --text-primary: #F0EFF4;
    --text-secondary: rgba(240, 239, 244, 0.7);
    --color-hover: #EE580D;

    /* Legacy system compatibility mappings */
    --color-cotton: #000000;
    --color-cotton-deep: #000000;
    --color-cherry: #F27E09;
    --color-maroon: #EE580D;
    --accent-hover: #EE580D;
    --color-gold: #B07747;
    --color-orange: #B07747;
    --color-mint: #B07747;
    --color-noir: #EE580D;
    --color-noir-dark: #000000;
    --color-noir-card: #252422;
    --color-noir-cotton: #252422;
    --color-noir-border: #EE580D;
    --color-white: #F0EFF4;

    /* Type */
    --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;

    --max-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Base reset*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body {
    scroll-behavior: auto !important;
}

html.lenis,
html.lenis body {
    height: auto !important;
}

/* Inject hardware acceleration onto the body layer during active smooth-scroll states */
html.lenis-scrolling body {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.lenis-smooth-container {
    height: auto !important;
    min-height: 100%;
}

.lenis-hardware-accelerated {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--color-cherry);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 90px 0;
}



.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    text-wrap: balance;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.08rem;
    text-wrap: pretty;
}

/* Buttons */

.btn-download {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--border-color); /* Frame outline (#EE580D) */
    color: var(--text-primary);
    padding: 15px 47px 15px 32px; /* Asymmetrical padding (extra padding on the right) for optical centering */
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    isolation: isolate; /* Create new stacking context so child elements render above ::before */
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-download::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    z-index: -1;
    background-color: var(--accent-cta); /* Inner background fill (#F27E09) */
    clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    transition: background-color 0.25s ease;
}

.btn-download:hover {
    transform: translateX(3px);
}

.btn-download:hover::before {
    background-color: var(--color-hover); /* Hover background (#EE580D) */
}

.btn-download:active {
    transform: translateX(1px);
}

.btn-compact {
    padding: 10px 30px 10px 15px; /* Compact asymmetrical padding */
    font-size: 0.92rem;
}

/* Header / Navigation */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.4s ease,
        backdrop-filter 0.4s ease !important;
    will-change: transform, background-color, backdrop-filter;
    border-bottom: 2px solid var(--border-structural);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.nav-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

/* Scrolled State (Frosted Glass) */
.header-scrolled {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Dark Mode Scrolled State */
body.dark-theme .header-scrolled {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Hidden Header State */
.header-hidden {
    transform: translate(-50%, -150%) !important;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-cherry);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 2px solid var(--border-structural);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--color-noir);
    margin: 0 auto;
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 5%;
    border-top: 2px solid var(--border-structural);
    background: var(--color-cotton);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 14px 4px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid oklch(20% 0.01 35 / 10%);
}

.mobile-menu .btn-download {
    margin-top: 12px;
    justify-content: center;
}

@media (max-width: 880px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions .btn-download.btn-compact {
        display: none;
    }
}






/* --- Premium Footer --- */

/* ─── Footer shell ──────────────────────────────────────── */
.footer {
    position: relative;
    width: 100%;
    margin-top: 40px;
    background-color: var(--bg-main);
    overflow: hidden;
}

/* ─── Content layer ─────────────────────────────────────── */
.footer-content {
    position: relative;
    z-index: 10;
    padding: 60px 0 40px 0; /* Removed left/right padding */
    max-width: var(--max-width);
    margin: 0 auto;
    background: transparent;
}

/* Single top line */
.footer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* ─── Grid ──────────────────────────────────────────────── */
.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 52px;
}

/* ─── Brand column ──────────────────────────────────────── */
.footer-brand-col h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
    line-height: 1;
}

.footer-brand-col p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
    max-width: 272px;
}

/* ─── Link columns ──────────────────────────────────────── */
.footer-col-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FF3A1A;
    margin-bottom: 14px;
}

.footer-link-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-col li+li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-link-col a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 400;
    transition: color 0.18s ease;
}

.footer-link-col a:hover {
    color: #FF3A1A;
}

.footer-link-arrow {
    color: #FF3A1A;
    font-size: 0.75rem;
    opacity: 0;
    display: inline-block;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.footer-link-col a:hover .footer-link-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* ─── Bottom bar ────────────────────────────────────────── */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 14px;
}

.footer-bottom-bar p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
}

.legal-links a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    padding: 0 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1;
    transition: color 0.18s ease;
}

.legal-links a:last-child {
    border-right: none;
    padding-right: 0;
}

.legal-links a:first-child {
    padding-left: 0;
}

.legal-links a:hover {
    color: #FF3A1A;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 968px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-brand-col p {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .footer-content {
        padding: 40px 0 32px 0;
    }

    .footer-content::before {
        left: 0;
        right: 0;
    }

    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-bottom-bar {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

/* Responsive */

@media (max-width: 560px) {
    .container {
        padding: 64px 0;
    }

    .section-title {
        font-size: 2.1rem;
    }
}


/* Shared Blog Card Component*/


.blog-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-structural);
    background: linear-gradient(135deg, oklch(37.5% 0.16 25 / 10%), oklch(62% 0.11 75 / 12%));
}

.blog-card .blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Fallback State Component */
.fallback-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    border-radius: var(--radius-md);
    background: oklch(20% 0.01 35 / 3%);
    border: 1.5px solid oklch(20% 0.01 35 / 10%);
    color: var(--text-secondary);
    min-height: 250px;
    width: 100%;
    transition: var(--transition);
    margin: 20px 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Cherry-to-amber accent line at top */
.fallback-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-cherry) 40%,
            var(--color-amber) 60%,
            transparent);
    opacity: 0.6;
}

body.dark-theme .fallback-state {
    background: oklch(100% 0 0 / 3%);
    border: 1.5px solid oklch(100% 0 0 / 10%);
}

.fallback-state-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: oklch(20% 0.01 35 / 5%);
    border: 1px solid oklch(20% 0.01 35 / 12%);
    color: var(--color-cherry);
    flex-shrink: 0;
}

body.dark-theme .fallback-state-icon {
    background: oklch(100% 0 0 / 5%);
    border-color: oklch(100% 0 0 / 12%);
}

.fallback-state h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.fallback-state p {
    font-size: 0.9rem;
    max-width: 380px;
    line-height: 1.6;
    margin: 0 auto;
}


/* Loading Skeletons */
.skeleton-container {
    width: 100%;
}

.skeleton {
    background: linear-gradient(90deg, oklch(20% 0.01 35 / 6%) 25%, oklch(20% 0.01 35 / 12%) 37%, oklch(20% 0.01 35 / 6%) 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: var(--radius-sm);
    display: block;
}

body.dark-theme .skeleton {
    background: linear-gradient(90deg, oklch(100% 0 0 / 6%) 25%, oklch(100% 0 0 / 12%) 37%, oklch(100% 0 0 / 6%) 63%);
    background-size: 400% 100%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Specific skeleton elements */
.skeleton-card {
    height: 360px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 2px solid var(--border-structural);
    box-shadow: 6px 6px 0px var(--border-structural);
    width: 100%;
    box-sizing: border-box;
}

.skeleton-faq {
    height: 64px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    width: 100%;
    border: 2px solid var(--border-structural);
}

.skeleton-video {
    width: 100%;
    height: 500px;
    max-height: 60vh;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-structural);
}

.skeleton-title-bar {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-text-bar {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text-bar.short {
    width: 40%;
}

/* Cinematic Overlay */
#cinematic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: oklch(0% 0 0 / 45%);
    /* Darken slightly more for premium feel */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State */
body.video-focus #cinematic-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Premium Horizontal Section Divider */
.premium-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}

.divider-line {
    flex: 1;
    height: 1px;
}

.divider-line.left-fade {
    background: linear-gradient(90deg, transparent 0%, rgba(238, 88, 13, 0.3) 100%);
}

.divider-line.right-fade {
    background: linear-gradient(90deg, rgba(238, 88, 13, 0.3) 0%, transparent 100%);
}

.divider-node {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
    margin: 0 16px;
}

.node-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent-cta);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 6px var(--accent-cta);
}

.node-glow {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(242, 126, 9, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: dividerGlowPulse 4s infinite ease-in-out;
}

@keyframes dividerGlowPulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

