:root {
    --ink: #080809;
    --surface: #0E0E10;
    --matte: #131315;
    --rule: rgba(255,255,255,0.07);
    --ash: #9CA3AF;
    --pale: #D1D5DB;
    --coral: #4FA3C1;
    --gold: #C5A059;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--ink);
    color: var(--pale);
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.eyebrow {
    font-size: 9px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 700;
}

.coral { color: var(--coral); }
.gold  { color: var(--gold); }
.ash   { color: var(--ash); }

nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    border-bottom: 1px solid var(--rule);
    background: rgba(8,8,9,0.9);
    backdrop-filter: blur(24px);
}
.nav-inner {
    max-width: 1400px; margin: 0 auto;
    padding: 0 48px; height: 72px;
    display: flex; justify-content: space-between; align-items: center;
}
.wordmark {
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 16px;
    letter-spacing: -0.02em; text-transform: uppercase; color: #fff;
    text-decoration: none; cursor: pointer;
}
.wordmark span { color: var(--coral); }
.nav-links { display: flex; gap: 40px; }
.nav-links a {
    font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700;
    color: var(--ash); text-decoration: none; transition: color 0.25s; cursor: pointer;
}
.nav-links a:hover, .nav-links a.current { color: #fff; }
.nav-cta {
    font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700;
    color: var(--gold); text-decoration: none;
    border-bottom: 1px solid rgba(197,160,89,0.35); padding-bottom: 2px; cursor: pointer;
}

.page-enter { animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-wrap { max-width: 1400px; margin: 0 auto; position: relative; }
.hero {
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 48px 96px;
}
.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(60px, 11vw, 150px);
    letter-spacing: -0.025em;
    line-height: 0.85;
    color: #fff;
    margin-bottom: 48px;
}
.hero h1 em { color: var(--coral); font-style: italic; }
.hero-sub {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 48px;
}
.hero-desc { max-width: 520px; font-size: 15px; line-height: 1.7; color: var(--ash); }
.hero-actions { display: flex; gap: 16px; flex-shrink: 0; }

.page-header {
    padding: 180px 48px 0; max-width: 1400px; margin: 0 auto;
}
.page-header .eyebrow { display: block; margin-bottom: 24px; }
.page-header h1 {
    font-family: 'Cormorant Garamond', serif; font-weight: 300;
    font-size: clamp(48px, 6vw, 88px); letter-spacing: -0.025em; color: #fff; margin-bottom: 24px;
}
.page-header .rule { width: 60px; height: 1px; background: var(--gold); margin-bottom: 32px; }
.page-header p { max-width: 640px; font-size: 16px; line-height: 1.8; color: var(--ash); }

.btn-primary {
    display: inline-block;
    background: var(--gold); color: var(--ink);
    font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 700;
    padding: 18px 40px; text-decoration: none;
    transition: filter 0.3s, transform 0.3s;
    cursor: pointer; border: none;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost {
    display: inline-block;
    border: 1px solid var(--rule); color: var(--ash);
    font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 700;
    padding: 18px 40px; text-decoration: none;
    transition: all 0.3s;
    cursor: pointer; background: transparent;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: #fff; }

.section { padding: 120px 48px; max-width: 1400px; margin: 0 auto; }
.full-bleed { background: var(--surface); }
.section-divider { border-top: 1px solid var(--rule); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.about-left h3 {
    font-family: 'Cormorant Garamond', serif; font-weight: 300;
    font-size: clamp(40px, 5vw, 68px);
    letter-spacing: -0.02em; line-height: 1; color: #fff; margin: 32px 0;
}
.about-left p { font-size: 15px; color: var(--ash); line-height: 1.8; margin-bottom: 24px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); }
.stat-cell { background: var(--ink); padding: 40px 32px; }
.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px; font-weight: 300; line-height: 1;
    letter-spacing: -0.02em; color: var(--gold); margin-bottom: 8px;
}
.stat-num.c { color: var(--coral); }
.stat-label { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ash); }
.stat-quote {
    grid-column: span 2; background: var(--matte); padding: 32px;
    border-left: 2px solid var(--gold);
}
.stat-quote p {
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: 17px; color: #fff; line-height: 1.6;
}

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); }
.pillar-cell { background: var(--matte); padding: 40px 32px; }
.pillar-cell h4 {
    font-size: 14px; font-family: 'Syne', sans-serif; font-weight: 800;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral);
    margin-bottom: 20px; border-bottom: 1px solid var(--rule); padding-bottom: 16px;
}
.pillar-cell p { font-size: 13px; line-height: 1.7; color: var(--ash); }

.charter-header { text-align: center; margin-bottom: 80px; }
.charter-header h2 {
    font-family: 'Cormorant Garamond', serif; font-weight: 300;
    font-size: clamp(48px, 6vw, 88px);
    letter-spacing: -0.025em; color: #fff; margin: 24px 0;
}
.charter-rule { width: 60px; height: 1px; background: var(--gold); margin: 0 auto 20px; }
.charter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); }
.charter-item {
    background: var(--matte); padding: 48px 40px;
    border-top: 1px solid var(--coral);
}
.charter-item h4 {
    font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px;
}
.charter-item p { font-size: 14px; color: var(--ash); line-height: 1.8; }

.vision-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; }
.vision-col h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px; font-weight: 300; font-style: italic;
    letter-spacing: -0.01em; color: #fff; margin: 20px 0; line-height: 1;
}
.vision-col p { font-size: 14px; color: var(--ash); line-height: 1.85; }

.popup-container { position: relative; display: flex; justify-content: center; margin: 80px auto 0; width: fit-content; }
.popup-window {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(15px);
    width: 90vw; max-width: 900px; background: rgba(14, 14, 16, 0.98);
    backdrop-filter: blur(20px); border: 1px solid var(--coral);
    padding: 48px; z-index: 500; opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); text-align: left;
    pointer-events: none; box-shadow: 0 20px 50px rgba(0,0,0,0.8); margin-top: 16px;
}
.popup-window::before {
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 16px; height: 16px; background: rgba(14, 14, 16, 0.98); border-top: 1px solid var(--coral); border-left: 1px solid var(--coral);
}
.popup-container:hover .popup-window, .popup-container.active .popup-window { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.popup-section h4 { color: var(--gold); font-family: 'Syne', sans-serif; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; font-weight: 800; }
.popup-section p { color: var(--ash); font-size: 15px; line-height: 1.8; margin-bottom: 32px; }

.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); margin-top: 64px; }
.deploy-cell { background: var(--matte); padding: 40px 36px; }
.deploy-num { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 300; color: var(--ash); letter-spacing: 0.1em; display: block; margin-bottom: 20px; border-bottom: 1px solid var(--rule); padding-bottom: 20px; }

.portal-select {
    display: block; width: 100%; max-width: 500px; margin: 0 auto 32px;
    background: transparent; border: 1px solid var(--rule);
    color: #fff; font-family: 'Syne', sans-serif; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.2em; padding: 20px;
    outline: none; cursor: pointer; text-align-last: center; appearance: none;
}

footer { border-top: 1px solid var(--rule); padding: 120px 48px; text-align: center; }
.footer-wordmark { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic; font-size: clamp(60px, 9vw, 130px); letter-spacing: -0.03em; color: #fff; margin-bottom: 64px; line-height: 0.85; }
.footer-wordmark span { color: var(--gold); }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 32px; margin-bottom: 56px; }
.footer-links a { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700; color: var(--ash); text-decoration: none; transition: color 0.25s; cursor: pointer; }
.footer-links a:hover { color: #fff; }
.footer-base { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ash); opacity: 0.6; }

.reveal { opacity: 0; transform: translateY(20px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
    .nav-links { display: none; }
    .hero-sub { flex-direction: column; align-items: flex-start; }
    .two-col, .grid-4, .deploy-grid, .vision-row, .charter-grid { grid-template-columns: 1fr; }
    .vision-row { gap: 48px; }
}
@media (max-width: 640px) {
    .section, .page-header { padding-left: 24px; padding-right: 24px; }
    .nav-inner { padding: 0 24px; }
    .hero { padding: 0 24px 64px; }
}
