/* Fonts */
@font-face {
    font-family: 'Kurious';
    src: url('./assets/fonts/Kurious-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Kurious';
    src: url('./assets/fonts/Kurious-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary-color: #173481;
    --secondary-color: #36EBA9;
    --secondary-blue: #3760FA;
    --text-lightblue: #B4C9FF;
    --text-placeholder: #606E91;
    --surface-lightblue: #D3DFFF;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-base: #333333;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-nav: 1.125rem;
    /* 18px */
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    --max-width: 900px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-full: 100px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kurious', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: var(--spacing-md) var(--spacing-xl);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

}

.navbar.scrolled {
    box-shadow: 0 8px 32px rgba(23, 52, 129, 0.12);
    padding: var(--spacing-sm) var(--spacing-xl);
}

.navbar-container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    height: 52px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0 2px 8px rgba(23, 52, 129, 0.1));
}

.navbar-logo:hover {
    transform: scale(1.05) translateY(-1px);
    filter: drop-shadow(0 4px 16px rgba(23, 52, 129, 0.15));
}

.navbar.scrolled .navbar-logo {
    height: 44px;
}

.navbar-menu {
    display: none;
    /* Hidden by default on mobile */
    align-items: center;
    gap: var(--spacing-nav);
    list-style: none;
}

/* Show menu on desktop */
@media (min-width: 992px) {
    .navbar-menu {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .mobile-nav-right {
        display: none !important;
    }
}

.navbar-item {
    position: relative;
    list-style-type: none;

}

.navbar-link {
    text-decoration: none;
    color: var(--text-base);
    font-weight: 600;
    font-size: 1rem;
    padding: var(--spacing-sm) var(--spacing-sm);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.navbar-link:hover {
    color: var(--secondary-blue);
    transform: translateY(-2px);
}

/* Active state for navigation links */
.navbar-link.active {
    color: var(--secondary-blue);
    font-weight: 600;
    position: relative;
}

.navbar-link.btn-submit {
    color: var(--white);
}

.navbar-link.btn-primary:hover {
    background: linear-gradient(135deg, #0f2557 0%, var(--primary-color) 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(23, 52, 129, 0.35);
}

.navbar-link.btn-primary::before {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    /* Show on mobile by default */
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background-color: #B4C9FF;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--secondary-blue);
    margin: 2.5px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 3px;
    transform-origin: center center;
    display: block;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

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

/* Mobile Navigation Menu */
.mobile-nav-menu {
    height: 100%;
    background: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding-top: 100px;
    /* Space for navbar */
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(23, 52, 129, 0.12);

    /* Animation properties */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.mobile-nav-item {
    margin-bottom: var(--spacing-sm);
}


.mobile-nav-link {
    display: block;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
    font-size: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link:hover {
    color: var(--secondary-color);
}

.mobile-nav-link.active {
    color: var(--secondary-color);
}

.mobile-nav-link.btn-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-radius: var(--border-radius-full);
    padding: var(--spacing-md) var(--spacing-xl);
    text-align: center;
    margin-top: var(--spacing-sm);
    border: none;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-nav-link.btn-cta:hover {
    background: linear-gradient(135deg, #0f2557 0%, #2950E8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23, 52, 129, 0.3);
    padding-left: var(--spacing-xl);
}

/* Mobile menu item animation */
.mobile-nav-menu.active .mobile-nav-item {
    animation: slideInLeft 0.4s ease-out forwards;
}

.mobile-nav-menu.active .mobile-nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-menu.active .mobile-nav-item:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-nav-menu.active .mobile-nav-item:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-nav-menu.active .mobile-nav-item:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-nav-menu.active .mobile-nav-item:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(23, 52, 129, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hide mobile menu on desktop */
@media (min-width: 992px) {

    .mobile-nav-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Header (for privacy page compatibility) */
.header {
    background-color: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 40px;
    width: auto;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-xxl) var(--spacing-lg);
}

/* Landing Page Sections */
.landing-section {
    width: 100%;
    margin: 0;
    padding: 6.313rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.landing-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.landing-section[id="about"] {
    background-color: var(--white);
    opacity: 1;
    transform: translateY(0);
}

.about-section {
    display: flex;
    gap: 48px;
    justify-content: space-between;
    text-align: left;
    max-width: none;
    width: 100%;
}


.left-content {
    padding-left: var(--spacing-xxl);
    max-width: 992px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fyi-section {
    margin-top: var(--spacing-lg);
    text-align: left;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
}

.about-us-image-one {
    width: 100%;
    max-width: 883px;
    max-height: 678px;
    object-fit: contain;
}

.heading-section {
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.heading-section h1:first-child {
    font-size: 3.75rem;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
    display: inline-block;
}

.heading-section h1:nth-child(3) {
    font-size: 3.75rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
    display: inline-block;
}

.heading-section .logo-2 {
    height: 87px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}

.heading-section p:nth-child(4) {
    font-size: 1.75rem;
    color: var(--secondary-blue);
    font-weight: 600;
}

.heading-section p:nth-child(5) {
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 500;
}

.download-section {
    display: flex;
    column-gap: var(--spacing-sm);
}

.download-section img {
    cursor: pointer;
}

.download-section p {
    padding-left: 0.625rem;
    font-weight: 500;
    font-size: 13px;
}

.app-section {
    margin: var(--spacing-xl) 0;
}

.features-section {
    width: 100%;
    background-color: var(--primary-color);
}

.features-container {
    display: flex;
    padding-bottom: var(--spacing-xl);
}

.feature-item {
    margin-top: calc(var(--spacing-xxl) * -1);
    text-align: center;
    flex: 1;
}

.feature-icon {
    width: 152px;
    height: 170px;
    margin-bottom: var(--spacing-md);
}

.call-limit {
    color: var(--secondary-color);
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.rudy-logo-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
}

.rudy-text {
    font-size: 2rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.section-content-landing {
    text-align: center;
    width: 100%;
}

.landing-section[id="how-to-use"] .section-content-landing {
    background-color: var(--primary-color);
    padding: var(--spacing-xxl) 0;
}

section-content-landing .section-content-landing-tech {
    margin-top: var(--spacing-xxl);
    text-align: center;
    width: 100%;
    background-color: var(--white);
}

.section-title-landing {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.landing-section.animate-in .section-title-landing {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.form-group {
    margin-bottom: var(--spacing-lg);
    color: var(--text-base);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    border-radius: var(--border-radius-full);
    height: 42px;
    text-align: center;
}

.form-group .checkbox-label {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-label.optional::after {
    content: " (ไม่บังคับ)";
    color: var(--text-light);
    font-weight: 400;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-submit {
    max-width: 200px;
    width: 100%;
    border-radius: 61.88px;
    padding: var(--spacing-sm) var(--spacing-xl);
    border: none;
    background-color: var(--secondary-blue);
    color: var(--white);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #2950E8;
}

.btn-cta {
    max-width: 187px;
    width: 100%;
    border-radius: 61.88px;
    padding: 11px 20px;
    border: none;
    background-color: var(--secondary-blue);
    color: var(--white);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta:hover {
    background-color: var(--secondary-blue);
}


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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--bg-light);
}

.intro {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

/* Sections */
.section {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-sm);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-content {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.section-content p {
    margin-bottom: var(--spacing-md);
}

.section-content ul,
.section-content ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.section-content li {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-xs);
}

.section-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Highlight Box */
.highlight-box {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    margin: var(--spacing-lg) 0;
}

/* Footer */
.footer {
    background-color: var(--bg-light);
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    margin-bottom: var(--spacing-md);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.footer-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* FAQ Accordion Styles */
.faq-accordion {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.faq-item {
    background-color: transparent;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid rgba(23, 52, 129, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg) 0;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-base);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
    /* filter: invert(20%) sepia(76%) saturate(2048%) hue-rotate(218deg) brightness(95%) contrast(95%); */
}

.faq-question[aria-expanded="false"] .faq-icon {
    transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-answer.active {
    max-height: 500px;
}

.faq-content {
    padding: 0 0 var(--spacing-lg);
    color: var(--text-dark);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.2s;
    text-align: left;
}

.faq-answer.active .faq-content {
    opacity: 1;
    transform: translateY(0);
}

.faq-content p {
    margin-bottom: var(--spacing-sm);
}

.faq-content p:last-child {
    margin-bottom: 0;
}

/* Beta Section Specific Styles */
.beta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2557 100%);
    color: var(--white);
    min-height: 100vh;
    padding: calc(var(--spacing-xxl) * 2) var(--spacing-lg);
}

.beta-section .section-title-landing {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.beta-description {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.beta-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-lightblue);
}

.beta-description strong {
    font-weight: 600;
}

.beta-form {
    max-width: 500px;
    margin: 0 auto var(--spacing-sm);
}

.checkbox-group {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.radio-input {
    margin-right: var(--spacing-sm);
    width: 24px;
    height: 24px;
}

.captcha-group {
    margin: var(--spacing-md) 0;
}

.captcha-placeholder {
    background-color: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.captcha-checkbox {
    width: 24px;
    height: 24px;
    margin-right: var(--spacing-sm);
}

.captcha-label {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.captcha-logo {
    font-size: 0.8rem;
    color: #999;
    font-weight: 600;
}


.beta-footer {
    max-width: 928px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.privacy-text {
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-md);
    font-size: 16px;
    font-weight: 300;
    line-height: 29px;
}

.support-link,
.privacy-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.support-link:hover,
.privacy-link:hover {
    text-decoration: underline;
}

.beta-logo-section {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.beta-first {
    display: flex;
    align-items: center;
    gap: 20px;
}

.beta-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.beta-tagline {
    text-align: left;
}

.beta-tagline>p:first-child {
    color: var(--secondary-color);
}

.app-store-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.store-button {
    height: 40px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.store-button:hover {
    transform: scale(1.05);
}

/* Preview Sections */
.preview-section {
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.preview-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.preview-section-left .preview-content {
    flex-direction: row;
}

.preview-section-right .preview-content {
    flex-direction: row-reverse;
}

.preview-image {
    flex: 1;
}

.preview-image-one,
.preview-image-two {
    width: 100%;
    max-width: 500px;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
}

.preview-text {
    flex: 1;
}

.preview-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
    text-align: left;
}

.preview-description {
    font-size: 1.357rem;
    color: var(--text-base);
    margin-bottom: var(--spacing-xs);
    text-align: left;
}

.preview-meta {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-placeholder);
    text-align: left;
}

.security-privacy-section {
    margin-bottom: var(--spacing-xxl);
}

.security-privacy-section h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 32px;
    text-align: center;
}

.security-privacy-section p {
    color: var(--text-base);
    font-weight: 500;
    font-size: 22px;
    text-align: center;
}

.demo-section {
    margin-bottom: var(--spacing-xl);
}

.demo-section h1 {
    font-weight: 700;
    font-size: 40px;
    color: var(--secondary-blue);
}

.demo-section p {
    color: var(--text-base);
    font-weight: 500;
    font-size: 22px;
    text-align: center;
}

.tech-section {
    margin-top: var(--spacing-xl);
}

.tech-section h1 {
    font-weight: 600;
    font-size: 40px;
    color: var(--primary-color);
    text-align: center;
}

.tech-section p {
    color: var(--text-base);
    font-weight: 500;
    font-size: 24px;
    text-align: center;
}


.demo-audio {
    margin-top: 40px;
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.demo-item {
    background-color: var(--secondary-blue);
    padding: 0.75rem var(--spacing-xl);
    align-items: center;
    border-radius: var(--spacing-sm);
}

.demo-item h4 {
    font-weight: 600;
    font-size: 28px;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.demo-image {
    width: 183px;
    height: 183px;
}

/* How to Use Carousel Styles */
.how-to-use-section {
    display: block;
    color: var(--white);
    padding: 60px 0;
}

.how-to-use-section .section-title-landing {
    color: var(--white);
}

.how-to-use-section .section-subtitle {
    color: var(--text-lightblue);
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto 0;
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.step-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
    min-height: 500px;
    flex-direction: column;
    /* สำหรับ desktop ให้เป็น column เพื่อให้ step-title อยู่บนสุด */
}

.step-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-lightblue);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    /* ให้อยู่ซ้ายใน desktop */
}

.step-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
    width: 100%;
}

.step-left {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-lightblue);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-blue);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.step-title {
    font-weight: 600;
    font-size: 42px;
    color: var(--white);
    margin-bottom: var(--spacing-xxl);
}

.step-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

.step-content p {
    font-weight: 500;
    font-size: 18px;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

.step-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.store-btn {
    height: 50px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.store-btn:hover {
    transform: scale(1.05);
}

.step-image {
    max-width: 100%;
    max-height: 583px;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xxl);
}

.carousel-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.carousel-btn:hover {
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn img {
    width: 32px;
    height: 32px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.dot {
    width: 5.33px;
    height: 5.33px;
    border-radius: 50%;
    border: none;
    background: #808080;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-blue);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 50%;
}

.dot.active {
    background: var(--secondary-blue);
    transform: scale(2.15);
}

.dot.active::before {
    left: 0;
}

.dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Tech Preview Styles */
.tech-preview {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-xl);
    justify-content: space-between;
    align-items: flex-start;
    margin-top: var(--spacing-xxl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tech-item {
    flex: 1;
    padding: var(--spacing-lg);
}

.tech-icon {
    margin: 0 0 var(--spacing-md) 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.tech-icon-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.tech-item h3 {
    text-align: left;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.tech-item p {
    font-weight: 500;
    text-align: left;
    font-size: 18px;
    color: #505050;
    line-height: 1.6;
}

.download-stores {
    display: flex;
    gap: var(--spacing-sm);
}

.download-stores img:first-child {
    width: 120px;
}

.download-stores img:nth-child(2) {
    width: 135px;
}

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

    .mobile-nav-right {
        display: flex;
        gap: var(--spacing-xs);
        align-items: center;

    }

    .mobile-nav-right .btn-cta {
        height: 44px;
    }

    .navbar {
        padding: var(--spacing-sm);
    }

    .navbar.scrolled {
        padding: var(--spacing-sm);
    }

    .download-section-meta {
        display: flex;
        gap: var(--spacing-sm);
        justify-content: center;
    }

    .landing-section[id="about"] {
        padding-bottom: 0;
    }

    .landing-section[id="features"] {
        padding: 0;
    }

    .download-section {
        display: flex;
        flex-direction: column;
        gap: 26px;
    }

    .download-section p {
        padding: 0;
    }

    .download-stores {
        display: flex;
        gap: var(--spacing-sm);
        flex-direction: row;
    }

    .feature-item h3 {
        margin-bottom: var(--spacing-sm);
    }

    .feature-item .feature-icon {
        max-width: 88px;
        max-height: 100px;
        width: 100%;
        height: 100%;
    }

    .beta-first img {
        max-width: 128px;
        width: 100%;
    }

    .landing-section[id="join-beta"] {
        padding: var(--spacing-sm);
    }

    .feature-item {
        margin-top: 0;
    }

    .features-container {
        padding: var(--spacing-xl);
        flex-direction: column;
    }

    .preview-section-left .preview-content {
        flex-direction: column;
        padding: var(--spacing-sm);
    }

    .preview-section-right .preview-content {
        flex-direction: column;
        padding: var(--spacing-sm);
    }


    .landing-section[id="faq"] .section-content-landing {
        padding: var(--spacing-sm);
    }

    .beta-first {
        margin: auto;
    }

    .beta-logo-section {
        flex-direction: column;
        justify-items: center;
        gap: 20px
    }

    .beta-logo-section .download-section {
        margin: auto;
    }

    .step-image {
        width: 100%;
        max-width: 250px;
        height: auto;
        object-fit: contain;
        margin-bottom: var(--spacing-sm);
    }

    .step-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: var(--spacing-sm);
        gap: var(--spacing-md);
    }

    .step-title {
        font-size: 2rem;
        font-weight: 600;
        color: var(--white);
        margin-bottom: var(--spacing-sm);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        order: 1;
        align-self: center;
    }

    .step-main {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
        order: 2;
    }

    .step-left {
        flex: none;
        display: flex;
        flex-direction: column;
        max-width: none;
        text-align: left;
        order: 2;
    }

    .step-right {
        flex: none;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 1;
    }

    .step-number {
        font-size: 2rem;
        margin-bottom: var(--spacing-xs);
        text-align: left;
    }

    .step-content h2 {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-xs);
    }

    .step-content p {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
    }

    .step-buttons {
        margin-top: var(--spacing-sm);
    }

    .store-btn {
        height: 30px;
        width: auto;
    }

    .carousel-controls {
        gap: var(--spacing-md);
        justify-content: center;
        margin-top: var(--spacing-lg);
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
    }

    .carousel-btn img {
        width: 18px;
        height: 18px;
    }

    .carousel-dots {
        gap: var(--spacing-xs);
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        transform: scale(1.5);
    }

    .tech-preview {
        display: flex;
        flex-direction: column;
    }

    .tech-section h1 {
        font-size: 2rem;
    }

    .tech-section p {
        font-size: 1.1rem;
    }

    .tech-icon {
        width: 100px;
        height: 100px;
    }

    .tech-item {
        justify-items: center;
        padding: 0;
        width: 100%;
    }

    .tech-icon-img {
        width: 120px;
        height: 100%;
    }

    .tech-item h3 {
        font-size: 1.25rem;
    }

    .section-content-landing-tech {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 992px) {

    .landing-section[id="about"] .about-section {
        flex-direction: column-reverse;
    }

    .landing-section[id="about"] .about-section .left-content {
        padding: var(--spacing-sm);
    }


    .security-privacy-section {
        padding: var(--spacing-sm);
    }

    .demo-item {
        max-height: 330px;
        height: 100%;
    }

    .demo-section {
        padding: var(--spacing-sm);
    }

    .demo-audio {
        flex-direction: column;
    }

    .step-content {
        padding: var(--spacing-md);
    }

    .step-number {
        font-size: 2.5rem;
    }

    .step-content h2 {
        font-size: 1.75rem;
    }

    .step-content p {
        font-size: 1rem;
    }

    .store-btn {
        height: 40px;
    }

    .tech-section h1 {
        font-size: 1.75rem;
    }

    .tech-section p {
        font-size: 1rem;
    }

    .tech-icon {
        width: 80px;
        height: 80px;
    }

    .tech-item h3 {
        font-size: 1.125rem;
    }

    .tech-item p {
        font-size: 0.9rem;
    }
}

/* Content Animation Classes */
.section-content-landing,
.carousel-container,
.tech-section,
.faq-accordion,
.beta-form {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.landing-section.animate-in .section-content-landing {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.landing-section.animate-in .carousel-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.landing-section.animate-in .tech-section {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.landing-section.animate-in .faq-accordion {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.landing-section.animate-in .beta-form {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Staggered animation for items */
.tech-item,
.feature-item,
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.landing-section.animate-in .tech-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.landing-section.animate-in .tech-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.landing-section.animate-in .tech-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.landing-section.animate-in .feature-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.landing-section.animate-in .feature-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.landing-section.animate-in .feature-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.landing-section.animate-in .faq-item {
    opacity: 1;
    transform: translateY(0);
}

.landing-section.animate-in .faq-item:nth-child(1) {
    transition-delay: 0.3s;
}

.landing-section.animate-in .faq-item:nth-child(2) {
    transition-delay: 0.4s;
}

.landing-section.animate-in .faq-item:nth-child(3) {
    transition-delay: 0.5s;
}

.landing-section.animate-in .faq-item:nth-child(4) {
    transition-delay: 0.6s;
}