:root {
    --bg: #0B0F0D;
    --panel: #0F1712;
    --panel-raised: #142019;
    --line: #1E2B24;
    --emerald: #10B981;
    --emerald-deep: #059669;
    --text: #E8FBF3;
    --text-muted: #7C8C86;
    --danger: #E07A5F;

    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--emerald);
    color: #04140D;
}
.btn-primary:hover { background: var(--emerald-deep); }

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--emerald); }

.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; margin-top: 18px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(11, 15, 13, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--emerald);
    margin-right: auto;
}
.brand-word {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text);
}

.main-nav {
    display: flex;
    gap: 28px;
}
.main-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}
.main-nav a:hover { color: var(--text); }

.header-actions {
    display: flex;
    gap: 10px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 20px; height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--line);
}
.mobile-nav hr { border: none; border-top: 1px solid var(--line); width: 100%; }
.mobile-nav.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 0;
    border-bottom: 1px solid var(--line);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 64px;
}
.hero-copy h1 {
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    max-width: 14ch;
}
.hero-sub {
    max-width: 46ch;
    font-size: 1.05rem;
}
.hero-cta { display: flex; gap: 12px; margin-top: 28px; }

.hero-panel {
    display: flex;
    justify-content: center;
}
.panel-card {
    width: 100%;
    max-width: 340px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.panel-label { color: var(--text-muted); font-size: 0.9rem; }
.panel-apy {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--emerald);
}
.panel-apy small { font-size: 1rem; color: var(--text-muted); font-family: var(--font-body); }
.panel-bar {
    height: 6px;
    background: var(--line);
    border-radius: 4px;
    overflow: hidden;
}
.panel-bar span {
    display: block;
    height: 100%;
    background: var(--emerald);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    padding: 28px 0;
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}
.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Section head ---------- */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}
.section-link {
    color: var(--emerald);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ---------- Vaults ---------- */
.vaults { padding: 80px 0; }
.vault-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.vault-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.vault-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.vault-asset {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.vault-risk {
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--line);
    color: var(--text-muted);
}
.vault-risk--low { color: var(--emerald); border-color: var(--emerald-deep); }
.vault-risk--medium { color: #E8C468; border-color: #7A6A2E; }

.vault-card h3 { font-size: 1.2rem; margin-bottom: 18px; }

.vault-metrics {
    display: flex;
    gap: 28px;
    margin-bottom: 6px;
}
.metric-label { display: block; font-size: 0.8rem; color: var(--text-muted); }
.metric-value { display: block; font-family: var(--font-display); font-size: 1.3rem; margin-top: 2px; }

/* ---------- Partners ---------- */
.partners { padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow-plain { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.partner-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.partner-logo {
    font-family: var(--font-display);
    color: var(--text-muted);
    font-size: 1.05rem;
    opacity: 0.75;
}

/* ---------- Integrations ---------- */
.integrations { padding: 80px 0; }
.integrations-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
}
.integrations-grid h2 { font-size: 1.8rem; max-width: 12ch; }
.integration-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.integration-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}
.integration-name { font-weight: 600; }
.integration-desc { color: var(--text-muted); font-size: 0.9rem; text-align: right; max-width: 32ch; }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0; border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.05rem;
    padding: 20px 0;
    cursor: pointer;
    text-align: left;
}
.faq-icon {
    position: relative;
    width: 16px; height: 16px;
    flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: var(--emerald);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.2s ease; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.faq-answer p { padding-bottom: 20px; margin: 0; max-width: 60ch; }

/* ---------- Final CTA ---------- */
.final-cta {
    padding: 90px 0 110px;
    text-align: center;
    border-top: 1px solid var(--line);
}
.final-cta h2 { font-size: 2rem; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; }
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand p { max-width: 30ch; margin-top: 8px; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 20px 0 32px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-panel { order: -1; }
    .vault-grid { grid-template-columns: 1fr 1fr; }
    .integrations-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
    .main-nav, .header-actions { display: none; }
    .nav-toggle { display: flex; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .vault-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .integration-item { flex-direction: column; align-items: flex-start; gap: 6px; }
    .integration-desc { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

:focus-visible {
    outline: 2px solid var(--emerald);
    outline-offset: 2px;
}
