:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #1a1a2e;
    --accent-color: #16213e;
    --gold: #d4af37;
    --silver: #c0c0c0;
    --ice-blue: #a8dadc;
    --aurora-green: #2d5a27;
    --aurora-purple: #6a4c93;
    --text-light: #f1faee;
    --text-muted: #a8dadc;
    --glow-color: #00ffff;
    --rune-color: #d4af37;
    --music-color: #ff6b6b;
    --notation-symbol-size: 1.5rem;
    --staff-note-size: 24px;
    --timeline-symbol-size: 2rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Aurora Background Animation */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(42, 157, 143, 0.1) 0%,
        rgba(106, 76, 147, 0.1) 25%,
        rgba(45, 90, 39, 0.1) 50%,
        rgba(212, 175, 55, 0.1) 75%,
        rgba(168, 218, 220, 0.1) 100%);
    background-size: 400% 400%;
    animation: aurora 20s ease infinite;
    z-index: -1;
}

@keyframes aurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(26, 26, 46, 0.8) 0%, rgba(10, 10, 15, 0.9) 70%);
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.rune-text {
    color: var(--rune-color);
    text-shadow: 0 0 20px var(--rune-color);
    animation: runeGlow 3s ease-in-out infinite alternate;
}

.music-text {
    color: var(--music-color);
    text-shadow: 0 0 20px var(--music-color);
    animation: musicGlow 3s ease-in-out infinite alternate;
}

.divider {
    color: var(--ice-blue);
    font-size: 2rem;
}

@keyframes runeGlow {
    0% { text-shadow: 0 0 20px var(--rune-color); }
    100% { text-shadow: 0 0 30px var(--rune-color), 0 0 40px var(--rune-color); }
}

@keyframes musicGlow {
    0% { text-shadow: 0 0 20px var(--music-color); }
    100% { text-shadow: 0 0 30px var(--music-color), 0 0 40px var(--music-color); }
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--ice-blue);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.explore-btn {
    background: linear-gradient(45deg, var(--rune-color), var(--music-color));
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Floating Symbols */
.floating-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.symbol {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.symbol.rune {
    color: var(--rune-color);
}

.symbol.note {
    color: var(--music-color);
}

.symbol:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.symbol:nth-child(2) { top: 30%; right: 15%; animation-delay: 1s; }
.symbol:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.symbol:nth-child(4) { top: 70%; right: 25%; animation-delay: 3s; }
.symbol:nth-child(5) { top: 40%; left: 80%; animation-delay: 4s; }
.symbol:nth-child(6) { top: 80%; right: 10%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.intro-section {
    padding: 4rem 0;
    text-align: center;
    background: rgba(26, 26, 46, 0.5);
}

.intro-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.intro-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Parallel Sections */
.parallels-container {
    background: var(--primary-bg);
}

.parallel-section {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(168, 218, 220, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.parallel-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.parallel-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.parallel-number {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.7;
}

.parallel-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--ice-blue);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.comparison-item {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.runes-side {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.music-side {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.comparison-item h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.runes-side h4 {
    color: var(--rune-color);
}

.music-side h4 {
    color: var(--music-color);
}

/* Symbol Displays */
.symbol-display {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
}

.interactive-rune {
    font-size: 3rem;
    color: var(--rune-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.interactive-rune:hover {
    transform: scale(1.2);
    text-shadow: 0 0 20px var(--rune-color);
}

/* Musical Staff System */
.staff-line-spacing {
    --staff-spacing: 12px;
}

.staff-line-thickness {
    --line-thickness: 2px;
}

.musical-note-size {
    --note-size: 24px;
}

.staff-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.staff {
    position: relative;
    width: 400px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.staff-line {
    position: absolute;
    width: 100%;
    height: var(--line-thickness, 2px);
    background: var(--music-color);
    opacity: 0.8;
}

.staff-line:nth-child(1) { top: 20px; }
.staff-line:nth-child(2) { top: 32px; }
.staff-line:nth-child(3) { top: 44px; }
.staff-line:nth-child(4) { top: 56px; }
.staff-line:nth-child(5) { top: 68px; }

.note-on-staff {
    position: absolute;
    font-size: var(--note-size, 24px);
    color: var(--music-color);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.note-on-staff:hover {
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--music-color);
}

/* Note positioning on staff lines and spaces */
.note-c4 { top: 76px; left: 80px; } /* Below staff */
.note-d4 { top: 68px; left: 120px; } /* On bottom line */
.note-e4 { top: 60px; left: 160px; } /* Between bottom lines */
.note-f4 { top: 56px; left: 200px; } /* On second line */
.note-g4 { top: 48px; left: 240px; } /* Between middle lines */
.note-a4 { top: 44px; left: 280px; } /* On middle line */
.note-b4 { top: 36px; left: 320px; } /* Between upper lines */

/* Chord Display */
.chord-staff {
    position: relative;
    width: 300px;
    height: 120px;
    margin: 2rem auto;
}

.chord-notes {
    position: relative;
    z-index: 2;
}

.chord-note {
    position: absolute;
    font-size: var(--note-size, 24px);
    color: var(--music-color);
    transition: all 0.3s ease;
}

/* C Major chord positioning */
.chord-c { top: 76px; left: 120px; } /* C4 */
.chord-e { top: 60px; left: 120px; } /* E4 */
.chord-g { top: 48px; left: 120px; } /* G4 */

/* Combination Demo */
.combination-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.demo-section {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.3);
}

.bindruner-display, .chord-display {
    margin: 1.5rem 0;
}

.simple-runes, .chord-builder {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rune {
    color: var(--rune-color);
}

.bindrune {
    color: var(--rune-color);
    text-shadow: 0 0 15px var(--rune-color);
}

.note-name {
    color: var(--music-color);
    font-weight: 600;
}

.chord-symbol {
    color: var(--music-color);
    font-weight: 700;
    text-shadow: 0 0 15px var(--music-color);
}

/* Lines Demo */
.lines-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.demo-half {
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.runes-demo {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.music-demo {
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.rune-breakdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    font-size: 2rem;
}

.line-element {
    color: var(--rune-color);
}

.dot-element {
    color: var(--rune-color);
    font-size: 3rem;
}

.staff-demo {
    margin: 2rem 0;
}

.staff-lines {
    margin: 1rem 0;
}

.staff-line {
    height: 2px;
    background: var(--music-color);
    margin: 8px 0;
    opacity: 0.7;
}

.modifier-examples {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 1.5rem;
}

.modifier {
    color: var(--music-color);
}

/* Systems Display */
.systems-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.system-card {
    padding: 2rem;
    border-radius: 15px;
    background: rgba(26, 26, 46, 0.3);
    border: 1px solid rgba(168, 218, 220, 0.1);
    text-align: center;
}

.alphabet-display, .notation-elements {
    margin: 2rem 0;
}

.futhark-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
}

.futhark-rune {
    color: var(--rune-color);
    transition: all 0.3s ease;
}

.futhark-rune:hover {
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--rune-color);
}

.clef-display, .time-sigs, .key-sigs {
    font-size: 1.5rem;
    color: var(--music-color);
    margin: 1rem 0;
}

/* Performance Comparison */
.performance-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.performance-card {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rune-performance {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.music-performance {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.ritual-display, .performance-visual {
    margin: 2rem 0;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carved-rune {
    font-size: 4rem;
    color: var(--rune-color);
    position: relative;
    z-index: 2;
}

.animate-carve {
    animation: carveGlow 2s ease-in-out infinite alternate;
}

@keyframes carveGlow {
    0% { 
        text-shadow: 0 0 20px var(--rune-color);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 40px var(--rune-color), 0 0 60px var(--rune-color);
        transform: scale(1.1);
    }
}

.energy-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    animation: energyPulse 3s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.conductor-baton {
    width: 80px;
    height: 4px;
    background: var(--music-color);
    transform: rotate(45deg);
    position: relative;
    z-index: 2;
    animation: conduct 2s ease-in-out infinite;
}

@keyframes conduct {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    25% { transform: rotate(60deg) translateY(-10px); }
    75% { transform: rotate(30deg) translateY(10px); }
}

.sound-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 50px 20px at 30% 50%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60px 25px at 70% 40%, rgba(255, 107, 107, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 40px 15px at 50% 60%, rgba(255, 107, 107, 0.4) 0%, transparent 50%);
    animation: soundWave 2s ease-in-out infinite;
}

@keyframes soundWave {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Evolution Timeline */
.evolution-timeline {
    margin-top: 3rem;
}

.timeline-track {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.3);
}

.timeline-track h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rune-evolution h4 {
    color: var(--rune-color);
}

.music-evolution h4 {
    color: var(--music-color);
}

.timeline-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item {
    text-align: center;
    flex: 1;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.period {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.example-symbol {
    font-size: var(--timeline-symbol-size, 2rem);
    display: block;
}

.rune-evolution .example-symbol {
    color: var(--rune-color);
}

.music-evolution .example-symbol {
    color: var(--music-color);
}

/* @tweakable translate button header positioning and layout above hero title */
.translate-button-header {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

/* @tweakable translate button header styling for top placement */
.translate-button-header .language-toggle-btn {
    background: linear-gradient(45deg, rgba(168, 218, 220, 0.2), rgba(106, 76, 147, 0.2));
    border: 1px solid rgba(168, 218, 220, 0.4);
    color: var(--ice-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    opacity: 1;
    animation: none;
}

/* @tweakable translate button header hover effects for top placement */
.translate-button-header .language-toggle-btn:hover {
    background: linear-gradient(45deg, rgba(168, 218, 220, 0.3), rgba(106, 76, 147, 0.3));
    border-color: var(--ice-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 218, 220, 0.2);
}

/* @tweakable translate button header flag icon sizing for top placement */
.translate-button-header .language-toggle-btn .flag-icon {
    font-size: 1rem;
}

/* @tweakable translate button header animation effects for top placement */
.translate-button-header .language-toggle-btn.translating {
    animation: translatePulse 0.8s ease-in-out;
}

@keyframes translatePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Transcendence Display */
.transcendence-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.mystical-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mystical-card:first-child {
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 70%);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.mystical-card:last-child {
    background: radial-gradient(ellipse at center, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.05) 70%);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.rune-glow {
    font-size: 4rem;
    color: var(--rune-color);
    margin-bottom: 1rem;
    animation: mysticalGlow 3s ease-in-out infinite alternate;
}

@keyframes mysticalGlow {
    0% { 
        text-shadow: 0 0 30px var(--rune-color);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 50px var(--rune-color), 0 0 70px var(--rune-color);
        transform: scale(1.05);
    }
}

.meaning-layers {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.layer {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.layer.phonetic {
    background: rgba(168, 218, 220, 0.2);
    color: var(--ice-blue);
}

.layer.symbolic {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

.layer.mystical {
    background: rgba(106, 76, 147, 0.2);
    color: var(--aurora-purple);
}

.layer:hover {
    opacity: 1;
    transform: scale(1.05);
}

.note-constellation {
    font-size: 2rem;
    color: var(--music-color);
    margin-bottom: 1rem;
    animation: noteFloat 4s ease-in-out infinite;
}

@keyframes noteFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    75% { transform: translateY(5px) rotate(-3deg); }
}

.emotion-waves {
    height: 60px;
    width: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(255, 107, 107, 0.3) 15px,
        rgba(255, 107, 107, 0.1) 25px
    );
    animation: emotionFlow 3s ease-in-out infinite;
    margin: 1rem 0;
    border-radius: 10px;
}

@keyframes emotionFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Conclusion Section */
.conclusion {
    padding: 5rem 0;
    background: radial-gradient(ellipse at center, rgba(26, 26, 46, 0.8) 0%, rgba(10, 10, 15, 0.9) 70%);
    text-align: center;
}

.conclusion h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.conclusion > .container > p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Note names display styling */
.note-names-display {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--music-color);
    opacity: 0.8;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

/* Interactive Builder */
.final-demonstration {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 3rem;
}

.demo-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--ice-blue);
    margin-bottom: 2rem;
}

.interactive-builder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.rune-builder, .music-builder {
    text-align: center;
}

.rune-builder h4 {
    color: var(--rune-color);
    font-family: 'Cinzel', serif;
    margin-bottom: 1.5rem;
}

.music-builder h4 {
    color: var(--music-color);
    font-family: 'Cinzel', serif;
    margin-bottom: 1.5rem;
}

.selectable-runes, .selectable-notes {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.selectable-runes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.8rem;
    margin-bottom: 2rem;
    max-width: 100%;
    justify-items: center;
}

.selectable-rune, .selectable-note {
    font-size: 1.8rem;
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 50px;
    text-align: center;
}

.selectable-rune:hover, .selectable-rune.selected {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--rune-color);
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--rune-color);
}

.selectable-note:hover, .selectable-note.selected {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--music-color);
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--music-color);
}

.selected-combination {
    min-height: 80px;
    border: 2px dashed rgba(168, 218, 220, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
}

.rune-combo {
    color: var(--rune-color);
}

.music-combo {
    color: var(--music-color);
}

/* VexFlow Container Styles */
.vexflow-container {
    margin: 2rem auto;
    text-align: center;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(255, 107, 107, 0.2);
    overflow-x: auto; /* Allow horizontal scrolling for wide note displays */
    max-width: 100%;
}

.vexflow-container.small {
    margin: 1rem auto;
    padding: 0.5rem;
}

.vexflow-container.interactive {
    cursor: pointer;
    border: 2px solid rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.vexflow-container.interactive:hover {
    border-color: var(--music-color);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.vexflow-container svg {
    max-width: 100%;
    height: auto;
}

/* @tweakable styling for multi-staff displays with enhanced spacing */
.vexflow-container.multi-staff {
    min-height: 300px; /* Accommodate multiple staff lines */
    padding: 1.5rem;
}

/* @tweakable compact note display styling for large numbers of notes */
.vexflow-container.compact {
    padding: 0.5rem;
    font-size: 0.9em;
}

/* Interactive Staff for Final Demo */
.interactive-staff {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 120px;
    margin: 2rem auto;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    padding: 1rem;
}

.selectable-notes-staff {
    position: relative;
    z-index: 2;
    height: 100%;
}

.selectable-note-staff {
    position: absolute;
    font-size: var(--note-size, 24px);
    color: var(--music-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 2px;
}

.selectable-note-staff:hover,
.selectable-note-staff.selected {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--music-color);
    transform: scale(1.2);
    text-shadow: 0 0 15px var(--music-color);
}

/* Position notes on the interactive staff */
.selectable-note-staff[data-position="note-c4"] { top: 56px; left: 60px; }
.selectable-note-staff[data-position="note-d4"] { top: 48px; left: 100px; }
.selectable-note-staff[data-position="note-e4"] { top: 40px; left: 140px; }
.selectable-note-staff[data-position="note-f4"] { top: 36px; left: 180px; }
.selectable-note-staff[data-position="note-g4"] { top: 28px; left: 220px; }
.selectable-note-staff[data-position="note-a4"] { top: 24px; left: 260px; }
.selectable-note-staff[data-position="note-b4"] { top: 16px; left: 300px; }

.music-combo-staff {
    min-height: 80px;
    border: 2px dashed rgba(168, 218, 220, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: var(--music-color);
    margin-top: 1rem;
}

.chord-explanation {
    text-align: center;
    margin: 1rem 0;
    font-size: 1.2rem;
}

.note-label {
    color: var(--music-color);
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    background: rgba(255, 107, 107, 0.1);
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(168, 218, 220, 0.1);
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .comparison-grid,
    .combination-demo,
    .lines-demo,
    .systems-display,
    .performance-comparison,
    .transcendence-display,
    .interactive-builder {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .parallel-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .parallel-number {
        font-size: 2rem;
    }
    
    .parallel-header h2 {
        font-size: 1.8rem;
    }
    
    .timeline-items {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .selectable-runes {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .selectable-rune {
        font-size: 1.5rem;
        padding: 0.6rem;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .selectable-runes {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .selectable-rune {
        font-size: 1.3rem;
        padding: 0.5rem;
    }
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.tooltip.visible {
    opacity: 1;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rune-color), var(--music-color));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Reset Controls */
.reset-controls {
    text-align: center;
    margin: 1rem 0 2rem 0;
}

.reset-combinations-btn {
    background: linear-gradient(45deg, var(--ice-blue), var(--text-muted));
    border: 2px solid var(--ice-blue);
    color: var(--primary-bg);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reset-combinations-btn:hover {
    background: linear-gradient(45deg, var(--text-muted), var(--ice-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 218, 220, 0.3);
}

.reset-combinations-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(168, 218, 220, 0.2);
}

.reset-combinations-btn.clearing {
    animation: resetPulse 0.6s ease-in-out;
}

@keyframes resetPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}