/* ============================================================
   Design System Tokens
============================================================ */
:root {
    --bg-body:    #f7f7f8;
    --bg-surface: #ffffff;
    --bg-subtle:  #f2f2f5;

    --text-primary:   #0a0a0f;
    --text-secondary: #5a5a72;
    --text-muted:     #9898b0;

    --border-subtle:  rgba(0, 0, 0, 0.06);
    --border-default: rgba(0, 0, 0, 0.10);

    --brand-from:  #6366f1;
    --brand-to:    #8b5cf6;
    --brand-mid:   #7c3aed;
    --brand-light: rgba(99, 102, 241, 0.08);

    --accent-blue:  #3b82f6;
    --accent-cyan:  #06b6d4;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;

    --gradient-brand:      linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #06b6d4 100%);
    --gradient-brand-soft: linear-gradient(135deg, rgba(99,102,241,0.10) 0%, rgba(139,92,246,0.06) 100%);

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 0 1px rgba(99,102,241,0.12), 0 8px 32px rgba(99,102,241,0.14);

    --radius-xs:   6px;
    --radius-sm:   10px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --radius-xl:   32px;
    --radius-pill: 9999px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition:      all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.50s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* subtle dot grid */
    background-image: radial-gradient(rgba(0,0,0,0.055) 1px, transparent 1px);
    background-size: 24px 24px;
}

a  { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
}

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

/* ============================================================
   Scroll Reveal
============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible     { opacity: 1; transform: translateY(0); }
.reveal-delay-1     { transition-delay: 0.10s; }
.reveal-delay-2     { transition-delay: 0.20s; }
.reveal-delay-3     { transition-delay: 0.30s; }
.reveal-delay-4     { transition-delay: 0.40s; }

/* ============================================================
   Header
============================================================ */
header {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 980px;
    z-index: 1000;
}

.nav-inner {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: var(--radius-pill);
    padding: 8px 8px 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,0,0,0.04);
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 7px 13px;
    border-radius: var(--radius-pill);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-subtle);
}

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

.lang-btn {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    cursor: pointer;
}
.lang-btn:hover { background: var(--bg-subtle); color: var(--text-primary); }

.nav-cta {
    background: var(--text-primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
}
.nav-cta:hover { background: #18182a; color: #fff; }

.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 17px;
    cursor: pointer;
    color: var(--text-secondary);
}
.mobile-menu-btn:hover { background: var(--bg-subtle); color: var(--text-primary); }


.nav-mobile-lang { display: none; }

/* ============================================================
   Hero
============================================================ */
.hero {
    padding: 190px 0 110px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(88px);
    pointer-events: none;
    z-index: 0;
}
.orb-a {
    width: 660px; height: 420px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.18) 0%, transparent 68%);
    top: 4%; left: 50%; transform: translateX(-50%);
    animation: orbA 9s ease-in-out infinite;
}
.orb-b {
    width: 420px; height: 320px;
    background: radial-gradient(ellipse, rgba(6,182,212,0.14) 0%, transparent 68%);
    top: 22%; right: 8%;
    animation: orbB 12s ease-in-out infinite;
}
.orb-c {
    width: 360px; height: 280px;
    background: radial-gradient(ellipse, rgba(139,92,246,0.12) 0%, transparent 68%);
    top: 18%; left: 5%;
    animation: orbC 10s ease-in-out infinite;
}

@keyframes orbA {
    0%,100% { transform: translateX(-50%) translateY(0px); }
    50%      { transform: translateX(-50%) translateY(-22px); }
}
@keyframes orbB {
    0%,100% { transform: translateY(0px); }
    50%      { transform: translateY(-18px); }
}
@keyframes orbC {
    0%,100% { transform: translateY(0px); }
    50%      { transform: translateY(-26px); }
}

.hero-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 7px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99,102,241,0.22);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-from);
    margin-bottom: 36px;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 22px; height: 22px;
    background: var(--gradient-brand);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(50px, 7vw, 92px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -3.5px;
    margin-bottom: 28px;
    max-width: 860px;
}

.hero .subtitle {
    position: relative;
    z-index: 1;
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 52px;
    line-height: 1.68;
    font-weight: 400;
}

.hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   Buttons
============================================================ */
.btn {
    padding: 13px 24px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-gradient {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99,102,241,0.32), var(--shadow-xs);
}
.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99,102,241,0.44), var(--shadow-sm);
    filter: brightness(1.06);
}

.btn-dark {
    background: var(--text-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-dark:hover {
    transform: translateY(-1px);
    background: #18182a;
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
    border-color: rgba(0,0,0,0.16);
    box-shadow: var(--shadow-sm);
}

.btn-white {
    background: #fff;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,0,0,0.18); }

.btn-ghost-white {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.16);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* ============================================================
   Stats
============================================================ */
.stats-section { padding-bottom: 100px; }

.stats-band {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    text-align: center;
    padding: 44px 20px;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 22%; height: 56%;
    width: 1px;
    background: var(--border-subtle);
}

.stat-item h3 {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -2.5px;
    line-height: 1;
    margin-bottom: 8px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

/* ============================================================
   Section Shared
============================================================ */
section.pad { padding-bottom: 100px; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--brand-from);
    margin-bottom: 14px;
}
.section-label::before {
    content: '';
    width: 18px; height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.section-header { margin-bottom: 52px; }

.section-header h2 {
    font-size: clamp(28px, 3.6vw, 46px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 14px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 520px;
    line-height: 1.65;
}

/* ============================================================
   Bento Features
============================================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gradient-brand-soft);
    opacity: 0;
    transition: opacity 0.32s var(--ease);
}
.bento-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(99,102,241,0.18);
    transform: translateY(-4px);
}
.bento-card:hover::before { opacity: 1; }

.bento-large { grid-column: span 2; }

.card-deco {
    position: absolute;
    right: -24px; bottom: -24px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.card-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.ci-violet { background: rgba(99,102,241,0.10); color: #6366f1; }
.ci-blue   { background: rgba(59,130,246,0.10); color: #3b82f6; }
.ci-green  { background: rgba(16,185,129,0.10); color: #10b981; }
.ci-purple { background: rgba(139,92,246,0.10); color: #8b5cf6; }
.ci-amber  { background: rgba(245,158,11,0.10); color: #f59e0b; }

.bento-card h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
    position: relative; z-index: 1;
}
.bento-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.68;
    position: relative; z-index: 1;
}

/* ============================================================
   Downloads
============================================================ */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.dl-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    text-decoration: none;
}
.dl-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.dl-card:hover { box-shadow: var(--shadow-md); border-color: rgba(99,102,241,0.15); transform: translateY(-4px); }
.dl-card:hover::after { opacity: 1; }

.dl-icon {
    width: 46px; height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.dl-win   .dl-icon { background: rgba(0,120,212,0.10);  color: #0078d4; }
.dl-mac   .dl-icon { background: rgba(0,0,0,0.07);      color: #1d1d1f; }
.dl-droid .dl-icon { background: rgba(61,220,132,0.12); color: #3ddc84; }
.dl-ios   .dl-icon { background: rgba(0,0,0,0.07);      color: #1d1d1f; }
.dl-lnx   .dl-icon { background: rgba(252,165,0,0.12);  color: #fca500; }

.dl-info h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }

.dl-tag {
    display: inline-block;
    font-size: 11.5px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

.dl-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}
.dl-footer span { font-size: 12px; color: var(--text-muted); }
.dl-footer i { font-size: 12px; color: var(--brand-from); opacity: 0; transition: var(--transition); }
.dl-card:hover .dl-footer i { opacity: 1; }

/* ============================================================
   Tutorials
============================================================ */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tutorial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.tutorial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.step-num {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 68px;
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.18;
    user-select: none;
}

.step-icon {
    width: 46px; height: 46px;
    background: var(--gradient-brand);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(99,102,241,0.28);
}
.tutorial-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 12px; }
.tutorial-card p  { color: var(--text-secondary); font-size: 14px; line-height: 1.68; }

/* ============================================================
   FAQ Accordion
============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: var(--border-default); }
.faq-item.open  { border-color: rgba(99,102,241,0.22); box-shadow: var(--shadow-sm); }

.faq-question {
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 16px;
    user-select: none;
}
.faq-question h4 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.3px; }

.faq-toggle {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
    flex-shrink: 0;
}
.faq-item.open .faq-toggle {
    background: var(--brand-from);
    color: #fff;
    transform: rotate(45deg);
}

.faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s var(--ease);
}
.faq-item.open .faq-body { grid-template-rows: 1fr; }

.faq-body-inner {
    overflow: hidden;
    padding: 0 26px;
    transition: padding 0.28s var(--ease);
}
.faq-item.open .faq-body-inner { padding: 0 26px 22px; }

.faq-body-inner p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.72;
}

/* ============================================================
   CTA Section
============================================================ */
.cta-wrap { padding-bottom: 100px; }

.cta-box {
    background: var(--text-primary);
    border-radius: var(--radius-xl);
    padding: 88px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -60%; left: 50%; transform: translateX(-50%);
    width: 80%; height: 200%;
    background: radial-gradient(ellipse, rgba(99,102,241,0.32) 0%, transparent 60%);
    pointer-events: none;
}
.cta-box::after {
    content: '';
    position: absolute;
    bottom: -30%; right: -10%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(30px, 3.8vw, 52px);
    font-weight: 800;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 16px;
    position: relative; z-index: 1;
}
.cta-box p {
    font-size: 17px;
    color: rgba(255,255,255,0.58);
    max-width: 460px;
    margin: 0 auto 42px;
    line-height: 1.65;
    position: relative; z-index: 1;
}
.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative; z-index: 1;
}

/* ============================================================
   Footer
============================================================ */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 64px;
}

.footer-brand-desc {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 260px;
    line-height: 1.72;
    margin-top: 14px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.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(--text-primary); }

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

.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: var(--text-muted); font-size: 13px; }
.footer-legal a:hover { color: var(--text-secondary); }


.btn:active      { transform: scale(0.97); }
.dl-card:active  { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.bento-card:active { transform: translateY(-2px); }
.faq-question:active { background: var(--bg-subtle); }
.tutorial-card:active { transform: translateY(-1px); }

/* ============================================================
   Reduced Motion
============================================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .orb-a, .orb-b, .orb-c { animation: none; }
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 960px) {
    .bento-large       { grid-column: span 1; }
    .bento-grid        { grid-template-columns: repeat(2, 1fr); }
    .stats-band        { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2)::after { display: none; }
    .footer-grid       { grid-template-columns: 1fr 1fr; gap: 36px; }
    .tutorial-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* ---- Header ---- */
    header { width: 100%; top: 0; border-radius: 0; }
    .nav-inner {
        border-radius: 0;
        border-left: none; border-right: none; border-top: none;
        padding: 8px 14px;
        min-height: 56px;
    }
    .nav-links {
        position: fixed;
        top: 56px; left: -100%;
        width: 100%;
        height: calc(100vh - 56px);
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 32px;
        align-items: center;
        gap: 4px;
        transition: left 0.38s var(--ease);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links.active { left: 0; }
    
    .nav-links a {
        font-size: 22px;
        font-weight: 700;
        padding: 14px 32px;
        min-height: 52px;
        width: 100%;
        text-align: center;
        border-radius: var(--radius-md);
    }
    .nav-links a:active { background: var(--bg-subtle); }
    
    .nav-mobile-lang {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid var(--border-subtle);
        width: calc(100% - 48px);
    }
    .nav-mobile-lang-label {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .nav-mobile-lang-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }
    .nav-lang-opt {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 10px 8px;
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 600;
        border: 1.5px solid var(--border-subtle);
        background: var(--bg-surface);
        color: var(--text-secondary);
        cursor: pointer;
        transition: var(--transition);
        white-space: nowrap;
        text-decoration: none;
        text-align: center;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-lang-opt.active {
        background: var(--brand-light);
        border-color: rgba(99,102,241,0.45);
        border-width: 2px;
        color: var(--brand-from);
        font-weight: 700;
    }
    .nav-lang-opt:not(.active):active {
        background: var(--bg-subtle);
    }
    
    .mobile-menu-btn {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
        font-size: 18px;
        cursor: pointer;
        color: var(--text-secondary);
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-menu-btn:active { background: var(--bg-subtle); }
    .lang-btn  { display: none; }
    .nav-cta   { display: none; }

    /* ---- Hero ---- */
    
    .hero.container { padding: 124px 16px 80px; }
    .hero h1 { letter-spacing: -2px; }
    .hero-actions { flex-direction: column; padding: 0 20px; width: 100%; }
    .hero-actions .btn { justify-content: center; width: 100%; min-height: 50px; font-size: 16px; }

    /* ---- Buttons ---- */
    .btn { -webkit-tap-highlight-color: transparent; }

    /* ---- Sections ---- */
    .bento-grid    { grid-template-columns: 1fr; }
    .bento-card    { padding: 24px; }
    .tutorial-grid { grid-template-columns: 1fr; }
    .tutorial-card { padding: 24px; }

    /* ---- Footer ---- */
    .footer-grid   { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
    .footer-legal  { justify-content: center; }
    .footer-brand-desc { max-width: 100%; }

    /* ---- CTA ---- */
    .cta-box { padding: 48px 20px; border-radius: var(--radius-lg); }
    .cta-actions { flex-direction: column; padding: 0; }
    .cta-actions .btn { width: 100%; min-height: 50px; }

    /* ---- Section headers ---- */
    .section-header { margin-bottom: 32px; }
    .section-header p { font-size: 15px; }

    /* ---- FAQ ---- */
    .faq-question { padding: 16px 18px; min-height: 56px; }
    .faq-question h4 { font-size: 14.5px; line-height: 1.45; }
    
    .faq-toggle {
        width: 32px; height: 32px;
        margin: -6px -4px -6px 0;
        flex-shrink: 0;
    }
    .faq-body-inner { padding: 0 18px; }
    .faq-item.open .faq-body-inner { padding: 0 18px 16px; }

    /* ---- Container ---- */
    .container { padding: 0 16px; }

    
    section[id] { scroll-margin-top: 64px; }
}

@media (max-width: 480px) {
    /* ---- Stats ---- */
    .stats-band     { grid-template-columns: 1fr 1fr; }
    .stat-item      { padding: 36px 16px; }
    .stat-item h3   { font-size: 36px; letter-spacing: -2px; }
    .stat-item p    { font-size: 11px; letter-spacing: 0.5px; }
    .stat-item:nth-child(2)::after,
    .stat-item:nth-child(4)::after { display: none; }

    
    .downloads-grid { grid-template-columns: 1fr; }
    .dl-card { padding: 20px 18px; gap: 8px; }
    .dl-info h4 { font-size: 14px; }
    
    .dl-footer i { opacity: 1; }

    /* ---- Footer ---- */
    .footer-grid { grid-template-columns: 1fr; }

    /* ---- Hero ---- */
    .hero.container { padding: 112px 14px 68px; }
    .hero h1 { letter-spacing: -1.5px; }
    .hero .subtitle { font-size: 15px; padding: 0 4px; }
    .hero-badge { font-size: 12px; margin-bottom: 24px; padding: 4px 12px 4px 6px; }

    /* ---- Bento ---- */
    .bento-card { padding: 20px; }

    /* ---- Container ---- */
    .container { padding: 0 14px; }

    /* ---- CTA ---- */
    .cta-box h2 { letter-spacing: -1px; }
    .cta-box p  { font-size: 15px; margin-bottom: 28px; }
}


@media (max-width: 360px) {
    .hero.container { padding: 108px 12px 60px; }
    .hero h1 { font-size: clamp(36px, 10vw, 50px); letter-spacing: -1px; }
    .section-header h2 { letter-spacing: -0.8px; }
    .container { padding: 0 12px; }
}

/* ============================================================
   Language Switcher Dropdown
============================================================ */
.lang-switcher {
    position: relative;
}

.lang-btn {
    cursor: pointer;
    user-select: none;
}

.lang-btn-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    margin-left: 2px;
}
.lang-switcher.open .lang-btn-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 5px;
    min-width: 140px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    z-index: 300;
    animation: langDropIn 0.15s ease;
}
@keyframes langDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-opt {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.lang-opt:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}
.lang-opt.active {
    color: var(--text-primary);
    font-weight: 600;
    background: var(--bg-subtle);
}
