/* 
   THE ARCA INDEX DESIGN SYSTEM (v6.0)
   Florian - Botanical Privacy Foundation
*/

:root {
    --cream: #FAF9F6;
    --ink: #0A0A0A;
    --sage: #00A651;
    --sage-text: #007036;
    /* High-contrast version for text on cream */
    --gold: #C5A028;
    --gold-text: #806718;
    /* High-contrast version for text on cream */
    --grid: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.85);

    --font-serif: 'Fraunces', serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--cream);
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* CUSTOM CURSORS */
.cursor {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--sage);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9000;
}

.cursor-follow {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--sage);
    border-radius: 50%;
    pointer-events: none;
    z-index: 8999;
    transition: transform 0.1s;
}

/* BACKGROUND MATRIX */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 50px 50px;
}

.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.o1 {
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(0, 166, 81, 0.05);
}

.o2 {
    bottom: -20%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: rgba(197, 160, 40, 0.05);
}

/* HUD HEADER */
.hud-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: color-burn;
}

.h-brand {
    text-decoration: none;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 15px;
}

.h-brand .symbol {
    width: 35px;
    height: 35px;
    background: var(--ink);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
}

.h-brand .name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* PROGRESS RING */
.progress-ring-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-ring-container svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--grid);
    stroke-width: 4;
}

.ring-fill {
    fill: none;
    stroke: var(--sage);
    stroke-width: 4;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.1s linear;
}

.progress-pct {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
}

.h-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.sys-data {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--sage-text);
}

.btn-export {
    background: none;
    border: 1px solid var(--ink);
    padding: 8px 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-export:hover {
    background: var(--ink);
    color: white;
}

/* SIDE COMPASS */
.side-compass {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    gap: 20px;
}

.line-track {
    width: 1px;
    height: 400px;
    background: var(--grid);
    position: relative;
}

.compass-node {
    position: absolute;
    top: 0;
    left: -2px;
    width: 5px;
    height: 36.36px;
    background: var(--ink);
    border-radius: 2px;
    transition: top 0.4s var(--ease-premium);
}

.compass-points {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px;
}

.point {
    text-decoration: none;
    color: var(--ink);
    opacity: 0.3;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    transition: 0.3s;
}

.point.active {
    opacity: 1;
    color: var(--sage-text);
    font-size: 12px;
}

/* MAIN MODULES */
.archive-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.module {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 15vh 0;
    opacity: 0.1;
    transform: translateY(50px);
    transition: all 1.2s var(--ease-premium);
}

.module.active {
    opacity: 1;
    transform: translateY(0);
}

/* HERO SECTON */
.m-eye {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--sage-text);
    display: block;
    margin-bottom: 20px;
}

.big-title {
    font-family: var(--font-serif);
    font-size: 100px;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 30px;
    letter-spacing: -3px;
}

.big-title .ital {
    font-style: italic;
    font-weight: 200;
    color: var(--gold-text);
}

.m-desc {
    font-size: 24px;
    font-family: var(--font-serif);
    color: var(--ink);
    opacity: 1;
    /* Remove all opacity for critical descriptions */
    max-width: 600px;
}

.scroll-cue {
    margin-top: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0.5;
}

.cue-icon {
    animation: bounce-y 2s infinite;
}

@keyframes bounce-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* MODULE TYPOGRAPHY */
.m-num {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--sage-text);
    letter-spacing: 3px;
    border-bottom: 1px solid var(--sage-text);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 30px;
}

.m-title {
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 50px;
}

/* DATA MATRIX */
.data-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.node-cell {
    background: white;
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}

.cell-head {
    font-size: 9px;
    font-weight: 900;
    color: var(--sage-text);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.node-cell h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 15px;
}

.node-cell p {
    font-size: 14px;
    color: #444;
    margin-bottom: 25px;
}

.stats {
    list-style: none;
    border-top: 1px solid var(--grid);
    padding-top: 20px;
}

.stats li {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stats span {
    color: var(--smoke-gray);
}

/* UTILITY STACK */
.utility-stack {
    margin-top: 50px;
}

.u-item {
    display: flex;
    gap: 60px;
    padding: 40px 0;
    border-bottom: 1px solid var(--grid);
}

.u-meta {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 11px;
    color: var(--gold-text);
    opacity: 1;
}

.u-body h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 10px;
}

.u-body p {
    font-size: 18px;
    color: #444;
    max-width: 700px;
}

/* BARRIER BOX */
.barrier-box {
    background: var(--ink);
    color: white;
    padding: 100px;
    position: relative;
}

.promise {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 14px;
    color: #00FF7F;
    /* Lighter sage for dark background */
    letter-spacing: 5px;
    margin-bottom: 30px;
    text-align: center;
}

.barrier-p {
    text-align: center;
    margin: 0 auto 60px;
    font-size: 22px;
    max-width: 600px;
    opacity: 1;
    /* Full opacity for better contrast */
    color: #FFF;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.p-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
}

.p-card span {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 11px;
    margin-bottom: 5px;
    color: #FFD75E;
    /* Lighter gold for dark background */
}

/* SOVEREIGNTY GRID */
.sovereignty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.s-card {
    border: 1.5px solid var(--ink);
    padding: 60px;
    transition: 0.3s;
}

.s-card:hover {
    background: var(--ink);
    color: white;
}

.s-card i {
    font-size: 32px;
    color: var(--sage-text);
    margin-bottom: 30px;
}

.s-card p {
    color: #444;
}

.s-card:hover p {
    color: #EEE;
    /* High contrast on hover dark background */
}

.s-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 15px;
}

/* INFOGRAPHIC */
.security-infographic {
    display: flex;
    gap: 80px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--grid);
    padding-bottom: 40px;
}

.sec-stat .l {
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--sage-text);
    margin-bottom: 10px;
}

.sec-stat .v {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
}

/* TEMPORAL AXIS */
.temporal-axis {
    display: flex;
    gap: 40px;
}

.t-node {
    flex: 1;
    border-top: 4px solid var(--grid);
    padding-top: 20px;
}

.t-node.active {
    border-color: var(--sage);
}

.t-node .time {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 14px;
    color: var(--gold-text);
    display: block;
    margin-bottom: 10px;
}

.t-node p {
    color: #444;
}

/* FINAL */
.contact-box {
    margin: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.email-link {
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--sage);
    transition: 0.3s;
}

.email-link:hover {
    color: var(--sage);
}

.archive-footer {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid var(--grid);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 800;
    /* Increased weight for visibility */
    letter-spacing: 2px;
    color: #333;
    /* Darker footer text */
}

.f-left {
    opacity: 1;
}

.f-right a {
    margin-left: 30px;
    color: var(--ink);
    text-decoration: none;
}

.t-item span {
    color: var(--ink);
    font-weight: 800;
}

.t-note {
    font-size: 13px;
    margin-top: 20px;
    color: #444;
}

/* SCROLL MITER HUD */
.scroll-meter {
    display: none;
    /* Placeholder for future if needed, but we use .scroll-miter */
}

.scroll-miter {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-right: 2px solid var(--sage);
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    transition: all 0.5s var(--ease-premium);
}

.miter-label {
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--sage-text);
    margin-bottom: 5px;
}

.miter-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.miter-value .unit {
    font-size: 10px;
    opacity: 0.5;
}

.scroll-miter:hover {
    background: var(--ink);
    border-right-color: var(--gold);
}

.scroll-miter:hover .miter-label {
    color: var(--gold);
}

.scroll-miter:hover .miter-value {
    color: white;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .hud-header {
        padding: 20px 30px;
        mix-blend-mode: normal;
        background: var(--glass);
        backdrop-filter: blur(10px);
    }

    .h-brand .name {
        font-size: 11px;
    }

    .btn-export {
        padding: 6px 12px;
    }

    .btn-export .t {
        display: none;
    }

    .scroll-miter {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }

    .miter-value {
        font-size: 18px;
    }

    .archive-container {
        padding: 0 25px;
    }

    .module {
        padding: 12vh 0;
        min-height: auto;
    }

    .big-title {
        font-size: 56px;
        letter-spacing: -2px;
    }

    .m-desc {
        font-size: 18px;
    }

    .m-title {
        font-size: 38px;
        margin-bottom: 30px;
    }

    .side-compass,
    .cursor,
    .cursor-follow {
        display: none;
    }

    .data-matrix,
    .partner-grid,
    .sovereignty-grid,
    .temporal-axis,
    .security-infographic {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 30px;
    }

    .node-cell,
    .s-card,
    .barrier-box {
        padding: 30px;
    }

    .barrier-box {
        padding: 40px 20px;
    }

    .barrier-p {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .partner-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sovereignty-grid {
        grid-template-columns: 1fr;
    }

    .email-link {
        font-size: 28px;
        word-break: break-all;
    }

    .contact-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .u-item {
        flex-direction: column;
        gap: 15px;
        padding: 30px 0;
    }

    .h-center,
    .sys-data {
        display: none;
    }

    .archive-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .f-right a {
        margin: 0 10px;
    }
}

/* PRINT */
@media print {

    .matrix-bg,
    .hud-header,
    .side-compass,
    .cursor,
    .cursor-follow,
    .scroll-miter {
        display: none;
    }

    .module {
        min-height: auto;
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 100px;
        page-break-inside: avoid;
    }
}
