:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --accent-gold: #FFD700;
    --accent-emerald: #50C878;
    --accent-green: #2d7a4f;
    --accent-yellow: #FFD700;
    --border-color: #2a2a2a;
    --gradient-primary: linear-gradient(135deg, #FFD700 0%, #50C878 100%);
    --gradient-secondary: linear-gradient(135deg, #1a2a1a 0%, #0a1a0a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Ensure nav-menu is visible on desktop */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
    }
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--accent-gold);
}

/* Hamburger Menu Toggle Button */
.nav-toggle {
    display: none !important; /* Hidden by default */
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(80, 200, 120, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-logo-large {
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-tagline {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Live Price Display */
.live-price-container {
    margin: 2rem 0 3rem;
    display: flex;
    justify-content: center;
}

.live-price-card {
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-gold);
    border-radius: 16px;
    padding: 2rem 3rem;
    text-align: center;
    min-width: 400px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
    transition: all 0.3s;
}

.live-price-card:hover {
    border-color: var(--accent-emerald);
    box-shadow: 0 10px 40px rgba(80, 200, 120, 0.3);
}

.live-price-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.live-price-value {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.live-price-subtext {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.live-price-separator {
    color: var(--accent-gold);
    font-weight: bold;
}

.live-price-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
    animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-visual {
    margin: 3rem 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.vault-visualization {
    position: relative;
    width: 700px;
    height: 525px;
    margin: 0 auto;
    perspective: 1500px;
    animation: vault-entrance 1.5s ease-out;
    filter: drop-shadow(0 20px 60px rgba(255, 215, 0, 0.3));
}

@keyframes vault-entrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.vault-layer {
    position: absolute;
    border: 4px solid var(--accent-emerald);
    border-radius: 16px;
    background: rgba(80, 200, 120, 0.15);
    backdrop-filter: blur(2px);
}

.layer-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-width: 4px;
    box-shadow: 0 0 50px rgba(80, 200, 120, 0.5), inset 0 0 30px rgba(80, 200, 120, 0.2);
    animation: rotate3d 20s linear infinite;
}

.layer-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: var(--accent-gold);
    border-width: 4px;
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.6), inset 0 0 40px rgba(255, 215, 0, 0.3);
    animation: rotate3d 15s linear infinite reverse;
}

.layer-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-color: var(--accent-emerald);
    border-width: 4px;
    box-shadow: 0 0 50px rgba(80, 200, 120, 0.7), inset 0 0 35px rgba(80, 200, 120, 0.4);
    animation: rotate3d 10s linear infinite;
}

.vault-core {
    position: absolute;
    width: 45%;
    height: 45%;
    top: 27.5%;
    left: 27.5%;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 
        0 0 80px rgba(255, 215, 0, 0.9),
        0 0 120px rgba(80, 200, 120, 0.6),
        inset 0 0 60px rgba(0, 0, 0, 0.3);
    animation: pulse-core 3s ease-in-out infinite, rotate-core 20s linear infinite;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    100% { transform: rotateY(360deg) rotateX(360deg); }
}

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

@keyframes pulse-core {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
        box-shadow: 
            0 0 80px rgba(255, 215, 0, 0.9),
            0 0 120px rgba(80, 200, 120, 0.6),
            inset 0 0 60px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.15); 
        opacity: 0.95;
        box-shadow: 
            0 0 100px rgba(255, 215, 0, 1),
            0 0 150px rgba(80, 200, 120, 0.8),
            inset 0 0 80px rgba(0, 0, 0, 0.4);
    }
}

/* Introduction */
.intro {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.intro-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.icon-wrapper svg {
    width: 48px;
    height: 48px;
}

.shield-icon {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-emerald) 100%);
}

.vault-icon {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-gold) 100%);
}

.globe-icon {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #2d7a4f 100%);
}

.document-icon {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d4af37 100%);
}

.content-block {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.content-block .lead {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.content-block p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    text-align: left;
}

.feature-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Chart Visualization */
.chart-visualization {
    margin-top: 3rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    overflow-x: visible; /* Allow chart to expand horizontally if needed */
    overflow-y: visible;
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-toggle, .chart-period {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn, .period-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.toggle-btn:hover, .period-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.toggle-btn.active, .period-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bg-primary);
    font-weight: 600;
}

.lftbr-chart {
    height: 400px;
    position: relative;
    padding-left: 120px !important; /* Explicit padding to prevent y-axis label clipping - increased */
    padding-right: 0;
    overflow: visible !important; /* Don't clip anything */
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
}

#lftbrChart {
    height: 100%;
    display: block;
    /* Width will be set by JavaScript - don't constrain it */
    /* Remove any max-width constraints */
}

.chart-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.use-case-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.use-case-item:hover {
    border-color: var(--accent-emerald);
    transform: translateX(5px);
}

.use-case-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: bold;
    flex-shrink: 0;
}

.use-case-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-connector {
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
    margin-top: 30px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }
}

/* LFT Features */
.lft-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.lft-feature {
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: left;
}

.lft-conclusion {
    text-align: center;
    font-size: 1.25rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: 2rem;
}

/* Dashboard */
.section-dashboard {
    background: var(--bg-secondary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.dashboard-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.dashboard-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.dashboard-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.dashboard-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.dashboard-change {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dashboard-change.positive {
    color: var(--accent-emerald);
}

.activity-feed {
    margin-top: 4rem;
}

.activity-feed h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.activity-item .activity-type {
    font-weight: 600;
    color: var(--accent-gold);
}

.activity-item .activity-amount {
    color: var(--text-primary);
    font-weight: 600;
}

.activity-item .activity-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Security */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.security-item {
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: left;
}

/* Mission */
.section-mission {
    background: var(--gradient-secondary);
    border-top: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
}

.mission-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.mission-text {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.mission-tagline {
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-toggle {
        display: flex !important; /* Force display on mobile */
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        display: none !important; /* Hide menu by default on mobile */
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex !important; /* Show when active */
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }
    
    .nav-menu a:hover {
        color: var(--accent-gold);
        border-bottom-color: var(--accent-gold);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-tagline {
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .vault-visualization {
        width: 100%;
        max-width: 600px;
        height: 450px;
    }
    
    .hero-visual {
        margin: 2rem 0;
    }
    
    .vault-core {
        width: 50%;
        height: 50%;
        top: 25%;
        left: 25%;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        width: 2px;
        height: 40px;
    }
    
    .live-price-card {
        min-width: auto;
        width: 100%;
        padding: 1.5rem 2rem;
    }
    
    .live-price-value {
        font-size: 2.5rem;
    }
    
    .live-price-subtext {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lftbr-chart {
        height: 300px;
    }
}

