/* ============================================
   FRAMEWORK C - THE A-B BRIDGE
   Sacred Geometry Enhanced Styles
   Score 10.0 Edition
   ============================================ */

/* Hero with Background Image */
.hero-with-image {
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.hero-with-image .metatron-hero,
.hero-with-image .score-badge,
.hero-with-image h1,
.hero-with-image .subtitle,
.hero-with-image .tagline {
    position: relative;
    z-index: 1;
}

/* Context Banner */
.context-banner {
    background: linear-gradient(90deg, rgba(74, 144, 217, 0.1), rgba(212, 175, 55, 0.1), rgba(231, 76, 60, 0.1));
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 2rem;
    text-align: center;
}

.context-banner p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 900px;
    margin: 0 auto;
}

.context-banner a {
    color: var(--gold);
    text-decoration: none;
}

.context-banner a:hover {
    text-decoration: underline;
}

/* Score Badge */
.score-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #996515, #d4af37, #f4d03f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a0a12;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    z-index: 10;
}

/* Hero Metatron's Cube */
.metatron-hero {
    position: absolute;
    width: 80vmin;
    height: 80vmin;
    max-width: 500px;
    max-height: 500px;
    z-index: 0;
}

/* Vesica Piscis Section */
.vesica-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0 3rem;
}

.vesica-main {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.vesica-label-a, .vesica-label-b {
    font-size: 36px;
    font-weight: 300;
    fill: currentColor;
}

.vesica-label-a { fill: #4a90d9; }
.vesica-label-b { fill: #e74c3c; }
.vesica-label-c {
    font-size: 48px;
    font-weight: 600;
    fill: #d4af37;
}

.vesica-sublabel {
    font-size: 12px;
    fill: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Framework Comparison */
.framework-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.fw-a, .fw-b {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid;
}

.fw-a {
    background: rgba(74, 144, 217, 0.1);
    border-color: rgba(74, 144, 217, 0.3);
}

.fw-b {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.fw-a h4 { color: #4a90d9; }
.fw-b h4 { color: #e74c3c; }

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

.bridge-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gold);
    margin-top: 2rem;
}

/* Solution Box */
.solution-box {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(212, 175, 55, 0.1));
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.solution-box h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.solution-box p {
    color: var(--text-primary);
    font-size: 1.05rem;
}

/* Bridge Diagram */
.bridge-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 3rem 0;
}

.bridge-layer {
    background: var(--bg-card);
    border: 2px solid;
    border-radius: 12px;
    padding: 1.5rem 3rem;
    text-align: center;
    min-width: 350px;
}

.layer-quantum {
    border-color: #4a90d9;
}

.layer-quantum h4 {
    color: #4a90d9;
}

.layer-bridge {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--bg-card), rgba(212, 175, 55, 0.1));
}

.layer-bridge h4 {
    color: var(--gold);
}

.layer-classical {
    border-color: #e74c3c;
}

.layer-classical h4 {
    color: #e74c3c;
}

.bridge-layer .math {
    font-family: 'Cambria Math', 'Times New Roman', serif;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.bridge-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 80px;
}

.bridge-connector svg {
    width: 60px;
    height: 60px;
}

.bridge-connector span {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Bridge Key */
.bridge-key {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.bridge-key h4 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.equation-trio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.eq-item {
    text-align: center;
}

.eq-item .eq-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.eq-item .eq {
    font-family: 'Cambria Math', 'Times New Roman', serif;
    color: var(--gold);
    font-size: 1.1rem;
}

/* Seed of Life Background */
.seed-of-life-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vmin;
    max-width: 400px;
    height: auto;
    z-index: 0;
}

/* Insight Section */
.insight-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.insight-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 300px;
}

.insight-card.highlight {
    background: linear-gradient(135deg, var(--bg-card), rgba(212, 175, 55, 0.15));
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.insight-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.insight-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.insight-card .result {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Triquetra Background */
.triquetra-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vmin;
    max-width: 400px;
    z-index: 0;
}

/* Regime Cards */
.regime-trinity {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.regime-card {
    background: var(--bg-card);
    border: 2px solid;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.regime-card:hover {
    transform: translateY(-5px);
}

.regime-i {
    border-color: rgba(74, 144, 217, 0.5);
}
.regime-i:hover { box-shadow: 0 10px 40px rgba(74, 144, 217, 0.2); }
.regime-i h3 { color: #4a90d9; }

.regime-ii {
    border-color: rgba(231, 76, 60, 0.5);
}
.regime-ii:hover { box-shadow: 0 10px 40px rgba(231, 76, 60, 0.2); }
.regime-ii h3 { color: #e74c3c; }

.regime-iii {
    border-color: rgba(39, 174, 96, 0.5);
}
.regime-iii:hover { box-shadow: 0 10px 40px rgba(39, 174, 96, 0.2); }
.regime-iii h3 { color: #27ae60; }

.regime-symbol {
    margin-bottom: 1rem;
}

.regime-symbol svg {
    width: 60px;
    height: 60px;
}

.conditions {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.regime-eq {
    font-family: 'Cambria Math', 'Times New Roman', serif;
    font-size: 1.1rem;
    color: var(--gold);
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* Sri Yantra Background */
.sri-yantra-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vmin;
    max-width: 500px;
    z-index: 0;
}

/* Mechanism Flow */
.mechanism-flow {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.mech-step {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    width: 140px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mech-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.mech-step.final {
    border-color: #27ae60;
    background: linear-gradient(135deg, var(--bg-card), rgba(39, 174, 96, 0.1));
}

.step-shape {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

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

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

.mech-step .detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.flow-connector {
    display: flex;
    align-items: center;
    padding-top: 2rem;
}

.flow-connector svg {
    width: 40px;
    height: 20px;
}

.mechanism-summary {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gold);
    font-style: italic;
    margin-top: 2rem;
}

/* Mechanism Chain (15 steps) */
.mechanism-chain {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.chain-step {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    position: relative;
    margin: 0.5rem 0;
}

.chain-step p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 2.5rem;
}

.step-num {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--gold);
}

.chain-arrow {
    text-align: center;
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0.5;
    margin: 0;
    line-height: 1;
}

.chain-step.highlight-step {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--bg-card), rgba(212, 175, 55, 0.1));
}

.chain-step.highlight-step .step-num {
    background: var(--gold);
    color: var(--bg-dark);
}

.chain-step.final-step {
    border: 2px solid #27ae60;
    background: linear-gradient(135deg, var(--bg-card), rgba(39, 174, 96, 0.15));
}

.chain-step.final-step .step-num {
    background: #27ae60;
    color: white;
    width: 28px;
    height: 28px;
}

.score-label {
    display: block;
    margin-top: 0.5rem;
    padding-left: 2.5rem;
    color: #27ae60;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Math Grid */
.math-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.math-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

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

.math-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.equation.large {
    font-size: 1.3rem;
}

/* Flower of Life Background */
.flower-of-life-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Lagrangian Box */
.lagrangian-box {
    background: var(--bg-card);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.equation-main {
    font-family: 'Cambria Math', 'Times New Roman', serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.eq-symbol {
    font-size: 1.3em;
    color: var(--gold);
}

.term {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin: 0 0.25rem;
}

.term-a { background: rgba(74, 144, 217, 0.2); color: #4a90d9; }
.term-b { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.term-c { background: rgba(39, 174, 96, 0.2); color: #27ae60; }

.term-labels {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.label-a { color: #4a90d9; }
.label-b { color: #e74c3c; }
.label-c { color: #27ae60; }

/* Interaction Detail */
.interaction-detail {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.interaction-detail h3 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Coupling Breakdown */
.coupling-breakdown {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.coupling-breakdown h3 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 1.5rem;
}

.coupling-table {
    width: 100%;
    max-width: 600px;
    margin: 1.5rem auto 0;
    border-collapse: collapse;
}

.coupling-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.coupling-table .factor {
    font-family: 'Cambria Math', 'Times New Roman', serif;
    color: var(--text-secondary);
}

.coupling-table .value {
    font-family: 'Courier New', monospace;
    color: var(--gold);
    text-align: center;
}

.coupling-table .desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.coupling-table .total-row {
    border-top: 2px solid var(--gold);
}

.coupling-table .total-row td {
    padding-top: 1rem;
}

.coupling-table .highlight {
    color: #27ae60 !important;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Icosahedron Background */
.icosahedron-bg {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    z-index: 0;
}

/* Predictions Grid */
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.prediction-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s;
}

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

.pred-shape {
    position: absolute;
    top: 1rem;
    left: 1rem;
    opacity: 0.3;
}

.pred-shape svg {
    width: 40px;
    height: 40px;
}

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

.prediction-card h4 {
    color: var(--gold);
    margin-bottom: 0.75rem;
    padding-left: 3rem;
}

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

.testable {
    font-size: 0.8rem;
    color: #27ae60;
    padding: 0.5rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 4px;
    text-align: center;
}

/* Octahedron Background */
.octahedron-bg {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 150px;
    height: 150px;
    z-index: 0;
}

/* Experiment Layout */
.experiment-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.exp-setup ul {
    list-style: none;
    padding: 0;
}

.exp-setup li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.exp-setup li::before {
    content: '◇';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.8rem;
}

.exp-meta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exp-meta span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.exp-outcomes h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

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

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

.outcome-table th {
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.outcome-table th:first-child {
    text-align: left;
}

.outcome-table td:first-child {
    text-align: left;
    color: var(--text-secondary);
}

.col-a { color: #4a90d9; }
.col-b { color: #e74c3c; }
.col-c { color: #27ae60; font-weight: 500; }

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

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

.retro-icon {
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.5;
    margin-bottom: 1rem;
}

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

.puzzle {
    background: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.resolution {
    background: rgba(39, 174, 96, 0.1);
    border-left: 3px solid #27ae60;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Tetrahedron Background */
.tetrahedron-bg {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 150px;
    height: 150px;
    z-index: 0;
}

/* Falsification Grid */
.falsify-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.falsify-card {
    background: var(--bg-card);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.falsify-x {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #e74c3c;
}

.falsify-card h4 {
    color: #e74c3c;
    margin-bottom: 0.75rem;
    padding-right: 2rem;
}

.falsify-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tree Path */
.tree-path {
    overflow-x: auto;
    margin: 2rem 0;
}

.tree-visualization {
    width: 100%;
    min-width: 800px;
    height: 200px;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.rigorous { background: #4a90d9; }
.dot.speculative { background: #9400d3; }
.dot.bridge { background: #27ae60; }

.tree-stats {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Contribution Stats */
.contribution-stats {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.contribution-stats h4 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.contrib-grid {
    max-width: 500px;
    margin: 0 auto;
}

.contrib-bar {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.contrib-bar .agent-name {
    width: 120px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contrib-bar .bar {
    height: 20px;
    background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0.5));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
}

.contrib-bar .bar span {
    font-size: 0.75rem;
    color: var(--bg-dark);
    font-weight: 600;
}

.dot.heretic {
    background: #e74c3c;
}

/* Conclusion Summary */
.conclusion-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    position: relative;
    z-index: 1;
}

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

.summary-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.summary-value {
    color: var(--gold);
    font-size: 1rem;
}

/* Flower Complete */
.flower-complete {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vmin;
    max-width: 500px;
    z-index: 0;
}

/* Final Quote */
.final-quote {
    font-size: 1.3rem;
    line-height: 2;
    text-align: center;
    color: var(--gold-light);
    border: none;
    padding: 0;
    margin: 2rem 0;
}

.conclusion-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 2rem auto;
}

.final-symbol {
    font-size: 4rem;
    text-align: center;
    color: var(--gold);
    margin: 2rem 0;
}

.final-note {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
}

/* Footer Link */
.footer a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
    .experiment-layout {
        grid-template-columns: 1fr;
    }

    .mechanism-flow {
        gap: 1rem;
    }

    .mech-step {
        width: 120px;
        padding: 1rem;
    }

    .flow-connector {
        display: none;
    }

    .framework-compare {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .insight-grid {
        flex-direction: column;
    }

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

    .lagrangian-box {
        padding: 1.5rem;
    }

    .equation-main {
        font-size: 1rem;
    }

    .term {
        display: block;
        margin: 0.5rem 0;
    }
}
