/* === SHARED STYLES — BuzzingFrame ===
   Used on every page: variables, reset, header, footer, utilities
   ================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=nacelle@200,300,400,500,600,700&display=swap');

/* --- 1. CORE VARIABLES --- */
:root {
    /* Branding */
    --bg-dark: #010102;
    --bg-gradient: linear-gradient(180deg, #010102 0%, #050508 100%);
    --accent-mint: #34FEC2;
    --accent-violet: #8B5CF6;
    --accent-cyan: #00D4FF;
    --accent-red: #FF4757;

    /* Typography Palette */
    --text-white: #FFFFFF;
    --text-grey: #cbd5e1;
    --text-tertiary: rgba(255, 255, 255, 0.55);

    /* Surfaces & Glassmorphism - Refined for blue background */
    --surface-card: rgba(255, 255, 255, 0.08);
    --surface-hover: rgba(255, 255, 255, 0.14);
    --surface-nav: rgba(1, 1, 2, 0.85);
    --surface-dropdown: rgba(1, 1, 2, 0.98);

    /* Borders & Lines */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.25);
    --line-color: rgba(255, 255, 255, 0.15);

    /* Spacing & Layout */
    --font-main: 'Nacelle', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container-width: 95vw;

    /* Blur System */
    --blur-sm: 10px;
    --blur-md: 20px;
    --blur-lg: 30px;

    /* Shadow System */
    --shadow-text: 0 2px 20px rgba(1, 1, 2, 0.95);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow-mint: 0 0 30px rgba(52, 254, 194, 0.3);

    /* Transition System */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Spacing Scale */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 60px;
    --space-2xl: 80px;

    /* Border Radius System */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

html {
    overflow-x: hidden;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-white);
    font-family: var(--font-main);
    letter-spacing: 0.01em;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- 2. THE INFINITE RIPPLE BACKGROUND --- */
div[data-us-project] {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: -1;
    pointer-events: none;
}

/* --- 3. LAYOUT --- */
.layout-container {
    width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    position: relative;
}

/* --- 4. STICKY HEADER --- */
.site-header {
    position: fixed;
    top: 20px;
    left: 2.5vw;
    right: 2.5vw;
    z-index: 100;
    pointer-events: none;
}

.nav-bar {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    background: rgba(8, 8, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    pointer-events: auto;
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .nav-bar {
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    background: rgba(8, 8, 20, 0.9);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 28px;
    width: auto;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .logo img {
    height: 22px;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Navigation Base */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(1, 1, 2, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    flex-direction: column;
}

.toggle-line {
    width: 24px;
    height: 1px;
    background: var(--text-white);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.nav-toggle.active .toggle-line:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.active .toggle-line:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.nav-item {
    position: relative;
    color: var(--text-grey);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 0;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0;
}

/* Dropdown arrow */
.nav-item.has-dropdown::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.nav-item.has-dropdown:hover::after,
.nav-item.has-dropdown.dropdown-open::after {
    transform: rotate(180deg);
}

/* Dropdown menus */
/* Dropdown menus */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: -8px;
    min-width: 220px;
    background: rgba(12, 12, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 8px;
    padding-top: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Invisible bridge for regular (non-mega) dropdowns */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 60px;
    background: transparent;
    z-index: -1;
}

/* Disable bridge for mega menus — JS handles open/close */
.nav-dropdown.mega-menu::before {
    display: none;
}

/* Regular (non-mega) dropdowns: open on CSS hover */
.nav-item.has-dropdown:hover .nav-dropdown:not(.mega-menu) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* All dropdowns (including mega): open via JS class */
.nav-item.has-dropdown.dropdown-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- MEGA MENU STYLES --- */

/* Parent item needs static position so dropdown is relative to nav-bar */
.nav-item.has-dropdown:has(.mega-menu) {
    position: static;
}

.nav-dropdown.mega-menu {
    width: 680px;
    /* Fallback */
    width: 100%;
    /* Full width of nav-bar */
    left: 0;
    margin-top: 0px;
    /* Tight against bottom */
    padding: 0;
    display: grid;
    grid-template-columns: 240px 1fr;
    /* Fixed sidebar, fluid preview */
    overflow: hidden;
    /* Clip preview cards to prevent visual overflow */
    background: rgba(5, 5, 12, 0.98);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border-radius: 0;
    /* No radius requested */
    min-height: 420px;
}

/* Left Col: List */
.mega-menu-list {
    padding: 0;
    /* Remove padding for accordion look */
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Seamless list */
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    /* Divider */
}

.mega-link {
    display: block;
    padding: 16px 20px;
    /* Larger hit area */
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border-left: 2px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    /* Subtle separators */
}

.mega-link:last-child {
    border-bottom: none;
}

.mega-link:hover,
.mega-link.active {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--accent-mint);
}

/* Dynamic border accents */
.mega-link[data-index="1"]:hover,
.mega-link[data-index="1"].active {
    border-left-color: var(--accent-violet);
}

.mega-link[data-index="2"]:hover,
.mega-link[data-index="2"].active {
    border-left-color: var(--accent-red);
}

.mega-link[data-index="3"]:hover,
.mega-link[data-index="3"].active {
    border-left-color: #FFAA55;
}

.mega-link[data-index="4"]:hover,
.mega-link[data-index="4"].active {
    border-left-color: #55AAFF;
}

.mega-link[data-index="5"]:hover,
.mega-link[data-index="5"].active {
    border-left-color: #FF55AA;
}

.mega-link[data-index="6"]:hover,
.mega-link[data-index="6"].active {
    border-left-color: #D4FF55;
}


.mega-link .dd-label {
    display: block;
    color: var(--text-white);
    font-size: 0.95rem;
    /* Slightly larger */
    font-weight: 500;
    font-family: var(--font-main);
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.mega-link .dd-desc {
    display: block;
    color: var(--text-grey);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.6;
}

.mega-link:hover .dd-label,
.mega-link.active .dd-label {
    color: #fff;
}

/* Right Col: Preview */
.mega-menu-preview {
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    padding: 2px;
}

.mega-menu-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.mega-preview-card {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    /* More padding to ensure "inside" look */
}

.mega-img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at center, rgba(20, 20, 40, 0.8) 0%, #050510 100%);
    background-size: cover;
    background-position: center;
}

/* Mega Menu Preview Image */
.mega-preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
    z-index: 0;
}

.mega-preview-card:hover .mega-preview-img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Mega Menu Preview Video */
.mega-preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
    z-index: 0;
}

.mega-preview-card:hover .mega-preview-video {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}



/* --- Grayscale Image Default State --- */
.card-img,
.work-page-card-img,
.insights-page-card-img,
.insights-page-featured-img,
.web3-card-img {
    opacity: 1;
    filter: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* --- Shine Sweep on Image Containers --- */
.card-image-container::after,
.work-page-card-image::after,
.insights-page-card-image::after,
.insights-page-featured-image::after,
.web3-card-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    pointer-events: none;
}

/* --- Glass Card Base --- */
.pricing-card,
.pricing-page-card,
.svc-page-module,
.work-page-card,
.insights-page-card,
.insights-page-featured,
.eco-card {
    background: var(--surface-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease,
        background 0.3s ease;
}

.pricing-card.visible,
.pricing-page-card.visible,
.svc-page-module.visible,
.work-page-card.visible,
.insights-page-card.visible,
.eco-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:hover,
.pricing-page-card:hover,
.svc-page-module:hover,
.work-page-card:hover,
.insights-page-card:hover,
.insights-page-featured:hover,
.eco-card:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.mega-img-label {
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

/* --- RESOURCES SPECIFIC PREVIEWS --- */
.mega-res-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: rgba(10, 10, 20, 0.4);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.res-preview-title {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-mint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    opacity: 0.8;
}

/* FAQ Mini List */
.res-faq-mini {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-mini-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.faq-mini-row:last-child {
    border-bottom: none;
}

.faq-q {
    font-size: 0.9rem;
    color: var(--text-white);
    font-weight: 600;
}

.faq-a {
    font-size: 0.75rem;
    color: var(--text-grey);
    line-height: 1.4;
    opacity: 0.7;
}

/* Article Preview */
.res-article-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.res-article-img {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #111;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.res-article-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.res-tag {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-violet);
    letter-spacing: 0.1em;
}

.res-article-title {
    font-size: 1.1rem;
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.2;
}

.res-article-excerpt {
    font-size: 0.75rem;
    color: var(--text-grey);
    line-height: 1.5;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.btn-demo {
    background: linear-gradient(135deg, var(--accent-mint) 0%, #2bd6a4 100%);
    color: #050510;
    padding: 9px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.btn-demo:hover {
    box-shadow: var(--shadow-glow-mint);
    filter: brightness(1.1);
}

/* Collapsed state hides nav links + CTA label */
.nav-center {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 600px;
}

.site-header.scrolled .nav-center {
    opacity: 0;
    max-width: 0;
    padding: 0;
    pointer-events: none;
    overflow: hidden;
}

.btn-label {
    display: inline-block;
    vertical-align: middle;
}

.site-header.scrolled .btn-demo {
    padding: 8px 18px;
    border-radius: var(--radius-md);
    margin-left: 14px;
}

/* Header spacer to push content below the fixed header */
.header-spacer {
    height: 80px;
}


/* --- SHARED COMPONENTS --- */


/* Scan Line */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    animation: capScanLine 4s infinite linear;
    z-index: 2;
    pointer-events: none;
}

@keyframes capScanLine {
    0% {
        top: 0%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Sticky Label (section sidebar) */
.sticky-label {
    position: sticky;
    top: 15vh;
    font-size: 0.9rem;
    color: var(--text-white);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-top: 1px solid var(--accent-mint);
    padding-top: 20px;
    display: inline-block;
}


/* --- FOOTER --- */
.site-footer {
    width: 100%;
    margin: 0;
    padding-top: 120px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(1, 1, 2, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.footer-columns {
    width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-mint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    display: block;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 14px;
}

.footer-col a {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent-mint);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.footer-social a {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
}

.footer-social a:hover {
    color: var(--accent-mint);
    border-color: var(--accent-mint);
}

.footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Footer Bottom Bar */
.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px calc((100vw - var(--container-width)) / 2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.heartbeat-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.heartbeat-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--accent-mint), transparent);
    animation: flowHeartbeat 8s linear infinite;
}

@keyframes flowHeartbeat {
    0% {
        left: -20%;
    }

    100% {
        left: 120%;
    }
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-grey);
    flex-wrap: wrap;
}

.footer-bottom-left a {
    color: var(--text-grey);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-left a:hover {
    color: var(--accent-mint);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-grey);
}

.footer-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-mint);
    box-shadow: 0 0 6px rgba(52, 254, 194, 0.4);
}

/* Footer SEO line */
.footer-seo {
    padding: 20px 0 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.55);
    line-height: 1.6;
}

/* =============================================
   SHARED COMPONENT LIBRARY
   Single source of truth for repeated patterns.
   ============================================= */

/* --- Generic Section Typography Base Classes ---
   Reusable foundations for eyebrow / headline / subline patterns.
   Page-specific selectors below extend the same values;
   individual pages can override with their own class.          */

.section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-mint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    display: block;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(1, 1, 2, 0.8), 0 0 40px rgba(1, 1, 2, 0.6);
}

.section-headline {
    font-family: var(--font-main);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--text-white);
    margin-bottom: 15px;
    text-shadow: 0 2px 30px rgba(1, 1, 2, 0.9), 0 0 60px rgba(1, 1, 2, 0.7);
}

.section-subline {
    font-family: var(--font-main);
    font-size: 1.25rem;
    color: var(--text-white);
    opacity: 0.85;
    line-height: 1.5;
    max-width: 620px;
    text-shadow: 0 2px 20px rgba(1, 1, 2, 0.8), 0 0 40px rgba(1, 1, 2, 0.6);
}

/* --- Section Eyebrow --- */
.proc-eyebrow,
.pricing-eyebrow,
.faq-eyebrow,
.pricing-page-eyebrow,
.svc-page-eyebrow,
.work-page-eyebrow,
.insights-page-eyebrow,
.faq-page-eyebrow,
.web3-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-mint);
    font-size: 0.75rem;
    margin-bottom: 15px;
    display: block;
    letter-spacing: 0.05em;
    opacity: 0.85;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(1, 1, 2, 0.8), 0 0 40px rgba(1, 1, 2, 0.6);
}

/* --- Section Headline --- */
.proc-headline,
.pricing-headline,
.faq-headline,
.pricing-page-headline,
.svc-page-headline,
.work-page-headline,
.insights-page-headline,
.faq-page-headline,
.web3-headline {
    font-family: var(--font-main);
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.02em;
    color: var(--text-white);
    text-shadow: 0 2px 30px rgba(1, 1, 2, 0.9), 0 0 60px rgba(1, 1, 2, 0.7);
}

/* --- Section Subline --- */
.proc-subline,
.pricing-subline,
.pricing-page-subline,
.svc-page-subline,
.work-page-subline,
.insights-page-subline,
.faq-page-subline,
.web3-subline {
    font-family: var(--font-main);
    font-size: 1.25rem;
    color: var(--text-white);
    opacity: 0.85;
    line-height: 1.5;
    text-shadow: 0 2px 20px rgba(1, 1, 2, 0.8), 0 0 40px rgba(1, 1, 2, 0.6);
}

/* --- FAQ Accordion (shared across home + pricing) --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-mint);
}

.faq-question-text {
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-white);
    line-height: 1.3;
    transition: color 0.3s ease;
    text-shadow: 0 2px 20px rgba(1, 1, 2, 0.8);
}

.faq-question:hover .faq-question-text {
    color: var(--accent-mint);
}

.faq-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.faq-question:hover .faq-toggle {
    border-color: var(--accent-mint);
}

.faq-toggle-icon {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text-grey);
    line-height: 1;
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-toggle {
    border-color: var(--accent-mint);
    background: rgba(52, 254, 194, 0.05);
}

.faq-item.open .faq-toggle-icon {
    color: var(--accent-mint);
    transform: rotate(45deg);
}

/* Answer Panel */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease;
    opacity: 0;
}

.faq-item.open .faq-answer {
    opacity: 1;
}

.faq-answer-inner {
    padding: 0 0 30px;
    max-width: 580px;
}

.faq-answer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.7;
}

/* FAQ Responsive: 1024px */
@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Responsive: 768px */
@media (max-width: 768px) {
    .faq-question-text {
        font-size: 1rem;
    }

    .faq-question {
        padding: 20px 0;
    }
}


/* --- HEADER RESPONSIVE: TABLET (switch to mobile nav) --- */
@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-bar {
        width: 100%;
        justify-content: space-between;
    }

    /* Mobile Menu Drawer */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(1, 1, 2, 0.4);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .mobile-menu.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-inner {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 85vh;
        background: var(--surface-dropdown);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 40px 24px 60px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 30px;
        transform: translateY(100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
        overflow-y: auto;
    }

    /* Drag Handle */
    .mobile-menu-inner::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 0;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }

    .mobile-menu.active .mobile-menu-inner {
        transform: translateY(0);
    }

    .mobile-nav-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        overflow: hidden;
        background: rgba(0, 0, 0, 0.2);
    }

    .mobile-nav-link {
        font-family: var(--font-main);
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-grey);
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        padding: 20px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.2s ease;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: transparent;
    }

    .mobile-nav-link:last-child {
        border-bottom: none;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link:active {
        background: var(--surface-hover);
        color: var(--text-white);
        padding-left: 30px;
    }

    .mobile-menu-footer {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: auto;
        border-top: none;
        padding-top: 20px;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }

    .mobile-cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 18px;
        background: var(--accent-mint);
        color: #050510;
        text-align: center;
        text-decoration: none;
        font-family: var(--font-mono);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.95rem;
        letter-spacing: 0.05em;
        border-radius: 0;
        box-shadow: 0 0 20px rgba(52, 254, 194, 0.15);
        transition: all 0.3s ease;
    }

    .mobile-cta-btn:hover {
        box-shadow: 0 0 30px rgba(52, 254, 194, 0.4);
        transform: translateY(-2px);
    }
}

/* --- HEADER RESPONSIVE: MOBILE --- */
@media (max-width: 768px) {
    .site-header {
        top: 12px;
        left: 2.5vw;
        right: 2.5vw;
    }

    /* Disable expand/collapse animation on mobile — keep fixed size */
    .site-header.scrolled {
        left: 2.5vw;
    }

    .site-header.scrolled .nav-bar {
        padding: 10px 16px;
    }

    .site-header.scrolled .logo img {
        height: 24px;
    }

    .site-header.scrolled .nav-center {
        display: none;
    }

    .site-header.scrolled .btn-demo {
        padding: 8px 14px;
        margin-left: 0;
    }

    .nav-bar {
        padding: 10px 16px;
        gap: 12px;
    }

    .logo img {
        height: 24px;
    }

    .btn-demo {
        font-size: 0.75rem;
        padding: 8px 14px;
    }

    .header-spacer {
        height: 64px;
    }
}

/* --- FOOTER RESPONSIVE --- */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .sticky-label {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
}


/* --- SHARED CTA SECTION --- */
.section-cta {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 0;
}

.cta-container {
    position: relative;
    width: 100%;
}

.cta-sidebar {
    position: absolute;
    top: 0;
    left: 0;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.cta-header {
    text-align: center;
}

.cta-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-mint);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    opacity: 0.6;
    text-shadow: 0 0 20px rgba(1, 1, 2, 0.8);
}

.cta-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: var(--text-white);
    text-shadow: 0 2px 30px rgba(1, 1, 2, 0.9), 0 0 60px rgba(1, 1, 2, 0.7);
}

.cta-subline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-grey);
    text-shadow: 0 2px 20px rgba(1, 1, 2, 0.8);
}

/* Slot Machine Card */
.cta-machine-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.cta-machine-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-machine-viewport {
    width: 100%;
    height: 100%;
    position: relative;
}

.cta-machine-frame {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* Ghost CTA Button (Filled on Hover) — consolidated */
.cta-button,
.svc-page-cta-btn,
.web3-cta-btn {
    display: inline-block;
    padding: 18px 48px;
    border: 2px solid var(--accent-mint);
    border-radius: var(--radius-md);
    color: var(--accent-mint);
    background: rgba(52, 254, 194, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cta-button:hover,
.svc-page-cta-btn:hover,
.web3-cta-btn:hover {
    background: var(--accent-mint);
    color: #050510;
    box-shadow: var(--shadow-glow-mint);
    letter-spacing: 0.12em;
}

/* Status Line */
.cta-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-grey);
}

.cta-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-mint);
    animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(52, 254, 194, 0.4);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 6px rgba(52, 254, 194, 0);
    }
}

/* CTA Responsive */
@media (max-width: 1024px) {
    .cta-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .cta-headline {
        font-size: 2rem;
    }

    .cta-machine-card {
        max-width: 100%;
    }

    .cta-button {
        padding: 14px 36px;
        font-size: 0.85rem;
    }
}

/* === ACCESSIBILITY ENHANCEMENTS === */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus-Visible States for Keyboard Navigation */
.nav-item:focus-visible,
.mega-link:focus-visible,
.cta-button:focus-visible,
.work-card:focus-visible,
.work-page-card:focus-visible,
.pricing-card:focus-visible,
.filter-btn:focus-visible {
    outline: 2px solid var(--accent-mint);
    outline-offset: 4px;
}

a:focus-visible {
    outline: 2px solid var(--accent-mint);
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid var(--accent-mint);
    outline-offset: 4px;
}

/* Firefox Backdrop-Filter Fallback */
@supports not (backdrop-filter: blur(20px)) {

    .nav-bar,
    .work-card,
    .pricing-card,
    .mega-menu,
    .nav-dropdown,
    .mobile-menu-inner {
        background: rgba(5, 5, 16, 0.95);
    }
}

/* === PERFORMANCE OPTIMIZATIONS === */

/* CSS Containment for Card Components */
.work-card,
.work-page-card,
.pricing-card,
.mega-preview-card,
.eco-card,
.proc-card {
    contain: layout style;
}

/* Optimize will-change - only on hover */
.work-card:hover,
.work-page-card:hover,
.pricing-card:hover {
    will-change: transform, opacity;
}

/* === ADDITIONAL RESPONSIVE BREAKPOINTS === */

/* Mobile content padding — more breathing room on sides */
@media (max-width: 768px) {
    :root {
        --container-width: 90vw;
    }
}

/* Small phones (< 360px) */
@media (max-width: 360px) {
    .cta-headline {
        font-size: 1.75rem;
    }

    .cta-button,
    .svc-page-cta-btn,
    .web3-cta-btn {
        padding: 12px 28px;
        font-size: 0.8rem;
    }

    .nav-bar {
        padding: 8px 12px;
    }

    .btn-demo {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .footer-bottom-left {
        font-size: 0.7rem;
    }
}

/* Large desktops (> 1400px) */
@media (min-width: 1400px) {
    .mega-menu-preview {
        min-height: 460px;
    }
}