/* myTempo - Behavioral Design-Based Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* myTempo Brand Colors */
    --tempo-blue: #4B9BFF;
    --tempo-purple: #7B5FD9;
    --tempo-yellow: #F5B342;
    --tempo-pink: #E85D75;
    --tempo-mint: #5DDCB2;
    --tempo-orange: #FF6B35;
    --tempo-navy: #1B2951;
    
    /* Dopamine-Inducing Gradients */
    --dopamine-gradient: linear-gradient(135deg, #FF6B35 0%, #E85D75 50%, #7B5FD9 100%);
    --focus-gradient: linear-gradient(135deg, #4B9BFF 0%, #5DDCB2 100%);
    --reward-gradient: linear-gradient(135deg, #F5B342 0%, #FF6B35 100%);
    --calm-gradient: linear-gradient(135deg, #7B5FD9 0%, #4B9BFF 100%);
    
    /* ADHD-Friendly Contrast Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-accent: #7B5FD9;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --bg-accent: #F5F3FF;
    
    /* Typography */
    --font-family: 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    --font-size-base: 18px; /* Larger for readability */
    --line-height-base: 1.7; /* More space for ADHD readers */
    
    /* Spacing System (based on 8px grid) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    
    /* Animation Durations (quick for dopamine) */
    --animation-fast: 0.2s;
    --animation-normal: 0.3s;
    --animation-slow: 0.5s;
}

/* Reset with ADHD-friendly defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background: var(--bg-light);
    letter-spacing: 0.002em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Container with max-width for readability */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography - High Contrast & Clear Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Navigation - Fixed for constant orientation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: var(--space-sm) 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--animation-normal) ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
}

.logo-image {
    width: 50px;
    height: 50px;
    transition: transform var(--animation-fast) ease;
}

.logo:hover .logo-image {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
    transition: color var(--animation-fast) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--tempo-purple);
    transition: width var(--animation-normal) ease;
}

.nav-link:hover {
    color: var(--tempo-purple);
}

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

.cta-button {
    background: var(--dopamine-gradient);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    transition: all var(--animation-normal) ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Hero Section - Immediate Engagement */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    background: var(--bg-white);
    overflow: hidden;
}

/* Dopamine Burst Background */
.dopamine-burst-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
}

.dopamine-burst-bg::before,
.dopamine-burst-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.dopamine-burst-bg::before {
    width: 600px;
    height: 600px;
    background: var(--tempo-pink);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.dopamine-burst-bg::after {
    width: 800px;
    height: 800px;
    background: var(--tempo-purple);
    bottom: -300px;
    left: -200px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Instant Reward - Immediate Positive Feedback */
.instant-reward {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--reward-gradient);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: 100px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reward-spark {
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Hero Title - Clear, Bold, Relatable */
.hero-title {
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.truth-bomb {
    background: var(--dopamine-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.highlight {
    color: var(--tempo-purple);
    font-weight: 700;
}

.punchline {
    color: var(--tempo-orange);
    font-weight: 700;
}

/* Brain State Selector - Interactive Engagement */
.brain-state-selector {
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.selector-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.brain-states {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.brain-state {
    background: white;
    border: 3px solid var(--bg-accent);
    padding: var(--space-sm) var(--space-md);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--animation-fast) ease;
    position: relative;
}

.brain-state:hover {
    transform: translateY(-3px);
    border-color: var(--tempo-purple);
    box-shadow: 0 10px 25px rgba(123, 95, 217, 0.2);
}

.brain-state.active {
    background: var(--tempo-purple);
    color: white;
    border-color: var(--tempo-purple);
}

/* Hero CTA */
.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.primary-cta {
    background: var(--dopamine-gradient);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--animation-normal) ease;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.cta-reward {
    font-size: 0.9rem;
    opacity: 0.9;
}

.primary-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.cta-disclaimer {
    margin-top: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Floating Thoughts - ADHD Relatability */
.floating-thoughts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.thought {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: floatThought 10s ease-in-out infinite;
}

.thought[data-delay="1"] { top: 20%; left: 10%; animation-delay: 0s; }
.thought[data-delay="2"] { top: 30%; right: 15%; animation-delay: 2s; }
.thought[data-delay="3"] { top: 60%; left: 5%; animation-delay: 4s; }
.thought[data-delay="4"] { bottom: 30%; right: 10%; animation-delay: 6s; }
.thought[data-delay="5"] { bottom: 20%; left: 15%; animation-delay: 8s; }

@keyframes floatThought {
    0%, 100% { opacity: 0; transform: translateY(20px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ADHD Brain Section */
.adhd-brain-section {
    padding: var(--space-xxl) 0;
    background: var(--bg-white);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    margin-bottom: var(--space-md);
}

.subtitle-twist {
    display: block;
    font-size: 0.6em;
    color: var(--tempo-purple);
    font-weight: 600;
    margin-top: var(--space-xs);
}

/* Brain Map */
.brain-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-bottom: var(--space-xxl);
}

.brain-visual {
    position: relative;
}

#brainCanvas {
    width: 100%;
    height: 400px;
    border-radius: 20px;
}

.brain-regions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.brain-region {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-sm);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all var(--animation-normal) ease;
}

.brain-region:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.brain-region[data-region="prefrontal"] { top: 20%; left: 60%; }
.brain-region[data-region="dopamine"] { top: 50%; left: 30%; }
.brain-region[data-region="attention"] { bottom: 30%; right: 20%; }

.region-label {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.region-status {
    display: block;
    font-size: 0.9rem;
    color: var(--tempo-orange);
}

/* Truth Cards */
.truth-cards {
    display: grid;
    gap: var(--space-lg);
}

.truth-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-accent) 100%);
    padding: var(--space-lg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all var(--animation-normal) ease;
    opacity: 0;
    transform: translateY(30px);
}

.truth-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.truth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-number {
    display: inline-block;
    background: var(--tempo-purple);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.truth-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.truth-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.science-backup {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Science Section */
.science-section {
    padding: var(--space-xxl) 0;
    background: var(--bg-light);
}

/* Temporal Orchestra */
.temporal-orchestra {
    background: white;
    padding: var(--space-xl);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--space-xxl);
}

.orchestra-title {
    text-align: center;
    margin-bottom: var(--space-md);
    font-size: 2.5rem;
}

.orchestra-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sound Timeline */
.sound-timeline {
    background: var(--bg-accent);
    padding: var(--space-lg);
    border-radius: 20px;
    margin-bottom: var(--space-xl);
}

#orchestraCanvas {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: var(--space-md);
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    justify-content: center;
}

.play-symphony {
    background: var(--dopamine-gradient);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--animation-normal) ease;
}

.play-symphony:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.time-of-day {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    max-width: 400px;
}

.time-slider-track {
    flex: 1;
    height: 8px;
    background: rgba(123, 95, 217, 0.2);
    border-radius: 4px;
    position: relative;
}

.time-slider-fill {
    height: 100%;
    width: 35%;
    background: var(--tempo-purple);
    border-radius: 4px;
    transition: width var(--animation-normal) ease;
}

/* Sound Library */
.sound-library {
    margin-bottom: var(--space-xl);
}

.sound-library h4 {
    text-align: center;
    margin-bottom: var(--space-lg);
    font-size: 1.8rem;
}

.sound-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.sound-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-accent) 100%);
    padding: var(--space-lg);
    border-radius: 20px;
    text-align: center;
    transition: all var(--animation-normal) ease;
    position: relative;
    overflow: hidden;
}

.sound-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--animation-normal) ease;
}

.sound-card.morning::before { background: var(--tempo-yellow); }
.sound-card.focus::before { background: var(--tempo-blue); }
.sound-card.urgency::before { background: var(--tempo-orange); }
.sound-card.celebration::before { background: var(--tempo-pink); }

.sound-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.sound-card:hover::before {
    opacity: 0.1;
}

.sound-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.sound-card h5 {
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.sound-waves {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--space-md);
    height: 30px;
    align-items: center;
}

.wave {
    width: 3px;
    background: var(--tempo-purple);
    border-radius: 2px;
    animation: wave-animation 1s ease-in-out infinite;
}

.wave:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.wave:nth-child(3) { height: 25px; animation-delay: 0.2s; }

@keyframes wave-animation {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

.sound-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.preview-sound {
    background: var(--tempo-purple);
    color: white;
    border: none;
    padding: var(--space-xs) var(--space-md);
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--animation-fast) ease;
    position: relative;
    z-index: 1;
}

.preview-sound:hover {
    background: var(--tempo-navy);
    transform: scale(1.05);
}

/* myTempo Method */
.mytempo-method {
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-white) 100%);
    padding: var(--space-xl);
    border-radius: 30px;
    margin-bottom: var(--space-xxl);
}

.method-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.method-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.pillar {
    text-align: center;
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.pillar h4 {
    margin-bottom: var(--space-sm);
    color: var(--tempo-purple);
}

/* Geographic Features */
.geo-features {
    background: white;
    padding: var(--space-xl);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--space-xxl);
}

.geo-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.geo-zones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

#geoCanvas {
    width: 100%;
    height: 300px;
    border-radius: 20px;
}

.zone-features {
    display: grid;
    gap: var(--space-md);
}

.feature-card {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    padding: var(--space-md);
    background: var(--bg-accent);
    border-radius: 15px;
    transition: all var(--animation-normal) ease;
}

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-card h5 {
    margin-bottom: var(--space-xs);
    color: var(--tempo-purple);
}

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

/* Symphony Growth */
.symphony-growth {
    background: linear-gradient(135deg, var(--tempo-purple) 0%, var(--tempo-pink) 100%);
    color: white;
    padding: var(--space-xl);
    border-radius: 30px;
    margin-bottom: var(--space-xxl);
}

.growth-intro {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
}

.maturation-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stage {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border-radius: 20px;
    text-align: center;
    transition: all var(--animation-normal) ease;
    cursor: pointer;
}

.stage:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.stage-visual {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.stage h5 {
    margin-bottom: var(--space-sm);
    color: white;
}

.stage p {
    font-size: 0.9rem;
    opacity: 0.9;
}

#growthCanvas {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
}

.slot-machine {
    background: var(--bg-accent);
    padding: var(--space-lg);
    border-radius: 20px;
    margin: var(--space-lg) 0;
}

.spin-button {
    background: var(--reward-gradient);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--animation-normal) ease;
    margin-bottom: var(--space-lg);
}

.spin-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(245, 179, 66, 0.3);
}

.spin-button:active {
    transform: scale(0.95);
}

.slot-windows {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.slot-window {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slot-window.spinning {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    to { transform: rotateX(360deg); }
}

/* ML Section */
.ml-section {
    padding: var(--space-xxl) 0;
    background: var(--bg-white);
}

.ml-engines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xxl);
}

.engine-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-accent) 100%);
    padding: var(--space-lg);
    border-radius: 20px;
    text-align: center;
    transition: all var(--animation-normal) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.engine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dopamine-gradient);
    opacity: 0;
    transition: opacity var(--animation-normal) ease;
}

.engine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.engine-card:hover::before {
    opacity: 0.1;
}

.engine-avatar {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.engine-card h3 {
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.engine-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.engine-details {
    position: relative;
    z-index: 1;
}

.engine-stats {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-md);
}

.stat {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--tempo-purple);
    font-weight: 600;
}

/* Timeline Demo */
.live-demo {
    background: var(--bg-accent);
    padding: var(--space-xl);
    border-radius: 30px;
}

.timeline-demo {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.time-block {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    background: white;
    padding: var(--space-md);
    border-radius: 15px;
    transition: all var(--animation-normal) ease;
}

.time-block:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.time {
    font-weight: 700;
    color: var(--tempo-purple);
    min-width: 100px;
}

.nudge-demo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.nudge-icon {
    font-size: 2rem;
}

/* Results Section */
.results-section {
    padding: var(--space-xxl) 0;
    background: var(--bg-light);
}

.success-stories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xxl);
}

.story-card {
    background: white;
    padding: var(--space-lg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all var(--animation-normal) ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.story-avatar {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

blockquote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

cite {
    display: block;
    color: var(--tempo-purple);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.story-stat {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    justify-content: center;
    padding-top: var(--space-md);
    border-top: 2px solid var(--bg-accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--dopamine-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
}

/* Science Stats */
.science-stats {
    background: white;
    padding: var(--space-xl);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.stat-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-accent);
    border-radius: 20px;
}

.stat-card canvas {
    width: 100%;
    height: 150px;
    margin-bottom: var(--space-md);
}

/* Final CTA */
.final-cta {
    padding: var(--space-xxl) 0;
    background: var(--dopamine-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    margin-bottom: var(--space-lg);
}

.cta-emphasis {
    font-size: 1.3em;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.mega-cta {
    background: white;
    color: var(--tempo-orange);
    border: none;
    padding: var(--space-lg) var(--space-xxl);
    border-radius: 100px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--animation-normal) ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.mega-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cta-main {
    font-size: 1.3rem;
}

.cta-bonus {
    font-size: 0.9rem;
    opacity: 0.8;
}

.trust-signals {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Easter Egg */
.easter-egg {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Full Day Timeline */
.full-day-timeline {
    margin-top: var(--space-xxl);
    background: var(--gradient-soft);
    padding: var(--space-xl);
    border-radius: 30px;
}

.full-day-timeline h3 {
    font-size: var(--font-xl);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.timeline-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.day-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.day-section {
    background: white;
    padding: var(--space-lg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.day-section .section-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.time-badge {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-sm);
}

.day-section h4 {
    font-size: var(--font-lg);
    margin: 0;
}

.timeline-events {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    padding-left: var(--space-xl);
}

.timeline-events::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        var(--color-rhythm) 0%, 
        var(--color-energy) 50%, 
        var(--color-peace) 100%);
    opacity: 0.3;
}

.timeline-event {
    display: flex;
    gap: var(--space-md);
    position: relative;
}

.event-time {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--font-sm);
    min-width: 80px;
}

.event-content {
    flex: 1;
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.timeline-event .pillar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    position: absolute;
    left: -30px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rhythm-event .pillar-icon {
    background: var(--color-rhythm-light);
}

.energy-event .pillar-icon {
    background: var(--color-energy-light);
}

.peace-event .pillar-icon {
    background: var(--color-peace-light);
}

.event-details {
    flex: 1;
}

.event-details strong {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: var(--font-md);
}

.event-details p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-size: var(--font-sm);
}

.nudge-preview {
    background: #f8f9fa;
    padding: var(--space-sm) var(--space-md);
    border-radius: 15px;
    font-size: var(--font-sm);
    font-style: italic;
    border-left: 3px solid;
}

.rhythm-event .nudge-preview {
    border-color: var(--color-rhythm);
}

.energy-event .nudge-preview {
    border-color: var(--color-energy);
}

.peace-event .nudge-preview {
    border-color: var(--color-peace);
}

.adaptive-learning-note {
    margin-top: var(--space-xl);
    background: white;
    padding: var(--space-lg);
    border-radius: 20px;
    display: flex;
    gap: var(--space-md);
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.note-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.note-content strong {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: var(--font-md);
}

.note-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Design for Full Day Timeline */
@media (max-width: 768px) {
    .timeline-events {
        padding-left: var(--space-md);
    }
    
    .timeline-event .pillar-icon {
        position: static;
        margin-bottom: var(--space-sm);
    }
    
    .timeline-events::before {
        display: none;
    }
    
    .event-content {
        flex-direction: column;
    }
    
    .adaptive-learning-note {
        flex-direction: column;
        text-align: center;
    }
}

/* Game Wrapper - Handles both inline and persistent states */
.game-wrapper {
    position: relative;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.game-wrapper.persistent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border: 3px solid var(--color-warning);
}

.game-wrapper.minimized {
    height: 50px;
    overflow: hidden;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-warning);
    color: white;
    border-radius: 17px 17px 0 0;
    cursor: move;
}

.game-title {
    font-weight: 600;
    font-size: var(--font-sm);
}

.minimize-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.minimize-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Adjust canvas when in persistent mode */
.game-wrapper.persistent #trampolineCanvas {
    margin: var(--space-md);
    width: calc(100% - var(--space-xl));
    height: 250px;
}

/* Hide instructions when persistent */
.game-wrapper.persistent .demo-instructions {
    display: none;
}

/* Shake animation for attention */
@keyframes shakeGame {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.game-wrapper.shake {
    animation: shakeGame 0.5s ease-in-out;
}

/* Pulse animation for first appearance */
@keyframes pulseGame {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.game-wrapper.appear {
    animation: pulseGame 0.5s ease-out;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .game-wrapper.persistent {
        width: 280px;
        bottom: 10px;
        right: 10px;
    }
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--space-xl) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-sm);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-column h4 {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: var(--space-sm);
    transition: color var(--animation-fast) ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Distraction Demo - Trampoline Game */
.distraction-demo {
    position: absolute;
    bottom: 60px;
    right: 60px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 350px;
}

.demo-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--tempo-orange);
}

.warning-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

#trampolineCanvas {
    width: 300px;
    height: 400px;
    border: 2px solid var(--bg-light);
    border-radius: 15px;
    cursor: grab;
    background: linear-gradient(180deg, #E8F4FF 0%, #F5F3FF 100%);
}

#trampolineCanvas:active {
    cursor: grabbing;
}

.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.bounce-button {
    background: var(--tempo-purple);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(123, 95, 217, 0.3);
}

.bounce-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 95, 217, 0.4);
}

.bounce-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(123, 95, 217, 0.3);
}

.score-display {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tempo-purple);
}

#score, #combo {
    color: var(--tempo-orange);
    font-size: 1.1rem;
}

.demo-instructions {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.demo-instructions .small-text {
    display: block;
    font-size: 0.75rem;
    margin-top: 5px;
    opacity: 0.7;
}

.distraction-timer {
    margin-top: 15px;
    text-align: center;
}

.timer-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tempo-purple);
    margin-bottom: 5px;
}

#timeElapsed {
    color: var(--tempo-orange);
    font-size: 1.2rem;
    font-weight: 700;
}

.streaming-headline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Features Section */
.features-section {
    padding: var(--space-xxl) 0;
    background: linear-gradient(180deg, #FAFBFF 0%, #F5F3FF 100%);
}

/* Apple Watch Integration */
.watch-integration {
    background: white;
    padding: var(--space-xl);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--space-xxl);
}

.watch-showcase {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.watch-device {
    width: 250px;
    height: 300px;
    background: #1C1C1E;
    border-radius: 40px;
    padding: 20px;
    position: relative;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.watch-screen {
    background: #000;
    height: 100%;
    border-radius: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.complication {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.nudge-preview {
    background: rgba(123, 95, 217, 0.2);
    border: 2px solid var(--tempo-purple);
    border-radius: 20px;
    padding: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nudge-icon {
    font-size: 2rem;
}

.nudge-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.nudge-time {
    color: var(--tempo-purple);
    font-size: 0.9rem;
}

.watch-features h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.watch-feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.feature-item {
    display: flex;
    gap: var(--space-md);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Core Features Grid */
.core-features, .unique-features, .technical-features {
    margin-bottom: var(--space-xxl);
}

.core-features h3, .unique-features h3, .technical-features h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: white;
    padding: var(--space-lg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform var(--animation-fast) ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.feature-emoji {
    font-size: 2rem;
}

.feature-header h4 {
    color: var(--text-primary);
    margin: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-list li strong {
    color: var(--text-primary);
}

/* Unique Features Grid */
.unique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.unique-item {
    background: white;
    padding: var(--space-lg);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.unique-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.unique-item h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.unique-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Technical Features Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.tech-item {
    background: white;
    padding: var(--space-md);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.tech-item h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

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

/* Live Demo - Three Pillars */
.live-demo {
    background: white;
    padding: var(--space-xl);
    border-radius: 30px;
    margin-top: var(--space-xxl);
}

.live-demo h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.demo-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.pillar-demo {
    background: var(--bg-light);
    padding: var(--space-lg);
    border-radius: 20px;
}

.pillar-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.pillar-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.pillar-header h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.pillar-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Watch Nudge Display */
.nudge-item {
    margin-bottom: var(--space-lg);
}

.watch-nudge {
    background: #000;
    color: white;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: var(--space-sm);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.nudge-time {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 8px;
}

.nudge-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nudge-type {
    font-size: 0.7rem;
    opacity: 0.6;
    letter-spacing: 0.1em;
}

.nudge-message {
    font-size: 1.1rem;
    font-weight: 500;
}

.haptic-indicator {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.haptic {
    background: rgba(123, 95, 217, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.sound-wave {
    color: var(--tempo-purple);
    font-size: 1.2rem;
}

/* Energy Indicators */
.energy-indicator {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}

.energy-bar {
    width: 30px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.energy-bar.full {
    background: #5DDCB2;
}

.high-energy .nudge-message {
    color: #5DDCB2;
}

.low-energy .nudge-message {
    color: #E85D75;
}

/* Peace Indicators */
.peace-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(75, 155, 255, 0.2);
    padding: 5px 10px;
    border-radius: 10px;
    margin-top: 5px;
}

.peace-icon {
    font-size: 1rem;
}

.peace-text {
    font-size: 0.9rem;
}

/* Anchor Pulse */
.anchor-pulse {
    width: 50px;
    height: 4px;
    background: var(--tempo-yellow);
    border-radius: 2px;
    margin: 8px auto 0;
    animation: anchorPulse 2s ease infinite;
}

@keyframes anchorPulse {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

.nudge-context {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

/* Integration Demo */
.integration-demo {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--bg-light);
}

.integration-demo h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.integration-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.timeline-dot.rhythm {
    background: var(--tempo-purple);
}

.timeline-dot.energy {
    background: var(--tempo-mint);
}

.timeline-dot.peace {
    background: var(--tempo-blue);
}

/* Sound Animation Effects */
.sound-card.playing {
    animation: soundPulse 1s ease;
}

.sound-card.playing .sound-waves .wave {
    animation: wave 0.8s ease-in-out infinite;
}

.sound-card.playing .sound-waves .wave:nth-child(2) {
    animation-delay: 0.1s;
}

.sound-card.playing .sound-waves .wave:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes soundPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(123, 95, 217, 0.2);
    }
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1.5);
        opacity: 1;
    }
}

.play-symphony.playing {
    background: var(--tempo-purple);
    color: white;
}

.preview-sound.playing {
    background: var(--tempo-purple);
    color: white;
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .brain-map {
        grid-template-columns: 1fr;
    }
    
    .equation-builder {
        flex-direction: column;
    }
    
    .equation-operator {
        transform: rotate(90deg);
        margin: var(--space-md) 0;
    }
    
    .distraction-demo {
        position: relative;
        bottom: auto;
        right: auto;
        margin: var(--space-xl) auto;
        max-width: 100%;
    }
    
    #trampolineCanvas {
        width: 250px;
        height: 350px;
    }
    
    .watch-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .watch-device {
        margin: 0 auto var(--space-lg);
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}