/* ==========================================================================
   1. DESIGN SYSTEM, FONTS & GLOBAL CUSTOM CUSTOM VARIABLES
   ========================================================================== */
:root {
    --bg-deep: #060608;
    --bg-card: rgba(13, 17, 28, 0.45);
    --bg-card-hover: rgba(22, 28, 45, 0.65);
    --bg-nav: rgba(6, 6, 8, 0.8);
    --primary: #6366f1; /* Indigo */
    --secondary: #8b5cf6; /* Violet */
    --accent: #06b6d4; /* Neon Cyan */
    --accent-glow: rgba(6, 182, 212, 0.15);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-active: rgba(99, 102, 241, 0.3);
    --glow-primary: rgba(99, 102, 241, 0.25);
    --glow-accent: rgba(6, 182, 212, 0.2);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar Redesign */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================================================
   2. RESET & BASE LAYOUTS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

p {
    color: var(--text-muted);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Ambient Backdrop Glow Engines */
.ambient-glow {
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    animation: pulseGlow 15s infinite alternate var(--transition-smooth);
}

.ambient-glow-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-accent) 0%, transparent 70%);
    top: 500px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
    filter: blur(70px);
    animation: pulseGlow2 12s infinite alternate var(--transition-smooth);
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

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

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

/* Glassmorphism Blueprint */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* ==========================================================================
   3. REUSABLE UI COMPONENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFF;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4), 0 0 12px var(--accent);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-color: var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* View Switcher Framework */
.app-view {
    display: none;
    opacity: 0;
    transition: opacity 0.5s var(--transition-smooth);
}

.app-view.active-view {
    display: block;
    opacity: 1;
}

/* Scroll Animation States */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   4. NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.5rem 0;
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFF, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '⚡';
    font-size: 1.4rem;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    padding: 160px 0 100px 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-family: var(--font-display);
    font-weight: 800;
    background: linear-gradient(to right, #FFFFFF 40%, #a78bfa 75%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 440px;
}

.glowing-orb {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(25px);
    animation: floatOrb 8s infinite ease-in-out alternate;
}

/* ==========================================================================
   6. MOCK CHAT PREVIEW WINDOW (LANDING PAGE DEMO)
   ========================================================================== */
.chat-preview-window {
    width: 100%;
    height: 100%;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    position: relative;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #0d111c;
}

.chat-user-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.chat-user-info span {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.chat-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 200px;
    justify-content: flex-end;
}

.message {
    max-width: 85%;
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: fadeInBubble 0.4s var(--transition-smooth) both;
}

.message.user {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    border: 1px solid var(--border-glass);
}

.message.future-you {
    background: rgba(99, 102, 241, 0.12);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.message p {
    color: var(--text-main);
}

.typing-cursor::after {
    content: '▋';
    color: var(--accent);
    animation: blink 0.8s infinite;
}

/* ==========================================================================
   7. FEATURES SECTION & SPOTLIGHT CARD ACTION
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 5rem auto;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #FFF, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features {
    padding: 100px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(300px circle at var(--x, 0px) var(--y, 0px), rgba(6, 182, 212, 0.06), transparent 80%);
    z-index: 0;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.05);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.18);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(4deg);
    background: rgba(6, 182, 212, 0.12);
    color: #FFF;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   8. HOW IT WORKS & TIMELINE SYSTEMS
   ========================================================================== */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(13, 17, 28, 0.2) 50%, transparent);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 44%;
    padding: 2rem;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--bg-deep);
    border: 4px solid var(--accent);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    box-shadow: 0 0 15px var(--accent);
}

.step-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content h3 {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   9. INTERACTIVE FUTURE AGE SELECTOR
   ========================================================================== */
.age-selector-section {
    padding: 100px 0;
}

.interactive-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: 28px;
}

.interactive-panel h3 {
    font-size: 2.1rem;
    margin-bottom: 2rem;
}

.interactive-panel h3 span {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    margin-left: 0.5rem;
}

.slider-container {
    position: relative;
    margin: 3rem 0;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid #FFF;
    box-shadow: 0 0 15px var(--accent);
    transition: transform 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    margin-top: 1.2rem;
}

.slider-labels span {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.slider-labels span.active {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
    transform: scale(1.05);
}

.dynamic-output-box {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed var(--border-glass);
}

.dynamic-output-box p {
    font-size: 1.25rem;
    color: #FFF;
    font-style: italic;
    max-width: 600px;
    line-height: 1.5;
    animation: fadeInText 0.5s ease forwards;
}

/* ==========================================================================
   10. TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
}

.testimonial-quote {
    font-size: 1.05rem;
    color: #e5e7eb;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    line-height: 1.6;
}

.testimonial-quote::before {
    content: '“';
    font-size: 4.5rem;
    position: absolute;
    top: -28px;
    left: -15px;
    color: rgba(99, 102, 241, 0.12);
    font-family: serif;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-pic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid var(--border-glass);
    font-family: var(--font-display);
}

.profile-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
}

.profile-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   11. FOUNDER BUILT-IN-PUBLIC SECTION
   ========================================================================== */
.founder-section {
    padding: 100px 0;
    position: relative;
}

.founder-card {
    max-width: 750px;
    margin: 0 auto;
    padding: 3.5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
    border-radius: 28px;
}

.founder-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary), var(--primary));
    background-size: 300% 100%;
    border-radius: 29px;
    animation: moveGradient 8s linear infinite;
}

.founder-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.founder-pic {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1f2937, #0d111c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    border: 1px solid var(--border-glass);
}

.founder-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #060608;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    white-space: nowrap;
}

.founder-details h3 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.founder-tag {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.founder-details p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.founder-socials {
    display: flex;
    gap: 1.25rem;
}

.social-icon-mock {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
    border: 1px solid var(--border-glass);
}

.social-icon-mock:hover {
    background: #FFF;
    color: #000;
    transform: translateY(-2px);
}

/* ==========================================================================
   12. CALL TO ACTION (CTA) & FOOTER
   ========================================================================== */
.cta-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.cta-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-radius: 28px;
}

.cta-bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.18) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.cta-wrapper h2 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-wrapper p {
    font-size: 1.2rem;
    max-width: 560px;
    margin: 0 auto 2.5rem auto;
    position: relative;
    z-index: 1;
}

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

.footer {
    border-top: 1px solid var(--border-glass);
    padding: 50px 0;
    background: #030304;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--text-main);
}

/* ==========================================================================
   13. ONBOARDING EVALUATION MATRIX FLOW
   ========================================================================== */
.onboarding-wrapper {
    min-height: calc(100vh - 80px);
    padding: 4rem 0;
}

.onboarding-card {
    width: 100%;
    max-width: 680px;
    padding: 3.5rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-radius: 28px;
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.4s var(--transition-smooth);
}

.step-indicator {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.onboard-step {
    display: none;
    animation: stepTransition 0.5s ease both;
}

.onboard-step.active-step {
    display: block;
}

.onboarding-card h2 {
    font-size: 2.1rem;
    margin-bottom: 0.75rem;
}

.step-desc {
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* Values Selector Grid */
.values-chips-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
}

.value-chip {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.value-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
}

.value-chip.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: #FFF;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.onboarding-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1.5rem;
}

.onboarding-controls .btn {
    flex: 1;
}

/* Onboarding Loader Screen */
.neural-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 8, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 27px;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.neural-loading-overlay.active-loader {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px dashed var(--accent);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: 2rem;
}

.calib-title {
    font-size: 1.3rem;
    color: #FFF;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.log-stream {
    width: 100%;
    max-width: 440px;
    height: 160px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.8rem;
    text-align: left;
    color: var(--accent);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.log-stream div {
    animation: fadeInText 0.3s ease both;
}

.app-header {
    height: 80px;
    border-bottom: 1px solid var(--border-glass);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-onboard::before {
    display: none;
}

/* ==========================================================================
   14. SECURE TEMPORAL DASHBOARD LAYOUT & DIALOG HUB
   ========================================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
    overflow: hidden;
}

.dash-sidebar {
    height: 100%;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(9, 11, 20, 0.7);
    z-index: 10;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.logo-emoji {
    font-size: 1.5rem;
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #FFF, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.temporal-status-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    border: 1px solid #10b981;
    border-radius: 50%;
    animation: spin 2s infinite linear;
    opacity: 0.5;
}

.status-details {
    line-height: 1.2;
}

.status-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.status-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.dash-nav-btn {
    background: none;
    border: 1px solid transparent;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}

.dash-nav-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.dash-nav-btn.active-tab {
    background: rgba(99, 102, 241, 0.1);
    color: #FFF;
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.05);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

.user-meta-summary {
    line-height: 1.3;
}

.user-meta-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFF;
}

.user-meta-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.reset-timeline-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
    width: 100%;
}

.dash-main-space {
    padding: 2.5rem;
    overflow-y: auto;
    height: 100vh;
}

.dash-subview {
    display: none;
    height: 100%;
}

.dash-subview.active-subview {
    display: block;
    animation: viewShow 0.4s ease both;
}

/* dialogue Workspace */
.workspace-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 24px;
}

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

.header-avatar-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dash-avatar {
    width: 50px;
    height: 50px;
}

.identity-badge h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.identity-badge .sub-status {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    font-weight: 600;
}

.chat-workspace {
    background: rgba(13, 17, 28, 0.35);
}

.chat-messages-container {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-messages-container .message {
    max-width: 75%;
}

.timestamp {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    text-align: right;
}

.message.future-you .timestamp {
    text-align: left;
}

.system-calibration-msg {
    align-self: center !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px dashed var(--border-glass) !important;
    border-radius: 12px !important;
    text-align: center;
    max-width: 90% !important;
    font-family: monospace;
    font-size: 0.8rem;
}

.system-calibration-msg p {
    color: var(--accent) !important;
}

.chat-input-row {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: rgba(6, 6, 8, 0.4);
}

#chat-input-box {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    resize: none;
    transition: all 0.3s;
    max-height: 120px;
}

#chat-input-box:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

#send-chat-btn {
    height: 52px;
    padding: 0 1.8rem;
    border-radius: 12px;
}

.send-icon {
    font-size: 1.1rem;
}

/* ==========================================================================
   15. MEMORY VAULT & CORE CHIP STYLES
   ========================================================================== */
.vault-workspace {
    padding: 2.5rem;
    overflow-y: auto;
}

.vault-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
    margin-top: 2rem;
    align-items: start;
}

.memory-form-card {
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.memory-form-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.memories-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.memories-feed h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.5rem;
}

.memories-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.memory-card {
    padding: 1.5rem;
    position: relative;
    border-left: 4px solid var(--primary);
    animation: viewShow 0.4s ease both;
}

.memory-card[data-category="Relationships"] { border-left-color: #ec4899; }
.memory-card[data-category="Personal Philosophy"] { border-left-color: #10b981; }
.memory-card[data-category="Crisis & Survival"] { border-left-color: #ef4444; }
.memory-card[data-category="Trivial Habit"] { border-left-color: #f59e0b; }

.memory-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mem-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mem-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-display);
    background: rgba(255, 255, 255, 0.05);
}

.mem-priority {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
}

.delete-mem-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
}

.delete-mem-btn:hover {
    color: #ef4444;
}

.memory-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.memory-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

/* ==========================================================================
   16. GOAL TELEMETRY & MULTI-AXIS slots
   ========================================================================== */
.telemetry-workspace {
    padding: 2.5rem;
    overflow-y: auto;
}

.telemetry-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
    margin-top: 2rem;
    align-items: start;
}

.goal-form-card {
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.goal-form-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.growth-meter-panel {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.growth-meter-panel h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.progress-radial-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--bg-deep) 79%, transparent 80% 100%),
                conic-gradient(var(--accent) 0%, rgba(255, 255, 255, 0.05) 0%);
    margin: 0 auto 1.5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
    border: 1px solid var(--border-glass);
    transition: all 0.5s ease;
}

.telemetry-percentage-text {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFF;
    line-height: 1;
}

.telemetry-sub-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0.2rem;
}

.velocity-critique {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.4;
    padding: 0 1rem;
}

.goals-timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.goals-timeline-container h3 {
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.5rem;
}

.goals-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-height: 580px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.timeline-slot-group {
    position: relative;
    padding-left: 2rem;
}

.timeline-slot-group::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 2px;
    height: 100%;
    background: var(--border-glass);
}

.timeline-slot-badge {
    position: absolute;
    left: -7px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 3px solid var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.timeline-slot-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.slot-goals-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.goal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    transition: all 0.3s;
}

.goal-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.goal-check-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.goal-check-label input {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border-glass);
    display: inline-block;
    position: relative;
    transition: all 0.3s;
}

.goal-check-label input:checked + .custom-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.goal-check-label input:checked + .custom-checkbox::after {
    content: '✓';
    color: #060608;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 900;
}

.goal-item.accomplished {
    opacity: 0.6;
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.02);
}

.goal-item.accomplished .goal-check-label {
    text-decoration: line-through;
    color: var(--text-muted);
}

.delete-goal-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.delete-goal-btn:hover {
    color: #ef4444;
}

.goal-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.75rem;
}

/* ==========================================================================
   17. GLOBAL ANIMATION DEFINITIONS
   ========================================================================== */
@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(40px, 30px); }
}

@keyframes pulseGlow2 {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(-30px, -20px); }
}

@keyframes floatOrb {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes blink {
    50% { opacity: 0; }
}

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

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes stepTransition {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

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

/* ==========================================================================
   18. RESPONSIVE BREAKPOINTS (MEDIA RULES)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-grid { gap: 2rem; }
    .cta-wrapper h2 { font-size: 2.6rem; }
    .dashboard-layout { grid-template-columns: 240px 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(6, 6, 8, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-glass);
        gap: 2.5rem;
    }

    .nav-menu.mobile-active {
        right: 0;
    }

    .hero { padding-top: 120px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 2.5rem auto; }
    .hero-actions { justify-content: center; }
    
    .timeline::before { left: 20px; }
    .timeline-item { flex-direction: column !important; align-items: flex-start; gap: 1rem; }
    .timeline-content { width: 100%; padding-left: 45px; padding-top: 0; }
    .timeline-dot { left: 20px; transform: translateX(-50%); }

    .founder-card { flex-direction: column; text-align: center; padding: 2.5rem 1.5rem; }
    .interactive-panel { padding: 2.5rem 1.5rem; }
    
    /* Dashboard Mobile Layout */
    .dashboard-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: 100vh;
    }
    
    .dash-sidebar {
        height: auto;
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
    
    .dash-brand, .temporal-status-card, .sidebar-footer {
        margin-bottom: 0;
        padding-top: 0;
        border-top: none;
    }
    
    .dash-brand { display: flex; }
    .temporal-status-card { display: none; }
    .sidebar-footer .user-meta-summary { display: none; }
    
    .dash-nav {
        flex-direction: row;
        width: auto;
        margin: 0;
        gap: 0.25rem;
    }
    
    .dash-nav-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .dash-nav-btn .nav-text {
        display: none;
    }
    
    .dash-main-space {
        padding: 1.5rem;
    }
    
    .vault-grid, .telemetry-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .onboarding-card {
        padding: 2rem 1.5rem;
    }
    
    .values-chips-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.3rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .section-header h2 { font-size: 1.8rem; }
    .cta-wrapper h2 { font-size: 1.8rem; }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   19. TEMPORAL LINK RECONNECTION DIALOG & SIGN OUT BUTTON
   ========================================================================== */
.reconnect-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 6, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.reconnect-modal-overlay.active-modal {
    display: flex;
    opacity: 1;
}

.reconnect-modal-card {
    width: 90%;
    max-width: 480px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.1);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reconnect-modal-overlay.active-modal .reconnect-modal-card {
    transform: scale(1);
}

.reconnect-modal-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFF, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reconnect-modal-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    line-height: 1.6;
}

.reconnect-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reconnect-actions .btn {
    width: 100%;
}

.sign-out-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-1px);
}
