/* ============================================
   EMERGENT GRAVITY - SACRED GEOMETRY THEME
   ============================================ */

/* CSS Variables */
:root {
    --bg-dark: #0a0a12;
    --bg-darker: #050508;
    --bg-card: #12121f;
    --bg-card-hover: #1a1a2e;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #996515;
    --silver: #c0c0c0;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --accent-blue: #4a90d9;
    --accent-purple: #9b59b6;
    --accent-teal: #1abc9c;
    --accent-red: #e74c3c;
    --accent-green: #27ae60;
    --gradient-gold: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Sacred Background Pattern */
.sacred-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(155, 89, 182, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(74, 144, 217, 0.02) 0%, transparent 70%);
}

.sacred-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 30 L30 55 L5 30 Z' fill='none' stroke='%23d4af37' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.5;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    background:
        radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        var(--bg-darker);
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
}

.hero .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Flower of Life - Hero Background */
.flower-of-life {
    position: absolute;
    width: 80vmin;
    height: 80vmin;
    opacity: 0.1;
    z-index: 0;
}

.flower-of-life::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='flower' x='0' y='0' width='50' height='43.3' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='25' cy='21.65' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='0' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='0' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='43.3' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='43.3' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='200' fill='url(%23flower)'/%3E%3C/svg%3E");
    background-size: cover;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-sacred {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 2rem;
}

.nav-sacred ul {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
}

.nav-sacred a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.nav-sacred a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-sacred a:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav-sacred a:hover::after {
    width: 100%;
}

.nav-sacred a.nav-highlight {
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.nav-sacred a.nav-highlight:hover {
    background: rgba(212, 175, 55, 0.2);
}

.nav-sacred a.nav-highlight::after {
    display: none;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section.dark {
    background: var(--bg-darker);
    max-width: 100%;
    padding-left: calc((100% - 1400px) / 2 + 2rem);
    padding-right: calc((100% - 1400px) / 2 + 2rem);
}

.section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* ============================================
   CONTENT ELEMENTS
   ============================================ */

.content-box {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 3rem;
    margin: 2rem 0;
    position: relative;
}

.content-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--gradient-gold);
}

blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--gold-light);
    border-left: 3px solid var(--gold);
    padding-left: 2rem;
    margin: 2rem 0;
}

/* Equation Boxes */
.equation-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.equation-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.equation {
    font-family: 'Cambria Math', 'Times New Roman', serif;
    font-size: 1.5rem;
    color: var(--gold-light);
    letter-spacing: 0.05em;
}

.mini-equation {
    font-family: 'Cambria Math', 'Times New Roman', serif;
    font-size: 0.95rem;
    color: var(--gold);
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* ============================================
   GRIDS
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
    border-color: rgba(212, 175, 55, 0.4);
}

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

/* ============================================
   SACRED GEOMETRY SHAPES
   ============================================ */

/* Triangle */
.triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Square */
.square {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
    transform: rotate(45deg);
}

/* Pentagon */
.pentagon {
    width: 40px;
    height: 38px;
    background: var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

/* Hexagon */
.hexagon {
    width: 46px;
    height: 40px;
    background: var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Circle */
.circle {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* ============================================
   FINDINGS SECTION
   ============================================ */

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.finding-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
}

.finding-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.finding-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.finding-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card), rgba(212, 175, 55, 0.1));
    border-color: rgba(212, 175, 55, 0.3);
}

.doc-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: 200;
    color: var(--gold);
    opacity: 0.3;
}

.finding-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.finding-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.key-insight {
    font-size: 0.85rem;
    color: var(--gold);
    padding: 0.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 4px;
}

.card-symbol {
    position: absolute;
    top: 1rem;
    left: 1rem;
    opacity: 0.2;
}

/* ============================================
   CHI THEOREM SECTION
   ============================================ */

.theorem-box {
    background: linear-gradient(135deg, var(--bg-card), rgba(231, 76, 60, 0.1));
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
}

.theorem-box h3 {
    color: var(--accent-red);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.theorem-box .equation {
    font-size: 2rem;
    color: var(--accent-red);
    margin: 1.5rem 0;
}

.proof-step {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 2rem;
}

.proof-step h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.proof-step table {
    width: 100%;
    border-collapse: collapse;
}

.proof-step th, .proof-step td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.proof-step th {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.proof-step td {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
}

/* Comparison Box */
.comparison-box {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.comparison-box h4 {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.signal, .noise {
    padding: 1.5rem 2rem;
    border-radius: 8px;
}

.signal {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--accent-green);
}

.noise {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--accent-red);
}

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

.signal .value {
    font-size: 1.5rem;
    color: var(--accent-green);
    font-family: 'Courier New', monospace;
}

.noise .value {
    font-size: 1.5rem;
    color: var(--accent-red);
    font-family: 'Courier New', monospace;
}

.vs {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

.verdict {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
    color: var(--accent-red);
    font-weight: 500;
}

/* Loopholes */
.loopholes {
    margin: 3rem 0;
}

.loopholes h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.loophole {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.loophole h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.loophole p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.verdict-no {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(231, 76, 60, 0.2);
    color: var(--accent-red);
    border-radius: 20px;
    font-weight: 500;
}

/* Pivot Box */
.pivot-box {
    background: linear-gradient(135deg, var(--bg-card), rgba(39, 174, 96, 0.1));
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 12px;
    padding: 3rem;
    margin-top: 3rem;
}

.pivot-box h3 {
    color: var(--accent-green);
    text-align: center;
    margin-bottom: 1rem;
}

.pivot-box > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.mapping-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.mapping-table th, .mapping-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mapping-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--gold);
    font-weight: 400;
}

.mapping-table td:first-child {
    color: var(--text-muted);
    font-style: italic;
}

.mapping-table td:last-child {
    color: var(--accent-green);
}

/* Bridge Teaser */
.bridge-teaser {
    background: linear-gradient(135deg, var(--bg-card), rgba(212, 175, 55, 0.15));
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.bridge-teaser h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bridge-teaser p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bridge-teaser .bridge-result {
    font-size: 1.2rem;
    color: var(--accent-green);
    margin: 1.5rem 0;
}

.bridge-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--gradient-gold);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bridge-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Yin Yang Symbol */
.yin-yang {
    position: absolute;
    top: 3rem;
    right: 5%;
    width: 120px;
    height: 120px;
    opacity: 0.1;
    background: conic-gradient(var(--gold) 0deg 180deg, transparent 180deg 360deg);
    border-radius: 50%;
    border: 2px solid var(--gold);
}

/* ============================================
   ARCHITECTURE SECTION
   ============================================ */

.architecture-diagram {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 4rem auto;
}

.agent-ring {
    position: absolute;
    width: 100%;
    height: 100%;
}

.agent {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid;
    border-radius: 50%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.agent:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.agent-icon {
    font-size: 1.5rem;
    font-weight: 600;
}

.agent-name {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Position agents in a circle */
.agent:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); border-color: var(--accent-blue); color: var(--accent-blue); }
.agent:nth-child(2) { top: 15%; right: 5%; border-color: var(--accent-purple); color: var(--accent-purple); }
.agent:nth-child(3) { top: 50%; right: -10%; transform: translateY(-50%); border-color: var(--accent-green); color: var(--accent-green); }
.agent:nth-child(4) { bottom: 15%; right: 5%; border-color: #f1c40f; color: #f1c40f; }
.agent:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); border-color: var(--accent-teal); color: var(--accent-teal); }
.agent:nth-child(6) { bottom: 15%; left: 5%; border-color: var(--silver); color: var(--silver); }
.agent:nth-child(7) { top: 50%; left: -10%; transform: translateY(-50%); border-color: var(--accent-red); color: var(--accent-red); }
.agent:nth-child(8) { top: 15%; left: 5%; border-color: #ff69b4; color: #ff69b4; }

.center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-gold);
}

/* Process Flow */
.process-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 4rem 0;
}

.step {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.arrow {
    color: var(--gold);
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Stats Box */
.stats-box {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.stats-box h3 {
    color: var(--gold);
    margin-bottom: 2rem;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 200;
    color: var(--gold-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Metatron's Cube */
.metatron-cube {
    position: absolute;
    top: 2rem;
    right: 5%;
    width: 150px;
    height: 150px;
    opacity: 0.1;
}

.metatron-cube::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='5' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='95' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='5' cy='50' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='95' cy='50' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='15' cy='15' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='85' cy='15' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='15' cy='85' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Ccircle cx='85' cy='85' r='20' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3Cline x1='50' y1='5' x2='5' y2='50' stroke='%23d4af37' stroke-width='0.3'/%3E%3Cline x1='50' y1='5' x2='95' y2='50' stroke='%23d4af37' stroke-width='0.3'/%3E%3Cline x1='5' y1='50' x2='50' y2='95' stroke='%23d4af37' stroke-width='0.3'/%3E%3Cline x1='95' y1='50' x2='50' y2='95' stroke='%23d4af37' stroke-width='0.3'/%3E%3Cline x1='50' y1='5' x2='50' y2='95' stroke='%23d4af37' stroke-width='0.3'/%3E%3Cline x1='5' y1='50' x2='95' y2='50' stroke='%23d4af37' stroke-width='0.3'/%3E%3C/svg%3E");
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-darker);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer .quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer .attribution {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.footer-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-meta p {
    margin: 0.25rem 0;
}

/* Torus decoration */
.torus {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    opacity: 0.2;
}

.torus::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold);
    border-radius: 50%;
}

.torus::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    border-left: 3px solid var(--gold);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.highlight-box .equation {
    margin: 1rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .nav-sacred ul {
        gap: 1.5rem;
    }

    .nav-sacred a {
        font-size: 0.75rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .finding-card.featured {
        grid-column: span 1;
    }

    .architecture-diagram {
        transform: scale(0.8);
    }

    .process-flow {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .comparison {
        flex-direction: column;
    }

    .stats-grid {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        letter-spacing: 0.1em;
    }

    .content-box {
        padding: 1.5rem;
    }

    .equation {
        font-size: 1.1rem;
    }

    .architecture-diagram {
        transform: scale(0.6);
    }
}

/* ============================================
   DECORATIVE SVG BACKGROUNDS
   ============================================ */

.vesica-piscis,
.seed-of-life,
.sri-yantra {
    position: absolute;
    opacity: 0.05;
    pointer-events: none;
}

.vesica-piscis {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 300px;
}

.vesica-piscis::before,
.vesica-piscis::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

.vesica-piscis::after {
    top: 100px;
}

.seed-of-life {
    top: 5%;
    right: 10%;
    width: 150px;
    height: 150px;
}

.sri-yantra {
    bottom: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
}

.sri-yantra-small {
    width: 30px;
    height: 30px;
}

/* Animation for subtle movement */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.flower-of-life {
    animation: float 20s ease-in-out infinite;
}

/* ============================================
   DERIVATION CHAIN
   ============================================ */

.derivation-chain {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.1), rgba(39, 174, 96, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.derivation-chain h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.chain-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chain-node {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.chain-node.axiom {
    border-color: var(--accent-blue);
    background: rgba(74, 144, 217, 0.15);
    color: var(--accent-blue);
}

.chain-node.result {
    border-color: var(--accent-green);
    background: rgba(39, 174, 96, 0.15);
    color: var(--accent-green);
    font-weight: 600;
}

.chain-arrow {
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0.7;
}

.chain-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.highlight-box ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.highlight-box ul li {
    margin: 0.5rem 0;
}
