/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #050810;
    --bg-deep: #0a0e1a;
    --bg-card: #0d1225;
    --bg-card-hover: #111836;
    --accent: #6c63ff;
    --accent-light: #8b83ff;
    --cyan: #00d4ff;
    --pink: #ff6b9d;
    --purple: #9b59b6;
    --green: #00e676;
    --orange: #ff9100;
    --text: #ffffff;
    --text-muted: #8892b0;
    --text-dim: #4a5280;
    --border: rgba(108, 99, 255, 0.15);
    --glow: rgba(108, 99, 255, 0.4);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    cursor: default;
}

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

/* ==================== ЗВЁЗДНЫЙ ФОН ==================== */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: white;
    animation: twinkle var(--duration) ease-in-out infinite alternate;
    animation-delay: var(--delay);
}

.star.colored {
    box-shadow: 0 0 6px var(--color), 0 0 12px var(--color);
}

@keyframes twinkle {
    0% { opacity: var(--from-opacity); transform: scale(1); }
    100% { opacity: var(--to-opacity); transform: scale(1.3); }
}

/* ==================== ТУМАННОСТИ ==================== */
.nebula {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.nebula-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08), transparent 70%);
    top: -200px;
    left: -200px;
    animation: nebulaDrift 20s ease-in-out infinite alternate;
}

.nebula-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.06), transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: nebulaDrift 25s ease-in-out infinite alternate-reverse;
}

.nebula-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05), transparent 70%);
    top: 50%;
    left: 60%;
    animation: nebulaDrift 18s ease-in-out infinite alternate;
}

.nebula-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.06), transparent 70%);
    top: 30%;
    left: 10%;
    animation: nebulaDrift 22s ease-in-out infinite alternate-reverse;
}

@keyframes nebulaDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ==================== SHOOTING STARS ==================== */
.shooting-star {
    position: fixed;
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, white, transparent);
    opacity: 0;
    z-index: 1;
    animation: shoot var(--shoot-duration, 3s) linear infinite;
    animation-delay: var(--shoot-delay, 0s);
    top: var(--shoot-top, 20%);
    left: -150px;
    transform: rotate(-15deg);
}

.shooting-star:nth-child(1) { --shoot-duration: 2.5s; --shoot-delay: 1s; --shoot-top: 15%; }
.shooting-star:nth-child(2) { --shoot-duration: 3.5s; --shoot-delay: 4s; --shoot-top: 35%; }
.shooting-star:nth-child(3) { --shoot-duration: 2s; --shoot-delay: 7s; --shoot-top: 55%; }
.shooting-star:nth-child(4) { --shoot-duration: 4s; --shoot-delay: 10s; --shoot-top: 25%; }
.shooting-star:nth-child(5) { --shoot-duration: 3s; --shoot-delay: 14s; --shoot-top: 70%; }

@keyframes shoot {
    0% { left: -150px; opacity: 0; }
    5% { opacity: 1; }
    70% { opacity: 1; }
    100% { left: 110vw; opacity: 0; }
}

/* ==================== CURSOR GLOW ==================== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* ==================== НАВИГАЦИЯ ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 8, 16, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoSpin 4s linear infinite;
}

@keyframes logoSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
}

.logo-text {
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: white;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--accent), #8b83ff);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 120px 24px 60px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent-light);
    margin-bottom: 32px;
    animation: badgePulse 3s ease-in-out infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(108, 99, 255, 0); }
}

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.title-main {
    display: inline-flex;
    font-size: clamp(60px, 12vw, 100px);
    font-weight: 900;
    letter-spacing: 8px;
}

.letter {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 40%, var(--cyan) 70%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: letterFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
}

@keyframes letterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== КНОПКИ ==================== */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
}

.btn-primary {
    color: white;
}

.btn-primary .btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), #8b83ff, var(--cyan));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    z-index: 1;
    border-radius: 14px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.2);
}

/* ==================== HERO STATS ==================== */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, white, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--text-dim), transparent);
}

/* ==================== HERO PREVIEW ==================== */
.hero-preview {
    margin-top: 60px;
    position: relative;
}

.preview-window {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    width: 600px;
    max-width: 90vw;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.preview-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.15), transparent 70%);
    z-index: 1;
    filter: blur(40px);
}

.preview-titlebar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.preview-dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.preview-title {
    font-size: 12px;
    color: var(--text-muted);
}

.preview-body {
    display: flex;
    min-height: 200px;
}

.preview-sidebar {
    width: 48px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
}

.preview-nav-item {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    cursor: default;
    transition: background 0.2s;
}

.preview-nav-item.active {
    background: rgba(108, 99, 255, 0.15);
}

.preview-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.8;
}

.code-comment { color: #4a5280; }
.code-keyword { color: var(--accent-light); }
.code-var { color: var(--cyan); }
.code-func { color: var(--green); }
.code-string { color: var(--pink); }
.code-cursor {
    color: var(--accent);
    animation: cursorBlink 1s step-end infinite;
}

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

.preview-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.preview-btn {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 11px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.15);
    color: white;
    cursor: default;
    transition: all 0.2s;
}

.preview-btn:hover {
    background: rgba(108, 99, 255, 0.2);
}

/* ==================== SCROLL INDICATOR ==================== */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ==================== SECTIONS COMMON ==================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent-light);
    margin-bottom: 20px;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ==================== FEATURES ==================== */
.features {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.15);
}

.feature-card .feature-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    position: relative;
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent);
}

.feature-icon.cyan { background: rgba(0, 212, 255, 0.1); color: var(--cyan); }
.feature-icon.pink { background: rgba(255, 107, 157, 0.1); color: var(--pink); }
.feature-icon.green { background: rgba(0, 230, 118, 0.1); color: var(--green); }
.feature-icon.orange { background: rgba(255, 145, 0, 0.1); color: var(--orange); }
.feature-icon.purple { background: rgba(155, 89, 182, 0.1); color: var(--purple); }

.icon-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.icon-glow.cyan { background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent 70%); }
.icon-glow.pink { background: radial-gradient(circle, rgba(255, 107, 157, 0.2), transparent 70%); }
.icon-glow.green { background: radial-gradient(circle, rgba(0, 230, 118, 0.2), transparent 70%); }
.icon-glow.orange { background: radial-gradient(circle, rgba(255, 145, 0, 0.2), transparent 70%); }
.icon-glow.purple { background: radial-gradient(circle, rgba(155, 89, 182, 0.2), transparent 70%); }

.feature-card:hover .icon-glow { opacity: 1; }

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ==================== SHOWCASE ==================== */
.showcase {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.showcase-card.main {
    grid-row: span 2;
}

.showcase-card:hover {
    border-color: rgba(108, 99, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(108, 99, 255, 0.12);
}

.showcase-visual, .showcase-mini-visual {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}

.mock-window {
    border-radius: 12px;
    overflow: hidden;
}

.mock-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: var(--text-dim);
}

.mock-dots {
    display: flex;
    gap: 5px;
}

.mock-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
}

.mock-dots span:nth-child(1) { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #ffbd2e; }
.mock-dots span:nth-child(3) { background: #28c840; }

.mock-body {
    padding: 16px;
    position: relative;
}

.mock-editor {
    position: relative;
}

.mock-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 2;
    color: var(--text-muted);
}

.mock-ln { color: var(--text-dim); margin-right: 12px; }
.c-comment { color: #4a5280; }
.c-kw { color: var(--accent-light); }
.c-str { color: var(--pink); }
.c-fn { color: var(--green); }

/* Mini Script Hub */
.mini-scripthub {
    padding: 14px;
}

.mini-search {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.mini-card-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-script-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(108, 99, 255, 0.05);
    border: 1px solid rgba(108, 99, 255, 0.1);
    border-radius: 8px;
    font-size: 11px;
}

.mini-title { color: white; font-weight: 500; }
.mini-game { color: var(--cyan); font-size: 10px; }

/* Mini Settings */
.mini-settings {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.toggle {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: var(--text-dim);
    position: relative;
    transition: background 0.3s;
}

.toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle.on {
    background: var(--accent);
}

.toggle.on::after {
    transform: translateX(16px);
}

.slider-bar {
    width: 80px;
    height: 4px;
    background: var(--text-dim);
    border-radius: 4px;
    overflow: hidden;
}

.slider-fill {
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    border-radius: 4px;
}

.showcase-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.showcase-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== STATS ==================== */
.stats-section {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 16px 40px rgba(108, 99, 255, 0.12);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 16px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent);
}

.stat-icon.cyan { background: rgba(0, 212, 255, 0.1); color: var(--cyan); }
.stat-icon.pink { background: rgba(255, 107, 157, 0.1); color: var(--pink); }
.stat-icon.green { background: rgba(0, 230, 118, 0.1); color: var(--green); }

.stat-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, white, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-name {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.stat-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 4px;
    transition: width 1.5s ease;
}

.stat-bar-fill.cyan { background: linear-gradient(90deg, var(--cyan), #66e0ff); }
.stat-bar-fill.pink { background: linear-gradient(90deg, var(--pink), #ff99bc); }
.stat-bar-fill.green { background: linear-gradient(90deg, var(--green), #66ffaa); }

.stat-bar-fill.animated {
    width: var(--width);
}

/* ==================== DOWNLOAD ==================== */
.download-section {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.download-nebula {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.12), transparent 70%);
    top: -200px;
    right: -100px;
    filter: blur(60px);
}

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

.download-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 50px;
    font-size: 13px;
    color: var(--green);
    margin-bottom: 20px;
}

.download-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
}

.download-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.download-buttons {
    margin-bottom: 24px;
}

.btn-download {
    display: inline-flex;
    color: white;
    border-radius: 16px;
}

.btn-download .btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), #8b83ff, var(--cyan));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    z-index: 1;
    border-radius: 16px;
}

.btn-download .btn-content {
    padding: 16px 36px;
    gap: 14px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(108, 99, 255, 0.5);
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-small {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 400;
}

.btn-large {
    font-size: 18px;
    font-weight: 700;
}

.download-info {
    display: flex;
    gap: 24px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
}

.download-info i {
    color: var(--green);
    margin-right: 6px;
}

/* ==================== FAQ ==================== */
.faq-section {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

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

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-item.active {
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.faq-question:hover { color: var(--accent-light); }

.faq-question i {
    font-size: 14px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ==================== FOOTER ==================== */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: white;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.3);
    color: var(--accent-light);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-light);
}

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

.footer-bottom p {
    color: var(--text-dim);
    font-size: 13px;
}

/* ==================== ANIMATIONS / AOS ==================== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-40px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(40px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    .showcase-card.main {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .mobile-toggle { display: flex; }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

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

    .download-content h2 {
        font-size: 28px;
    }

    .title-main {
        letter-spacing: 4px;
    }
}

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

    .download-info {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(108, 99, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 99, 255, 0.5);
}

/* ==================== SELECTION ==================== */
::selection {
    background: rgba(108, 99, 255, 0.3);
    color: white;
}
