/* ============================================
   GAMEPULSE — High-Tech Gaming Walkthrough
   ============================================ */

/* ---------- RESET ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- TOKENS ---------- */
:root {
    --bg:          #06080d;
    --bg-alt:      #0b0f18;
    --surface:     #0e1219;
    --surface-alt: #141a24;
    --border:      #1c2435;
    --border-glow: rgba(255, 255, 255, 0.06);

    --accent:      #ffffff;
    --accent-dim:  rgba(255, 255, 255, 0.25);
    --accent-hot:  #ff2d6a;
    --accent-hot-dim: #ff2d6a30;
    --accent-gold: #ffc800;

    --text:        #f0f0f0;
    --text-muted:  #8a94a8;
    --text-dim:    #5a6478;

    --font-display: 'Open Sans', sans-serif;
    --font-mono:    'Open Sans', sans-serif;
    --font-body:    'Open Sans', sans-serif;

    --header-h: 80px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- LANGUAGE FONT SWITCH ---------- */
:lang(zh-Hans),
:lang(zh-CN){
    --font-display: 'Noto Sans SC', sans-serif;
    --font-mono:    'Noto Sans SC', sans-serif;
    --font-body:    'Noto Sans SC', sans-serif;
}

:lang(zh-Hant),
:lang(zh-HK){
    --font-display: 'Noto Sans TC', sans-serif;
    --font-mono:    'Noto Sans TC', sans-serif;
    --font-body:    'Noto Sans TC', sans-serif;
}

:lang(th) {
    --font-display: 'Noto Sans Thai', sans-serif;
    --font-mono:    'Noto Sans Thai', sans-serif;
    --font-body:    'Noto Sans Thai', sans-serif;
}

/* ---------- BASE ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 500;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
@media (max-width: 1024px) {
    body { font-size: 14px; }
    /* ... existing 1024 rules ... */
}

@media (max-width: 768px) {
    body { font-size: 12px; }
    /* ... existing 768 rules ... */
}


a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- HEADER ---------- */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(6, 8, 13, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.main-header.scrolled {
    background: rgba(6, 8, 13, 0.96);
    box-shadow: 0 2px 40px rgba(255, 255, 255, 0.04);
}

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

/* Logo */
.logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 1px;
    white-space: nowrap;
}

.logo-bracket {
    color: var(--accent);
    font-weight: 400;
    font-size: 1.3rem;
}

.logo-text { color: var(--text); }

.logo-accent {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-dim);
}
/* Logo image */
.logo-img {
    height: 70px;
    width: auto;
    display: block;
}


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

.nav-link {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 1.5px;
    padding: 10px 16px;
    font-weight:bold;
    color: var(--text-muted);
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-dim);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Language selector */
.lang-selector {
    position: relative;
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid var(--border);
}

.lang-btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    transition: color 0.3s;
}

.lang-btn:hover { color: var(--accent); }

.lang-icon {
    font-size: 0.45rem;
    color: var(--accent);
}

.lang-arrow {
    font-size: 0.72rem;
    transition: transform 0.3s;
}

.lang-selector.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s var(--ease);
    z-index: 100;
}

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

.lang-option {
    display: block;
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.lang-option:hover,
.lang-option.active {
    color: var(--accent);
    background: var(--surface-alt);
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-trigger {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.search-trigger:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-dim);
}

#searchTrigger{
    display:none;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.mobile-toggle span {
    display: block;
    height: 1.5px;
    background: var(--text-muted);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--accent);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--accent);
}

/* ---------- SEARCH OVERLAY ---------- */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 8, 13, 0.95);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 22vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-box {
    width: 90%;
    max-width: 680px;
    position: relative;
}

.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 18px 50px 18px 0;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 2px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input::placeholder {
    color: var(--text-dim);
    letter-spacing: 3px;
}

.search-box input:focus {
    border-color: var(--accent);
}

.search-close {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--text-muted);
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.search-close:hover { color: var(--accent); }

/* ---------- HERO SLIDER ---------- */
.hero-slider {
    margin-top: var(--header-h);
    position: relative;
}

.hero-swiper {
    width: 100%;
    height: 580px;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6,8,13,0.97) 0%, rgba(6,8,13,0.7) 45%, transparent 75%),
        linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 6px;
    line-height: 1.05;
    margin-bottom: 24px;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
}

.slide-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Primary button */
.btn-primary {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    letter-spacing: 3px;
    color: var(--bg);
    background: var(--accent);
    padding: 15px 36px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--accent-dim), 0 0 60px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform 0.3s;
}

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

/* Secondary button */
.btn-secondary {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--accent);
    border: 1px solid var(--border);
    padding: 14px 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--ease);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px var(--accent-dim);
}

/* Swiper overrides */
.hero-swiper .swiper-pagination {
    bottom: 32px !important;
    left: 28px !important;
    width: auto !important;
    display: flex;
    gap: 10px;
}

.hero-swiper .swiper-pagination-bullet {
    width: 32px;
    height: 2px;
    background: var(--text-dim);
    border-radius: 0;
    opacity: 1;
    transition: all 0.4s var(--ease);
}

.hero-swiper .swiper-pagination-bullet-active {
    width: 52px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-slider:hover .swiper-button-prev,
.hero-slider:hover .swiper-button-next {
    opacity: 1;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 14px;
}

.section-line {
    width: 50px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* ---------- GAMES GRID ---------- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.game-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s var(--ease);
    display: block;
}

.game-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 12px 50px rgba(255, 255, 255, 0.07);
}

.game-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.game-card:hover .game-card-img img {
    transform: scale(1.08);
}

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--surface) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 14px;
}

.game-walkthru-count {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 1px;
    color: var(--accent);
    background: rgba(6, 8, 13, 0.85);
    padding: 5px 10px;
    border: 1px solid var(--accent-dim);
}

.game-card-body {
    padding: 20px 22px;
}

.game-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

.game-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-top: 8px;
    line-height: 1.35;
}

.game-card-border {
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.5s var(--ease);
}

.game-card:hover .game-card-border {
    width: 100%;
}

/* ---------- ARTICLE CARDS ---------- */
.walkthru-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.article-card {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.article-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 40px rgba(255, 255, 255, 0.06);
}

.article-img {
    width: 240px;
    min-height: 185px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.article-card:hover .article-img img {
    transform: scale(1.08);
}

.article-img::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--surface));
}

.article-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.article-game {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
}

.meta-sep {
    color: var(--text-dim);
    font-size: 0.6rem;
}

.article-date,
.article-read {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.article-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.35;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.article-card:hover .article-title {
    color: var(--accent);
}

.article-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: var(--accent);
    transition: letter-spacing 0.3s;
}

.article-card:hover .article-link {
    letter-spacing: 4px;
}

/* ---------- POPULAR LIST ---------- */
.popular-list {
    display: flex;
    flex-direction: column;
}

.popular-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--ease);
    gap: 20px;
}

.popular-item:first-child {
    border-top: 1px solid var(--border);
}

.popular-item:hover {
    padding-left: 12px;
    border-bottom-color: var(--accent-dim);
}

.popular-rank {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-dim);
    min-width: 48px;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.popular-item:hover .popular-rank {
    color: var(--accent);
}

.popular-info { flex: 1; min-width: 0; }

.popular-game {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

.popular-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 4px;
    transition: color 0.3s;
}

.popular-item:hover .popular-title {
    color: var(--accent);
}

.popular-views {
    text-align: right;
    min-width: 80px;
}

.views-count {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
}

.views-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.popular-arrow {
    color: var(--text-dim);
    font-size: 1.1rem;
    transition: all 0.3s;
    min-width: 24px;
    text-align: center;
}

.popular-item:hover .popular-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* ---------- FOOTER ---------- */
.main-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 14px;
    line-height: 1.6;
}
.footer-tagline strong {
    font-size: 0.88rem;
}
.footer-small {
    font-size: 0.72rem;
}


.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 18px;
}

.footer-link {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 5px 0;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.footer-col p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 14px;
    line-height: 1.6;
}

.footer-qr {
    width: 140px;
    height: 140px;
    margin-top: 14px;
    object-fit: contain;
}


.newsletter-form {
    display: flex;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.newsletter-form:focus-within {
    border-color: var(--accent);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 14px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--text-dim);
}

.newsletter-form button {
    padding: 12px 18px;
    color: var(--accent);
    font-size: 1.1rem;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--accent);
    color: var(--bg);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.footer-credit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-swiper { height: 460px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0; bottom: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 28px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        overflow-y: auto;
        height:100vh;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-link::after { display: none; }

    .lang-selector {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-bottom: 1px solid var(--border);
        width: 100%;
        padding: 14px 0;
    }

    .lang-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        background: transparent;
        display: none;
        margin-top: 10px;
    }

    .lang-selector.open .lang-dropdown {
        display: block;
    }

    .lang-option { padding: 8px 0; }

    .mobile-toggle { display: flex; }

    .hero-swiper { height: 400px; }

    .slide-title { letter-spacing: 3px; }

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

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

    .article-card { flex-direction: column; }

    .article-img {
        width: 100%;
        min-height: 180px;
        height: 180px;
    }

    .article-img::after {
        width: 100%;
        height: 40%;
        top: auto;
        bottom: 0;
        right: auto;
        left: 0;
        background: linear-gradient(0deg, var(--surface), transparent);
    }

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

    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .section { padding: 56px 0; }

    .section-title { font-size: 1.4rem; letter-spacing: 4px; }

    .search-box input { font-size: 1.2rem; }

    .nav-container {
        position: relative;
        justify-content: center;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-actions {
        position: absolute;
        left: 16px;
        right: 16px;
        display: flex;
        justify-content: space-between;
    }

    .search-trigger {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-swiper { height: 340px; }
    .slide-desc { display: none; }
    .slide-title { font-size: 1.6rem; }
    .popular-views { display: none; }
}

.content-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.content-buttons .btn-primary {
    white-space: nowrap;
    padding: 14px 36px;
    text-decoration:none;
    color: var(--bg) !important;
}

.content-buttons .btn-primary p {
    color: var(--bg) !important;
    color: inherit;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.demo-iframe-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.demo-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}


.page-hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg);
    opacity: 0.7;
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}
