/* ===== CSS Reset & Variables ===== */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f0932b;
    --accent-glow: #f6b83d;
    --bg-dark: #0a0a1a;
    --bg-card: #111132;
    --bg-card-hover: #181845;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d0;
    --text-muted: #7a7a9a;
    --border: rgba(255,255,255,0.08);
    --shadow: 0 4px 30px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f0932b 0%, #f6b83d 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a1a 0%, #111132 50%, #0a0a1a 100%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(240, 147, 43, 0.05) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 1px 0 var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 26, 0.6) 0%,
        rgba(10, 10, 26, 0.4) 40%,
        rgba(10, 10, 26, 0.85) 80%,
        var(--bg-dark) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 8px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-download-wrapper {
    position: relative;
    display: inline-flex;
}

.qr-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.qr-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.btn-download-wrapper:hover .qr-tooltip {
    opacity: 1;
    visibility: visible;
}

.qr-tooltip img,
.qr-tooltip canvas {
    width: 120px;
    height: 120px;
    display: block;
}

.qr-tooltip span {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-glow);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-glow);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: scale(1.3);
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== Features ===== */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.feature-emoji {
    font-size: 28px;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Showcase ===== */
.showcase {
    padding: 60px 0 100px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.showcase-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.showcase-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 3/5;
}

/* ===== Screenshots ===== */
.screenshots {
    padding: 60px 0 100px;
    overflow: hidden;
}

.screenshots-scroll {
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.screenshots-scroll::-webkit-scrollbar {
    height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.screenshots-track {
    display: flex;
    gap: 20px;
    padding: 0 24px;
    width: max-content;
}

.screenshot-item {
    width: 560px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.4);
}

.screenshot-item img {
    width: 100%;
    display: block;
    aspect-ratio: 1015/570;
    object-fit: cover;
}

/* ===== Guide Section ===== */
.guide {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(240, 147, 43, 0.03) 50%, transparent 100%);
}

.guide-hero-card {
    background: var(--bg-card);
    border: 1px solid rgba(240, 147, 43, 0.25);
    border-radius: var(--radius);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.guide-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.guide-hero-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(240, 147, 43, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.guide-hero-icon {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.guide-hero-text {
    position: relative;
    z-index: 1;
    flex: 1;
}

.guide-hero-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-glow);
}

.guide-hero-text p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.guide-formula {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 18px;
    background: rgba(240, 147, 43, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(240, 147, 43, 0.15);
}

.guide-formula span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.guide-formula code {
    background: rgba(0, 0, 0, 0.3);
    color: var(--accent-glow);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Guide Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.guide-card:hover {
    border-color: rgba(240, 147, 43, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.guide-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.guide-card-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.guide-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(240, 147, 43, 0.12);
    color: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.guide-card-title {
    flex: 1;
    min-width: 0;
}

.guide-card-title h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.guide-tag {
    display: inline-block;
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: 50px;
    background: rgba(240, 147, 43, 0.1);
    color: var(--accent-glow);
    font-weight: 500;
}

.guide-arrow {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.guide-card.expanded .guide-arrow {
    transform: rotate(180deg);
    color: var(--accent-glow);
}

.guide-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.guide-card.expanded .guide-card-body {
    max-height: 300px;
}

.guide-card-body p {
    padding: 0 20px 18px 68px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.8;
}

.guide-card-body p strong {
    color: var(--accent-glow);
}

/* ===== Benefits ===== */
.benefits {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.03) 50%, transparent 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.benefit-card.highlight {
    border-color: rgba(240, 147, 43, 0.3);
    background: linear-gradient(135deg, rgba(240, 147, 43, 0.1) 0%, rgba(246, 184, 61, 0.05) 100%);
    position: relative;
}

.benefit-card.highlight::after {
    content: 'HOT';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.benefit-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.benefit-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Download ===== */
.download {
    padding: 100px 0;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr 160px;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.download-icon img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.download-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.download-version {
    color: var(--accent-glow);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    color: #fff;
}

.btn-download.android {
    background: var(--gradient-primary);
}

.btn-download.ios {
    background: linear-gradient(135deg, #183fff 0%, #43a8ff 100%);
    border: 1px solid var(--border);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.qr-section {
    text-align: center;
    position: relative;
    z-index: 1;
}

.qr-placeholder {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    line-height: 0;
}

.qr-placeholder img,
.qr-placeholder canvas {
    width: 100px;
    height: 100px;
    display: block;
}

.qr-section p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(17, 17, 50, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
}

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

.back-to-top:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
}

/* ===== Friendly Links ===== */
.friendly-links {
    padding: 40px 0 50px;
    background: rgba(10, 10, 26, 0.4);
}

.links-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.links-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.links-divider {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.links-grid a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.links-grid a:hover {
    color: var(--text-primary);
    border-color: rgba(102, 126, 234, 0.4);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 24px;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 26, 0.8);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.footer-brand h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== Lightbox ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .download-card {
        grid-template-columns: 1fr 1fr;
    }

    .qr-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .qr-tooltip {
        display: none;
    }

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

    /* Guide */
    .guide-hero-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 20px;
    }

    .guide-hero-text h3 {
        font-size: 1.1rem;
    }

    .guide-formula {
        justify-content: center;
    }

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

    .guide-card-body p {
        padding: 0 16px 14px 56px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: var(--transition);
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-stats {
        gap: 24px;
    }

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

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

    .showcase-item img {
        aspect-ratio: 3/5;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .screenshot-item {
        width: 420px;
    }

    .download-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        text-align: center;
    }

    .download-info {
        flex-direction: column;
        text-align: center;
    }

    .download-buttons {
        flex-direction: column;
    }

    .btn-download {
        width: 100%;
    }

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

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

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

    .features,
    .showcase,
    .screenshots,
    .benefits,
    .download {
        padding: 60px 0;
    }

    .friendly-links {
        padding: 30px 0 36px;
    }

    .links-grid {
        gap: 8px;
    }

    .links-grid a {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-download-wrapper {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons .btn-download-wrapper .btn {
        width: 100%;
    }

    .showcase-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .screenshot-item {
        width: 320px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
