:root {
    --bg-color: #ffffff;
    --text-color: #0A0A0A;
    --accent-color: #FFD166;
    --accent-dark: #D4A054;
    --muted-color: #666666;
    --card-bg: rgba(10, 10, 10, 0.04);
    --card-border: rgba(10, 10, 10, 0.08);
    --input-bg: rgba(10, 10, 10, 0.06);
    --gradient-start: #f5f5f5;
    --gradient-end: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --text-color: #ffffff;
        --accent-color: #FFD166;
        --accent-dark: #D4A054;
        --muted-color: #999999;
        --card-bg: rgba(255, 255, 255, 0.04);
        --card-border: rgba(255, 255, 255, 0.08);
        --input-bg: rgba(255, 255, 255, 0.06);
        --gradient-start: #0A1A35;
        --gradient-end: #000000;
    }
}

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

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at center, var(--gradient-start), var(--gradient-end));
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

strong, em {
    color: var(--accent-color);
}

header {
    padding: 1.5rem 1rem;
    text-align: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.tagline {
    color: var(--muted-color);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.video-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 0;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1.5s ease-out;
}

.hero-overlay .hero-logo {
    width: 180px;
    max-width: 90vw;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 209, 102, 0.6));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.hero-tagline {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
    .hero-tagline {
        text-shadow: 0 0 20px rgba(255, 209, 102, 0.4);
    }
}

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

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 15px rgba(255, 209, 102, 0.4));
    }
    to {
        filter: drop-shadow(0 0 25px rgba(255, 209, 102, 0.8));
    }
}

.center {
    max-width: 720px;
    margin: 6vh auto;
    padding: 2rem;
}

.subtitle {
    text-align: center;
    color: var(--muted-color);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 500;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 2rem;
    backdrop-filter: blur(6px);
    margin-top: 2rem;
}

label {
    display: block;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--muted-color);
    font-size: 0.9rem;
    font-weight: 500;
}

select, textarea, input[type=number], input[type=text], input[type=email], input[type=password] {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

select:focus, textarea:focus, input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--card-bg);
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

button, .link-button {
    margin-top: 1.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    border: 0;
    color: #0A1A35;
    background: linear-gradient(90deg, #FFD166, #D4A054);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

button:hover, .link-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.4);
}

button:active {
    transform: translateY(0);
}

.primary {
    background: linear-gradient(90deg, #FFD166, #D4A054);
}

.spark {
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 2rem 0;
    color: var(--text-color);
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    font-weight: 300;
}

.guide {
    color: var(--muted-color);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1rem;
}

.guide em {
    color: var(--accent-color);
    font-style: normal;
}

.feedback {
    white-space: pre-wrap;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--text-color);
    line-height: 1.7;
    font-family: inherit;
    border: none;
    margin: 2rem 0;
}

.small {
    color: var(--muted-color);
    font-size: 0.85rem;
}

.row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.link-button {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-color);
    margin-top: 1rem;
}

.link-button:hover {
    background: var(--card-bg);
    border-color: var(--accent-color);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--muted-color);
    font-size: 0.9rem;
}

.sessions-list {
    margin-top: 2rem;
}

.session-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.session-meta {
    color: var(--muted-color);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.spark-mini {
    color: var(--text-color);
    font-size: 1rem;
    margin: 0.5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--card-border);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-color);
}

.hint {
    color: var(--muted-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.completion-summary {
    text-align: center;
}

.completion-message {
    color: var(--text-color);
    font-size: 1.05rem;
    margin: 0.8rem 0;
    line-height: 1.6;
}

.reflection-quote {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
}

.reflection-quote em {
    color: var(--muted-color);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    flex: 1;
    display: block;
}

.button.primary {
    color: #0A1A35;
    background: linear-gradient(90deg, #FFD166, #D4A054);
}

.button.secondary {
    color: var(--text-color);
    background: transparent;
    border: 1px solid var(--card-border);
}

.button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.4);
}

.button.secondary:hover {
    background: var(--card-bg);
    border-color: var(--accent-color);
}

.subtle-hint {
    text-align: center;
    color: var(--muted-color);
    font-size: 0.9rem;
    margin-top: 2rem;
    font-style: italic;
}

.reignition-container { 
    max-width: 760px; 
    margin: 8vh auto; 
    padding: 24px; 
    text-align: center; 
}

.emotion-mirror {
    margin-bottom: 2rem;
}

.mood-shift { 
    font-size: 18px; 
    color: var(--text-color); 
    margin-top: 1rem;
}

.mood.before { 
    color: #FFD166; 
    font-weight: 500;
}

.mood.after { 
    color: #b8ffcf; 
    font-weight: 500;
}

.fuel-card { 
    margin: 2rem 0;
}

.fuel-card h3 { 
    margin-top: 0; 
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.seed { 
    margin: 10px 0 16px; 
    font-size: 18px; 
    line-height: 1.6;
}

.fuel-audio { 
    width: 100%; 
    margin-top: 1rem;
}

.fuel-visual { 
    width: 100%; 
    border-radius: 14px; 
    margin-top: 1rem;
}

.fuel-quote { 
    font-size: 20px; 
    line-height: 1.5; 
    color: var(--text-color); 
    font-style: italic;
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
}

.fuel-breath { 
    display: grid; 
    place-items: center; 
    gap: 16px; 
    margin-top: 1.5rem;
}

.breath-orb { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    background: radial-gradient(closest-side, #FFD166, rgba(255, 209, 102, 0.15)); 
    transition: transform 4s ease-in-out;
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.3);
}

@media (prefers-color-scheme: light) {
    .breath-orb { 
        background: radial-gradient(closest-side, #FFD166, rgba(255, 209, 102, 0.6)); 
    }
}

.breath-orb.in { 
    transform: scale(1.25); 
}

.breath-text { 
    color: var(--muted-color); 
    font-size: 1rem;
}

.teaser { 
    margin: 8px 0 14px; 
    color: var(--accent-color); 
    font-size: 1.05rem;
}

.cta { 
    margin-top: 10px; 
    padding: 10px 22px; 
    border-radius: 12px; 
    border: 0; 
    cursor: pointer; 
    background: linear-gradient(90deg, #FFD166, #D4A054); 
    color: #0A1A35; 
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.4);
}

.fade-in { 
    animation: fade 600ms ease forwards; 
    opacity: 0; 
}

.fade-in-delayed { 
    animation: fade 900ms ease forwards; 
    opacity: 0; 
}

.fade-in-late { 
    animation: fade 1200ms ease forwards; 
    opacity: 0; 
}

@keyframes fade { 
    from { 
        opacity: .01; 
        transform: translateY(6px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 209, 102, 0.15) 0%, var(--gradient-end) 100%);
    animation: slowPulse 8s ease-in-out infinite alternate;
    z-index: 0;
}

@media (prefers-color-scheme: dark) {
    .hero-bg {
        background: radial-gradient(circle at center, rgba(255, 209, 102, 0.25) 0%, rgba(10, 26, 53, 0.95) 100%);
    }
}

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

.hero-logo {
    width: 200px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.4));
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

@keyframes slowPulse {
    from { opacity: 0.9; }
    to { opacity: 1; transform: scale(1.02); }
}

.spark-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.spark-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 209, 102, 0.8);
    border-radius: 50%;
    animation: float 8s linear infinite;
}

@media (prefers-color-scheme: light) {
    .spark-particle {
        background: rgba(255, 209, 102, 0.6);
    }
}

@keyframes float {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100px); opacity: 0; }
}

@keyframes pulse-glow {
    from {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 209, 102, 0.4);
    }
    to {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255, 209, 102, 0.7);
    }
}

.gold-glow {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.4);
}

@media (max-width: 640px) {
    .center {
        padding: 1rem;
        margin: 3vh auto;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .spark {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .reignition-container {
        padding: 16px;
        margin: 4vh auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-logo {
        width: 150px;
    }
    
    .video-hero {
        height: 50vh;
        max-height: 500px;
        min-height: 300px;
    }
    
    .hero-video {
        object-fit: contain;
    }
}

.presence-block {
    margin: 1.5rem 0 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--accent-color);
    background: var(--card-bg);
    border-radius: 8px;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.presence-block:hover {
    box-shadow: 0 4px 12px rgba(255, 209, 102, 0.15);
    transform: translateX(4px);
}

.weather-line {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.4;
}

.memory-echo {
    color: var(--text-color);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.75;
}
