/* =========================================================
 * Meimodu — Global Stylesheet
 * Dark night base + rose pink highlights, mobile-first
 * ========================================================= */

/* ---------- 1. CSS Variables / Theme ---------- */
:root {
    /* Brand colors */
    --color-primary: #FF4D8D;
    --color-primary-light: #FF7AA8;
    --color-primary-soft: #FFA3C2;
    --color-primary-glow: #FF1F6E;
    --color-tag-bg: #F4A4BE;
    --color-tag-text: #3D1A2A;

    /* Backgrounds */
    --bg-base: #0F0F12;
    --bg-surface: #1A1A20;
    --bg-elevated: #26262D;
    --bg-glass: rgba(26, 26, 32, 0.6);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #A8A8B3;
    --text-muted: #6F6F7A;

    /* Borders & dividers */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.18);

    /* Gradients & effects */
    --gradient-primary: linear-gradient(90deg, #FF4D8D, #FF1F6E);
    --gradient-hero: radial-gradient(ellipse at 30% 20%, rgba(255, 77, 141, 0.18) 0%, #0F0F12 60%);
    --shadow-primary-hover: 0 8px 24px rgba(255, 77, 141, 0.45);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);

    /* Radius */
    --radius-card: 16px;
    --radius-pill: 9999px;
    --radius-sm: 8px;

    /* Typography */
    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container-max: 1240px;
    --header-h: 72px;

    /* Motion */
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.3s var(--ease-out);
}

/* ---------- 2. Reset / Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

/* Decorative pink glows scattered across the page */
body::before,
body::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    opacity: 0.55;
}

body::before {
    top: 220px;
    left: -160px;
    background: radial-gradient(circle, rgba(255, 77, 141, 0.35), transparent 70%);
}

body::after {
    top: 1600px;
    right: -160px;
    background: radial-gradient(circle, rgba(255, 31, 110, 0.28), transparent 70%);
}

/* ---------- 3. Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 96px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 77, 141, 0.12);
    color: var(--color-primary-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- 4. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 77, 141, 0.35);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: var(--shadow-primary-hover);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    background: rgba(255, 77, 141, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* ---------- 5. Header / Nav ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-base);
    padding-top: env(safe-area-inset-top, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

.header.scrolled {
    background: rgba(15, 15, 18, 0.96);
}

.nav {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    color: var(--text-primary);
    flex-shrink: 0;
    min-width: 0;
}

.nav-brand:hover {
    color: var(--text-primary);
}

.nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.nav-brand span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.2;
    padding: 2px 0;
    display: inline-block;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    border-radius: 2px;
    background: var(--color-primary);
}

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

/* Language switcher */
.lang-switch {
    position: relative;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.lang-trigger:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

.lang-trigger i.fa-chevron-down {
    font-size: 11px;
    transition: transform var(--transition-fast);
}

.lang-switch.open .lang-trigger i.fa-chevron-down {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 8px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    max-height: 70vh;
    overflow-y: auto;
}

.lang-switch.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-menu a:hover {
    background: rgba(255, 77, 141, 0.1);
    color: var(--color-primary-light);
}

.lang-menu a.active {
    background: rgba(255, 77, 141, 0.16);
    color: var(--color-primary);
    font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 18px;
}

/* ---------- 6. Hero ---------- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 48px + env(safe-area-inset-top, 0)) 0 64px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 77, 141, 0.12);
    border: 1px solid rgba(255, 77, 141, 0.2);
    color: var(--color-primary-light);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(15px, 1.4vw, 17px);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.hero-meta i {
    color: var(--color-primary);
    margin-right: 6px;
}

/* Hero visual / chat bubbles */
.hero-visual {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 141, 0.6), rgba(255, 31, 110, 0.05) 65%, transparent 75%);
    filter: blur(40px);
    animation: orb-pulse 6s ease-in-out infinite;
}

@keyframes orb-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.chat-bubble {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-primary);
    max-width: 220px;
    box-shadow: var(--shadow-card);
    animation: float 5s ease-in-out infinite;
}

.chat-bubble .name {
    display: block;
    font-size: 11px;
    color: var(--color-primary-light);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-bubble.b1 {
    top: 14%;
    left: 0;
    animation-delay: 0s;
}

.chat-bubble.b2 {
    top: 42%;
    right: 5%;
    animation-delay: 1.2s;
    background: rgba(255, 77, 141, 0.18);
    border-color: rgba(255, 77, 141, 0.3);
}

.chat-bubble.b3 {
    bottom: 12%;
    left: 12%;
    animation-delay: 2.4s;
}

.chat-bubble.b4 {
    bottom: 28%;
    right: 0;
    animation-delay: 3.6s;
    background: rgba(255, 122, 168, 0.15);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ---------- 7. Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 32px;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 77, 141, 0.3);
    box-shadow: 0 12px 36px rgba(255, 77, 141, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 77, 141, 0.12);
    color: var(--color-primary);
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- 8. Scenes ---------- */
.scenes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.scene-card {
    background: linear-gradient(160deg, rgba(255, 77, 141, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.scene-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.scene-card .scene-icon {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.scene-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.scene-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- 9. Gallery (Character cards) ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.character-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.character-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 77, 141, 0.4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.character-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.85);
}

.cover-1 {
    background: linear-gradient(135deg, #FF4D8D, #6E2C7E);
}

.cover-2 {
    background: linear-gradient(135deg, #2C5BFF, #00D4FF);
}

.cover-3 {
    background: linear-gradient(135deg, #FF6B6B, #FFD93D);
}

.cover-4 {
    background: linear-gradient(135deg, #11998E, #38EF7D);
}

.cover-5 {
    background: linear-gradient(135deg, #C471F5, #FA71CD);
}

.cover-6 {
    background: linear-gradient(135deg, #F093FB, #F5576C);
}

.cover-7 {
    background: linear-gradient(135deg, #4FACFE, #00F2FE);
}

.cover-8 {
    background: linear-gradient(135deg, #FA709A, #FEE140);
}

.cover-9 {
    background: linear-gradient(135deg, #30CFD0, #330867);
}

.character-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5));
}

.character-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.character-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.character-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.character-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 500;
    background: var(--color-tag-bg);
    color: var(--color-tag-text);
}

.tag.tag-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
}

/* ---------- 10. Stats ---------- */
.stats {
    background:
        linear-gradient(180deg, transparent, rgba(255, 77, 141, 0.04)),
        var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item .stat-value {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-item .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ---------- 11. Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 28px;
    position: relative;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 77, 141, 0.3);
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 28px;
    color: rgba(255, 77, 141, 0.18);
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 110px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---------- 12. FAQ ---------- */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(255, 77, 141, 0.25);
}

.faq-item.open {
    border-color: var(--color-primary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    gap: 16px;
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 77, 141, 0.12);
    color: var(--color-primary);
    font-size: 12px;
    transition: transform var(--transition-base), background var(--transition-base);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--gradient-primary);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}

.faq-answer-inner {
    padding: 0 24px 22px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* ---------- 13. Final CTA ---------- */
.cta {
    padding: 80px 0;
}

.cta-card {
    position: relative;
    background:
        radial-gradient(ellipse at top right, rgba(255, 77, 141, 0.25), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(255, 31, 110, 0.18), transparent 60%),
        var(--bg-surface);
    border: 1px solid rgba(255, 77, 141, 0.2);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
    overflow: hidden;
}

.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ---------- 14. Footer ---------- */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 24px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-brand {
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---------- 15. Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 77, 141, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-base);
    z-index: 90;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary-hover);
}

/* ---------- 16. Mobile menu drawer ---------- */
.mobile-menu {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0));
    left: 0;
    right: 0;
    background: rgba(15, 15, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 20px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s var(--ease-out),
        opacity 0.24s var(--ease-out),
        visibility 0s linear 0.32s;
    z-index: 99;
    display: none;
    max-height: calc(100vh - var(--header-h) - env(safe-area-inset-top, 0));
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.32s var(--ease-out),
        opacity 0.24s var(--ease-out),
        visibility 0s linear;
}

.mobile-menu .nav-link {
    display: flex;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: var(--radius-sm);
}

.mobile-menu .nav-link.active {
    background: rgba(255, 77, 141, 0.1);
}

.mobile-menu .nav-link.active::after {
    display: none;
}

.mobile-menu .btn {
    margin-top: 16px;
    width: 100%;
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-visual {
        height: 320px;
        order: -1;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scenes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 60px;
    }

    body::before,
    body::after {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .container {
        padding: 0 16px;
    }

    .header {
        background: #0F0F12;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header.scrolled {
        background: #0F0F12;
    }

    .nav {
        gap: 12px;
    }

    .nav-brand {
        font-size: 17px;
        gap: 8px;
    }

    .nav-brand img {
        width: 28px;
        height: 28px;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .mobile-menu {
        display: block;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn,
    .nav-actions .lang-switch {
        display: none;
    }

    .hero {
        padding: calc(var(--header-h) + 32px + env(safe-area-inset-top, 0)) 0 48px;
    }

    .hero-visual {
        display: none;
    }

    .hero-grid {
        gap: 0;
    }

    .features-grid,
    .testimonials-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .scenes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .hero-actions .btn {
        flex: 1;
        min-width: 0;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .scenes-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ---------- 18. Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
 * 19. Inner Page Layout (FAQ / Guide / Legal / Support)
 * ========================================================= */

.page-header {
    position: relative;
    padding: calc(var(--header-h) + 56px + env(safe-area-inset-top, 0)) 0 56px;
    background: var(--gradient-hero);
    text-align: center;
    overflow: hidden;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--color-primary-light);
}

.breadcrumb .sep {
    font-size: 10px;
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--color-primary-light);
}

.page-title {
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-content {
    padding: 64px 0 96px;
    position: relative;
    z-index: 1;
}

.content-wrap {
    max-width: 880px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 48px 52px;
}

.content-wrap .meta {
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 18px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-subtle);
}

.content-wrap h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 14px;
    letter-spacing: -0.01em;
}

.content-wrap h2:first-child {
    margin-top: 0;
}

.content-wrap h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 10px;
}

.content-wrap p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 14px;
    font-size: 15px;
}

.content-wrap ul,
.content-wrap ol {
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 0 0 18px;
    padding-left: 24px;
    font-size: 15px;
}

.content-wrap ul {
    list-style: disc outside;
}

.content-wrap ol {
    list-style: decimal outside;
}

.content-wrap li {
    margin-bottom: 6px;
}

.content-wrap a {
    color: var(--color-primary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-wrap a:hover {
    color: var(--color-primary);
}

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

.content-wrap hr {
    border: 0;
    border-top: 1px solid var(--border-subtle);
    margin: 32px 0;
}

/* Table of contents box */
.toc {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 32px;
}

.toc h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary-light);
    font-weight: 700;
    margin-bottom: 10px;
}

.toc ol {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.toc li {
    margin-bottom: 4px;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
}

.toc a:hover {
    color: var(--color-primary-light);
}

/* Inline FAQ list reuse — already styled via .faq-list/.faq-item */
.content-wrap .faq-list {
    margin-top: 8px;
}

/* Support channels grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px 0 24px;
}

.channel-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.channel-card:hover {
    border-color: rgba(255, 77, 141, 0.3);
    transform: translateY(-2px);
}

.channel-card .ic {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 77, 141, 0.12);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.channel-card h4 {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.channel-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Feedback form */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 12px 0 6px;
}

.feedback-form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feedback-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feedback-form label {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: var(--text-muted);
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--bg-surface);
}

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

.feedback-form .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.feedback-form .hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Inline note / callout */
.note {
    background: rgba(255, 77, 141, 0.08);
    border: 1px solid rgba(255, 77, 141, 0.2);
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.7;
    margin: 16px 0 22px;
}

.note strong {
    color: var(--color-primary-light);
}

/* Helper for definition-style lists */
.def-list {
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    margin: 14px 0 22px;
}

.def-list .row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 14px;
    line-height: 1.6;
}

.def-list .row:first-child {
    border-top: none;
}

.def-list .key {
    color: var(--text-primary);
    font-weight: 600;
}

.def-list .val {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .page-header {
        padding: calc(var(--header-h) + 32px + env(safe-area-inset-top, 0)) 0 36px;
    }

    .page-content {
        padding: 40px 0 64px;
    }

    .content-wrap {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .content-wrap h2 {
        font-size: 20px;
        margin: 30px 0 12px;
    }

    .channels-grid {
        grid-template-columns: 1fr;
    }

    .feedback-form .row {
        grid-template-columns: 1fr;
    }

    .def-list .row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
