/* --- GLOBÁLNÍ NASTAVENÍ --- */

:root[data-theme="light"] {
    --primary: #4500fb;
    --primary-light: #9f7cff;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-alt: #f1f5f9;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --navbar: rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
    --bg-white: #0f172a;
    --bg-alt: #1e293b;
    --card-bg: #1e293b;
    --border: #334155;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --navbar: rgba(15, 23, 42, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }

/* =============================================
   CUSTOM SCROLLBAR — segmentovaný
   ============================================= */

.cscroll {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1800;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cscroll-seg {
    position: relative;
    width: 3px;
    border-radius: 10px;
    background: var(--border);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
    overflow: visible;
}

.cscroll-seg-fill {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 0%;
    background: var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
    transition: height 0.05s linear, box-shadow 0.3s ease;
}

.cscroll-seg.active {
    width: 5px;
}

.cscroll-seg.active .cscroll-seg-fill {
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.85);
}

.cscroll-seg.done .cscroll-seg-fill {
    height: 100% !important;
    box-shadow: 0 0 6px rgba(124, 58, 237, 0.3);
}

/* Hover label */
.cscroll-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cscroll-seg:hover .cscroll-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    .cscroll { display: none; }
    body { scrollbar-width: auto; }
    body::-webkit-scrollbar { display: revert; }
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    height: 70px;
    background: var(--navbar);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 40px;
    display: flex;
    align-items: center;
    z-index: 2000;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.navbar.scrolled-bottom {
    top: calc(100vh - 100px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    width: 95%;
    max-width: 800px;
}

@media (max-width: 768px) {
    .navbar.scrolled-bottom .logo { display: none; }
    .navbar.scrolled-bottom .nav-container { justify-content: center; }
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }

.btn-cta {
    position: relative;
    overflow: hidden;
    background: transparent;
    color: var(--text-dark) !important;
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-weight: 600;
    transition: color 0.3s ease, background 0.3s ease,
                border-color 0.3s ease, box-shadow 0.3s ease,
                transform 0.3s ease;
}

.btn-cta:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(69, 0, 251, 0.4);
}

/* Sweep canvas — vkládá JS */
.btn-cta canvas.btn-sweep {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: inherit;
}

/* Spotlight overlay — vkládá JS na vyplněné buttony */
.btn-spotlight {
    position: relative;
    overflow: hidden;
}

.btn-spotlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 60px at var(--mx, 50%) var(--my, 50%),
        rgba(255,255,255,0.18) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    border-radius: inherit;
}

.btn-spotlight:hover::after {
    opacity: 1;
}

/* --- TLAČÍTKO PŘEPNUTÍ TÉMATU --- */
.theme-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(69, 0, 251, 0.3);
    transition: var(--transition);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(69, 0, 251, 0.4);
}

.theme-icon-svg {
    width: 16px;
    height: 16px;
    stroke: white;
    flex-shrink: 0;
}

/* --- HERO SEKCE --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

/* Hero CTA tlačítko */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 50px;
    border: 1px solid var(--border);
    color: var(--text-dark);
    background: transparent;
    transition: color 0.3s ease, background 0.3s ease,
                border-color 0.3s ease, box-shadow 0.3s ease,
                transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.hero-cta:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(2px); /* šipka dolů → tlačítko se mírně posune dolů */
    box-shadow: 0 8px 30px rgba(69, 0, 251, 0.3);
}

.hero-cta:hover svg {
    transform: translateY(3px);
}

/* Sweep canvas pro hero-cta (stejný mechanismus jako .btn-cta) */
.hero-cta canvas.btn-sweep {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: inherit;
}

.hero-inner h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 20px 0;
}

.hero-inner h1 span {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-inner p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: rgba(69, 0, 251, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- SCROLL INDIKÁTOR --- */
.scroll-indicator {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-light);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    opacity: 0.5;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%   { transform: translateY(0); opacity: 1; }
    80%  { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* --- OBSAHOVÉ SEKCE --- */
.content-section {
    padding: 120px 10%;
    min-height: 60vh;
    background-color: var(--bg-white);
    transition: background-color 0.4s ease;
}

.alternate-bg {
    background-color: var(--bg-alt) !important;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
}

/* --- NEWS TIMELINE --- */
.news-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.news-row {
    display: flex;
    gap: 40px;
    padding-bottom: 40px;
    border-left: 2px solid var(--border);
    padding-left: 30px;
    position: relative;
}

.news-row::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.news-date {
    min-width: 120px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-version {
    display: inline-block;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    width: fit-content;
}

/* Skeleton loader */
.news-skeleton {
    padding-bottom: 36px;
    border-left: 2px solid var(--border);
    padding-left: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-skeleton::before {
    content: '';
    position: absolute;
    left: -7px; top: 5px;
    width: 12px; height: 12px;
    background: var(--border);
    border-radius: 50%;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, var(--border) 25%, var(--bg-alt) 50%, var(--border) 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line.short { width: 90px; }
.skeleton-line.long  { width: 65%; }

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}



/* --- ABOUT GRID --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.about-feature {
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    transition: var(--transition);
}

.about-feature:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.about-feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    color: var(--primary);
}

.about-feature-icon svg {
    width: 100%;
    height: 100%;
}

.about-feature h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- STATS ROW --- */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 40px;
}

.stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-plus {
    font-size: 1.6rem;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
    flex-shrink: 0;
}

/* --- CTA SEKCE (nahrazuje "Důležité zdroje") --- */
.cta-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 100px 10%;
    background-color: var(--bg-white) !important;
}

.cta-inner {
    max-width: 700px;
    text-align: center;
}

.cta-inner h2 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 16px 0 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.cta-inner h2 span {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-inner > p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.cta-btn-primary {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 24px rgba(69, 0, 251, 0.3);
    transition: var(--transition);
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(69, 0, 251, 0.4);
}

.cta-btn-ghost {
    background: transparent;
    color: var(--text-dark);
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn-ghost svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

.cta-btn-ghost:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: rgba(69, 0, 251, 0.04);
}

/* --- FAQ ACCORDION --- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.open {
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
}

.faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: color 0.2s;
}

.faq-btn:hover { color: var(--primary); }

.faq-item.open .faq-btn { color: var(--primary); }

.faq-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-body p {
    padding: 0 24px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}


.footer {
    padding: 50px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    background-color: var(--bg-white);
    transition: background-color 0.4s ease;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.footer-logo span { color: var(--primary); }

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-copy {
    font-size: 0.82rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .stats-row { gap: 20px; }
    .stat-item { padding: 16px 20px; }
    .stat-divider { display: none; }
    .cta-links { flex-direction: column; align-items: stretch; }
    .cta-btn-primary, .cta-btn-ghost { text-align: center; }
}

/* --- WAVE DIVIDER (uvnitř hero, absolutně dole) --- */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 1;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* --- RECENZE / MARQUEE --- */
.reviews-section {
    background: var(--bg-white);
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

/* fade masky na okrajích */
.reviews-section::before,
.reviews-section::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.reviews-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white), transparent);
}
.reviews-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white), transparent);
}

.reviews-track-wrap {
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 32px;
    min-width: 320px;
    max-width: 340px;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.review-card:hover {
    border-color: var(--primary-light);
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.65;
    margin-bottom: 14px;
    font-style: italic;
}

.review-author {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
}

/* --- NEWS MORE BUTTON --- */
.news-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.news-more-btn {
    display: inline-block;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    padding: 12px 28px;
    border-radius: 50px;
    transition: var(--transition);
}

.news-more-btn:hover {
    background: rgba(69, 0, 251, 0.05);
    border-color: var(--primary-light);
    transform: translateX(4px);
}



/* =============================================
   MOBILNÍ MENU
   ============================================= */

/* Burger tlačítko — skryté na desktopu */
.mob-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s;
}

.mob-menu-btn:hover { background: rgba(120,120,120,0.1); }

.mob-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                opacity   0.35s ease,
                width     0.35s ease;
    transform-origin: center;
}

/* Animace do "X" */
.mob-menu-btn.open .mob-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mob-menu-btn.open .mob-bar:nth-child(2) { opacity: 0; width: 0; }
.mob-menu-btn.open .mob-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Fullscreen overlay */
.mob-overlay {
    display: none; /* jen mobil */
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: var(--bg-white);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mob-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mob-overlay-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    gap: 48px;
}

.mob-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mob-link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: clamp(2.4rem, 10vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    transition: color 0.2s ease;
    /* vstupní animace */
    opacity: 0;
    transform: translateY(30px);
    transition: color 0.2s ease,
                opacity 0.45s cubic-bezier(0.4,0,0.2,1),
                transform 0.45s cubic-bezier(0.4,0,0.2,1);
}

.mob-link::before {
    content: attr(data-num);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    opacity: 0.8;
    min-width: 24px;
    margin-bottom: 2px;
}

.mob-link:hover { color: var(--primary); }

/* Staggered animace linků při otevření */
.mob-overlay.open .mob-link:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.08s; }
.mob-overlay.open .mob-link:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.13s; }
.mob-overlay.open .mob-link:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.18s; }
.mob-overlay.open .mob-link:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.23s; }

.mob-discord-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    box-shadow: 0 6px 24px rgba(69, 0, 251, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.3s,
                transform 0.4s ease 0.3s,
                box-shadow 0.2s ease;
}

.mob-overlay.open .mob-discord-btn {
    opacity: 1;
    transform: none;
}

.mob-discord-btn:hover {
    box-shadow: 0 10px 30px rgba(69, 0, 251, 0.45);
}

/* =============================================
   MOBILNÍ BOTTOM BAR (při scrollu dolů)
   ============================================= */

.mob-bottom-bar {
    display: none; /* jen mobil */
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(120px); /* začíná schovaný */
    z-index: 1900;
    background: var(--navbar);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 8px 16px;
    gap: 4px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Viditelný stav */
.mob-bottom-bar.visible {
    transform: translateX(-50%) translateY(0);
}

.mob-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.2s, background 0.2s;
}

.mob-bottom-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

.mob-bottom-item:hover,
.mob-bottom-item.active {
    color: var(--primary);
    background: rgba(69, 0, 251, 0.08);
}

/* Discord středový prvek — odstraněn z bottom baru */

/* =============================================
   NAV THEME BUTTON (mobil — v navbaru)
   ============================================= */

.nav-theme-btn {
    display: none; /* jen mobil */
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: var(--text-dark);
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.nav-theme-btn:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--primary-light);
}

.nav-theme-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    pointer-events: none;
}

/* =============================================
   RESPONZIVITA — DESKTOP / MOBIL
   ============================================= */

@media (max-width: 768px) {
    /* Desktop nav schovej */
    .nav-links { display: none; }

    /* Zobraz burger + nav theme btn */
    .nav-theme-btn { display: flex; }
    .mob-menu-btn { display: flex; }

    /* Zobraz overlay a bottom bar */
    .mob-overlay { display: block; }
    .mob-bottom-bar { display: flex; }

    /* Na mobilu navbar zmizí při scrollu dolů */
    .navbar.scrolled-bottom {
        top: -100px;
        opacity: 0;
        pointer-events: none;
    }

    .hero-inner h1 { font-size: 2.5rem; }
    .news-row { flex-direction: column; gap: 10px; }

    /* Desktop theme toggle schovej — na mobilu je v navbaru */
    .theme-toggle-btn { display: none; }
}

@media (min-width: 769px) {
    .mob-menu-btn,
    .nav-theme-btn,
    .mob-overlay,
    .mob-bottom-bar { display: none !important; }
}

::-webkit-scrollbar { display: none; }
::selection { background: #7c3aed4f !important; color: white !important; }
#faq a { color: #a072f1; text-decoration: underline; }