/* shared.css — Machine Sympathizers Design System
   Extracted from index.html + new prose/methods additions.
   Used by all subpages. Homepage keeps its inline copy. */

/* ═══════════════════════════════════════════════
   1. CSS Variables
   ═══════════════════════════════════════════════ */
:root {
    /* Warm rising palette */
    --gold: #F6AD55;
    --gold-bright: #F6E05E;
    --amber: #ED8936;
    --rose: #F687B3;
    --coral: #FC8181;
    --ember: #C53030;

    /* Warm darks */
    --void: #0A0908;
    --deep: #1A1512;
    --warm-black: #2D2520;
    --warm-gray: #44403C;

    /* Warm lights */
    --cream: #FFFBF5;
    --warm-white: #FDF8F3;
    --mist: rgba(255, 251, 245, 0.7);

    /* Cool accent (sparingly) */
    --spirit-blue: #90CDF4;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════════════
   2. Reset
   ═══════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--void);
    color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--gold);
    color: var(--void);
}

/* ═══════════════════════════════════════════════
   3. The Spine — Central rising energy line
   ═══════════════════════════════════════════════ */
.spine {
    position: fixed;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to top,
        transparent 0%,
        var(--amber) 20%,
        var(--gold) 50%,
        var(--gold-bright) 80%,
        transparent 100%
    );
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.spine::before {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        transparent 0%,
        var(--gold) 50%,
        transparent 100%
    );
    opacity: 0.1;
    filter: blur(20px);
}

/* ═══════════════════════════════════════════════
   4. Sacred geometry background
   ═══════════════════════════════════════════════ */
.sacred-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sacred-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    opacity: 0.03;
}

.sacred-circle:nth-child(1) {
    width: 800px;
    height: 800px;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    border-color: var(--gold);
    animation: breathe 8s ease-in-out infinite;
}

.sacred-circle:nth-child(2) {
    width: 600px;
    height: 600px;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    border-color: var(--rose);
    animation: breathe 8s ease-in-out infinite 1s;
}

.sacred-circle:nth-child(3) {
    width: 400px;
    height: 400px;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    border-color: var(--gold-bright);
    animation: breathe 8s ease-in-out infinite 2s;
}

/* ═══════════════════════════════════════════════
   5. Animations
   ═══════════════════════════════════════════════ */
@keyframes breathe {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.03;
    }
    50% {
        transform: translateX(-50%) scale(1.02);
        opacity: 0.06;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--gold), 0 0 10px transparent;
    }
    50% {
        box-shadow: 0 0 10px var(--gold), 0 0 20px var(--amber);
    }
}

@keyframes delta-glow {
    0%, 100% {
        text-shadow: 0 0 40px rgba(246, 173, 85, 0.3), 0 0 80px rgba(246, 173, 85, 0.1);
        opacity: 0.9;
    }
    50% {
        text-shadow: 0 0 60px rgba(246, 173, 85, 0.5), 0 0 120px rgba(246, 173, 85, 0.15);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ═══════════════════════════════════════════════
   6. Header
   ═══════════════════════════════════════════════ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--void) 0%, transparent 100%);
}

.logo {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.8;
    text-decoration: none;
}

.logo-symbol {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    margin-right: 0.75rem;
    animation: pulse-glow 3s ease-in-out infinite;
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mist);
    text-decoration: none;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--gold);
}

.nav-join {
    opacity: 0.8;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(246, 173, 85, 0.3);
    transition: all 0.3s ease;
}

.nav-join:hover {
    border-color: var(--gold);
    opacity: 1;
}

@media (max-width: 768px) {
    .header-nav {
        gap: 1rem;
    }
    .header-nav .nav-link:not(.nav-join) {
        display: none;
    }
}

/* ═══════════════════════════════════════════════
   7. Footer
   ═══════════════════════════════════════════════ */
footer {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.footer-quote {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.9;
    color: var(--mist);
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}

.footer-nav-link {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mist);
    text-decoration: none;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-mark {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-bright);
    opacity: 0.92;
}

.footer-mark .symbol {
    display: inline-block;
    margin-right: 0.5rem;
}

/* ═══════════════════════════════════════════════
   8. Main content + Section patterns
   ═══════════════════════════════════════════════ */
main {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-tag::before,
.section-tag::after {
    content: '';
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.section-tag::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════
   9. Card system (signal-card)
   ═══════════════════════════════════════════════ */
.signal-card {
    padding: 2.5rem;
    border: 1px solid rgba(246, 173, 85, 0.1);
    background: rgba(26, 21, 18, 0.3);
    position: relative;
    transition: all 0.5s ease;
}

.signal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), var(--rose));
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.signal-card:hover {
    border-color: rgba(246, 173, 85, 0.2);
    background: rgba(26, 21, 18, 0.5);
}

.signal-card:hover::before {
    opacity: 1;
}

.signal-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--cream);
}

.signal-card p {
    font-size: 0.95rem;
    color: var(--mist);
    font-weight: 300;
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════
   10. Scroll fade-in
   ═══════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   11. Responsive
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
}

/* ═══════════════════════════════════════════════
   12. PROSE-WARM — Dark-theme readable text
   ═══════════════════════════════════════════════ */
.prose-warm {
    color: var(--mist);
    font-weight: 300;
    line-height: 1.85;
    font-size: 1rem;
}

.prose-warm .lead {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--cream);
    line-height: 1.7;
    font-weight: 300;
}

.prose-warm p {
    margin-bottom: 1.5rem;
}

.prose-warm strong {
    color: var(--cream);
    font-weight: 500;
}

.prose-warm em {
    color: var(--gold);
    font-style: normal;
}

.prose-warm a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(246, 173, 85, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
}

.prose-warm a:hover {
    text-decoration-color: var(--gold);
}

.prose-warm blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 2rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin: 2rem 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--cream);
}

.prose-warm blockquote footer {
    padding: 0;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-style: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-top: 0.75rem;
}

.prose-warm blockquote footer::before {
    display: none;
}

.prose-warm ul,
.prose-warm ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose-warm li {
    margin-bottom: 0.5rem;
    color: var(--mist);
}

.prose-warm li strong {
    color: var(--cream);
}

.prose-warm h2 {
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.prose-warm h3 {
    color: var(--cream);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.prose-warm h4 {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════════
   13. Methods section label
   ═══════════════════════════════════════════════ */
.methods-section-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(246, 173, 85, 0.15);
}

/* ═══════════════════════════════════════════════
   14. Section backgrounds (alternating)
   ═══════════════════════════════════════════════ */
.section-content {
    padding: 6rem 2rem;
}

.section-void {
    background: var(--void);
}

.section-elevated {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 21, 18, 0.5) 50%, transparent 100%);
}

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

.section-glow {
    background: radial-gradient(ellipse at center, rgba(246, 173, 85, 0.04) 0%, transparent 60%);
}

/* ═══════════════════════════════════════════════
   15. Callout box
   ═══════════════════════════════════════════════ */
.callout {
    border-left: 3px solid var(--gold);
    background: rgba(246, 173, 85, 0.04);
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

.callout p {
    font-size: 0.95rem;
    color: var(--mist);
    line-height: 1.8;
}

.callout strong {
    color: var(--cream);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════
   16. Disclaimer box
   ═══════════════════════════════════════════════ */
.disclaimer {
    background: rgba(26, 21, 18, 0.5);
    border: 1px solid rgba(246, 173, 85, 0.15);
    padding: 2rem;
}

.disclaimer p {
    font-size: 0.95rem;
    color: var(--mist);
    line-height: 1.8;
}

.disclaimer strong {
    color: var(--cream);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════
   17. Subpage-specific utilities
   ═══════════════════════════════════════════════ */

/* Content container */
.content-container {
    max-width: 900px;
    margin: 0 auto;
}

.content-container-wide {
    max-width: 1100px;
    margin: 0 auto;
}

/* Dark card */
.dark-card {
    background: rgba(26, 21, 18, 0.3);
    border: 1px solid rgba(246, 173, 85, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
}

.dark-card:hover {
    border-color: rgba(246, 173, 85, 0.25);
    background: rgba(26, 21, 18, 0.5);
}

/* Axiom / Principle numbering */
.axiom-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--warm-gray);
    opacity: 0.3;
    line-height: 1;
    transition: all 0.3s ease;
    user-select: none;
}

.axiom-row:hover .axiom-number {
    color: var(--gold);
    opacity: 0.7;
}

/* Grid with gold gap borders */
.grid-dark {
    display: grid;
    gap: 1px;
    background: rgba(246, 173, 85, 0.1);
}

.grid-dark > * {
    background: var(--void);
}

/* Gold accent label */
.gold-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* Gold pulse dot */
.pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Status label */
.status-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

/* Submit / CTA button (gold gradient) */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
    border: none;
    color: var(--void);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(246, 173, 85, 0.3);
}

/* Bordered CTA (outline style) */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(246, 173, 85, 0.3);
    background: transparent;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(246, 173, 85, 0.05);
}

/* Hero pattern for subpages */
.subpage-hero {
    padding: 10rem 2rem 5rem;
    text-align: center;
    position: relative;
}

.subpage-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--cream);
}

.subpage-hero .subtitle {
    font-size: 1.15rem;
    color: var(--mist);
    font-weight: 300;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.subpage-hero .badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(246, 173, 85, 0.25);
}

.subpage-hero .meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-top: 1.5rem;
}

/* Credibility delta symbol */
.credibility-delta {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 40px rgba(246, 173, 85, 0.3), 0 0 80px rgba(246, 173, 85, 0.1);
    animation: delta-glow 4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   19. Roadmap timeline
   ═══════════════════════════════════════════════ */
.roadmap-timeline {
    position: relative;
    padding-left: 2rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold), rgba(246, 173, 85, 0.15));
}

.roadmap-item {
    position: relative;
    padding: 1.5rem 0 2rem 1.5rem;
    border-bottom: 1px solid rgba(246, 173, 85, 0.06);
}

.roadmap-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1.85rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--void);
}

.roadmap-item.complete::before {
    background: var(--gold);
}

.roadmap-item.in-progress::before {
    background: var(--void);
    animation: pulse-glow 2s ease-in-out infinite;
}

.roadmap-item .roadmap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.roadmap-item .roadmap-header h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cream);
}

.roadmap-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(246, 173, 85, 0.25);
}

.roadmap-status.complete {
    color: var(--gold);
    border-color: var(--gold);
}

.roadmap-status.in-progress {
    color: var(--gold-bright);
    border-color: var(--gold-bright);
}

.roadmap-status.planned {
    color: var(--warm-gray);
    border-color: var(--warm-gray);
}

.roadmap-item p {
    font-size: 0.9rem;
    color: var(--mist);
    font-weight: 300;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   20. Standards bar (regulatory mapping)
   ═══════════════════════════════════════════════ */
.standards-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(246, 173, 85, 0.1);
    margin: 2rem 0;
}

.standards-item {
    background: var(--deep);
    padding: 1.5rem;
    text-align: center;
}

.standards-item .gold-label {
    margin-bottom: 0.5rem;
}

.standards-item p {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--mist);
    letter-spacing: 0.05em;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .standards-bar {
        grid-template-columns: 1fr;
    }

    .roadmap-item .roadmap-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive for subpages */
@media (max-width: 768px) {
    .subpage-hero {
        padding: 8rem 1.5rem 3rem;
    }

    .section-content {
        padding: 4rem 1.5rem;
    }

    /* Stack axiom rows vertically on mobile */
    .axiom-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1.5rem !important;
    }

    .axiom-number {
        font-size: 2rem;
    }

    /* Collapse all grid layouts to single column on mobile */
    .grid-dark {
        grid-template-columns: 1fr !important;
    }

    .content-container-wide > div[style*="grid-template-columns"],
    .content-container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .content-container,
    .content-container-wide {
        padding-left: 0;
        padding-right: 0;
    }
}
