@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Oswald:wght@400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Raleway:wght@400;500;600;700;800&display=swap');

:root {
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-display: 'Raleway', sans-serif;
    --font-condensed: 'Oswald', sans-serif;
    
    --primary: #1B4D3E; 
    --primary-dark: #143a2f;
    --primary-gradient: linear-gradient(135deg, #1B4D3E 0%, #0f2e25 100%);
    --secondary: #D4AF37; 
    --secondary-light: #fbeea4;
    
    --bg-body: oklch(97% 0 0); 
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85); 
    
    --text-main: #000000;
    --text-muted: #6b7280; 
    
    --container-width: 1280px; 
    --nav-height: 70px;
    
    --spacing: .25rem;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    --default-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2 {
    font-family: var(--font-serif);
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-main);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

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

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 0.5rem;
}

.section {
    padding: 80px 0;
    position: relative;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 4rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-weight: 500;
    font-family: var(--font-display);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--default-transition);
    font-size: 0.9rem;
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(27, 77, 62, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(27, 77, 62, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-surface); 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.top-bar {
    background: #0f2e25;
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    padding: 8px 0;
    height: 36px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top;
}

header.scrolled .top-bar {
    height: 0;
    padding: 0;
    opacity: 0;
}

.top-bar a {
    color: inherit;
    font-weight: 500;
}
.top-bar a:hover { color: var(--secondary); }

.main-nav {
    height: 70px;
    display: flex;
    align-items: center;
    background: #ffffff; 
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header.scrolled .main-nav {
    height: 60px;
    background: transparent; 
    border-bottom: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    height: 100%;
    align-items: center;
    margin-left: auto;
    padding-right: 30px;
}

.nav-link {
    font-size: 0.8rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
    transition: all 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px; 
    background: var(--secondary);
    transition: width 0.3s ease;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-search {
    border-left: 1px solid #eee;
    padding-left: 30px;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.nav-search:hover { transform: scale(1.1); }

.mobile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle-text {
    font-size: 0.75rem; 
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.mobile-only { display: none; }
.mobile-icon { display: none; }

/* Desktop-only overrides to strictly hide mobile elements */
@media (min-width: 901px) {
    .mobile-only, 
    .mobile-toggle,
    .mobile-toggle-text {
        display: none !important;
    }
}

.hero {
    min-height: 100vh;
    width: 100%;
    background: #0f2e25;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    animation: heroZoom 24s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 46, 37, 0.95) 0%, rgba(15, 46, 37, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.4); 
    padding: 6px 6px 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-badge::after {
    content: 'LIVE';
    background: var(--secondary);
    color: #0f2e25;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    animation: pulse-badge 2s infinite;
}

.hero-badge:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

@keyframes pulse-badge {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-badge::before { display: none; }

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 650px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 12px 30px;
    font-size: 0.95rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-hero svg {
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.btn-hero:hover svg {
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-glass:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* --- MASTER COLLECTIONS SECTION --- */
.collection-section {
    background: var(--bg-body);
    padding-top: var(--spacing-xl);
    padding-bottom: 6rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-family: var(--font-serif);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.collection-card {
    position: relative;
    height: 500px; /* Tall, elegant aspect ratio */
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--default-transition);
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.cc-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection-card:hover .cc-image img {
    transform: scale(1.1);
}

.cc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.collection-card:hover .cc-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
}

.cc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 3;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.collection-card:hover .cc-content {
    transform: translateY(0);
}

.cc-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.cc-badge {
    color: var(--secondary);
}

.cc-title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: var(--font-serif);
    color: white; /* Explicitly white */
}

.cc-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
    opacity: 0; /* Hidden initially for simpler look */
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.collection-card:hover .cc-text {
    opacity: 1;
    max-height: 100px;
    margin-bottom: 20px;
}

.btn-text-arrow {
    background: none;
    border: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.btn-text-arrow:hover {
    opacity: 1;
    color: var(--secondary);
}

.btn-text-arrow .arrow {
    transition: transform 0.3s ease;
}

.btn-text-arrow:hover .arrow {
    transform: translateX(5px);
}

/* Modal Enhancements for Slides */
.modal-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ms-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
}

.ms-slide.active {
    opacity: 1;
}

.ms-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ms-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ms-btn:hover {
    background: white;
    color: black;
}

.modal-details h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.modal-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.modal-details li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.modal-details li span:first-child {
    color: var(--text-muted);
}

.modal-details li span:last-child {
    font-weight: 600;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: 1fr;
        padding: 0 10px; /* Add slight side padding */
    }
    .collection-card {
        height: 550px; /* Taller/Longer for mobile portrait feel */
    }
    .cc-text {
        opacity: 1; /* Always show text on mobile */
        max-height: none;
        font-size: 1rem; /* Slightly larger text for readability */
    }
    .cc-content {
        transform: translateY(0);
        padding: 25px; /* Adjust padding */
    }
}

.stats-container {
    background: #0f2e25; 
    background: linear-gradient(145deg, #0f2e25 0%, #081a15 100%);
    border-radius: 4px; 
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
    padding: 40px 20px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0; 
    border-top: 4px solid var(--secondary); 
}

.stat-item {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-num {
    display: block;
    font-family: var(--font-condensed);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px;
        margin-top: 40px;
    }
    
    .stat-item {
        justify-content: flex-start;
        padding: 0;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .stat-item:not(:last-child) {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 30px;
    }
}

.news-ticker {
    background: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.875rem;
}

.ticker-label {
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    padding-right: 1.25rem;
    border-right: 2px solid var(--secondary);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.4s forwards;
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 40% 60%;
    overflow: hidden;
    transform: scale(0.95);
    animation: scaleIn 0.4s forwards;
    position: relative;
}

.modal-image {
    background: var(--bg-body);
    height: 100%;
    position: relative;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.modal-text {
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 50;
    color: var(--text-main);
}

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

.btn-asset-details {
    margin-top: 1rem;
    align-self: flex-start;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes scaleIn { to { transform: scale(1); } }

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 700px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
    transform: scale(1);
}

.search-input {
    width: 100%;
    padding: 20px 0;
    font-size: 2.5rem;
    border: none;
    border-bottom: 2px solid var(--primary);
    background: transparent;
    color: var(--text-main);
    outline: none;
    font-weight: 700;
    font-family: var(--font-sans);
}

.search-input::placeholder {
    color: #e2e8f0;
}

.search-results {
    margin-top: 40px;
    max-height: 50vh;
    overflow-y: auto;
    text-align: left;
    padding-right: 10px;
}

.search-result-item {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 8px;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.search-result-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 3rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    line-height: 1;
}

.search-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* --- VALUE PROPOSITION (Philosophy) --- */
.philosophy-section {
    background: #081a15; 
    color: #ffffff;
    overflow: hidden;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-label {
    display: block;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--secondary);
}

.philosophy-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-family: var(--font-serif);
    color: #ffffff; /* Force white color */
}

.philosophy-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.philosophy-features {
    display: grid;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
}

.feature-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.philosophy-visual {
    position: relative;
}

.philosophy-visual .main-img {
    width: 100%;
    border-radius: 4px; 
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    filter: brightness(0.8) contrast(1.1);
}

.glass-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 4px;
    min-width: 260px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.glass-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.glass-value {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: #ffffff;
    margin-bottom: 15px;
    transition: opacity 0.5s ease;
}

.glass-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    transition: opacity 0.5s ease;
}

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .philosophy-content {
        padding: 0 1rem;
    }
    
    .glass-card {
        right: 0;
        bottom: -20px;
        width: 90%;
        left: 5%;
    }
}

/* --- IMPACT GRID (BENTO) --- */
.impact-section {
    background: #f8fafc;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bento-grid {
    display: grid;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    grid-template-areas: 
        "box1 box2 box2"
        "box1 box3 box4"
        "box1 box3 box5";
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 300px 180px 180px;
}

.bento-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Dark overlay for text readability */
.bento-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.bento-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.2) 100%);
}

.bento-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.bento-num {
    font-size: clamp(2rem, 3vw, 3.5rem);
    margin-bottom: 8px;
    font-weight: 700;
    font-family: var(--font-condensed);
    color: var(--secondary);
    line-height: 1;
    display: block;
}

.bento-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    max-width: 95%;
    font-weight: 500;
}

/* Specific Grid Areas & Images */
.box-1 { 
    grid-area: box1; 
    background-image: url('https://georesources.ai/images/bg5.jpg');
}
.box-2 { 
    grid-area: box2; 
    background-image: url('https://georesources.ai/images/bg6.jpg');
}
.box-3 { 
    grid-area: box3; 
    background-image: url('https://georesources.ai/images/bg7.jpg');
}
.box-4 { 
    grid-area: box4; 
    background-image: url('https://georesources.ai/images/bg8.jpg');
}
.box-5 { 
    grid-area: box5; 
    background-image: url('https://georesources.ai/images/bg9.jpg');
}

/* --- ABOUT PAGE STYLES --- */
.about-hero {
    position: relative;
    height: 90vh; /* Taller hero */
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 80px;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1); /* Subtle zoom effect base */
}

/* Instant Visibility Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 1s ease-out forwards;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Vision Section */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.vision-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
}

.image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.vision-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.vision-image:hover img {
    transform: scale(1.03);
}

.floating-stat {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    z-index: 2;
    color: white;
}

.fs-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.fs-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-serif);
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Values Grid */
.bg-dark {
    background-color: #0a0a0a;
    color: white;
    padding: 120px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
    border-color: var(--secondary);
}

.vc-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 25px;
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.value-card p {
    color: #a1a1aa;
    line-height: 1.6;
}

/* --- CONTACT PAGE STYLES --- */
.contact-hero {
    background-image: url('https://georesources.ai/images/bg5.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--primary); /* Fallback */
    padding: 180px 0 180px; /* Increased bottom padding for overlap */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 46, 37, 0.9) 0%, rgba(15, 46, 37, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 80px;
    margin-top: -100px; /* Floating overlap effect */
    position: relative;
    z-index: 10;
}

.contact-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
}

.contact-info-card {
    background: var(--primary);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--secondary);
}

.info-content h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=800&auto=format&fit=crop'); /* Satellite Map */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-info-card {
        order: -1; /* Info first on mobile */
    }
}

/* --- TECH GRID (About Page) --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 300px 300px;
    gap: 20px;
    margin-top: 40px;
}

.tech-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #111;
    display: flex;
    flex-direction: column;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    background-size: cover;
    background-position: center;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--secondary);
}

/* Card Sizes */
.tech-card.wide {
    grid-column: span 2;
}

.tech-card.tall {
    grid-row: span 2;
}

.tech-card.featured {
    grid-column: span 2;
    grid-row: span 1;
}

/* Dark Panel Style */
.tech-card.dark-panel {
    background: rgba(255,255,255,0.03);
    justify-content: center;
}

.tc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.tc-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.tc-content h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.tc-content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tech-card.dark-panel h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 10px;
}

.tech-card.dark-panel p {
    color: #a1a1aa;
}

.tc-icon {
    margin-bottom: 20px;
    color: var(--secondary);
}

/* Responsive Tech Grid */
@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .tech-card.wide, .tech-card.tall {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }
}

@media (max-width: 600px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* --- VALUE PROPOSITION (Philosophy) --- */
.philosophy-section {
    background: #081a15; 
    color: #ffffff;
    overflow: hidden;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-label {
    display: block;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--secondary);
}

.philosophy-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-family: var(--font-serif);
    color: #ffffff; /* Force white color */
}

.philosophy-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.philosophy-features {
    display: grid;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
}

.feature-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.philosophy-visual {
    position: relative;
}

.philosophy-visual .main-img {
    width: 100%;
    border-radius: 4px; 
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    filter: brightness(0.8) contrast(1.1);
}

.glass-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 4px;
    min-width: 260px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.glass-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.glass-value {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: #ffffff;
    margin-bottom: 15px;
    transition: opacity 0.5s ease;
}

.glass-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    transition: opacity 0.5s ease;
}

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .philosophy-content {
        padding: 0 1rem;
    }
    
    .glass-card {
        right: 0;
        bottom: -20px;
        width: 90%;
        left: 5%;
    }
}

/* --- IMPACT GRID (BENTO) --- */
.impact-section {
    background: #f8fafc;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bento-grid {
    display: grid;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    grid-template-areas: 
        "box1 box2 box2"
        "box1 box3 box4"
        "box1 box3 box5";
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 300px 180px 180px;
}

.bento-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Dark overlay for text readability */
.bento-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.bento-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.2) 100%);
}

.bento-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.bento-num {
    font-size: clamp(2rem, 3vw, 3.5rem);
    margin-bottom: 8px;
    font-weight: 700;
    font-family: var(--font-condensed);
    color: var(--secondary);
    line-height: 1;
    display: block;
}

.bento-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    max-width: 95%;
    font-weight: 500;
}

/* Specific Grid Areas & Images */
.box-1 { 
    grid-area: box1; 
    background-image: url('https://georesources.ai/images/bg5.jpg');
}
.box-2 { 
    grid-area: box2; 
    background-image: url('https://georesources.ai/images/bg6.jpg');
}
.box-3 { 
    grid-area: box3; 
    background-image: url('https://georesources.ai/images/bg7.jpg');
}
.box-4 { 
    grid-area: box4; 
    background-image: url('https://georesources.ai/images/bg8.jpg');
}
.box-5 { 
    grid-area: box5; 
    background-image: url('https://georesources.ai/images/bg9.jpg');
}

/* --- TRADING TERMINAL (Operations Page) --- */
.terminal-body {
    background-color: #050505;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace; /* Tech feel */
    --primary: #00ff9d; /* Neon Green */
    --secondary: #d4af37; /* Gold */
    --bg-panel: #0a0a0a;
    --border-color: #1f2937;
    --text-muted: #64748b;
}

.terminal-body header {
    background-color: #0a0a0a !important;
    border-bottom: 1px solid #333;
    z-index: 9999;
}

.terminal-body .logo { 
    color: #ffffff !important; 
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.terminal-body .logo span {
    color: var(--primary) !important;
}

.terminal-body .nav-link { 
    color: #cbd5e1 !important; 
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.terminal-body .nav-link:hover {
    color: #ffffff !important;
}

.terminal-body .nav-link.active { 
    color: var(--primary) !important; 
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
}

.terminal-body .mobile-toggle { 
    color: white !important; 
}

/* Ensure mobile menu works on dark theme */
.terminal-body .nav-menu {
    background: #0a0a0a !important;
    border-left: 1px solid #333;
}

.terminal-body footer {
    background-color: #050505 !important;
    border-top: 1px solid #333;
}

/* Terminal Top Bar */
.terminal-top-bar {
    background-color: #0a0a0a;
    border-bottom: 1px solid #333;
    position: relative; /* Changed from fixed to relative to fix layout blocking */
    width: 100%;
    z-index: 1000;
}

.terminal-top-bar .nav-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.terminal-top-bar .nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.4);
}

/* LIVE TICKER */
.terminal-ticker {
    background: #000;
    border-bottom: 1px solid var(--border-color);
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin-top: 0; /* Removed margin as header is no longer fixed */
}

.ticker-wrap {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    padding-left: 100%; /* Start off-screen */
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.t-sym { color: #fff; margin-right: 10px; font-weight: 700; }
.t-val.up { color: var(--primary); }
.t-val.down { color: #ff4d4d; }
.t-val.flat { color: #a1a1aa; }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* TERMINAL LAYOUT */
.terminal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 110px); /* Minus header + ticker */
}

/* SIDEBAR */
.terminal-sidebar {
    background: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    padding: 30px;
}

.ts-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.ts-group { margin-bottom: 40px; }

.ts-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.ts-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 10px 0;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ts-btn:hover, .ts-btn.active {
    color: #fff;
    padding-left: 10px;
    border-left: 2px solid var(--primary);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.checkbox-row:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.checkbox-row input[type="checkbox"] {
    accent-color: var(--primary);
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.ts-range {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
    margin: 10px 0;
}

.ts-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
    transition: transform 0.2s;
}

.ts-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* MAIN DASHBOARD */
.terminal-main {
    padding: 30px;
    background: #050505;
}

/* MARKET OVERVIEW (Chart) */
.market-overview {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.mo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.mo-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.mo-subtitle {
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mo-actions { display: flex; gap: 15px; }

.mo-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mo-btn:hover { border-color: #fff; }
.mo-btn.primary { background: var(--primary); color: #000; border: none; font-weight: 700; }
.mo-btn.primary:hover { opacity: 0.9; }

/* ASSET GRID */
.terminal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.tc-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tc-toggles { display: flex; gap: 10px; }

.tc-view-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.tc-view-btn.active { color: #fff; }

.terminal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ASSET CARD (Terminal Style) */
.asset-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 20px;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.asset-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 255, 157, 0.1);
}

.asset-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

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

.ac-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ac-status {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}
.ac-status::before {
    content: ''; width: 6px; height: 6px; background: var(--primary); border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0.5; } }

.ac-body {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.ac-img {
    width: 60px;
    height: 60px;
    background: #111;
    border-radius: 4px;
    object-fit: cover;
    filter: grayscale(0.5);
}

.ac-info h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.ac-info p {
    font-size: 0.8rem;
    color: #94a3b8;
}

.ac-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
}

.metric-label { color: var(--text-muted); }
.metric-val { color: #fff; font-weight: 600; }
.metric-val.green { color: var(--primary); }

@media (max-width: 900px) {
    .terminal-top-bar .container {
        justify-content: space-around !important; /* Distribute items evenly */
        font-size: 0.7rem !important;
        padding: 8px 5px !important; /* Reduce padding */
    }
    
    .terminal-top-bar .container span {
        margin: 0 8px !important; /* Adjust separator margin */
    }
    
    /* Stack the layout */
    .terminal-layout {
        grid-template-columns: 1fr;
        display: block;
    }

    /* Hide sidebar by default or style as a top scrollable bar */
    .terminal-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        gap: 20px;
    }
    
    .ts-header { display: none; }
    
    .ts-group {
        margin-bottom: 0;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .ts-label { display: none; } /* Hide labels to save space */
    
    .ts-btn {
        width: auto;
        padding: 5px 12px;
        border: 1px solid var(--border-color);
        border-radius: 20px;
        font-size: 0.8rem;
    }
    
    .ts-btn:hover, .ts-btn.active {
        border-left: 1px solid var(--primary); /* Reset sidebar style */
        background: var(--primary);
        color: black;
        border-color: var(--primary);
    }
    
    /* Hide non-essential filters on mobile */
    .ts-group:not(:first-of-type) { display: none; }

    /* Adjust Ticker */
    .terminal-ticker {
        margin-top: 0; 
    }

    /* Adjust Main Content */
    .terminal-main {
        padding: 15px;
    }

    /* Chart */
    .market-overview {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .mo-title { font-size: 1.2rem; }

    /* Grid */
    .terminal-grid {
        grid-template-columns: 1fr; /* Single column cards */
        gap: 15px;
    }
    
    .asset-card {
        padding: 15px;
    }
}

/* --- MODERN FOOTER --- */
/* --- PROFESSIONAL FOOTER --- */
.footer-section {
    background-color: #0a0a0a;
    color: #e2e8f0;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 60px;
}

/* Flex Columns - Ensures they spread out horizontally */
.footer-brand {
    flex: 2 1 300px;
    min-width: 280px;
}

.footer-col {
    flex: 1 1 150px;
    min-width: 140px;
}

.newsletter-col {
    flex: 1.5 1 250px;
    min-width: 250px;
}

/* Footer Typography & Elements */
.footer-brand h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--secondary);
    color: #0f2e25;
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-col h4, .newsletter-col h4 {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

/* Newsletter Form */
.newsletter-form {
    margin-top: 20px;
}

.newsletter-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-family: var(--font-sans);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

.newsletter-btn {
    width: 100%;
    padding: 14px;
    background: var(--secondary);
    color: #0f2e25;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.newsletter-btn:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    color: #64748b;
    font-size: 0.85rem;
    background-color: #0a0a0a;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: #64748b;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--secondary);
}

/* --- POLICY PAGES --- */
.policy-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.policy-content h3 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary);
}

.policy-content p {
    margin-bottom: 20px;
}

.policy-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.policy-content li {
    margin-bottom: 10px;
}

/* --- PARTNER MARQUEE --- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Fade edges mask */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scroll 40s linear infinite;
    padding-left: 40px; /* Slight offset */
}

.partner-item {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-condensed);
    transition: all 0.3s ease;
    cursor: default;
    white-space: nowrap;
    letter-spacing: 1px;
}

.partner-item:hover {
    color: var(--secondary);
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    opacity: 1;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 40px)); } /* Move half way (one set) */
}

/* Mobile Menu Responsive Styles */
@media (max-width: 900px) {
    .main-nav { height: 70px; }
    
    .top-bar { display: none; }
    .mobile-only { display: inline-flex; }
    .mobile-icon { display: block; margin-right: 12px; color: #9ca3af; transition: color 0.2s; }

    .container {
        padding: 0 0.25rem; 
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 85%; 
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, #fefefe 0%, #f7f9fc 100%); 
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch; 
        padding: 55px 12px 40px; 
        gap: 6px; 
        z-index: 1000;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.08);
        margin: 0;
        border-left: 1px solid rgba(0,0,0,0.03);
    }
    
    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1rem; 
        font-family: var(--font-display); 
        font-weight: 700; 
        color: var(--text-main);
        border: none;
        padding: 12px 8px; 
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        border-radius: 12px;
        opacity: 1;
        transform: none;
        transition: all 0.2s ease;
        border-bottom: none;
        letter-spacing: 0.5px;
    }
    
    .nav-link:hover {
        background: #f0f2f5;
        color: var(--primary-dark);
    }
    
    .nav-link.active {
        background: rgba(27, 77, 62, 0.08);
        color: var(--primary);
    }

    .nav-link.active .mobile-icon {
        color: var(--primary);
        fill: rgba(27, 77, 62, 0.2);
    }
    
    .mobile-icon {
        display: block;
        margin-right: 16px; 
        color: #94a3b8; 
        transition: color 0.2s;
        flex-shrink: 0;
    }

    .mobile-menu-buttons {
        margin-top: auto; 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; 
        gap: 12px; 
        padding-top: 20px; 
    }

    .mobile-login-btn {
        margin-bottom: 0; 
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 8px 12px; 
        font-size: 0.85rem; 
        font-family: var(--font-display);
        background: var(--primary-gradient);
        color: white;
        border-radius: 50px;
        box-shadow: 0 10px 25px -5px rgba(27, 77, 62, 0.4);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 500;
        display: flex;
        align-items: center;
        border: none;
    }
    .mobile-login-btn svg { color: white; fill: none; margin-right: 10px; }

    .mobile-marketplace-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 8px 12px; 
        font-size: 0.85rem; 
        font-family: var(--font-display);
        background: #ffffff;
        color: var(--primary);
        border-radius: 50px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 500;
        display: flex;
        align-items: center;
        border: 2px solid #e2e8f0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }
    .mobile-marketplace-btn:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }
    .mobile-marketplace-btn svg { color: var(--primary); fill: none; margin-right: 10px; }

    .nav-search { display: none; }
    
    .mobile-toggle {
        display: flex; 
        align-items: center;
        gap: 8px;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--text-main);
        cursor: pointer;
        z-index: 1001;
    }

    .hero { 
        padding-top: 120px; 
        align-items: flex-start; 
    }
    
    .hero-content {
        padding: 0 1rem; 
    }

    .hero-badge {
        margin-top: -10px; 
        margin-bottom: 1rem;
    }

    .hero-title { font-size: 3rem; }
    
    .stats-container { 
        grid-template-columns: 1fr 1fr; 
        margin-top: 40px; 
        padding: 30px;
    }
    .stat-item:nth-child(2)::after { display: none; }
    .grid-3 { grid-template-columns: 1fr; }
    
    .modal-content {
        grid-template-columns: 1fr !important;
        max-height: 85vh;
        width: 95%;
        display: flex !important;
        flex-direction: column;
    }
    
    .modal-image {
        height: 200px !important;
        min-height: 200px !important;
        flex-shrink: 0;
    }
    
    .modal-text {
        padding: 24px !important;
        overflow-y: visible !important;
        height: auto !important;
        display: block;
    }
}

/* --- NEW COMPREHENSIVE MOBILE RESPONSIVENESS (Refactored) --- */

/* Fluid Typography base */
html {
    font-size: clamp(14px, 1.2vw + 0.5rem, 16px);
}

@media (max-width: 768px) {
    /* Hero Section Polish */
    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: 20px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    .hero-text {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 1.5rem;
    }

    /* Stats Grid */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
        margin-top: 20px;
    }
    .stat-item:not(:last-child)::after {
        display: none;
    }
    .stat-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
        border-bottom: none;
        padding-bottom: 0;
    }
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Philosophy Section */
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .philosophy-features .feature-item {
        flex-direction: row; /* Keep icon next to text but ensure it wraps nicely */
        align-items: flex-start;
        margin-bottom: 20px;
    }
    .glass-card {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: -30px;
        box-sizing: border-box;
    }

    /* Bento Grid Stacking */
    .bento-grid {
        grid-template-areas:
            "box1"
            "box2"
            "box3"
            "box4"
            "box5";
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-card {
        min-height: 250px;
    }

    /* Collection Cards */
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    /* Global spacing adjustments */
    .section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
