:root {
    /* Brand Palette - Soft & Wellness Oriented */
    --col-rose: #F7DDE2;
    --col-lavender: #CEC2FF;
    --col-mint: #D6F3EB;
    --col-peach: #F7C8A8;
    --col-amber: #F5D27A;

    /* Light Theme Palette */
    --bg-deep: #FAFAFC;
    /* Soft off-white/cream for wellness feel */
    --bg-element: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.95);

    --text-main: #2D2D35;
    /* Deep Charcoal for readability */
    --text-muted: #6E6E78;
    /* Soft Grey */
    --text-accent: #6366F1;
    /* Indigo for primary actions */

    --border-light: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.12);

    /* Gradients */
    --grad-main: linear-gradient(135deg, #9C92F0 0%, #F4A4B4 100%);
    /* Adjusted for visibility on white */
    --grad-text: linear-gradient(90deg, #6366F1, #E11D48);
    --grad-soft-bg: linear-gradient(180deg, #FAFAFC 0%, #F5F3FF 100%);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 6rem;
    --space-xl: 8rem;

    /* Typography */
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-padding {
    padding: var(--space-lg) 0;
}

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

.flex {
    display: flex;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-md {
    gap: var(--space-md);
}

.grid {
    display: grid;
    width: 100%;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-transform: capitalize;
}

.btn-primary {
    background: var(--text-main);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--grad-main);
    box-shadow: 0 8px 25px rgba(156, 146, 240, 0.4);
    transform: translateY(-2px);
    border: none;
}

.btn-secondary {
    background: white;
    border-color: var(--border-light);
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background: #F8F8FF;
    border-color: var(--text-muted);
}

/* Background Animation - Mental Wellness Orbs */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: white;
    /* Base */
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Deep blur for "aura" effect */
    opacity: 0.6;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

/* Different sizes and colors will be set via JS or specific classes, 
   but we can set some defaults here if needed */

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    /* Light frosted glass */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 1.2rem 0;
}

.nav-logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

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

/* Hero */
.hero-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.hero-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.gradient-text {
    background: var(--grad-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Cards & Methodology */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-hover);
}

.icon-glow {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    /* Removed drop-shadow for cleaner look in light mode, or use soft one */
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Persona Metrics UI */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: #FFF0F5;
    /* Very light pink */
    color: #D63384;
    /* Darker pink for text */
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.persona-ui {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    padding: 3rem;
    width: 100%;
    max-width: 700px;
    margin-top: 3rem;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.meter-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.meter-bar {
    height: 8px;
    background: #E9ECEF;
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: 4px;
}

.persona-teaser .pulse-circle {
    width: 50px;
    height: 50px;
    background: var(--grad-main);
    border-radius: 50%;
    margin: 2rem auto 1rem;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(156, 146, 240, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(156, 146, 240, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(156, 146, 240, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(156, 146, 240, 0);
    }
}

/* Chat UI */
.chat-demo {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.chat-header {
    padding: 1rem;
    background: #F8F8FF;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.chat-status {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
}

.chat-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #FFFFFF;
}

.msg {
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 85%;
}

.msg.bot {
    background: #F3F4F6;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: var(--text-main);
}

.msg.user {
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    text-align: right;
    color: var(--text-main);
}

.typing-indicator span {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--text-muted);
    border-radius: 50%;
    margin-right: 3px;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Chat Input Area */
.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    background: white;
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.chat-input:focus {
    border-color: #6366F1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chat-send {
    background: var(--grad-text);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-send:hover {
    transform: scale(1.05);
}

/* Animations */
.float-boat {
    animation: floatBoat 6s ease-in-out infinite;
}

@keyframes floatBoat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Expert Cards */
.expert-card {
    text-align: left;
    background: white;
}

.expert-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.link-arrow {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-accent);
    font-weight: 600;
}

.link-arrow:hover {
    transform: translateX(5px);
}

/* Testimonials - Enhanced */
.testimonial-card {
    background: white;
    border: none;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    /* Softer, deeper shadow */
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
    /* Indigo glow on hover */
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-family: serif;
    font-size: 5rem;
    color: #E0E7FF;
    line-height: 1;
    z-index: 0;
}

.quote {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--grad-main);
    border-radius: 50%;
    flex-shrink: 0;
}

.author {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Grahi Persona Matrix (Reference Styling) */
.matrix-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.matrix-label {
    color: #10B981;
    /* Proprietary Engine Green/Teal */
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.matrix-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.matrix-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.matrix-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.matrix-list li::before {
    content: '•';
    color: var(--col-amber);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1rem;
    top: 2px;
}

/* Analysis Card */
.analysis-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.1);
}

.analysis-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.metric-item {
    margin-bottom: 1.5rem;
}

.metric-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.metric-progress {
    height: 8px;
    background: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.metric-fill {
    height: 100%;
    border-radius: 4px;
}

.fill-resilience {
    width: 84%;
    background: linear-gradient(90deg, #6EE7B7, #3B82F6);
}

.fill-cosmic {
    width: 62%;
    background: linear-gradient(90deg, #C084FC, #EC4899);
}

.fill-clarity {
    width: 91%;
    background: linear-gradient(90deg, #FCD34D, #F97316);
}

.analysis-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Enhanced Persona Teaser */
.persona-reveal-teaser {
    margin-top: 4rem;
    /* Removed top border line per request */
    border: 1px solid rgba(247, 221, 226, 0.5);
    /* Rose border */
    background: linear-gradient(180deg, white 0%, #FFF5F7 100%);
    /* Subtle rose fade */
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 20px 60px -20px rgba(244, 164, 180, 0.3);
    /* Rose glow */
    position: relative;
    overflow: hidden;
}

.persona-reveal-teaser h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Background Animation - Morphing Amoebas */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: #FCFCFD;
    /* Pure, clean base */
    overflow: hidden;
}

.amoeba {
    position: absolute;
    /* Default border-radius */
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.02);
    opacity: 0.6;
    /* Animation will be set by specific classes */
}

/* Variation 1: The "Balancer" */
.amoeba-1 {
    animation: morph1 20s ease-in-out infinite alternate, floatAmoeba 45s infinite linear;
}

@keyframes morph1 {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Variation 2: The "Stretcher" */
.amoeba-2 {
    animation: morph2 25s ease-in-out infinite alternate-reverse, floatAmoeba 40s infinite linear reverse;
}

@keyframes morph2 {
    0% {
        border-radius: 20% 80% 20% 80% / 20% 80% 20% 80%;
    }

    50% {
        border-radius: 80% 20% 80% 20% / 80% 20% 80% 20%;
    }

    100% {
        border-radius: 40% 60% 40% 60% / 40% 60% 40% 60%;
    }
}

/* Variation 3: The "Blob" */
.amoeba-3 {
    animation: morph3 18s ease-in-out infinite alternate, floatAmoeba 35s infinite linear;
}

@keyframes morph3 {
    0% {
        border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    }

    50% {
        border-radius: 30% 70% 70% 30% / 40% 60% 40% 60%;
    }

    100% {
        border-radius: 50% 50% 20% 80% / 25% 75% 25% 75%;
    }
}

@keyframes floatAmoeba {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(40px, -40px) rotate(10deg);
    }

    66% {
        transform: translate(-30px, 30px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Animation Utils */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Links Styling */
.footer-links {
    display: flex;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    font-family: var(--font-head);
    /* Requested font change */
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

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

.footer-links a:not(:last-child)::after {
    content: '•';
    margin: 0 0.8rem;
    color: var(--col-lavender);
    /* Subtle color */
    font-size: 1.2rem;
    line-height: 0;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {

    /* Layout & Spacing */
    .section-padding {
        padding: 6rem 1.5rem;
    }

    .container {
        width: 100%;
        padding: 0 1rem;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Typography */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-desc {
        font-size: 1rem;
        max-width: 100%;
    }

    /* Matrix Section */
    .matrix-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .matrix-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .matrix-text h2 {
        font-size: 2rem;
    }

    .matrix-text p {
        font-size: 1rem;
        max-width: 100%;
    }

    .matrix-list {
        text-align: left;
        display: inline-block;
    }

    /* Keep list left-aligned but centered block */

    /* Analysis Card */
    .analysis-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .analysis-header {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    /* Chat & Experts */
    .chat-demo {
        margin: 2rem 0;
    }

    .expert-card {
        padding: 1.5rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .testimonial-card::before {
        font-size: 4rem;
        top: 0rem;
        left: 1rem;
    }

    /* Mobile Menu - Light Theme */
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-light);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .desktop-only {
        display: block;
    }

    /* Buttons */
    .hero-btns,
    .cta-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0;
    }

    /* Hamburger - Light Theme */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-toggle span {
        display: block;
        width: 30px;
        height: 2px;
        background: var(--text-main);
        transition: 0.3s;
    }

    .mobile-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .mobile-toggle {
        display: none;
    }
}

/* Language Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.checkbox {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkbox-label {
    background-color: #f7f7f7;
    width: 66px;
    height: 32px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-light);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.checkbox-label .toggle-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 8px;
    z-index: 1;
    transition: color 0.2s;
}

.checkbox-label .ball {
    background-color: #fff;
    width: 26px;
    height: 26px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.checkbox:checked+.checkbox-label .ball {
    transform: translateX(34px);
}

/* Active Text Colors */
.checkbox:not(:checked)+.checkbox-label .toggle-text.en {
    color: var(--text-main);
}

.checkbox:checked+.checkbox-label .toggle-text.hi {
    color: var(--text-main);
}