:root {
    --bg-base: #09090b;
    --bg-surface: rgba(24, 24, 27, 0.4);
    --bg-surface-solid: #18181b;
    --bg-hover: rgba(39, 39, 42, 0.8);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(234, 179, 8, 0.4);
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent: #eab308;
    --accent-light: #fde047;
    --accent-glow: rgba(234, 179, 8, 0.15);
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}
body {
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 15% 50%, rgba(234, 179, 8, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(234, 179, 8, 0.04) 0%, transparent 40%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    background-attachment: fixed;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

a { text-decoration: none; }
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}
.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}
.logo img {
    height: 32px; width: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.5));
}
.nav-links { display: flex; gap: 0.5rem; }
.nav-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-btn:hover {
    color: var(--text-main);
    background-color: var(--bg-hover);
}
.nav-btn.active {
    color: var(--accent);
    background-color: var(--accent-glow);
    border-color: rgba(234, 179, 8, 0.2);
}
.nav-btn i { width: 16px; height: 16px; }
main { padding-top: 90px; min-height: 100vh; }
.page {
    display: block;
    padding: 4rem 5%;
    max-width: 1300px;
    margin: 0 auto;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.docs-body {
    overflow: hidden;
}
.docs-layout {
    display: flex;
    height: 100vh;
    padding-top: 76px;
    background: var(--bg-base);
}
.docs-sidebar {
    width: 280px;
    background: var(--bg-surface-solid);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    flex-shrink: 0;
}
.docs-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.docs-search:focus-within {
    border-color: rgba(234, 179, 8, 0.4);
    background: rgba(255, 255, 255, 0.06);
}
.docs-search i {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    color: var(--text-muted);
}
.docs-search input {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 100%;
    outline: none;
    font-family: var(--font-family);
    font-size: 0.9rem;
}
.docs-nav-group {
    margin-bottom: 2.5rem;
}
.docs-nav-group h4 {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    padding-left: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.docs-nav-link {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.3rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.docs-nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}
.docs-nav-link.active {
    color: var(--accent);
    background: var(--accent-glow);
    border-left: 3px solid var(--accent);
    font-weight: 500;
}
.docs-content {
    flex: 1;
    overflow-y: auto;
    padding: 4rem 8%;
    scroll-behavior: smooth;
    position: relative;
}
.docs-section {
    margin-bottom: 3.5rem;
    max-width: 800px;
}
.docs-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.docs-section h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.docs-section h3 {
    font-size: 1.25rem;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-weight: 600;
}
.docs-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #d4d4d8;
}
.docs-section ul, .docs-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #d4d4d8;
    font-size: 1.05rem;
    line-height: 1.7;
}
.docs-section li {
    margin-bottom: 0.6rem;
}
.docs-section code {
    background: #27272a;
    color: var(--accent-light);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
    border: 1px solid #3f3f46;
}
.docs-section pre {
    background: #18181b;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #27272a;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.docs-section pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: #f4f4f5;
    font-size: 0.95rem;
}
.docs-divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 3.5rem 0;
    max-width: 800px;
}
.docs-note {
    background: rgba(234, 179, 8, 0.05);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px rgba(234, 179, 8, 0.3); }
    100% { box-shadow: 0 0 20px var(--accent-glow); }
}
@keyframes pulseSuccess {
    0% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.15); }
    50% { box-shadow: 0 0 40px rgba(34, 197, 94, 0.3); }
    100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.15); }
}
@keyframes chromeShine {
    to { background-position: 200% center; }
}
.text-gradient {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
h1 { font-size: clamp(2.5rem, 4vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; color: var(--text-main); }
p { color: var(--text-muted); font-size: 1.1rem; }
.btn-primary {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary i { transition: transform 0.3s; }
.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-light);
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.4);
}
.btn-primary:hover i.move-right { transform: translateX(4px); }
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-top: 3rem;
    margin-bottom: 7rem;
}
.hero-content { flex: 1; max-width: 600px; }
.hero-subtitle { margin: 0 0 2.5rem 0; font-size: 1.15rem; color: var(--text-muted); }
.app-showcase-wrapper {
    flex: 1;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    position: relative;
}
.app-showcase-wrapper::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70%; height: 70%;
    background: var(--accent);
    filter: blur(140px);
    opacity: 0.2;
    z-index: -1;
}
.app-showcase {
    width: 100%;
    max-width: 650px;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s ease-out;
}
.app-showcase img {
    width: 100%; height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    background: var(--bg-surface-solid);
    transform: translateZ(20px);
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--bg-surface-solid);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 48px; height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(234, 179, 8, 0.2);
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; font-weight: 600; }
.feature-card p { font-size: 0.95rem; }
.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}
.center-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    padding: 4rem 3rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 600px;
    width: 100%;
}
.center-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.download-icon {
    width: 64px; height: 64px;
    background: rgba(234, 179, 8, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseGlow 2s infinite;
}
.success-icon {
    width: 64px; height: 64px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseSuccess 2s infinite;
}
.version-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.05em;
}

.download-progress-container {
    display: none;
    margin: 1.5rem auto 0;
    width: 100%;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 8px;
    overflow: hidden;
    height: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.download-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #f59e0b);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
.download-status {
    display: none;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}
.btn-primary.downloading {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
    padding: 1rem;
}
.plan-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}
.plan-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-solid);
}
.plan-card.popular {
    border: 1px solid var(--accent);
    transform: scale(1.05);
    background: var(--bg-surface-solid);
    box-shadow: 0 20px 40px -10px var(--accent-glow);
    z-index: 10;
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.plan-header { text-align: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.plan-name { font-size: 1.2rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem; }
.plan-card.popular .plan-name { color: var(--accent); }
.plan-price { font-size: 3rem; font-weight: 800; color: var(--text-main); }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.plan-features { list-style: none; margin-bottom: 2.5rem; flex-grow: 1; }
.plan-features li { margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 12px; color: var(--text-main); font-size: 0.95rem; }
.plan-features i { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.sell-app-btn { width: 100%; }
.role-normal {
    color: var(--accent);
    font-weight: 700;
}
.role-plus {
    color: #ff00ff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8), 0 0 20px rgba(255, 0, 255, 0.4);
}
.role-ultra {
    background: linear-gradient(90deg, #ffffff, #9ca3af, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: chromeShine 3s linear infinite;
}
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 5%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5rem;
}

@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; gap: 2.5rem; }
    .hero-content { max-width: 100%; }
    .hero-subtitle { margin: 0 auto 2.5rem auto; }
    .app-showcase-wrapper { perspective: 0; }
    .app-showcase { max-width: 80%; transform: none !important; }
    .plan-card.popular { transform: scale(1); }
    
    .docs-layout { flex-direction: column; height: auto; }
    .docs-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem; height: auto; overflow: visible; }
    .docs-body { overflow: visible; }
    .docs-content { padding: 2rem 5%; }
}
@media (max-width: 768px) {
    nav { padding: 1rem; }
    .nav-btn span { display: none; }
    .nav-btn { padding: 0.5rem; }
    h1 { font-size: 2.5rem; }
    .page { padding: 2rem 5%; }
    .app-showcase { max-width: 100%; }
}
