body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    body.loaded {
        opacity: 1;
    }

:root {
  --color-primary: #6f37d8;
  --color-secondary: #ec4899;
  --color-text-light: #ffffff;
  --color-text-base: #d1d5db;
  --color-text-muted: #9ca3af;
  --bg-dark-1: #111827;
  --bg-dark-2: #1f2937;
  --bg-dark-3: #374151;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg-dark-1);
  color: var(--color-text-base);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 80px;
  padding-right: 80px;
}

.section-title {
  color: var(--color-text-light);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  text-align: center;
}

.section-subtitle {
  color: var(--color-text-base);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  text-align: center;
  margin-top: 22px;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5 0%, #ec4899 100%);
  margin: 28px auto 0;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 32px;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
    background-color: var(--bg-dark-3);
    border: 1px solid var(--bg-dark-3);
    color: var(--color-text-light);
}

    .btn-secondary:hover {
        background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    }

@media (max-width: 1024px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section-title {
    font-size: 30px;
  }
  .section-subtitle {
    font-size: 18px;
  }
}

.site-header__logo {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

    .site-header__logo img {
        height: 24px;
        width: auto;
    }

.login-link {
    color: var(--color-text-base);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-decoration: none;
}

    .login-link:hover {
        color: var(--color-primary);
        text-shadow: 0 0 12px rgba(111, 55, 216, 0.8);
    }

/* CSS for section section:header */
.site-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: var(--bg-dark-1);
    z-index: 100;
    border-bottom: 1px solid #374151;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--color-primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--color-text-base);
    font-size: 16px;
    transition: color 0.3s ease;
}

    .main-nav a:hover {
        color: var(--color-text-light);
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.login-link {
    color: var(--color-text-base);
    font-size: 16px;
    transition: color 0.3s ease;
}

    .login-link:hover {
        color: var(--color-text-light);
    }

.get-started-btn {
    padding: 8px 24px;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CSS for section section:hero */
.hero-section {
    padding: 96px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 64px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    color: var(--color-text-light);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

    .hero-title .highlight {
        color: var(--color-primary);
    }

.hero-description {
    font-size: 20px;
    line-height: 1.4;
    margin-top: 24px;
    max-width: 500px;
}

.hero-buttons {
    margin-top: 48px;
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    flex: 1;
    max-width: 560px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0px 20px 25px 0px rgba(0, 0, 0, 0.1), 0px 8px 10px 0px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* CSS for section section:approach */
.approach-section {
    background-color: var(--bg-dark-2);
    padding: 96px 0;
}

.section-header {
    margin-bottom: 64px;
}

.approach-content-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

.approach-image-wrapper {
    flex: 1;
    max-width: 536px;
}

.approach-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.1), 0px 4px 6px 0px rgba(0, 0, 0, 0.1);
}

.approach-features {
    flex: 1;
}

.approach-features-title {
    color: var(--color-text-light);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
}

.approach-features ul {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

    .feature-icon-wrapper.style-1 {
        background-color: rgba(79, 70, 229, 0.2);
    }

    .feature-icon-wrapper.style-2 {
        background-color: rgba(111, 55, 216, 0.2);
    }

    .feature-icon-wrapper.style-3 {
        background-color: rgba(236, 72, 153, 0.2);
    }

.feature-icon {
    width: 20px;
    height: 20px;
}

.feature-text h4 {
    color: var(--color-text-light);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .approach-content-wrapper {
        flex-direction: column;
    }
}

/* CSS for section section:how-it-works */
.how-it-works-section {
    padding: 96px 0;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.how-it-works-card {
    background-color: var(--bg-dark-3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.1), 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}

.card-header-bar {
    height: 10px;
}

    .card-header-bar.style-1 {
        background: linear-gradient(90deg, #4f46e5 0%, #818cf8 100%);
    }

    .card-header-bar.style-2 {
        background: linear-gradient(90deg, #6f37d8 0%, #c084fc 100%);
    }

    .card-header-bar.style-3 {
        background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%);
    }

.card-content {
    padding: 24px;
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

    .card-icon-wrapper.style-1 {
        background-color: rgba(79, 70, 229, 0.2);
    }

    .card-icon-wrapper.style-2 {
        background-color: rgba(111, 55, 216, 0.2);
    }

    .card-icon-wrapper.style-3 {
        background-color: rgba(236, 72, 153, 0.2);
    }

.card-icon {
    width: 24px;
    height: 24px;
}

.card-content h3 {
    color: var(--color-text-light);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.card-content p {
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
}

/* CSS for section section:about-ai */
.about-ai-section {
    padding-bottom: 96px;
}

.about-ai-card {
    background-color: var(--bg-dark-3);
    border-radius: 12px;
    padding: 48px;
    display: flex;
    gap: 48px;
    align-items: center;
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.1), 0px 4px 6px 0px rgba(0, 0, 0, 0.1);
}

.about-ai-image-wrapper {
    flex-shrink: 0;
}

.about-ai-image {
    width: 250px;
    height: 250px;
    border-radius: 12px;
}

.about-ai-content h3 {
    color: var(--color-text-light);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-ai-content p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.tech-approach-box {
    background-color: var(--bg-dark-2);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

    .tech-approach-box h4 {
        color: var(--color-text-light);
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 16px;
    }

.tech-approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

    .tech-item img {
        width: 14px;
        height: 16px;
    }

@media (max-width: 900px) {
    .about-ai-card {
        flex-direction: column;
        padding: 24px;
    }

    .tech-approach-grid {
        grid-template-columns: 1fr;
    }
}

/* CSS for section section:core-principles */
.core-principles-section {
    background-color: var(--bg-dark-2);
    padding: 96px 0;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.principle-card {
    background-color: var(--bg-dark-3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.1), 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}

    .principle-card .card-header-bar.p-style-1 {
        background-color: #3b82f6;
    }

    .principle-card .card-header-bar.p-style-2 {
        background-color: #22c55e;
    }

    .principle-card .card-header-bar.p-style-3 {
        background-color: #eab308;
    }

    .principle-card .card-header-bar.p-style-4 {
        background-color: #a855f7;
    }

    .principle-card .card-header-bar.p-style-5 {
        background-color: #ef4444;
    }

    .principle-card .card-icon-wrapper.p-style-1 {
        background-color: rgba(59, 130, 246, 0.2);
    }

    .principle-card .card-icon-wrapper.p-style-2 {
        background-color: rgba(34, 197, 94, 0.2);
    }

    .principle-card .card-icon-wrapper.p-style-3 {
        background-color: rgba(234, 179, 8, 0.2);
    }

    .principle-card .card-icon-wrapper.p-style-4 {
        background-color: rgba(168, 85, 247, 0.2);
    }

    .principle-card .card-icon-wrapper.p-style-5 {
        background-color: rgba(239, 68, 68, 0.2);
    }

    .principle-card .card-icon-wrapper.p-style-6 {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .principle-card .card-content {
        padding: 24px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

        .principle-card .card-content p {
            flex-grow: 1;
        }

    .principle-card .btn {
        margin-top: 24px;
        padding: 8px 16px;
        align-self: flex-start;
    }

.special-card {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.3) 0%, rgba(111, 55, 216, 0.3) 100%);
    border: 1px solid rgba(79, 70, 229, 0.3);
}

@media (max-width: 1024px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

/* CSS for section section:therapists */
.therapists-section {
    background-color: var(--bg-dark-2);
    padding: 96px 0;
}

.therapists-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.therapists-content {
    flex: 1;
}

.therapists-title {
    color: var(--color-text-light);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.therapists-description {
    font-size: 20px;
    line-height: 1.4;
    margin-top: 24px;
    max-width: 480px;
}

.therapists-features {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.therapists-content .btn {
    margin-top: 48px;
}

.therapists-image-wrapper {
    flex: 1;
    max-width: 560px;
}

.therapists-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0px 20px 25px 0px rgba(0, 0, 0, 0.1), 0px 8px 10px 0px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .therapists-container {
        flex-direction: column-reverse;
    }

    .therapists-title, .therapists-description {
        text-align: center;
    }
}

/* CSS for section section:about-us */
.about-us-section {
    padding: 96px 0;
}

.about-us-content {
    background-color: var(--bg-dark-3);
    border-radius: 12px;
    padding: 48px;
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.1), 0px 4px 6px 0px rgba(0, 0, 0, 0.1);
}

    .about-us-content p {
        font-size: 18px;
        line-height: 1.55;
        text-align: left;
        max-width: 1020px;
        margin: 0 auto;
    }

.about-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.about-us-card {
    background-color: var(--bg-dark-3);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.1), 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}

    .about-us-card .card-icon-wrapper {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 16px;
    }

        .about-us-card .card-icon-wrapper.style-1 {
            background-color: rgba(79, 70, 229, 0.2);
        }

        .about-us-card .card-icon-wrapper.style-2 {
            background-color: rgba(111, 55, 216, 0.2);
        }

        .about-us-card .card-icon-wrapper.style-3 {
            background-color: rgba(236, 72, 153, 0.2);
        }

    .about-us-card h3 {
        color: var(--color-text-light);
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .about-us-card p {
        color: var(--color-text-muted);
        font-size: 16px;
    }

@media (max-width: 900px) {
    .about-us-grid {
        grid-template-columns: 1fr;
    }

    .about-us-content {
        padding: 24px;
    }
}

/* CSS for section section:cta */
.cta-section {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.1) 0%, rgba(111, 55, 216, 0.1) 100%);
    padding: 80px 0;
}

.cta-container {
    text-align: center;
}

    .cta-container .section-subtitle {
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }

.cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

    .cta-buttons .btn {
        font-size: 18px;
        padding: 16px 40px;
    }

/* CSS for section section:footer */
.site-footer {
    background-color: var(--bg-dark-2);
    padding-top: 80px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-about .logo {
    display: inline-block;
    margin-bottom: 24px;
}

.footer-about p {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.5;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

    .social-links img {
        height: 16px;
    }

.footer-links h4, .footer-contact h4 {
    color: var(--color-text-light);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a, .footer-contact p {
    color: var(--color-text-muted);
    font-size: 16px;
    transition: color 0.3s ease;
}

    .footer-links a:hover {
        color: var(--color-text-light);
    }

.footer-contact p {
    margin-bottom: 16px;
}

.footer-contact .btn {
    padding: 8px 24px;
}

.footer-bottom {
    color: var(--color-text-muted);
    padding-left: 0.5rem;
    padding-top: 1rem;
    border-left: 6px solid var(--color-border);
}

    .footer-bottom p {
        font-size: 14px;
        color: var(--color-text-tertiary);
    }

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about p {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact .btn {
        display: inline-block;
    }
}

.status-bar {
    background-color: var(--bg-dark-1);
    border-bottom: 1px solid var(--bg-dark-3);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text-base);
}

.user-info {
    width: 100%;
    display: flex;
    align-items: center;
}

.left-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.right-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.toolbar-button {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--bg-dark-3);
    background-color: var(--bg-dark-2);
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: 2.5rem;
    box-sizing: border-box;
}

    .toolbar-button:hover {
        background-color: var(--bg-dark-3);
        box-shadow: 0 0 8px rgba(111, 55, 216, 0.3);
    }

/* Auth button gets primary color styling */
#authButton {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

    #authButton:hover {
        background-color: rgba(111, 55, 216, 0.8);
        box-shadow: 0 0 12px rgba(111, 55, 216, 0.6);
    }

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-dark-2);
    min-width: 220px;
    width: max-content;
    border: 1px solid var(--bg-dark-3);
    border-radius: 0.375rem;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

    .dropdown-menu a {
        display: block;
        padding: 0.75rem 1rem;
        color: var(--color-text-base);
        white-space: nowrap;
        border-bottom: 1px solid var(--bg-dark-3);
        transition: all 0.3s ease;
    }

        .dropdown-menu a:last-child {
            border-bottom: none;
        }

        .dropdown-menu a:hover {
            background-color: var(--bg-dark-3);
        }

.dropdown-item-with-icon {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.dropdown-menu img {
    flex-shrink: 0;
}

/* Welcome message area */
.label-frame {
    background-color: var(--bg-dark-2);
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--bg-dark-3);
}

.user-name {
    color: var(--color-text-light);
    font-size: 16px;
    font-weight: 500;
}

/* Avatar */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 0.75rem;
    border: 2px solid var(--bg-dark-3);
}

@media (max-width: 900px) {
    #logoToolbar,
    .avatar,
    .right-info {
        display: none !important;
    }

    .toolbar-button {
        flex-shrink: 0; /* Prevent buttons from shrinking */
    }
}

.footer-bottom {
    color: var(--color-text-muted);
    padding-left: 1rem;
    padding-top: 1rem;
}

    .footer-bottom p {
        font-size: 14px;
        color: var(--color-text-muted);
    }
