/* ============================================
   OROBORIAN MEDICAL TECHNOLOGY
   Level 5 Immortality Classification
   ============================================ */

:root {
    /* Black-on-black with obsidian accents. Gold hues re-mapped to silver/platinum. */
    --gold: #B8B8B8;
    --gold-light: #E0E0E0;
    --gold-dark: #5A5A5A;
    --obsidian: #1A1A1A;
    --obsidian-mid: #2A2A2A;
    --obsidian-bright: #3A3A3A;
    --black: #000000;
    --black-deep: #030303;
    --black-card: #080808;
    --black-elevated: #0E0E0E;
    --white: #E8E6E1;
    --white-dim: #8A8886;
    --red: #6B1818;
    --red-glow: #A02828;
    --green-dim: #1F2A1F;
    --blue-sub: #121A2A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- PARTICLE CANVAS ---- */
#substrate-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* ---- CLASSIFICATION BAR ---- */
.classification-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--obsidian);
    padding: 8px 0;
    backdrop-filter: blur(10px);
}

.classification-text {
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
}

/* ---- BRAND BAR (Oroboros + NOIR logos) ---- */
.brand-bar {
    position: fixed;
    top: 32px;
    left: 0;
    width: 100%;
    z-index: 99;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--obsidian);
}

.brand-left,
.brand-right {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-img {
    height: 30px;
    width: 30px;
    object-fit: contain;
    filter: brightness(1.05) contrast(1.05);
}

.brand-logo-img.noir {
    height: 26px;
    width: 26px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text .brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
}

.brand-text .brand-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--white-dim);
    text-transform: uppercase;
}

.brand-right .brand-text { text-align: right; }

@media (max-width: 640px) {
    .brand-bar { padding: 6px 12px; }
    .brand-logo-img { height: 24px; width: 24px; }
    .brand-logo-img.noir { height: 22px; width: 22px; }
    .brand-text .brand-name { font-size: 9px; letter-spacing: 2px; }
    .brand-text .brand-sub { font-size: 8px; }
}

/* Push hero below classification + brand bar */
.hero { padding-top: 130px; }

/* ---- FOOTER LOGO PLATE ---- */
.footer-logo-plate {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--obsidian);
}
.footer-logo-plate .brand-left,
.footer-logo-plate .brand-right { gap: 12px; }
.footer-logo-plate .brand-logo-img { height: 42px; width: 42px; }
.footer-logo-plate .brand-logo-img.noir { height: 36px; width: 36px; }

/* ---- HERO ---- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(ellipse at center, rgba(184, 184, 184, 0.03) 0%, transparent 70%);
}

.hero-inner {
    max-width: 800px;
}

.ouroboros-ring {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 40px;
}

.ring-svg {
    width: 100%;
    height: 100%;
    animation: ring-rotate 30s linear infinite;
}

.ring-outer {
    animation: ring-pulse 4s ease-in-out infinite;
}

.ring-inner {
    animation: ring-pulse 4s ease-in-out infinite reverse;
}

.ring-center-text {
    display: none;
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
    text-shadow: 0 0 40px rgba(184, 184, 184, 0.2);
}

.hero-classification {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    letter-spacing: 8px;
    color: var(--gold-light);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-sub {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    color: var(--white-dim);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.hero-line {
    width: 80px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 30px;
    opacity: 0.5;
}

.hero-statement {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: var(--white);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 50px;
}

.enter-btn {
    display: inline-block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    padding: 14px 40px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.enter-btn:hover {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 0 30px rgba(184, 184, 184, 0.3);
}

/* ---- SECTIONS ---- */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 20px;
}

.section-dark {
    background: var(--black-deep);
}

.section-restricted {
    background: linear-gradient(180deg, var(--black) 0%, rgba(139, 32, 32, 0.08) 50%, var(--black) 100%);
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--white-dim);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 6px;
    color: var(--gold-dark);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-bottom: 40px;
}

.divider-red {
    background: linear-gradient(90deg, var(--red-glow), transparent);
}

.paradigm-statement {
    font-size: 18px;
    font-weight: 300;
    color: var(--white);
    font-style: italic;
    margin-bottom: 50px;
}

/* ---- ABSTRACT ---- */
.abstract-text {
    font-size: 17px;
    line-height: 1.9;
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 300;
}

.abstract-text strong {
    color: var(--gold);
    font-weight: 600;
}

/* ---- ARCHITECTURE CARDS ---- */
.arch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.arch-card {
    background: var(--black-card);
    border: 1px solid rgba(184, 184, 184, 0.15);
    padding: 40px;
    position: relative;
    transition: border-color 0.4s ease;
}

.arch-card:hover {
    border-color: var(--gold-dark);
}

.arch-card-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: var(--gold-dark);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.arch-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 4px;
}

.arch-card-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--white-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.arch-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spec-row {
    display: flex;
    gap: 20px;
    align-items: baseline;
}

.spec-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    min-width: 100px;
    flex-shrink: 0;
}

.spec-value {
    font-size: 15px;
    color: var(--white);
    font-weight: 300;
    line-height: 1.6;
}

/* ---- SECURITY ---- */
.security-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.security-block h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.security-block p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 20px;
}

.security-theorem {
    background: var(--black-deep);
    border-left: 3px solid var(--gold-dark);
    padding: 20px 24px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: var(--white-dim);
}

.security-theorem strong {
    color: var(--gold);
}

/* ---- OPERATIONS ---- */
.ops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ops-card {
    background: var(--black-card);
    border: 1px solid rgba(184, 184, 184, 0.1);
    padding: 36px;
}

.ops-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.ops-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--white-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ops-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ops-list li {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    padding-left: 16px;
    border-left: 1px solid rgba(184, 184, 184, 0.2);
}

.ops-list li strong {
    color: var(--gold);
    font-weight: 600;
}

/* ---- TARGETS ---- */
.targets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.target-card {
    background: var(--black-elevated);
    border: 1px solid rgba(184, 184, 184, 0.08);
    padding: 32px;
    transition: all 0.4s ease;
}

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

.target-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: rgba(184, 184, 184, 0.15);
    margin-bottom: 8px;
}

.target-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.target-card p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--white-dim);
}

/* ---- SPEC TABLE ---- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
}

.spec-table thead th {
    text-align: left;
    padding: 14px 20px;
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 11px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--gold-dark);
    font-weight: 600;
}

.spec-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(184, 184, 184, 0.08);
    color: var(--white);
    font-weight: 400;
}

.spec-table tbody td:first-child {
    color: var(--white-dim);
    width: 200px;
}

.spec-table tbody tr:hover {
    background: rgba(184, 184, 184, 0.03);
}

/* ---- RESTRICTION ---- */
.restriction-border {
    border: 1px solid var(--red);
    padding: 50px;
    position: relative;
}

.restriction-border::before {
    content: 'RESTRICTED';
    position: absolute;
    top: -10px;
    left: 30px;
    background: var(--black);
    padding: 0 16px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--red-glow);
}

.restriction-warning {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--red-glow);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
}

.restriction-text {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--white-dim);
}

.restriction-text strong {
    color: var(--white);
    font-weight: 600;
}

.restriction-final {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    font-style: italic;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 32, 32, 0.3);
}

/* ---- CONCLUSION ---- */
.conclusion-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.conclusion-text {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 40px;
}

.conclusion-text strong {
    color: var(--gold);
}

.conclusion-list {
    margin-bottom: 40px;
}

.conclusion-list p {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.conclusion-declaration {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(184, 184, 184, 0.3);
}

/* ---- FOOTER ---- */
.site-footer {
    position: relative;
    z-index: 1;
    background: var(--black);
    border-top: 1px solid rgba(184, 184, 184, 0.1);
    padding: 80px 20px;
    text-align: center;
}

.footer-inner {
    max-width: 700px;
    margin: 0 auto;
}

.footer-signed {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    color: var(--white-dim);
    font-style: italic;
    margin-bottom: 8px;
}

.footer-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 4px;
}

.footer-org {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--white-dim);
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.footer-quote {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 300;
    font-style: italic;
    color: var(--white-dim);
    line-height: 1.8;
    margin-bottom: 50px;
    padding: 0 20px;
}

.footer-classification {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--gold-dark);
    text-transform: uppercase;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .section {
        padding: 60px 16px;
    }

    .arch-card {
        padding: 24px;
    }

    .spec-row {
        flex-direction: column;
        gap: 4px;
    }

    .spec-label {
        min-width: auto;
    }

    .restriction-border {
        padding: 30px 20px;
    }

    .classification-text {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .spec-table tbody td:first-child {
        width: auto;
    }
}

/* ---- ANIMATIONS ---- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-inner {
    animation: fade-in-up 0.8s ease-out;
}

/* Scroll-triggered visibility */
.arch-card,
.ops-card,
.target-card,
.security-block {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.arch-card.visible,
.ops-card.visible,
.target-card.visible,
.security-block.visible {
    opacity: 1;
    transform: translateY(0);
}
