/*
 * Arcaself Landing Page — Stylesheet
 * Developed by TrongNgan Mtn
 * © 2026 Arcaself — Nền tảng tự khám phá & chữa lành thuần Việt.
 */

@font-face {
    font-family: 'Geist';
    src: url('../assets/fonts/geist-latin-ext.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Geist';
    src: url('../assets/fonts/geist-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Color Palette matching Kameralnie Polanki's authentic aesthetic */
    --bg-beige: #F1E8D9;
    --bg-light: #F1E8D9;
    --text-dark: #0c0c0c;
    --text-muted: #6a6a6a;
    --primary-color: #23422c;
    /* Dark Forest Green */
    --primary-hover: #1b3322;
    --accent-sage: #98a48d;
    /* Sage/Muted Green */
    --white: #ffffff;
    --overlay: rgba(0, 0, 0, 0.4);

    /* Lock to light theme — không bị ảnh hưởng bởi Dark Mode OS/Browser */
    color-scheme: only light;

    /* Typography */
    --font-heading: 'Geist', sans-serif;
    --font-body: 'Geist', sans-serif;

    /* Spacing & Layout */
    --container-max: 1400px;
    --container-small: 800px;
    --spacing-xl: 120px;
    --spacing-lg: 80px;
    --spacing-md: 40px;
    --spacing-sm: 20px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    /* Prevent browser dark mode from auto-inverting colors */
    color-scheme: only light;
}

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

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.footer-logo {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

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

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

.container-small {
    max-width: var(--container-small);
}

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

.bg-light {
    background-color: var(--bg-light);
}

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

.mb-5 {
    margin-bottom: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-beige);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all var(--transition-fast);
    background: transparent;
}

.header.scrolled {
    background-color: rgba(245, 242, 235, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 16px 0;
}

.header.scrolled .nav-link {
    color: var(--text-dark);
}

.header.scrolled .logo a {
    color: var(--primary-color);
}

.header.scrolled .btn-outline {
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.header.scrolled .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-text {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-dark);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    font-size: 11px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    margin-top: 24px;
    transition: color var(--transition-fast);
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-dark);
    transition: width var(--transition-fast);
}

.btn-text:hover::after {
    width: 100%;
}

.header.scrolled .hamburger .bar {
    background-color: var(--text-dark);
}

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

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--bg-beige);
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}

.logo-accent {
    color: var(--accent-sage);
    font-weight: 400;
}

.header.scrolled .logo-accent {
    color: #6a8258;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--bg-beige);
    font-size: 15px;
    font-weight: 400;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 16px;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger .bar {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--bg-beige);
    max-width: 900px;
    width: 100%;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    margin-bottom: 48px;
    opacity: 0.9;
    text-align: right;
    max-width: 600px;
    margin-left: auto;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* About Section */
.section-title {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.section-description {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Journey Section */
.journey-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.journey-section .section-title {
    color: var(--bg-beige);
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.journey-step {
    padding: 32px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: box-shadow var(--transition-fast), background-color var(--transition-fast), opacity 0.7s ease-out, transform 0.7s ease-out;
    position: relative;
    overflow: hidden;
    display: block;
    /* Initial hidden state for stagger animation */
    opacity: 0;
    transform: translateY(32px);
}

.journey-step.step-visible {
    opacity: 1;
    transform: translateY(0);
}

.journey-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.step-num {
    font-size: 120px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    opacity: 0.05;
    line-height: 1;
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 0;
    pointer-events: none;
}

.step-title {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: var(--bg-beige);
}

.step-desc {
    color: var(--bg-beige);
    opacity: 0.8;
    /* Restore to 0.8 since it was 0.5 in the user diff previously */
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background-color: #1A1A18;
    color: var(--white);
    padding: 24px 0;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    margin-bottom: 8px;
}

.logo-arca {
    color: var(--bg-beige);
    font-weight: 800;
}

.logo-self {
    color: var(--accent-sage);
    font-weight: 500;
}

.footer-text {
    font-size: 14px;
    opacity: 0.6;
    color: var(--bg-beige);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition-fast);
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-beige);
    width: 90%;
    max-width: 500px;
    padding: 48px;
    border-radius: 2px;
    z-index: 2001;
    text-align: center;
    transform: translateY(20px);
    transition: transform var(--transition-slow);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
    flex-shrink: 0;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 32px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.modal-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.donate-disclaimer {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    background-color: rgba(35, 66, 44, 0.04);
    border: 1px dashed rgba(35, 66, 44, 0.15);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.donate-disclaimer p {
    margin-bottom: 8px;
}

.donate-disclaimer p:last-child {
    margin-bottom: 0;
}

.donate-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.custom-qr-image {
    width: 250px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    mix-blend-mode: multiply;
    /* Blends perfectly with beige background */
}

.qr-text {
    font-size: 14px;
    letter-spacing: 1px;
}

.bank-info {
    text-align: left;
    background-color: var(--bg-beige);
    padding: 24px;
    margin-bottom: 24px;
}

.bank-info p {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.bank-info p:last-child {
    margin-bottom: 0;
}

/* VIP Perks Block */
.perks-block {
    background: linear-gradient(135deg, rgba(35, 66, 44, 0.04) 0%, rgba(35, 66, 44, 0.08) 100%);
    border: 1px solid rgba(35, 66, 44, 0.15);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.perks-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.perks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.perk-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Thêm khoảng cách giữa nhóm Tất cả và VIP */
.perk-item.perk-free + .perk-item.perk-vip {
    margin-top: 12px;
}

.perk-badge {
    display: inline-block;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    padding: 2px 0;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background-color: rgba(35, 66, 44, 0.1);
    color: var(--primary-color);
    margin-top: 1px;
}

.perk-badge--vip {
    background: linear-gradient(135deg, #b8860b, #d4a017);
    color: #fff;
}

.perk-item.perk-vip strong {
    color: var(--primary-color);
}

.vip-unlock-hint {
    font-size: 12px;
    color: #b8860b;
    font-style: normal;
    font-weight: 500;
}

/* Registration Form */
.register-form {
    text-align: left;
    margin-top: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.required {
    color: var(--primary-color);
}

.optional {
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    font-weight: 400;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    background-color: rgba(35, 66, 44, 0.04);
    border: 1px solid rgba(35, 66, 44, 0.2);
    border-radius: 4px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(35, 66, 44, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-checkbox-group {
    margin-bottom: 24px;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 13px;
    margin-top: 4px;
}

.form-privacy {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    opacity: 0.7;
}

/* Success State */
.register-success {
    text-align: center;
    padding: 32px 0;
}

.success-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
    animation: pulse-star 1.5s ease-in-out infinite;
}

@keyframes pulse-star {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

.success-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.success-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.success-verify-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(35, 66, 44, 0.3);
    padding-bottom: 2px;
    transition: border-color var(--transition-fast), opacity var(--transition-fast);
    opacity: 0.8;
}

.success-verify-link:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-beige);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right var(--transition-slow);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;
    }

    .nav-link {
        color: var(--text-dark);
        font-size: 20px;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
        text-align: center;
    }

    .header-actions .btn-outline {
        color: var(--text-dark);
        border-color: var(--text-dark);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--text-dark);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--text-dark);
    }

    .section-title {
        font-size: 36px;
    }

    .journey-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 22px;
        /* Reduced further to ensure "Nhất" fits on small screens */
    }

    .modal-content {
        padding: 32px 24px;
    }
}

/* Typography utilities */
.text-primary {
    color: var(--primary-color);
}

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

/* Modal Body Scrolling & About Story styles */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 24px;
    display: flex;
    flex-direction: column;
}

/* Safely vertically center scrollable content */
.modal-body::before,
.modal-body::after {
    content: '';
    margin: auto;
}

.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.about-modal-content {
    max-width: 660px;
}

.about-desc {
    font-style: italic;
}

.about-story {
    text-align: justify;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.about-story p {
    margin-bottom: 14px;
}

.about-story p:last-child {
    margin-bottom: 0;
}

.about-footer {
    border-top: 1px solid rgba(35, 66, 44, 0.1);
    padding-top: 24px;
    text-align: right;
}

.about-footer-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.about-footer-name {
    font-size: 20px;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

@media (max-width: 576px) {
    .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 40px 32px 32px;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        padding-right: 16px;
    }

    .about-story {
        font-size: 11.5px;
        /* Sweet spot requested by user */
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .about-story p {
        margin-bottom: 10px;
    }

    .modal-title {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .modal-desc {
        font-size: 11px;
        margin-bottom: 16px;
    }

    .about-footer {
        padding-top: 24px;
    }

    .about-footer-label {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .about-footer-name {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .btn-text {
        margin-top: 12px;
        font-size: 10px;
    }
}