/* ==========================================================================
   Moorden RWA Protocol CSS Core Design System
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --dark-bg: #060709;
    --dark-surface: #0e1015;
    --dark-surface-border: rgba(255, 255, 255, 0.08);
    --dark-surface-hover: rgba(255, 255, 255, 0.12);
    
    --light-bg: #ffffff;
    --light-surface: #f7f9fb;
    --light-surface-border: rgba(0, 0, 0, 0.08);
    --light-surface-hover: rgba(0, 0, 0, 0.03);

    --accent-glow: rgba(255, 255, 255, 0.15);
    
    --text-white: #ffffff;
    --text-grey-light: #8e929b;
    --text-grey-dark: #63676f;
    --text-black: #090a0c;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    font-size: 16px;
    background-color: var(--dark-bg);
    color: var(--text-white);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Helper classes */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 7, 9, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-white);
}

.logo sup {
    font-size: 0.6rem;
    top: -0.8em;
}

.logo-icon svg {
    display: block;
    color: var(--text-white);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-grey-light);
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-white);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.03);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #00e676;
    box-shadow: 0 0 8px #00e676;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==========================================================================
   Hero Section (Dark Theme)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 7rem;
    padding-bottom: 3rem;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    overflow: hidden;
}

/* Dot grid overlay background */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0),
        linear-gradient(to bottom, rgba(6, 7, 9, 0.8), rgba(6, 7, 9, 1));
    background-size: 24px 24px, 100% 100%;
    pointer-events: none;
    z-index: 1;
}

/* Futuristic Ambient Lights */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

.orb-1 {
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
}

.orb-2 {
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
}

.orb-3 {
    top: 30%;
    right: 20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    width: 100%;
    z-index: 2;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

/* Left Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-grey-light);
    border-left: 2px solid var(--text-white);
    padding-left: 1rem;
    line-height: 1.4;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--text-white);
    margin: 0.5rem 0;
    filter: drop-shadow(0 4px 12px rgba(255,255,255,0.1));
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-grey-light);
    font-weight: 300;
    max-width: 90%;
}

.hero-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.hero-features li:hover {
    transform: translateX(5px);
    color: #fff;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-grey-light);
    transition: var(--transition-smooth);
}

.hero-features li:hover .feature-icon {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
    color: var(--text-white);
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.vision-box {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.vision-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-grey-light);
    margin-bottom: 0.5rem;
}

.vision-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 500;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

/* Center Visualizer with Robotic Hand Image & 3D Interactive Canvas Overlay */
.hero-visual-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-image {
    position: absolute;
    width: 85%;
    height: auto;
    object-fit: contain;
    z-index: 1;
    opacity: 0.45;
    mix-blend-mode: screen;
    filter: grayscale(100%) contrast(1.1) brightness(1.2);
    pointer-events: none;
    animation: float-visual 6s ease-in-out infinite;
}

#interactive-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: grab;
}

#interactive-hero-canvas:active {
    cursor: grabbing;
}

@keyframes float-visual {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.cube-overlay-tip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 7, 9, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-grey-light);
    letter-spacing: 0.05em;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    opacity: 0.7;
    z-index: 3;
}

.visual-wrapper:hover .cube-overlay-tip {
    opacity: 1;
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Right Stats Sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--dark-surface-border);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.stats-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.03);
}

.stats-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-grey-light);
    margin-bottom: 0.5rem;
}

.stats-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-heading);
    color: var(--text-white);
}

.stats-unit {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-grey-light);
    margin-bottom: 0.5rem;
}

.stats-time {
    font-size: 0.75rem;
    color: var(--text-grey-dark);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

/* Mini Interactive SVG Chart styling */
.chart-container {
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

#rwa-chart {
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart-point {
    fill: #ffffff;
    stroke: var(--dark-bg);
    stroke-width: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chart-point:hover {
    r: 6;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.chart-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-white);
    color: var(--text-black);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.partner-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255,255,255,0.01);
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.partner-text {
    display: flex;
    flex-direction: column;
}

.partner-sub {
    font-size: 0.65rem;
    color: var(--text-grey-dark);
    letter-spacing: 0.05em;
}

.partner-main {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-grey-light);
}

/* Scroll indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.scroll-down-indicator:hover {
    opacity: 1;
}

.arrow-down {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* ==========================================================================
   Section 2: Asset Classes (Light Theme)
   ========================================================================== */
.light-theme {
    background: var(--light-bg);
    color: var(--text-black);
}

.assets-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

/* Dotted grid for light background */
.grid-overlay-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.04) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 1;
}

.section-header-light {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-surface-border);
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

.header-pre {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-grey-dark);
    letter-spacing: 0.05em;
}

.header-power {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-grey-dark);
}

.section-title-light {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: var(--text-black);
}

.assets-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.assets-intro-text {
    font-size: 1.15rem;
    color: var(--text-grey-dark);
    font-weight: 300;
    line-height: 1.6;
}

.mini-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.benefit-tag {
    background: var(--light-surface);
    border: 1px solid var(--light-surface-border);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: var(--transition-smooth);
}

.benefit-tag:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.benefit-tag strong {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-black);
}

.benefit-tag span {
    font-size: 0.75rem;
    color: var(--text-grey-dark);
}

/* Asset Cards Grid - Visual Card Redesign matching Mockup */
.asset-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.asset-card {
    position: relative;
    background: var(--light-surface);
    border: 1px solid var(--light-surface-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    padding: 0; /* Remove padding to make image flush */
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #000;
}

.card-image-asset {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.15) brightness(0.9);
    transition: var(--transition-smooth);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.card-content-area {
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid var(--light-surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-black);
    transition: var(--transition-smooth);
    margin-top: -3.5rem; /* pull icon up on top of the image */
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-black);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-grey-dark);
    flex-grow: 1;
    line-height: 1.5;
}

.card-action {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-grey-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    margin-top: auto;
}

/* Card Hover States */
.asset-card:hover {
    background: #ffffff;
    border-color: var(--text-black);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.asset-card:hover .card-image-asset {
    transform: scale(1.05);
    filter: grayscale(100%) contrast(1.1) brightness(1.0);
}

.asset-card:hover .card-icon {
    background: var(--text-black);
    color: #ffffff;
    border-color: var(--text-black);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.asset-card:hover .card-action {
    color: var(--text-black);
    transform: translateX(4px);
}

/* And More Special Card adjustments */
.and-more-card {
    background: rgba(0,0,0,0.02);
    border-style: dashed;
    cursor: default;
}

.and-more-card:hover {
    background: rgba(0,0,0,0.02);
    border-color: var(--light-surface-border);
    transform: none;
    box-shadow: none;
}

.and-more-card:hover .card-icon {
    background: #ffffff;
    color: var(--text-black);
    border-color: var(--light-surface-border);
    box-shadow: none;
}

.and-more-card:hover .card-action {
    color: var(--text-grey-dark);
    transform: none;
}

/* Why Moorden Banner container */
.why-moorden-banner {
    border-top: 1px solid var(--light-surface-border);
    padding-top: 5rem;
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.why-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.why-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-grey-dark);
}

.why-intro {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-black);
    letter-spacing: -0.01em;
}

.globe-line-icon {
    margin-top: 1.5rem;
    color: var(--text-grey-dark);
    opacity: 0.7;
    animation: rotate-globe 40s linear infinite;
    width: fit-content;
}

@keyframes rotate-globe {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.why-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.why-card h4 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-black);
}

.why-card p {
    font-size: 0.85rem;
    color: var(--text-grey-dark);
}

/* ==========================================================================
   Section 3: How Moorden Works (Dark Theme)
   ========================================================================== */
.how-section {
    position: relative;
    padding: 8rem 0;
    background: var(--dark-bg);
}

.section-header-dark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 4rem;
}

.header-pre-dark {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-grey-light);
    letter-spacing: 0.05em;
}

.header-power-dark {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-grey-light);
}

.how-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.how-content-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.how-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.how-description {
    font-size: 1.15rem;
    color: var(--text-grey-light);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* Steps list interactive elements */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.step-num-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-grey-light);
    transition: var(--transition-smooth);
}

.step-details h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-grey-light);
    margin-bottom: 0.25rem;
    transition: var(--transition-smooth);
}

.step-details p {
    font-size: 0.85rem;
    color: var(--text-grey-dark);
    transition: var(--transition-smooth);
}

/* Step Active state */
.step-item.active {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.step-item.active .step-num-circle {
    background: var(--text-white);
    color: var(--text-black);
    border-color: var(--text-white);
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.step-item.active .step-details h3 {
    color: var(--text-white);
}

.step-item.active .step-details p {
    color: var(--text-grey-light);
}

.mission-container {
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

.mission-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-grey-light);
    margin-bottom: 0.5rem;
}

.mission-text {
    font-size: 1rem;
    color: var(--text-grey-light);
    font-weight: 300;
}

/* How Diagram (Interactive SVG) */
.how-diagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.diagram-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
}

#interactive-diagram {
    display: block;
    overflow: visible;
}

/* SVG Elements style definition */
.diagram-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1px;
}

.laser-line {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1px;
    stroke-dasharray: 4,4;
    transition: var(--transition-smooth);
}

.laser-line.active {
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 1.5px;
    stroke-dasharray: none;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
}

.diagram-node {
    cursor: pointer;
}

.node-outer-glow {
    fill: transparent;
    transition: var(--transition-smooth);
}

.node-outer {
    fill: var(--dark-bg);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5px;
    transition: var(--transition-smooth);
}

.node-inner {
    fill: var(--text-grey-light);
    transition: var(--transition-smooth);
}

.node-label {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    fill: var(--text-grey-dark);
    text-anchor: middle;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.node-label-right {
    text-anchor: start;
}

.node-label-left {
    text-anchor: end;
}

/* Active Node point status */
.diagram-node.active .node-outer-glow {
    fill: rgba(255, 255, 255, 0.1);
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6px;
}

.diagram-node.active .node-outer {
    stroke: #ffffff;
    fill: var(--dark-bg);
    stroke-width: 2px;
}

.diagram-node.active .node-inner {
    fill: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255,255,255,1));
}

.diagram-node.active .node-label {
    fill: #ffffff;
    font-weight: 700;
}

/* Central M Core branding */
.core-outer-glow {
    fill: rgba(255, 255, 255, 0.05);
    animation: heartbeat 4s infinite alternate;
}

.core-bg {
    fill: #060709;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1px;
}

.core-letter {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    fill: #ffffff;
    text-anchor: middle;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

@keyframes heartbeat {
    0% { r: 40px; fill: rgba(255,255,255,0.03); }
    100% { r: 50px; fill: rgba(255,255,255,0.07); }
}

.diagram-instructions {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-grey-dark);
    letter-spacing: 0.05em;
    pointer-events: none;
    white-space: nowrap;
}

/* ==========================================================================
   Asset Drawer/Modal styling
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 9, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--dark-surface);
    border: 1px solid var(--dark-surface-border);
    width: 90%;
    max-width: 560px;
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: var(--transition-smooth);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-grey-light);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--text-white);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.modal-icon-container {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-steps-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flow-step {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 36px;
    bottom: -24px;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.flow-step-num {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.flow-step h4 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.flow-step p {
    font-size: 0.85rem;
    color: var(--text-grey-light);
    font-weight: 300;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    background: var(--dark-bg);
    color: var(--text-grey-dark);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-container p {
    font-size: 0.8rem;
    font-weight: 300;
}

.footer-bottom-logo {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .hero-visual-container {
        height: 400px;
        order: -1; /* visual on top for tablet/mobile */
    }
    
    .hero-sidebar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }
    
    .stats-card {
        flex: 1;
    }
    
    .partner-badge {
        flex: 1;
        justify-content: center;
    }
    
    .assets-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-moorden-banner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .how-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .how-diagram-container {
        justify-content: center;
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-sidebar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-title-light {
        font-size: 2.5rem;
    }
    
    .asset-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .how-title {
        font-size: 2.5rem;
    }
    
    .step-item {
        padding: 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Intersection Observer Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
