/* Custom Premium Stylesheet for Numen Engine Website — Crimson Chrome Theme */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg-main: #e8e3dd;
    --bg-darker: #ddd8d2;
    --bg-card: rgba(255, 255, 255, 0.45);
    --bg-card-hover: rgba(255, 255, 255, 0.65);
    --border-glass: rgba(107, 15, 42, 0.1);
    --border-glass-active: rgba(107, 15, 42, 0.4);
    
    --primary: #6b0f2a;
    --primary-light: #e8345a;
    --primary-glow: rgba(232, 52, 90, 0.35);
    --secondary: #3d0a18;
    --secondary-light: #a01840;
    --secondary-glow: rgba(160, 24, 64, 0.3);
    
    --text-main: #4a3f3a;
    --text-muted: #8a7e76;
    --text-bright: #1a1210;
    
    --accent-emerald: #1a7a55;
    --accent-emerald-glow: rgba(26, 122, 85, 0.2);
    --accent-pink: #c41850;
    --accent-pink-glow: rgba(196, 24, 80, 0.2);
    --accent-amber: #b87a1a;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Oswald', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-premium: 0 20px 60px -15px rgba(107, 15, 42, 0.12);
    --shadow-glow: 0 0 40px rgba(232, 52, 90, 0.1);
}

/* Reset & Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(107, 15, 42, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================================
   BACKGROUND EFFECTS
   ============================================================ */
.glow-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -2;
    pointer-events: none;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 52, 90, 0.12) 0%, transparent 70%);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.blob-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(107, 15, 42, 0.08) 0%, transparent 70%);
    top: 40vh;
    right: -200px;
    animation-delay: -7s;
}

.blob-3 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(232, 52, 90, 0.06) 0%, transparent 70%);
    bottom: 10vh;
    left: 15%;
    animation-delay: -14s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.97); }
}

/* Noise texture overlay — grain effect on light bg */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.55;
    mix-blend-mode: multiply;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
/* ============================================================
   DYNAMIC FLOATING CAPSULE HEADER (DESCENDS INTO CAPSULE ON SCROLL)
   ============================================================ */
.floating-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: auto;
    width: 100%;
    max-width: 100%;
    height: 64px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 32px;
    border-radius: 0;
    background: rgba(9, 7, 8, 0.45);
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: none;
    color: #f5f5f3;
    transition: 
        top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When scrolling down, the bar DESCENDS into a floating pill capsule */
.floating-nav.is-scrolled {
    top: 18px;
    width: min(1140px, calc(100% - 32px));
    height: 56px;
    padding: 0 10px 0 18px;
    border-radius: 999px;
    background: rgba(14, 10, 14, 0.88);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.65);
}

/* Over light sections (data-nav="light") */
.floating-nav.nav--dark {
    background: rgba(238, 234, 228, 0.92);
    border-color: rgba(107, 15, 42, 0.16);
    color: #120e11;
    box-shadow: 0 18px 40px -8px rgba(107, 15, 42, 0.14);
}

.floating-nav.nav--dark .nav__logo-name {
    color: #120e11;
}

.floating-nav.nav--dark .nav__logo-sub {
    color: var(--primary);
}

.floating-nav.nav--dark .nav__logo-status {
    background: rgba(107, 15, 42, 0.08);
    border-color: rgba(107, 15, 42, 0.16);
    color: #6b0f2a;
}

.floating-nav.nav--dark .nav__links {
    background: rgba(107, 15, 42, 0.04);
    border-color: rgba(107, 15, 42, 0.08);
}

.floating-nav.nav--dark .nav__link {
    color: #554a50;
}

.floating-nav.nav--dark .nav__link:hover {
    color: #120e11;
    background: rgba(107, 15, 42, 0.08);
}

.floating-nav.nav--dark .nav__link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: transparent;
}

.floating-nav.nav--dark .nav-btn-gh {
    background: rgba(107, 15, 42, 0.08);
    border-color: rgba(107, 15, 42, 0.16);
    color: #120e11;
}

.floating-nav.nav--dark .nav-btn-gh:hover {
    background: rgba(107, 15, 42, 0.14);
}

.floating-nav.nav--dark .gh-star-chip {
    background: rgba(107, 15, 42, 0.12);
    color: var(--primary);
}

/* ------------------------------------------------------------
   Logo & Identity
   ------------------------------------------------------------ */
.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: none;
    user-select: none;
}

.nav__logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(232, 52, 90, 0.25) 0%, rgba(107, 15, 42, 0.15) 100%);
    border: 1px solid rgba(232, 52, 90, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 52, 90, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.nav__logo:hover .nav__logo-icon {
    transform: scale(1.08) rotate(-4deg);
    border-color: rgba(232, 52, 90, 0.6);
}

.nav__logo-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.nav__logo-text {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-family: var(--font-display, 'Oswald', sans-serif);
    line-height: 1;
}

.nav__logo-name {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    transition: color 0.3s ease;
}

.nav__logo-sub {
    font-size: 1.18rem;
    font-weight: 300;
    letter-spacing: 0.14em;
    color: var(--primary-light);
    transition: color 0.3s ease;
}

.nav__logo-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    font-weight: 600;
    color: rgba(245, 245, 243, 0.85);
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: statusPulse 2s ease-out infinite;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ------------------------------------------------------------
   Center Navigation Links
   ------------------------------------------------------------ */
.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 3px;
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    padding: 6px 15px;
    border-radius: 999px;
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 245, 243, 0.72);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    white-space: nowrap;
}

.nav__link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.nav__link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(232, 52, 90, 0.3) 0%, rgba(107, 15, 42, 0.4) 100%);
    border-color: rgba(232, 52, 90, 0.45);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 10px rgba(232, 52, 90, 0.22);
}

/* ------------------------------------------------------------
   Right Actions
   ------------------------------------------------------------ */
.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.nav-btn-gh {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5f5f3;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    transition: all 0.22s ease;
}

.nav-btn-gh:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.gh-star-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(232, 52, 90, 0.22);
    color: #ff7594;
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.nav-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 999px;
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #e8345a 0%, #b8143d 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 18px rgba(232, 52, 90, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 52, 90, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-btn-cta .btn__arrow {
    display: inline-block;
    transition: transform 0.22s ease;
}

.nav-btn-cta:hover .btn__arrow {
    transform: translateX(3px);
}

/* ------------------------------------------------------------
   Mobile Burger Toggle
   ------------------------------------------------------------ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.toggle-bar {
    display: block;
    width: 16px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.floating-nav.nav--dark .toggle-bar {
    background: #120e11;
}

.mobile-menu-toggle.is-active .toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .toggle-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------
   Mobile Drawer Overlay (Glass)
   ------------------------------------------------------------ */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.mobile-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-drawer__sheet {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 20px 24px;
    border-radius: 28px;
    background: rgba(14, 10, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-drawer.open .mobile-drawer__sheet {
    transform: translateY(0) scale(1);
}

.mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-drawer__close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-drawer__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-family: var(--font-display, 'Oswald', sans-serif);
    text-transform: uppercase;
    color: #f5f5f3;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-drawer__link .m-num {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    color: var(--primary-light);
    opacity: 0.8;
}

.mobile-drawer__link .m-text {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    flex: 1;
}

.mobile-drawer__link .m-arrow {
    font-size: 11px;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-drawer__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.mobile-drawer__link:hover .m-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.mobile-drawer__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.w-full {
    width: 100%;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 20px rgba(107, 15, 42, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 52, 90, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: rgba(107, 15, 42, 0.06);
    color: var(--text-bright);
    border: 1px solid rgba(107, 15, 42, 0.15);
}

.btn-secondary:hover {
    background-color: rgba(107, 15, 42, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(107, 15, 42, 0.15);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(107, 15, 42, 0.04);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13.5px;
    border-radius: 8px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    min-height: 92vh;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    z-index: -1;
}

/* Mesh gradient overlay */
.hero-mesh {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(ellipse 60% 50% at 20% 40%, rgba(232, 52, 90, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(107, 15, 42, 0.04) 0%, transparent 50%);
}

/* Grid lines */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(107, 15, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 15, 42, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 80%);
}

#hero-particles {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Increased from 0 to 1 just in case */
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 780px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(107, 15, 42, 0.08);
    border: 1px solid rgba(107, 15, 42, 0.15);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
    animation: heroFadeUp 0.8s ease both;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 8px var(--primary-light);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.4); }
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text-bright);
    margin-bottom: 24px;
    animation: heroFadeUp 0.8s ease 0.1s both;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #ff6b8a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.hero-lead {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 620px;
    line-height: 1.75;
    animation: heroFadeUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: heroFadeUp 0.8s ease 0.3s both;
}

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

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
    position: relative;
    z-index: 3;
    padding: 0;
    margin-top: -1px;
}

.stats-strip-inner {
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(107, 15, 42, 0.08);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(107, 15, 42, 0.06);
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px;
    position: relative;
    text-align: center;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(107, 15, 42, 0.08);
}

.stat-number {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -1.5px;
    line-height: 1;
    background: linear-gradient(135deg, var(--text-bright), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background-color: rgba(221, 216, 210, 0.6);
    position: relative;
}

.section-dark::before, .section-dark::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), transparent);
    opacity: 0.35;
}

.section-dark::before { top: 0; }
.section-dark::after { bottom: 0; }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    margin-bottom: 14px;
    opacity: 0.8;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text-bright);
    margin-bottom: 16px;
    line-height: 1.15;
    text-transform: uppercase;
}

.section-header p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    text-transform: none;
}

/* ============================================================
   ENGINE SHOWCASE
   ============================================================ */
.engine-showcase {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
    border-radius: 16px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(232, 52, 90, 0.2), rgba(107, 15, 42, 0.1));
    box-shadow: 0 20px 60px -10px rgba(107, 15, 42, 0.2);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.engine-showcase img {
    width: 100%;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(107, 15, 42, 0.1);
}

/* ============================================================
   GRID & CARDS
   ============================================================ */
.grid {
    display: grid;
    gap: 20px;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
    background-color: var(--bg-card);
    border: 1px solid rgba(107, 15, 42, 0.06);
    border-radius: 16px;
    padding: 32px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease-out;
    box-shadow: 0 8px 32px rgba(107, 15, 42, 0.04);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(232, 52, 90, 0.2), transparent 50%, rgba(107, 15, 42, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    transform: translateZ(1px); /* Keep border on top in 3D */
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    background-color: var(--bg-card-hover);
    /* transform translateY is handled by JS tilt now if enabled, otherwise fallback: */
    box-shadow: 0 24px 60px -12px rgba(107, 15, 42, 0.2);
}

.card-glow:hover {
    box-shadow: 0 20px 50px -10px var(--card-glow-color, rgba(107, 15, 42, 0.15));
}

.card:has(.card-icon.cyan) { --card-glow-color: rgba(107, 15, 42, 0.1); }
.card:has(.card-icon.purple) { --card-glow-color: rgba(232, 52, 90, 0.12); }
.card:has(.card-icon.emerald) { --card-glow-color: rgba(26, 122, 85, 0.1); }
.card:has(.card-icon.pink) { --card-glow-color: rgba(196, 24, 80, 0.12); }

.glass {
    position: relative;
    isolation: isolate;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(107, 15, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(107, 15, 42, 0.05);
}

.glass::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 55%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 24px;
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: 0 0 20px currentColor;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover .card-icon::after {
    opacity: 0.25;
}

.card-icon.cyan { background-color: rgba(107, 15, 42, 0.06); color: var(--primary); border: 1px solid rgba(107, 15, 42, 0.12); }
.card-icon.purple { background-color: rgba(232, 52, 90, 0.06); color: var(--primary-light); border: 1px solid rgba(232, 52, 90, 0.15); }
.card-icon.emerald { background-color: rgba(26, 122, 85, 0.06); color: var(--accent-emerald); border: 1px solid rgba(26, 122, 85, 0.12); }
.card-icon.pink { background-color: rgba(196, 24, 80, 0.06); color: var(--accent-pink); border: 1px solid rgba(196, 24, 80, 0.12); }

.card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-list {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(107, 15, 42, 0.06);
    padding-top: 20px;
    margin-top: auto;
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.card:hover .card-list li {
    color: var(--text-main);
}

.card-list li::before {
    content: '▸';
    color: var(--primary-light);
    font-size: 11px;
    flex-shrink: 0;
}

/* ============================================================
   ARCHITECTURE SECTION
   ============================================================ */
.architecture-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
    flex-wrap: wrap;
}

.arch-visual {
    flex: 1.2;
    min-width: 320px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(107, 15, 42, 0.06);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.arch-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(232, 52, 90, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.arch-node {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(107, 15, 42, 0.08);
    border-radius: 10px;
    padding: 16px 24px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.arch-node::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(232, 52, 90, 0.25), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.arch-node:hover::before {
    opacity: 1;
}

.arch-node h4 {
    color: var(--text-bright);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.arch-node span {
    color: var(--text-muted);
    font-size: 12px;
}

.arch-node:hover {
    border-color: rgba(232, 52, 90, 0.3);
    background-color: rgba(232, 52, 90, 0.04);
    transform: scale(1.02);
}

.arch-node.active {
    border-color: var(--primary);
    background-color: rgba(107, 15, 42, 0.06);
    box-shadow: 0 0 25px rgba(107, 15, 42, 0.1), inset 0 0 20px rgba(107, 15, 42, 0.03);
}

.arch-node.active h4 {
    color: var(--primary);
}

.arch-connector-vertical {
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    opacity: 0.5;
    border-radius: 1px;
}

.arch-split-container {
    display: flex;
    width: 100%;
    max-width: 480px;
    justify-content: space-between;
    margin: 12px 0;
}

.arch-split-left, .arch-split-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 46%;
}

.arch-connector-left-diagonal, .arch-connector-right-diagonal {
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-light), rgba(232, 52, 90, 0.25));
    opacity: 0.5;
    border-radius: 1px;
}

.arch-connector-bottom {
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    opacity: 0.5;
    border-radius: 1px;
}

.arch-info-panel {
    flex: 0.8;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.arch-info-panel .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.arch-info-panel h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-bright);
    letter-spacing: -0.5px;
    font-weight: 700;
}

.arch-info-panel p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.arch-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    border-radius: 100px;
    background-color: rgba(107, 15, 42, 0.06);
    border: 1px solid rgba(107, 15, 42, 0.12);
    font-size: 11.5px;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ============================================================
   ROADMAP
   ============================================================ */
.roadmap-timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding-left: 48px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        var(--accent-emerald) 0%, 
        var(--primary-light) 40%,
        rgba(107, 15, 42, 0.3) 70%,
        rgba(107, 15, 42, 0.05) 100%
    );
    border-radius: 1px;
}

.roadmap-item {
    position: relative;
    margin-bottom: 32px;
}

.roadmap-item:last-child {
    margin-bottom: 0;
}

.roadmap-marker {
    position: absolute;
    left: -48px;
    top: 22px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 2px solid rgba(107, 15, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-muted);
    z-index: 2;
    transition: var(--transition-smooth);
}

.roadmap-item.completed .roadmap-marker {
    border-color: var(--accent-emerald);
    background: linear-gradient(135deg, var(--accent-emerald), #0f6b45);
    color: #fff;
    box-shadow: 0 0 16px var(--accent-emerald-glow);
}

.roadmap-item.in-progress .roadmap-marker {
    border-color: var(--primary-light);
    background: rgba(232, 52, 90, 0.1);
    color: var(--primary-light);
    box-shadow: 0 0 16px var(--primary-glow);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(232, 52, 90, 0.2); }
    50% { box-shadow: 0 0 24px rgba(232, 52, 90, 0.4); }
}

.roadmap-item.planned .roadmap-marker {
    border-color: rgba(107, 15, 42, 0.2);
    color: rgba(107, 15, 42, 0.4);
}

.roadmap-content {
    padding: 24px 28px;
    transition: var(--transition-smooth);
}

.roadmap-content:hover {
    border-color: rgba(107, 15, 42, 0.1);
}

.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background-color: rgba(107, 15, 42, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(107, 15, 42, 0.08);
}

.status-badge.in-progress {
    background-color: rgba(232, 52, 90, 0.08);
    color: var(--primary-light);
    border-color: rgba(232, 52, 90, 0.15);
}

.status-badge.planned {
    background-color: rgba(107, 15, 42, 0.06);
    color: var(--primary);
    border-color: rgba(107, 15, 42, 0.12);
}

.roadmap-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.3px;
}

/* ============================================================
   DOCUMENTATION WORKSPACE
   ============================================================ */
.docs-container {
    max-width: 1300px;
}

.docs-workspace {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 20px;
    margin-top: 40px;
    align-items: start;
}

.docs-sidebar {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    position: sticky;
    top: 90px;
}

.docs-search {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(107, 15, 42, 0.08);
    border-radius: 8px;
    padding: 9px 14px;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.docs-search:focus-within {
    border-color: rgba(232, 52, 90, 0.3);
    background-color: rgba(232, 52, 90, 0.03);
}

.docs-search i {
    color: var(--text-muted);
    font-size: 13px;
    margin-right: 10px;
}

.docs-search input {
    background: none;
    border: none;
    color: var(--text-bright);
    outline: none;
    font-family: var(--font-sans);
    font-size: 14px;
    width: 100%;
}

.docs-search input::placeholder {
    color: var(--text-muted);
}

.docs-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-category-header {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 16px 14px 6px !important;
    margin-bottom: 2px !important;
}

.docs-menu li {
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.4;
}

.docs-menu li:hover {
    color: var(--text-bright);
    background-color: rgba(107, 15, 42, 0.04);
}

.docs-menu li.active {
    color: var(--primary);
    background-color: rgba(107, 15, 42, 0.06);
    border-left: 2px solid var(--primary);
    padding-left: 12px;
}

.loading-item {
    font-style: italic;
    cursor: default !important;
    opacity: 0.5;
}

.docs-reader-area {
    padding: 36px 40px;
    min-height: 60vh;
}

.docs-reader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(107, 15, 42, 0.06);
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.breadcrumbs {
    font-size: 12.5px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.breadcrumbs a:hover {
    opacity: 1;
}

/* Markdown Styles */
.markdown-body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-main);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: var(--text-bright);
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.markdown-body h1 { font-size: 28px; border-bottom: 1px solid rgba(107, 15, 42, 0.08); padding-bottom: 12px; margin-top: 0; }
.markdown-body h2 { font-size: 22px; border-bottom: 1px solid rgba(107, 15, 42, 0.08); padding-bottom: 8px; }
.markdown-body h3 { font-size: 18px; }

.markdown-body p {
    margin-bottom: 16px;
}

.markdown-body code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background-color: rgba(107, 15, 42, 0.06);
    padding: 2px 7px;
    border-radius: 4px;
    color: var(--primary);
    border: 1px solid rgba(107, 15, 42, 0.1);
}

.markdown-body pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    border: none;
}

.markdown-body pre {
    background-color: #1a1210 !important;
    border: 1px solid rgba(107, 15, 42, 0.15);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.markdown-body ul, .markdown-body ol {
    margin-bottom: 16px;
    padding-left: 22px;
}

.markdown-body ul { list-style: none; }
.markdown-body ul li::before { content: '▸ '; color: var(--primary-light); font-size: 11px; }
.markdown-body ol { list-style: decimal; }

.markdown-body li {
    margin-bottom: 8px;
    color: var(--text-main);
}

.markdown-body blockquote {
    border-left: 3px solid var(--primary);
    background-color: rgba(107, 15, 42, 0.04);
    padding: 16px 22px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

.markdown-body blockquote p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
}

.markdown-body th, .markdown-body td {
    border: 1px solid rgba(107, 15, 42, 0.08);
    padding: 10px 16px;
    text-align: left;
}

.markdown-body th {
    background-color: rgba(107, 15, 42, 0.04);
    color: var(--text-bright);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.markdown-body tr:nth-child(even) {
    background-color: rgba(107, 15, 42, 0.01);
}

.markdown-body tr:hover {
    background-color: rgba(107, 15, 42, 0.02);
}

.doc-placeholder-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: var(--text-muted);
    gap: 16px;
}

/* ============================================================
   NEWS / TWITTER SECTION
   ============================================================ */
.news-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 24px;
    align-items: start;
}

.news-twitter-embed {
    padding: 24px;
    min-height: 500px;
}

.twitter-widget-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-cta-card {
    padding: 28px;
}

.news-cta-card .card-icon {
    margin-bottom: 20px;
}

.news-cta-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.news-cta-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   GETTING STARTED STEPS
   ============================================================ */
.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    padding: 28px 32px;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.step:hover {
    transform: translateX(8px);
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(107, 15, 42, 0.3);
    letter-spacing: -1px;
}

.step-detail {
    flex: 1;
}

.step-detail h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.step-detail p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.65;
}

/* Code block with copy button */
.code-block-container {
    position: relative;
}

.code-block-container pre {
    background-color: #1a1210 !important;
    border: 1px solid rgba(107, 15, 42, 0.15);
    border-radius: 8px;
    padding: 14px 16px;
    overflow-x: auto;
}

.code-block-container code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #c8b8b0;
}

.btn-copy-code {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 13px;
}

.btn-copy-code:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
}

.btn-copy-code.copied {
    color: var(--accent-emerald);
    border-color: var(--accent-emerald);
    background: rgba(26, 122, 85, 0.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background-color: var(--bg-darker);
    position: relative;
    padding: 70px 0 0;
    margin-top: 80px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), transparent);
    opacity: 0.35;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-info {
    max-width: 360px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 20px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.link-group h4 {
    color: var(--text-bright);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 700;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-group a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-group a:hover {
    color: var(--text-bright);
    transform: translateX(4px);
}

.link-group a i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(107, 15, 42, 0.06);
    padding: 24px 0;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-bottom span {
    opacity: 0.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .nav__links {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .floating-nav {
        top: 0;
        height: 56px;
        padding: 0 16px;
        width: 100%;
        border-radius: 0;
    }

    .floating-nav.is-scrolled {
        top: 10px;
        height: 52px;
        padding: 4px 8px 4px 14px;
        width: calc(100% - 20px);
        border-radius: 999px;
    }

    .nav__logo-status {
        display: none;
    }

    .nav-btn-gh .gh-text,
    .nav-btn-gh .gh-star-chip {
        display: none;
    }

    .nav-btn-gh {
        padding: 6px 10px;
    }

    .nav-btn-cta {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}
    
    .docs-workspace {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: relative;
        top: 0;
        max-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 46px;
    }

    .stats-strip-inner {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1 1 40%;
        min-width: 140px;
    }

    .stat-item::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .architecture-layout {
        flex-direction: column;
    }
    
    .arch-info-panel {
        order: -1;
    }
    
    .section-header h2 {
        font-size: 34px;
    }

    .hero-content h1 {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .footer-links {
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }

    .step:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}

/* ============================================================
   OPUS FEATURES & DESIGN SYSTEM ENHANCEMENTS
   ============================================================ */

/* Typography & General Utilities */
.outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--primary-light);
}

.btn__arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* Status Chips & Pulsing Indicator */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    border-radius: 999px;
    text-transform: uppercase;
    padding: 0.45em 1.1em;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-bright);
}

.chip .dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s ease-out infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* ============================================================
   FULLSCREEN 3D VIEWPORT HERO (VIDEO SCRUB)
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 680px;
    overflow: hidden;
    background: #090708;
    color: #f5f5f3;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: ew-resize;
    user-select: none;
}

.hero__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1) 0%, rgba(9, 7, 8, 0.65) 100%),
        linear-gradient(to right, rgba(9, 7, 8, 0.88) 0%, rgba(9, 7, 8, 0.45) 45%, rgba(9, 7, 8, 0.1) 70%, rgba(9, 7, 8, 0.65) 100%),
        linear-gradient(to top, rgba(9, 7, 8, 0.95) 0%, rgba(9, 7, 8, 0.25) 45%, rgba(9, 7, 8, 0.45) 100%);
}

.hero__top-hud {
    position: absolute;
    top: 96px;
    right: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    z-index: 20;
    pointer-events: none;
}

.hero__top-hud .chip {
    background: rgba(18, 12, 16, 0.7);
    color: #f5f5f3;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 11.5px;
}

.hero__top-hud .chip-hint {
    color: var(--primary-light);
    border-color: rgba(232, 52, 90, 0.4);
}

.hero__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    z-index: 10;
}

.hero__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 680px;
}

.hero__title {
    margin: 0;
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: clamp(4.2rem, 10.5vw, 9.5rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
}

.hero__intro {
    margin: 0;
    max-width: 520px;
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(245, 245, 243, 0.78);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

.hero__stats {
    flex: none;
    width: 230px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 22px;
    border-radius: 20px;
    background: rgba(20, 14, 18, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.stat__value {
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.stat__value small {
    font-size: 1rem;
    color: var(--primary-light);
    margin-left: 2px;
}

.stat__value--sm {
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.stat__label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.stat__time {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-top: 2px;
}

/* ============================================================
   EDITOR SHOWCASE SECTION
   ============================================================ */
.editor-frame {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(107, 15, 42, 0.18);
    box-shadow: 0 25px 70px -15px rgba(107, 15, 42, 0.25);
    background: #111113;
    max-width: 1100px;
    margin: 0 auto;
}

.editor-frame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(22, 16, 18, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e5e5;
    gap: 12px;
}

.viewport-dots {
    display: flex;
    gap: 6px;
    flex: none;
}

.vdot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.vdot.close { background: #ff5f56; }
.vdot.min { background: #ffbd2e; }
.vdot.max { background: #27c93f; }

.editor-frame-title {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-frame-badges {
    display: flex;
    gap: 8px;
}

.chip-sm {
    padding: 3px 10px;
    font-size: 11px;
}

.editor-frame-content img {
    width: 100%;
    display: block;
}

/* Hero Scroll Indicator */
.hero__scroll {
    margin: 28px auto 0;
    width: 24px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    border: 1px solid rgba(107, 15, 42, 0.2);
    background: rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease;
}

.hero__scroll:hover {
    transform: translateY(2px);
}

.hero__scroll-dot {
    width: 4px;
    height: 8px;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--primary-light);
    animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    80% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ============================================================
   DYNAMIC TILTED MARQUEE WITH VELOCITY BOOST
   ============================================================ */
.marquee-section {
    padding: 30px 0 50px;
    overflow: hidden;
    position: relative;
}

.marquee {
    overflow: hidden;
    padding-block: 1vw;
}

.marquee__row {
    transform: rotate(-1.5deg);
    margin-inline: -5vw;
    padding: 8px 0;
}

.marquee__track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee__group {
    display: flex;
    align-items: center;
    flex: none;
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: clamp(3.2rem, 7.5vw, 6.8rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--primary);
}

.marquee__group > span {
    padding-right: 0.28em;
}

.marquee__sep {
    font-size: 0.4em;
    opacity: 0.55;
    color: var(--primary-light);
}

/* ============================================================
   HORIZONTAL SCROLL CORE MODULES (WORK)
   ============================================================ */
.work {
    position: relative;
    background: var(--bg-darker);
    color: var(--text-bright);
}

.work__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.work__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 88px;
}

.work__head .eyebrow {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
}

.work__counter {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
}

.work__counter span {
    font-weight: 800;
    color: var(--primary-light);
}

.work__track {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    padding-inline: max(28px, calc((100vw - 1200px) / 2));
    will-change: transform;
}

.work__intro {
    flex: none;
    width: min(380px, 78vw);
    padding-right: 24px;
}

.work__title {
    margin: 0 0 16px;
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--text-bright);
}

.work__intro p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.work__progress {
    height: 4px;
    background: rgba(107, 15, 42, 0.1);
}

.work__progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.project {
    position: relative;
    flex: none;
    width: min(540px, 82vw);
    height: min(60vh, 520px);
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    box-shadow: 0 20px 50px rgba(107, 15, 42, 0.18);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

.project:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(107, 15, 42, 0.28);
}

.project__art {
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project:hover .project__art {
    transform: scale(1.05);
}

.project__num {
    position: absolute;
    top: 18px;
    left: 24px;
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: clamp(4.5rem, 10vw, 7.5rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
    mix-blend-mode: overlay;
}

.project__info {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    border-radius: 20px;
    background: rgba(15, 10, 14, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project__title {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.project__cat {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.project__year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 999px;
}

/* Module Artworks */
.project--rhi .project__art {
    background: radial-gradient(circle at 75% 30%, #e8345a 0%, rgba(232, 52, 90, 0.3) 30%, transparent 60%),
                linear-gradient(135deg, #1f040d 0%, #400818 45%, #6b0f2a 100%);
}

.project--ecs .project__art {
    background: radial-gradient(circle at 25% 35%, #1a7a55 0%, rgba(26, 122, 85, 0.4) 30%, transparent 60%),
                linear-gradient(135deg, #061f15 0%, #0d3827 50%, #1a7a55 100%);
}

.project--hotreload .project__art {
    background: radial-gradient(circle at 80% 70%, #f59e0b 0%, rgba(245, 158, 11, 0.3) 35%, transparent 65%),
                linear-gradient(135deg, #2b1104 0%, #612105 50%, #b45309 100%);
}

.project--physics .project__art {
    background: radial-gradient(circle at 30% 70%, #3b82f6 0%, rgba(59, 130, 246, 0.3) 35%, transparent 65%),
                linear-gradient(135deg, #091326 0%, #152952 50%, #1e40af 100%);
}

.project--editor .project__art {
    background: radial-gradient(circle at 50% 40%, #c41850 0%, rgba(196, 24, 80, 0.4) 40%, transparent 70%),
                linear-gradient(135deg, #150912 0%, #331326 50%, #681f49 100%);
}

/* ============================================================
   TESTIMONIALS WITH DRIFTING COLOR BLOBS
   ============================================================ */
.testimonials {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background: #110d0f;
    color: #f5f5f3;
}

.testimonials .section-header h2 {
    color: #fff;
}

.testimonials .section-header p {
    color: rgba(255, 255, 255, 0.65);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
    pointer-events: none;
    will-change: transform;
}

.blob--pink {
    top: -120px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: #e8345a;
    animation: drift-a 18s ease-in-out infinite alternate;
}

.blob--blue {
    right: -100px;
    bottom: -100px;
    width: 460px;
    height: 460px;
    background: #6b0f2a;
    animation: drift-b 22s ease-in-out infinite alternate;
}

@keyframes drift-a {
    to { transform: translate(120px, 80px) scale(1.1); }
}

@keyframes drift-b {
    to { transform: translate(-140px, -70px) scale(0.9); }
}

.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 24px;
    padding-bottom: 50px;
}

.quote {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 280px;
    margin: 0;
    padding: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
}

.quote:nth-child(2) {
    transform: translateY(40px);
}

.quote blockquote {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.quote__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quote__avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.quote__name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.quote__role {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   FOOTER POLISH & GIANT WORDMARK
   ============================================================ */
.footer-polished {
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    border-radius: 36px 36px 0 0;
    background: var(--bg-main);
    border-top: 1px solid rgba(107, 15, 42, 0.1);
}

.footer__top-wrap {
    display: flex;
    align-items: flex-start;
}

.footer__top.glass {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    border: 1px solid rgba(107, 15, 42, 0.18);
    box-shadow: 0 10px 25px rgba(107, 15, 42, 0.08);
    transition: transform 0.3s ease, background 0.3s ease;
}

.footer__top.glass:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.8);
}

.footer__wordmark {
    margin-bottom: -0.12em;
    font-family: var(--font-display, 'Oswald', sans-serif);
    font-size: 16vw;
    font-weight: 700;
    line-height: 0.8;
    text-align: center;
    white-space: nowrap;
    letter-spacing: -0.01em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(107, 15, 42, 0.16);
    pointer-events: none;
    user-select: none;
}

/* ============================================================
   INTERACTIVE CURSOR STAMP TRAIL
   ============================================================ */
.trail {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.trail img {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    max-width: none;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.35));
    will-change: transform, opacity;
    pointer-events: none;
}

.is-trailing {
    -webkit-user-select: none;
    user-select: none;
}

/* Responsive adjustments */
@media (max-width: 899px) {
    .quotes {
        grid-template-columns: 1fr;
        padding-bottom: 0;
    }
    .quote:nth-child(2) {
        transform: none;
    }
    .work__head {
        padding-top: 60px;
    }
    .canvas-wrap {
        height: 380px;
    }
    .editor-img-wrap img {
        height: 380px;
    }
}

@media (max-width: 639px) {
    .canvas-wrap {
        height: 280px;
    }
    .editor-img-wrap img {
        height: 280px;
    }
    .viewport-title {
        display: none;
    }
    .work__title {
        font-size: 2.4rem;
    }
    .project {
        width: 85vw;
        height: 380px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chip .dot,
    .hero__scroll-dot,
    .blob {
        animation: none;
    }
    .btn, .btn__arrow {
        transition: none;
    }
}
