/* CSS Reset and Styling Framework */
:root {
    --base-font:
        "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;

    /* Unique Clean Light Theme Variables */
    --app-background: #f8fafc;
    --panel-bg: rgba(255, 255, 255, 0.9);
    --panel-border: rgba(226, 232, 240, 0.8);
    --color-main: #0f172a;
    --color-sub: #475569;
    --color-dim: #94a3b8;

    /* Branding Accent Styles */
    --brand-color: #24a1de;
    --brand-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    --brand-shadow-color: rgba(2, 132, 199, 0.15);

    --badge-green: #10b981;
    --badge-green-bg: rgba(16, 185, 129, 0.08);

    /* Box Shadows */
    --shadow-light:
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-panel:
        0 20px 25px -5px rgba(15, 23, 42, 0.05),
        0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --shadow-action: 0 8px 20px -6px rgba(2, 132, 199, 0.4);

    --radius-large: 20px;
    --radius-round: 9999px;

    --nav-bar-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--base-font);
    background-color: var(--app-background);
    color: var(--color-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal overflow scroll */
    width: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background elements styling */
.bg-glow-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: var(--radius-round);
    pointer-events: none;
    z-index: -1;
    filter: blur(120px);
    opacity: 0.4;
}

.bg-glow-1 {
    top: -150px;
    left: -150px;
    background: radial-gradient(
        circle,
        rgba(14, 165, 233, 0.12) 0%,
        rgba(255, 255, 255, 0) 70%
    );
}

.bg-glow-2 {
    bottom: -150px;
    right: -150px;
    background: radial-gradient(
        circle,
        rgba(234, 179, 8, 0.08) 0%,
        rgba(255, 255, 255, 0) 70%
    );
}

.bg-glow-3 {
    top: 40%;
    left: 30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.06) 0%,
        rgba(255, 255, 255, 0) 70%
    );
}

/* Header & Menu styles */
.navigation-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-bar-height);
    background-color: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 1000;
    transition:
        background-color 0.3s,
        border-color 0.3s;
}

.navigation-bar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.nav-wrapper {
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site2-header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 100%;
}

.site2-svg-logo {
    max-width: 100%;
    height: auto;
    display: block;
}

.brand-badge {
    font-size: 1.1rem;
}

.overlay-navigation {
    position: fixed;
    top: var(--nav-bar-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-bar-height));
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    padding-bottom: 100px;
    transform: translateY(-120%);
    visibility: hidden; /* Hide menu content when closed */
    pointer-events: none; /* Disable pointer actions on closed menu */
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.3s;
    z-index: 999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.overlay-navigation.open {
    transform: translateY(0);
    visibility: visible; /* Show menu content when open */
    pointer-events: auto; /* Enable pointer actions when open */
}

.menu-item {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-sub);
    text-decoration: none;
    transition: color 0.2s;
}

.menu-item:hover,
.menu-item.active {
    color: var(--brand-color);
}

.btn-join-header {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-main);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition:
        background-color 0.2s,
        transform 0.2s;
    margin-right: 16px;
}

.btn-join-header:hover {
    background-color: var(--color-sub);
    transform: translateY(-1px);
}

/* Hamburger button styling */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-main);
    border-radius: var(--radius-round);
    transition:
        transform 0.3s,
        opacity 0.3s;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Layout spacing */
.content-wrapper {
    flex: 1;
    padding-top: calc(var(--nav-bar-height) + 40px);
    padding-bottom: 60px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Section Title global header */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--color-main);
    text-align: center;
}

/* Accordion FAQs styling */
.accordion-block {
    padding: 40px 24px;
    max-width: 680px;
    width: 100%;
    margin: 120px auto 0; /* Push Q&A below the fold */
}

.accordion-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-subtitle {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-sub);
    margin-bottom: 32px;
    text-align: center;
}

.accordion-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-card {
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.accordion-card:hover {
    border-color: rgba(226, 232, 240, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02);
}

.accordion-header {
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-indicator {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-sub);
    border-bottom: 2px solid var(--color-sub);
    transform: rotate(45deg);
    transition:
        transform 0.2s ease,
        border-color 0.2s;
    margin-right: 4px;
    flex-shrink: 0;
}

.accordion-card[open] .accordion-header {
    border-bottom: 1px solid var(--panel-border);
}

.accordion-card[open] .accordion-indicator {
    transform: rotate(-135deg);
    border-color: var(--brand-color);
}

.accordion-content {
    padding: 20px 24px;
    font-size: 0.95rem;
    color: var(--color-sub);
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.4);
}

/* Card Section */
.hero-card-layout {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 24px;
}

.flex-center-box {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Panel box layout */
.landing-panel {
    background-color: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-large);
    padding: 36px 28px;
    width: 100%;
    box-shadow: var(--shadow-panel);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Creator profile section */
.creator-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 28px;
}

.photo-frame {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
}

.creator-photo {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-round);
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background-color: var(--badge-green);
    border: 2px solid #ffffff;
    border-radius: var(--radius-round);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.creator-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-main);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.icon-verified {
    width: 20px;
    height: 20px;
    display: inline-flex;
    object-fit: contain;
}

/* Stats Badge */
.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--badge-green-bg);
    color: var(--badge-green);
    padding: 6px 14px;
    border-radius: var(--radius-round);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.tg-symbol {
    width: 14px;
    height: 14px;
    color: var(--badge-green);
}

/* Benefits Section list */
.benefits-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.benefit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.01);
    padding: 16px 20px;
    border-radius: 16px;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.benefit-row:hover {
    transform: translateY(-1px);
    background-color: #ffffff;
    border-color: rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-light);
}

.benefit-icon {
    font-size: 1.3rem;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
}

.benefit-description {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-sub);
    line-height: 1.45;
}

.text-bold {
    font-weight: 600;
    color: var(--color-main);
}

/* Action button trigger */
.action-trigger-btn {
    width: 100%;
    background: var(--brand-gradient);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    padding: 18px 24px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-action);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    cursor: pointer;
}

.action-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(2, 132, 199, 0.5);
}

.action-trigger-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.action-trigger-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Document content layout rules */
.document-layout {
    padding-top: calc(var(--nav-bar-height) + 20px);
    padding-left: 24px;
    padding-right: 24px;
}

.document-container {
    max-width: 760px;
}

.document-card {
    align-items: flex-start;
    padding: 48px 40px;
    text-align: left;
}

.document-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--color-main);
}

.document-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dim);
    margin-bottom: 32px;
}

.document-content {
    width: 100%;
    color: var(--color-sub);
    font-size: 1rem;
    line-height: 1.7;
}

.document-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-main);
    margin-top: 28px;
    margin-bottom: 12px;
}

.document-content p {
    margin-bottom: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-color);
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #0284c7;
}

.arrow-back-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.back-link:hover .arrow-back-icon {
    transform: translateX(-4px);
}

/* Footer Bottom Bar layout */
.bottom-bar {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    background-color: rgba(248, 250, 252, 0.6);
    padding: 32px 24px;
    margin-top: auto;
}

.bottom-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.bottom-bar p {
    font-size: 0.88rem;
    color: var(--color-dim);
    font-weight: 500;
}

.legal-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-navigation a {
    font-size: 0.88rem;
    color: var(--color-sub);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.legal-navigation a:hover {
    color: var(--brand-color);
}

.divider-bullet {
    color: var(--color-dim);
    font-size: 0.85rem;
    user-select: none;
}

/* Mobile & Tablet Overrides */
@media (max-width: 768px) {
    .nav-wrapper {
        padding: 0 16px;
    }

    .btn-join-header {
        display: none; /* Hide header CTA on mobile to prevent layout stretch */
    }

    .content-wrapper {
        gap: 40px;
    }

    .accordion-block {
        margin-top: 160px; /* Push Q&A below screen on mobile */
    }

    .section-title {
        font-size: 1.8rem;
    }

    .bottom-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .document-card {
        padding: 32px 24px;
    }

    .document-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .landing-panel {
        padding: 24px 16px;
    }
    .creator-info {
        margin-bottom: 16px;
    }
    .photo-frame {
        margin-bottom: 10px;
    }
    .creator-title {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    .benefits-group {
        gap: 10px;
        margin-bottom: 20px;
    }
    .benefit-row {
        padding: 12px 14px;
        gap: 6px;
    }
    .benefit-description {
        font-size: 0.88rem;
    }
    .action-trigger-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .landing-panel {
        padding: 20px 12px;
    }
    .creator-title {
        font-size: 1.1rem;
    }
    .benefit-description {
        font-size: 0.85rem;
    }
}
