:root {
    --bg: #ffffff;
    --bg-rgb: 255, 255, 255;
    --fg: #000000;
    --muted: #71717a;
    --subtle: #f4f4f5;
    --accent: #000000;
    --border: #e4e4e7;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Newsreader', "Georgia", serif;
    --font-mono: 'JetBrains Mono', monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --bg-rgb: 0, 0, 0;
        --fg: #ffffff;
        --muted: #a1a1aa;
        --subtle: #09090b;
        --accent: #ffffff;
        --border: #1a1a1a;
    }
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background: rgba(var(--bg-rgb), 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
}

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

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.nav-links a:hover {
    color: var(--fg);
}

/* Hero */
.hero {
    padding: 14rem 0 10rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 2.5rem;
    max-width: 1000px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 0 3.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--fg);
    color: var(--bg);
    border: 1px solid var(--fg);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--fg);
}

.btn-secondary:hover {
    background: var(--subtle);
}

/* Sections */
.section {
    padding: 10rem 0;
    border-top: 1px solid var(--border);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 2rem;
    display: block;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.stat-card {
    padding: 2rem;
    border: 1px solid var(--border);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    display: block;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Case Study */
.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.case-study-visual {
    background: var(--subtle);
    padding: 4rem;
    border: 1px solid var(--border);
}

.visual-header {
    margin-bottom: 3rem;
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    display: block;
}

.data-point {
    margin-bottom: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.data-label {
    font-size: 0.8rem;
    color: var(--muted);
    display: block;
    margin-bottom: 0.5rem;
}

.data-value {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Protocol */
.protocol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.feature-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.protocol-feature h3 {
    margin-bottom: 1rem;
}

.protocol-feature p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.feature-list li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--muted);
}

/* Institutional / Capital */
.capital-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.capital-main h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.capital-main p {
    font-size: 1.1rem;
    color: var(--muted);
}

.capital-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.cap-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.cap-label {
    font-size: 0.8rem;
    color: var(--muted);
    display: block;
    margin-bottom: 0.5rem;
}

.cap-value {
    font-size: 1.75rem;
    font-weight: 500;
}

/* Matrix Table */
.section-intro {
    margin-bottom: 4rem;
    max-width: 800px;
}

.section-intro h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-intro p {
    color: var(--muted);
    font-size: 1.1rem;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 1.5rem;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
}

td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.nexus-data {
    font-weight: 500;
    background: var(--subtle);
}

/* Timeline */
.timeline {
    margin-top: 2rem;
}

.timeline-event {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
    padding-bottom: 2rem;
    position: relative;
}

.timeline-event:last-child {
    padding-bottom: 0;
}

.timeline-event::before {
    content: "";
    position: absolute;
    left: -4.5px;
    top: 6px;
    width: 8px;
    height: 8px;
    background: var(--border);
    border-radius: 50%;
}

.event-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    display: block;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 360px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-nav {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--fg);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--muted);
    text-decoration: none;
}

/* Request Section */
.request-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.request-info h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.request-info p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 3rem;
}

.request-stats {
    display: flex;
    gap: 3rem;
}

.r-stat {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
}

.r-label {
    font-size: 0.8rem;
    color: var(--muted);
    display: block;
    margin-bottom: 0.5rem;
}

.r-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.request-form-container {
    background: var(--subtle);
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--fg);
}

.form-success {
    text-align: center;
    padding: 2rem 0;
}

.form-success h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.form-success p {
    color: var(--muted);
}

@media (max-width: 968px) {
    .case-study-grid, .capital-layout, .request-layout {
        grid-template-columns: 1fr;
    }
    
    .request-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
}