/* Reset and base variables */
:root {
    --primary-font: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Elegant light theme color palette */
    --bg-main: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(226, 232, 240, 0.8);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Accents */
    --accent-tg: #24a1de;
    --accent-tg-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    --accent-glow: rgba(2, 132, 199, 0.15);
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.08);
    
    /* Box Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --shadow-btn: 0 8px 20px -6px rgba(2, 132, 199, 0.4);
    
    --radius-card: 20px;
    --radius-pill: 9999px;
    
    --header-height: 72px;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Dynamic background gradient mesh */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: var(--radius-pill);
    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 & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-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;
}

.header.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);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-tg);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    background-color: var(--text-primary);
    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;
}

.header-cta:hover {
    background-color: var(--text-secondary);
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: var(--radius-pill);
    transition: transform 0.3s, opacity 0.3s;
}

/* Main Layout */
.main-layout {
    flex: 1;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

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

/* FAQ Section */
.faq-section {
    padding: 40px 24px;
    max-width: 680px;
    width: 100%;
    margin: 120px auto 0; /* Push FAQ below the fold */
}

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

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

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

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

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

.faq-question {
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none; /* Hide default arrow in Chrome/Firefox */
}

/* Hide default arrow in Safari */
.faq-question::-webkit-details-marker {
    display: none;
}

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

.faq-item[open] .faq-question {
    border-bottom: 1px solid var(--card-border);
}

.faq-item[open] .faq-arrow {
    transform: rotate(-135deg);
    border-color: var(--accent-tg);
}

.faq-answer {
    padding: 20px 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.4);
}

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

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

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

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

.avatar-container {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
}

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

.online-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background-color: var(--success);
    border: 2px solid #ffffff;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

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

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

.icon-tg {
    width: 14px;
    height: 14px;
    color: var(--success);
}

/* Info List / Bullet Points */
.info-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.01);
    padding: 14px 16px;
    border-radius: 16px;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

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

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

.info-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.45;
}

.highlight-text {
    font-weight: 600;
    color: var(--text-primary);
}

/* Call to Action Button */
.cta-button {
    width: 100%;
    background: var(--accent-tg-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-btn);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

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

.cta-button:active {
    transform: translateY(0);
}

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

.cta-button:hover .arrow-icon {
    transform: translateX(4px);
}

/* Document layout for Policy & Terms */
.document-layout {
    padding-top: calc(var(--header-height) + 20px);
}

.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(--text-primary);
}

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

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

.document-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    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(--accent-tg);
    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 Section */
.footer {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    background-color: rgba(248, 250, 252, 0.6);
    padding: 32px 24px;
    margin-top: auto;
}

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

.footer p {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-tg);
}

.separator {
    color: var(--text-muted);
    font-size: 0.85rem;
    user-select: none;
}

/* Responsive & Mobile styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        gap: 36px;
        padding-bottom: 100px;
        transform: translateY(-120%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu.open {
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .header-cta {
        display: none; /* Hide header CTA on mobile to prevent overflow and clutter */
    }
    
    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .main-layout {
        gap: 40px;
    }

    .faq-section {
        margin-top: 160px; /* Push FAQ further down on mobile devices */
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-lead {
        font-size: 1.05rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .document-card {
        padding: 32px 24px;
    }
    
    .document-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 32px 20px;
    }
    .profile-name {
        font-size: 1.2rem;
    }
    .info-text {
        font-size: 0.88rem;
    }
    .cta-button {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
}
