/* === MVP Pages Styles === */
:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #1a1a1d;
    --bg-card: #151517;
    
    --text-primary: #f5f5f0;
    --text-secondary: #a8a8a0;
    --text-muted: #6b6b65;
    
    --accent-gold: #d4a853;
    --accent-gold-light: #e8c478;
    --accent-coral: #e07a5f;
    --accent-mint: #81b29a;
    --accent-blue: #6b9ac4;
    --accent-purple: #9b7ed9;
    --accent-cyan: #5bc0be;
    
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.12);
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Instrument Sans', -apple-system, sans-serif;
    --font-mono: 'Source Code Pro', monospace;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

/* === Grain === */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-left { justify-self: start; }
.nav-right { justify-self: end; }

.back-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover { color: var(--text-primary); }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    color: var(--accent-gold);
    font-size: 1.25rem;
}

.brand-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.nav-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.nav-label.example {
    color: var(--accent-mint);
}

/* === Main Content === */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

/* === Page Header === */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.phase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 0.5rem 1.25rem;
    margin-bottom: 2rem;
}

.phase-icon { font-size: 1rem; }

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.title-accent {
    font-style: italic;
    color: var(--accent-cyan);
}

.page-subtitle {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

/* === Concept Section === */
.concept-section {
    margin-bottom: 4rem;
}

.concept-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(91, 192, 190, 0.1) 0%, transparent 100%);
    border: 1px solid var(--accent-cyan);
    padding: 2rem;
}

.concept-icon { font-size: 2.5rem; }

.concept-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
}

/* === Section Title === */
.section-title {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.title-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* === Challenge Section === */
.challenge-section {
    margin-bottom: 3rem;
}

.challenge-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    padding: 2rem;
}

.challenge-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.challenge-question {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-gold) !important;
    margin-bottom: 0 !important;
}

/* === Trap Section === */
.trap-section {
    margin-bottom: 3rem;
}

.traps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.trap-item {
    background: var(--bg-card);
    border: 1px solid rgba(224, 122, 95, 0.2);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.trap-item:hover {
    border-color: var(--accent-coral);
    transform: translateY(-4px);
}

.trap-item .trap-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.trap-item h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trap-result {
    font-size: 0.85rem;
    color: var(--accent-coral);
}

/* === Reality Section === */
.reality-section {
    margin-bottom: 3rem;
}

.reality-card {
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.1) 0%, transparent 100%);
    border: 1px solid var(--accent-coral);
    padding: 2.5rem;
    text-align: center;
}

.reality-header {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--accent-coral);
    margin-bottom: 1.5rem;
}

.reality-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.reality-sub {
    color: var(--text-muted);
}

/* === Insight Section === */
.insight-section {
    margin-bottom: 3rem;
}

.insight-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    padding: 2.5rem;
}

.insight-card blockquote p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.insight-card blockquote em {
    color: var(--text-primary);
}

.insight-conclusion {
    color: var(--accent-cyan) !important;
    font-size: 1.5rem !important;
    margin-top: 1rem !important;
}

/* === Shell vs Brain Section === */
.shell-brain-section {
    margin-bottom: 3rem;
}

/* === Rule Section === */
.rule-section {
    margin-bottom: 3rem;
}

.rule-card {
    background: linear-gradient(135deg, rgba(129, 178, 154, 0.1) 0%, transparent 100%);
    border: 1px solid var(--accent-mint);
    overflow: hidden;
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(129, 178, 154, 0.1);
    border-bottom: 1px solid rgba(129, 178, 154, 0.2);
}

.rule-icon {
    font-size: 1.25rem;
}

.rule-header span:last-child {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--accent-mint);
}

.rule-content {
    padding: 2rem;
    text-align: center;
}

.rule-content > p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.rule-content > p:nth-child(2),
.rule-content > p:nth-child(4) {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.rule-divider {
    width: 60px;
    height: 2px;
    background: var(--accent-mint);
    margin: 1.5rem auto;
}

.rule-consequence {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.rule-consequence p {
    color: var(--accent-mint) !important;
    font-weight: 600;
}

/* === Transformation Visual === */
.visual-section {
    margin-bottom: 4rem;
}

.transformation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.transform-from, .transform-to {
    text-align: center;
    padding: 2rem 3rem;
    border: 1px solid var(--border-medium);
    background: var(--bg-secondary);
}

.transform-from { border-color: var(--accent-coral); }
.transform-to { border-color: var(--accent-cyan); }

.transform-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.transform-year {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.transform-from .transform-year { color: var(--accent-coral); }
.transform-to .transform-year { color: var(--accent-cyan); }

.transform-arrow {
    font-size: 2rem;
    color: var(--accent-gold);
}

/* === CTA Section === */
.cta-section {
    text-align: center;
    margin-bottom: 4rem;
}

.example-btn, .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--bg-primary);
    background: var(--accent-cyan);
    border: none;
    padding: 1rem 2.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
}

.example-btn:hover, .nav-btn:hover {
    background: #7dd3d1;
    transform: translateY(-2px);
}

.btn-arrow {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.example-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* === Footer === */
.page-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover { color: var(--accent-cyan); }

.footer-divider { color: var(--accent-gold); }

.demo-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   EXAMPLE PAGE STYLES
   ======================================== */

.example-page {
    background: linear-gradient(180deg, #0a0b0d 0%, #0d1117 100%);
}

/* === Example Header === */
.example-header {
    text-align: center;
    margin-bottom: 3rem;
}

.context-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--accent-mint);
    background: rgba(129, 178, 154, 0.15);
    padding: 0.5rem 1.25rem;
    margin-bottom: 2rem;
}

.transformation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.transform-item {
    text-align: center;
}

.transform-item .transform-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.transform-item .transform-year {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.transform-item.from .transform-year { color: var(--accent-coral); }
.transform-item.to .transform-year { color: var(--accent-cyan); }

.transform-arrow-large {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

/* === Spec Cards === */
.spec-section {
    margin-bottom: 2rem;
}

.spec-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.spec-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.spec-number {
    width: 32px;
    height: 32px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
}

.spec-header h2 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.header-subtitle {
    color: var(--text-muted);
    font-weight: 400;
}

.spec-content {
    padding: 1.5rem;
}

/* Promise Card */
.promise-items {
    margin-bottom: 1.5rem;
}

.promise-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.promise-item:last-child { border-bottom: none; }

.promise-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 80px;
}

.promise-value {
    color: var(--text-primary);
    font-style: italic;
}

.problem-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(224, 122, 95, 0.1);
    border: 1px solid rgba(224, 122, 95, 0.3);
    padding: 1rem 1.5rem;
}

.problem-icon { font-size: 1.25rem; }

.problem-box p {
    color: var(--accent-coral);
    margin: 0;
}

/* Trap Card */
.trap-card .spec-header {
    background: rgba(224, 122, 95, 0.1);
}

.trap-card .spec-number {
    background: var(--accent-coral);
}

.trap-example {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.trap-icon {
    font-size: 2rem;
}

.trap-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.trap-quote {
    color: var(--text-muted);
    font-style: italic;
}

.why-fails {
    background: var(--bg-tertiary);
    padding: 1rem 1.5rem;
}

.fails-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--accent-coral);
    display: block;
    margin-bottom: 0.5rem;
}

.why-fails p {
    color: var(--text-secondary);
    margin: 0;
}

/* Core Card */
.core-card .spec-header {
    background: rgba(91, 192, 190, 0.1);
}

.core-card .spec-number {
    background: var(--accent-cyan);
}

.core-insight {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(91, 192, 190, 0.1) 0%, transparent 100%);
    margin-bottom: 2rem;
}

.core-insight p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
}

.core-loop {
    margin-bottom: 2rem;
}

.core-loop h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.loop-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.loop-step {
    text-align: center;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    min-width: 120px;
}

.loop-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.loop-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.loop-detail {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.loop-arrow {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.mvp-reveal {
    text-align: center;
    padding: 1.5rem;
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.mvp-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.mvp-reveal h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Tech Card */
.tech-card .spec-header {
    background: rgba(155, 126, 217, 0.1);
}

.tech-card .spec-number {
    background: var(--accent-purple);
}

.tech-flow {
    display: flex;
    flex-direction: column;
}

.flow-step {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.flow-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
}

.flow-icon { font-size: 1.1rem; }

.flow-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.flow-content {
    padding: 1rem;
}

.flow-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.flow-content p:last-child { margin-bottom: 0; }

.flow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
}

.connector-line {
    width: 2px;
    height: 20px;
    background: var(--border-medium);
}

.connector-arrow {
    color: var(--accent-purple);
    font-size: 1.25rem;
}

.message-bubble {
    padding: 1rem;
    border-radius: 12px;
    max-width: 90%;
}

.message-bubble.user {
    background: var(--accent-blue);
    color: white;
    border-bottom-left-radius: 4px;
    font-style: italic;
}

.message-bubble.bot {
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.bot-text {
    color: var(--text-primary) !important;
    margin-bottom: 0.75rem !important;
}

.audio-attachment {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.audio-icon { font-size: 1.25rem; }

.audio-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-mint);
}

.logic-steps {
    list-style: none;
}

.logic-steps li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.tag.anxiety {
    background: rgba(224, 122, 95, 0.2);
    color: var(--accent-coral);
}

.tag.script {
    background: rgba(91, 192, 190, 0.2);
    color: var(--accent-cyan);
}

/* Conclusion Section */
.conclusion-section {
    margin-bottom: 3rem;
}

.conclusion-card {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(91, 192, 190, 0.1) 0%, rgba(155, 126, 217, 0.1) 100%);
    border: 1px solid var(--accent-cyan);
}

.conclusion-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.conclusion-card h2 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.conclusion-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.strikethrough {
    text-decoration: line-through;
    opacity: 0.5;
}

.conclusion-reveal {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-cyan);
}

/* Shell vs Brain */
.comparison-section {
    margin-bottom: 3rem;
}

.shell-brain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sb-card {
    padding: 2rem;
    border: 1px solid var(--border-medium);
}

.sb-card.shell {
    background: rgba(224, 122, 95, 0.05);
    border-color: rgba(224, 122, 95, 0.3);
}

.sb-card.brain {
    background: rgba(129, 178, 154, 0.05);
    border-color: rgba(129, 178, 154, 0.3);
}

.sb-header {
    margin-bottom: 1.5rem;
}

.sb-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    margin-bottom: 0.5rem;
}

.sb-card.shell .sb-icon {
    background: var(--accent-coral);
    color: white;
}

.sb-card.brain .sb-icon {
    background: var(--accent-mint);
    color: var(--bg-primary);
}

.sb-header h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.sb-card.shell .sb-header h3 { color: var(--accent-coral); }
.sb-card.brain .sb-header h3 { color: var(--accent-mint); }

.sb-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sb-list {
    list-style: none;
}

.sb-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.sb-list li:last-child { border-bottom: none; }

/* Nav Section */
.nav-section {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-btn.back {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.nav-btn.back:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.nav-btn.home {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.nav-btn.home:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* === Responsive === */
@media (max-width: 768px) {
    .navbar {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .nav-left, .nav-right { justify-self: center; }
    
    .main-content { padding: 5rem 1rem 2rem; }
    
    .transformation, .transformation-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .transform-arrow, .transform-arrow-large {
        transform: rotate(90deg);
    }
    
    .traps-grid {
        grid-template-columns: 1fr;
    }
    
    .loop-diagram {
        flex-direction: column;
    }
    
    .loop-arrow {
        transform: rotate(90deg);
    }
    
    .shell-brain-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-section {
        flex-direction: column;
    }
    
    .nav-btn {
        justify-content: center;
    }
}

