/* --- CSS Reset & Global Aesthetics --- */
:root {
    --bg-base: #0A0E1A;
    --bg-surface: #141829;
    --bg-card: #1a1f2e;
    --text-main: #FFFFFF;
    --text-secondary: #E8E8E8;
    --accent-gold: #C5A059;
    --accent-gold-dark: #A0844A;
    --font-display: 'Playfair Display', serif;
    --font-family: 'Inter', sans-serif;
    --nav-height: 72px;
}

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

html {
    font-family: var(--font-family);
    color: var(--text-main);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.15;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
}

h2 {
    font-family: var(--font-family);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
}

h3 {
    font-family: var(--font-family);
    font-size: 1.35rem;
    font-weight: 700;
}

h4 {
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.7;
}

strong {
    font-weight: 600;
    color: var(--text-main);
}

.container {
    width: min(90%, 1200px);
    margin: 0 auto;
    padding: 80px 0;
}

.text-center { text-align: center; }
.font-bold { font-weight: 600; }

/* --- Buttons --- */
.btn-gold {
    display: inline-block;
    background-color: var(--accent-gold);
    color: #000000;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}

.btn-gold:hover {
    background-color: #E6D491;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

.btn-gold:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

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

/* --- Section Backgrounds --- */
.dark-gray-bg { background-color: var(--bg-base); }
.navy-bg { background-color: var(--bg-surface); }
.black-bg { background-color: #000000; }

.deploy-section {
    background-color: var(--bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mechanics-section {
    background: linear-gradient(180deg, var(--bg-surface) 0%, #1a1f35 100%);
}

.risk-section {
    background-color: var(--bg-base);
}

.econ-section {
    background-color: var(--bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.market-section {
    background-image: url('image/market-albuquerque.jpg');
    background-size: cover;
    background-position: center;
}

.final-cta {
    background-color: var(--bg-base);
    border-top: 1px solid rgba(197, 160, 89, 0.15);
}

/* --- 1. Header --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.navbar-container {
    width: min(94%, 1200px);
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-family);
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.logo-sep {
    color: var(--accent-gold);
    margin: 0 4px;
}

.logo-capital {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    padding: 8px 12px;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    border-radius: 4px;
}

.nav-links a:not(.btn-gold):hover {
    color: var(--accent-gold);
}

.nav-links a:focus-visible {
    outline: 1px solid var(--accent-gold);
    outline-offset: 2px;
}

.login-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    margin-left: 8px;
}

.portal-trigger {
    appearance: none;
    -webkit-appearance: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle:focus-visible {
    outline: 1px solid var(--accent-gold);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- 2. Full-screen Video --- */
.hero-video-section {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    margin: 0;
    padding: 0;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
}

.hero-video-unmute {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: rgba(10, 14, 26, 0.85);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero-video-unmute:hover {
    background: rgba(10, 14, 26, 0.95);
    border-color: var(--accent-gold);
}

.hero-video-unmute:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* --- 3. Hero Content (below video) --- */
.hero-content-section {
    background-color: var(--bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: min(90%, 900px);
    margin: 0 auto;
    padding: 80px 0;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.sub-headline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 700px;
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0.95;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 60px;
    margin-bottom: 2.5rem;
    width: 100%;
}

.stat-item {
    min-width: 140px;
}

.stat-value {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
    font-weight: 400;
}

.cta-large {
    font-size: 1.05rem;
    padding: 16px 32px;
}

/* --- Deploy Section --- */
.deploy-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.image-block img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: block;
}

/* --- Mechanics Section --- */
.deployment-graphic {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.capital-source {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 500;
    margin: 0;
    z-index: 10;
}

.flow-svg-top,
.flow-svg-bottom {
    max-width: 500px;
    height: 80px;
    width: 100%;
}

.split-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.split-card {
    background-color: var(--bg-card);
    padding: 36px;
    border-radius: 12px;
    flex: 1;
    max-width: 480px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.split-card:hover {
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.1);
}

.split-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.split-card p:last-child {
    margin-bottom: 0;
}

.yield-rate {
    font-weight: 600;
    color: var(--accent-gold);
    margin-top: 1rem;
}

/* --- Risk Section --- */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 48px;
}

.risk-card {
    background-color: var(--bg-card);
    padding: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.risk-card:hover {
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.1);
}

.risk-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-gold);
    margin-bottom: 16px;
    display: block;
}

.risk-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.risk-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* --- Econ Section --- */
.econ-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.visual-block img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.econ-list {
    list-style: none;
    margin-bottom: 2rem;
}

.econ-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-weight: 400;
    line-height: 1.7;
}

.econ-list li::before {
    content: "✓";
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.option-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.opt-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 160px;
    transition: border-color 0.3s ease;
}

.opt-card:hover {
    border-color: rgba(197, 160, 89, 0.3);
}

.opt-icon {
    font-size: 1.5rem;
}

/* --- Track Record Section --- */
.track-record-section {
    display: flex;
    min-height: 480px;
}

.split-left {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 80px 60px;
    background-color: var(--bg-surface);
}

.track-content {
    max-width: 560px;
}

.split-right {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    min-height: 400px;
}

.split-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-stats {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.t-stat {
    font-weight: 400;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.t-stat strong {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* --- Market Section --- */
.market-overlay {
    background-color: rgba(10, 14, 26, 0.88);
    padding: 80px 0;
    backdrop-filter: blur(2px);
}

.market-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 48px 0;
    align-items: center;
}

.market-item {
    text-align: left;
}

.item-large {
    text-align: right;
}

.market-stat {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.market-stat-label {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    opacity: 0.95;
    margin-top: 4px;
    font-weight: 400;
}

.market-p {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Final CTA & Footer --- */
.final-cta .container {
    padding: 72px 0;
}

.final-cta h2 {
    color: var(--text-main);
}

.footer {
    padding: 60px 0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #000000;
}

.footer .container {
    padding: 0;
}

.footer h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-family);
}

.footer p {
    margin-bottom: 15px;
    font-weight: 400;
    opacity: 0.6;
    line-height: 1.8;
}

.copyright {
    margin-top: 32px;
    opacity: 0.4;
}

/* --- Investor Portal Modal --- */
body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-overlay[hidden] {
    display: none;
}

.modal {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 36px 32px 32px;
    background-color: var(--bg-surface);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.modal-close:focus-visible {
    outline: 1px solid var(--accent-gold);
}

.modal h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    padding-right: 32px;
}

.modal-intro {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-field span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 400;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-field input:hover,
.form-field textarea:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.12);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.3);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    margin-top: 4px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    animation: fadeInAnimation 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInAnimation {
    to { opacity: 1; }
}

/* Scroll reveal for cards */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.risk-card {
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

.risk-card:nth-child(1) { animation-delay: 0.1s; }
.risk-card:nth-child(2) { animation-delay: 0.2s; }
.risk-card:nth-child(3) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in,
    .risk-card {
        opacity: 1;
        animation: none;
        transform: none;
    }

    .btn-gold:hover {
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .deploy-container,
    .econ-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .econ-container .visual-block {
        order: -1;
    }

    .split-cards {
        flex-direction: column;
        align-items: stretch;
    }

    .split-card {
        max-width: none;
        width: 100%;
    }

    .risk-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .market-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .market-item,
    .item-large {
        text-align: center;
    }

    .track-record-section {
        flex-direction: column;
    }

    .split-left {
        padding: 64px 24px;
    }

    .split-right {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .container {
        padding: 64px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        background-color: rgba(10, 14, 26, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 14px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .login-btn,
    .nav-cta {
        margin: 12px 0 0;
        text-align: center;
        white-space: normal;
    }

    .hero-content {
        padding: 64px 0;
    }

    .stats-grid {
        gap: 20px 40px;
    }

    .stat-item {
        flex: 1 1 calc(50% - 20px);
        min-width: 100px;
    }

    .flow-svg {
        display: none;
    }

    .market-overlay {
        padding: 64px 0;
    }

    .risk-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    h2 {
        font-size: clamp(1.5rem, 3vw, 2.25rem);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .split-cards {
        gap: 20px;
    }

    .opt-card {
        flex-basis: 100%;
    }
}
