:root {
    /* Color Palette */
    --bg-main: #0a0a0f;
    --bg-surface: #14141e;
    --bg-surface-elevated: #1e1e2d;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    
    /* Accents */
    --accent-1: #6366f1; /* Indigo */
    --accent-2: #ec4899; /* Pink */
    --accent-3: #14b8a6; /* Teal */
    --accent-4: #f59e0b; /* Amber */
    
    --gradient-primary: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.5));
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --radius-md: 12px;
    --radius-lg: 24px;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.dark-surface {
    background-color: var(--bg-surface);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.align-center {
    align-items: center;
}

/* Components */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}
.nav-brand span { color: var(--accent-1); }

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #fff;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    width: 0%;
    z-index: 1001;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--gradient-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}
.hero h2 {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    background: rgba(99, 102, 241, 0.3);
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    bottom: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(236, 72, 153, 0.2);
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Visual 1: Toggle Diagram */
.interactive-diagram {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.diagram-header { margin-bottom: 2rem; text-align: center; }
.diagram-header .subtitle { color: var(--text-secondary); font-size: 0.9rem; }

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.2);
    border-radius: 30px;
    padding: 0.5rem;
    position: relative;
    margin-bottom: 2rem;
    cursor: pointer;
}

.toggle-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem 1rem;
    z-index: 2;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}
.toggle-item.active { color: #fff; }

.toggle-indicator {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: calc(50% - 0.5rem);
    height: calc(100% - 1rem);
    background: var(--accent-1);
    border-radius: 20px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.toggle-container.switched .toggle-indicator {
    transform: translateX(100%);
    background: var(--accent-3);
}

.diagram-content { position: relative; min-height: 200px; }
.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s;
    pointer-events: none;
}
.card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.check-list, .glow-list {
    list-style: none;
    margin: 1rem 0;
}
.check-list li, .glow-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.glow-list li {
    color: var(--accent-3);
    font-weight: 500;
}
.card .note { font-size: 0.85rem; color: var(--text-secondary); font-style: italic; margin-top: 1rem; }

/* Visual 2: Conceptual Map */
.conceptual-map {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    min-height: 400px;
}

.map-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-primary);
    padding: 2px;
    border-radius: var(--radius-md);
    z-index: 10;
}
.core-concept {
    background: var(--bg-surface-elevated);
    padding: 1.5rem 2rem;
    border-radius: calc(var(--radius-md) - 2px);
    text-align: center;
}
.core-concept h4 { margin-bottom: 0.2rem; }
.core-concept span { font-size: 0.8rem; color: var(--text-secondary); }

.map-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}
.node {
    position: absolute;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
    width: 220px;
}
.node:hover {
    transform: translateY(-5px);
    border-color: var(--accent-1);
}
.node .thinker { display: block; font-weight: 600; color: #fff; margin-bottom: 0.2rem; }
.node .topic { font-size: 0.8rem; color: var(--accent-4); }

.top-left { top: 0; left: 0; }
.top-right { top: 0; right: 0; }
.bottom-left { bottom: 0; left: 0; }
.bottom-right { bottom: 0; right: 0; }

.glow-pulse {
    animation: pulseGlow 3s infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Pathway Labels */
.pathway-label {
    display: inline-block;
    color: var(--accent-1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Currere Diagram */
.currere-diagram {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    position: relative;
    display: flex;
    justify-content: center;
}
.currere-grid {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
}
.c-node {
    position: absolute;
    width: 140px;
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 2;
}
.c-node h5 { margin-bottom: 0.5rem; color: var(--accent-3); font-size: 0.9rem; text-transform: uppercase;}
.c-node p { font-size: 0.75rem; color: var(--text-secondary); margin: 0; opacity: 0.8;}

.c-node:hover, .c-node:focus {
    transform: scale(1.05);
    border-color: var(--accent-3);
    outline: none;
}

.c-past { top: 0; left: 0; }
.c-future { top: 0; right: 0; }
.c-present { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 160px;}
.c-present h5 { color: var(--accent-1); }
.c-present:hover, .c-present:focus { transform: translate(-50%, -50%) scale(1.05); border-color: var(--accent-1); }
.c-action { bottom: 0; left: 50%; transform: translateX(-50%); }
.c-action h5 { color: var(--accent-2); }
.c-action:hover, .c-action:focus { transform: translateX(-50%) scale(1.05); border-color: var(--accent-2); }

/* Languages Grid */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.lang-card {
    background: var(--bg-surface-elevated);
    padding: 2rem;
    border-radius: var(--radius-md);
    border-top: 3px solid transparent;
    transition: transform 0.3s;
}
.lang-card:hover { transform: translateY(-10px); }
.lang-card:nth-child(1) { border-top-color: var(--text-secondary); }
.lang-card:nth-child(2) { border-top-color: var(--accent-4); }
.lang-card:nth-child(3) { border-top-color: var(--accent-3); }
.lang-card:nth-child(4) { border-top-color: var(--accent-2); }

.ai-question {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-style: italic;
    color: #fff;
    font-size: 0.9rem;
}

/* Hidden Curriculum */
.hidden-curriculum-list .hc-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 2px solid var(--accent-2);
}
.hc-item .number {
    color: var(--accent-2);
    font-family: var(--font-heading);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Visual 3: Friction Matrix */
.matrix-card {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
}
.matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.m-quad {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.2);
    position: relative;
    transition: background 0.3s;
}
.m-quad.exclusionary { border-top: 2px solid #ef4444; }
.m-quad.productive { border-top: 2px solid var(--accent-3); background: rgba(20, 184, 166, 0.05);}
.m-quad:hover { background: rgba(0,0,0,0.4); }
.m-quad.productive:hover { background: rgba(20, 184, 166, 0.1); }

.m-quad h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.m-quad p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.m-quad .label {
    position: absolute;
    bottom: -10px;
    right: 10px;
    font-size: 0.75rem;
    background: var(--bg-main);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}
.matrix-note { font-size: 0.85rem; text-align: center; color: var(--text-secondary); }

/* Comparison Board */
.comparison-board {
    display: flex;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.board-side {
    flex: 1;
    padding: 3rem;
}
.board-side.enclosure { background: rgba(0,0,0,0.2); }
.board-side h3 { margin-bottom: 1.5rem; }
.board-side ul { list-style: none; }
.board-side ul li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.board-divider {
    width: 80px;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.refusal-badge {
    transform: rotate(-90deg);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    color: var(--accent-2);
    font-size: 0.9rem;
    white-space: nowrap;
}
.arrow-right {
    color: var(--accent-2);
    font-size: 2rem;
    margin-top: 2rem;
}

blockquote {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: #fff;
    text-align: center;
    line-height: 1.4;
    padding: 0 2rem;
    position: relative;
}
blockquote::before, blockquote::after {
    content: '"';
    color: var(--accent-1);
    opacity: 0.3;
    font-size: 3rem;
    position: absolute;
}
blockquote::before { top: -20px; left: 0; }
blockquote::after { bottom: -40px; right: 0; }

/* Interactive Table */
.table-container {
    overflow-x: auto;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}
.interactive-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.interactive-table th, .interactive-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.interactive-table th {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.interactive-table tbody tr {
    transition: background 0.3s;
    cursor: pointer;
}
.interactive-table tbody tr:hover, .interactive-table tbody tr:focus {
    background: rgba(255,255,255,0.03);
    outline: none;
}
.thinker-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-1);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4rem;
}
.footer-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Animations */
.fade-in { opacity: 0; transition: opacity 0.8s ease-out; }
.fade-in.visible { opacity: 1; }

.slide-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-up.visible { opacity: 1; transform: translateY(0); }

.slide-left { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-left.visible { opacity: 1; transform: translateX(0); }

.slide-right { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-right.visible { opacity: 1; transform: translateX(0); }

/* Responsive */
@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .hero h1 { font-size: 3rem; }
    .comparison-board { flex-direction: column; }
    .board-divider { width: 100%; height: 60px; flex-direction: row; }
    .refusal-badge { transform: none; margin-right: 1rem; }
    .arrow-right { margin-top: 0; transform: rotate(90deg); margin-left: 1rem; }
    .conceptual-map { display: none; /* Simplify on mobile or create list view */ }
    .nav-links { display: none; }
}
