/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0b1120;
    --bg-alt: #0f1729;
    --surface: #131d2e;
    --border: #1a2744;
    --text: #e8e8ed;
    --text-muted: #8888a0;
    --accent: #ff6b35;
    --accent-dim: rgba(255, 107, 53, 0.12);
    --white: #ffffff;
    --green: #34d399;
    --red: #f87171;
    --nav-height: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.logo-img { width: 36px; height: 36px; border-radius: 8px; }

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-link-cta {
    color: var(--accent);
    padding: 8px 20px;
    border: 1px solid var(--accent);
    border-radius: 6px;
}

.nav-link-cta:hover {
    background: var(--accent);
    color: var(--bg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: var(--bg-alt);
}

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

.hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 4px;
}

.hero-tagline {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 40px;
}

.hero-exchanges {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.rotating-text-wrapper {
    position: relative;
    height: 1.4em;
    overflow: hidden;
    display: inline-block;
    min-width: 420px;
    text-align: center;
}

.rotating-text {
    display: block;
    position: absolute;
    width: 100%;
    color: var(--white);
    font-weight: 500;
    opacity: 0;
    transform: translateY(100%);
    animation: rotateText 12s infinite;
}

.rotating-text:nth-child(1) { animation-delay: 0s; }
.rotating-text:nth-child(2) { animation-delay: 3s; }
.rotating-text:nth-child(3) { animation-delay: 6s; }
.rotating-text:nth-child(4) { animation-delay: 9s; }

@keyframes rotateText {
    0%, 2% { opacity: 0; transform: translateY(100%); }
    5%, 20% { opacity: 1; transform: translateY(0); }
    23%, 100% { opacity: 0; transform: translateY(-100%); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover { background: #e85a28; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover { background: var(--accent-dim); }

.btn-sm { padding: 10px 24px; font-size: 0.875rem; }

/* ===== SECTIONS ===== */
.section {
    padding: 24px;
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* ===== PROSE ===== */
.prose {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.prose p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.prose p:last-child {
    margin-bottom: 0;
    color: var(--white);
    font-weight: 500;
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 28px;
    transition: border-color 0.2s, transform 0.2s;
}

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

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 1.2rem;
}

.card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ===== PIPELINE ===== */
.pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 24px;
}

.pipeline-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
}

.pipeline-step-final {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.step-label {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.pipeline-step-final .step-label {
    color: var(--accent);
}

.pipeline-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
    padding: 0 8px;
}

@media (max-width: 768px) {
    .pipeline {
        flex-direction: column;
        gap: 4px;
    }
    .pipeline-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
    }
}

/* ===== VALUE PROPS ===== */
.value-props {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
    max-width: 900px;
    width: 100%;
}

.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 16px;
}

.value-icon {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.value-card h3 {
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

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

/* ===== STATUS / PERFORMANCE ===== */
.status-performance {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
    margin-bottom: 48px;
}

.status-performance p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* ===== PERFORMANCE CHARTS ===== */
.performance-charts {
    margin-bottom: 48px;
}

.performance-chart-container {
    text-align: center;
    margin-bottom: 32px;
}

.performance-chart-img {
    max-width: 100%;
    width: 720px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

#cumulative-returns-chart {
    width: 100% !important;
    height: 400px !important;
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

#outperformance-chart {
    width: 100% !important;
    height: 180px !important;
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.chart-row .performance-chart-img {
    width: 100%;
}

.chart-title {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 12px;
    text-align: center;
}

.chart-caption {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 12px;
}

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

/* ===== VAULTS ===== */
.vaults-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.vault-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    position: relative;
    transition: border-color 0.2s;
}

.vault-card:hover { border-color: var(--accent); }

.vault-status {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--green);
    color: var(--bg);
    margin-bottom: 16px;
}

.status-soon {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.vault-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.vault-partner {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-muted);
}

.vault-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.vault-soon .vault-card p { margin-bottom: 0; }

/* ===== CONTACT ===== */
.contact-container { text-align: center; }

.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.contact-link:hover { color: var(--accent); }

.contact-link i { font-size: 1.25rem; color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
    scroll-snap-align: end;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--white);
    font-size: 0.9375rem;
}

.footer-logo { width: 28px; height: 28px; border-radius: 6px; }

.footer-social { display: flex; gap: 16px; }

.footer-social a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.disclaimer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .vaults-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .logo-text { display: none; }

    .cards-grid { grid-template-columns: 1fr; }
    .cards-grid-4 { grid-template-columns: 1fr; }
    .vaults-grid { grid-template-columns: 1fr; }

    .section { padding: 80px 0; }

    .contact-links { flex-direction: column; align-items: center; gap: 20px; }
}
