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

:root {
    --bg: #030712;
    --surface: rgba(15, 23, 42, 0.7);
    --surface-solid: #0f172a;
    --border: rgba(30, 41, 59, 0.6);
    --text: #e2e8f0;
    --text2: #94a3b8;
    --text3: #64748b;
    --accent: #6366f1;
    --accent2: #818cf8;
    --green: #22c55e;
    --blue: #3b82f6;
    --purple: #a855f7;
    --amber: #f59e0b;
    --glow: rgba(99, 102, 241, 0.15);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 3D Canvas Background */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page-content { position: relative; z-index: 1; }

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

/* Glass card effect */
.glass {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
}

/* Navbar */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(3, 7, 18, 0.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid rgba(30, 41, 59, 0.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; }
.nav-logo { font-size: 20px; font-weight: 800; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em; }
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 8px; transition: all 0.2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-btn { background: var(--accent); color: #fff !important; border-radius: 8px; padding: 8px 20px !important; font-weight: 600 !important; }
.nav-btn:hover { background: #4f46e5 !important; }

/* Hero */
.hero { padding: 160px 0 100px; text-align: center; position: relative; perspective: 1000px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.25); border-radius: 100px; padding: 6px 16px 6px 8px; font-size: 13px; font-weight: 600; color: var(--accent2); margin-bottom: 24px; animation: fadeInDown 0.8s ease-out; }
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(40px) rotateX(10deg); } to { opacity: 1; transform: translateY(0) rotateX(0); } }

.hero h1 {
    font-size: clamp(36px, 6vw, 68px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 50%, var(--accent2) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--accent2) 0%, var(--purple) 100%);
    -webkit-background-clip: text; background-clip: text;
}
.hero p { font-size: clamp(16px, 2vw, 20px); color: var(--text2); max-width: 680px; margin: 0 auto 40px; line-height: 1.7; animation: fadeInUp 0.8s ease-out 0.4s both; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.8s ease-out 0.6s both; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; transition: all 0.3s; border: none; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 30px rgba(99,102,241,0.2); }
.btn-primary:hover { background: #4f46e5; transform: translateY(-2px); box-shadow: 0 8px 40px rgba(99,102,241,0.4); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--text3); transform: translateY(-2px); }

/* Install */
.install-banner { margin-top: 56px; padding: 0 24px; animation: fadeInUp 0.8s ease-out 0.8s both; }
.install-card { max-width: 680px; margin: 0 auto; background: #0f172a; border: 1px solid #1e293b; border-radius: 16px; padding: 20px 24px; }
.install-label { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.install-cmd { display: flex; align-items: center; gap: 12px; background: rgba(3,7,18,0.8); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-family: 'SF Mono', 'Fira Code', Consolas, monospace; font-size: 14px; color: #a5f3fc; overflow-x: auto; }
.install-cmd .prefix { color: var(--accent); user-select: none; flex-shrink: 0; }
.install-cmd code { flex: 1; user-select: all; white-space: nowrap; }
.install-copy { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; transition: all 0.2s; }
.install-copy:hover { background: #4f46e5; box-shadow: 0 0 20px rgba(99,102,241,0.3); }
.install-copy.copied { background: #16a34a; }
.install-note { font-size: 12px; color: var(--text3); margin-top: 10px; text-align: center; }

/* Dashboard Preview */
.dashboard-preview {
    margin-top: 64px;
    padding: 0 24px;
    animation: floatIn 1s ease-out 1s both;
    perspective: 1000px;
}
.dashboard-preview-frame {
    max-width: 960px;
    margin: 0 auto;
    background: #0c1222;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(99, 102, 241, 0.08),
        0 0 0 1px rgba(99, 102, 241, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.dashboard-preview-frame:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(99, 102, 241, 0.12),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}
.dashboard-preview-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}
.dashboard-preview-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }
.dashboard-preview-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text3);
    margin-left: 8px;
}
.dashboard-preview-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* Sections */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-header p { font-size: 17px; color: var(--text2); max-width: 600px; margin: 0 auto; }

/* 3D Feature Cards */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 800px; }
.feature-card {
    background: #0f172a; border: 1px solid #1e293b;
    border-radius: 16px; padding: 28px; transition: all 0.4s ease;
    transform-style: preserve-3d; transform: translateZ(0);
    animation: floatIn 0.6s ease-out both;
}
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
.feature-card:hover { transform: translateY(-8px) rotateX(2deg) rotateY(-2deg); border-color: var(--accent); box-shadow: 0 20px 60px rgba(99,102,241,0.15), 0 0 0 1px rgba(99,102,241,0.2); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }
.fi-drm { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.fi-provider { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.fi-remux { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.fi-admin { background: rgba(168, 85, 247, 0.1); color: #c084fc; }
.fi-auto { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.fi-secure { background: rgba(99, 102, 241, 0.1); color: #818cf8; }

/* Highlights */
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; perspective: 600px; }
.highlight-card { background: #0f172a; border: 1px solid #1e293b; border-radius: 16px; padding: 32px; position: relative; overflow: hidden; transition: transform 0.4s ease; }
.highlight-card:hover { transform: translateY(-4px); }
.highlight-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.hl-perf::before { background: linear-gradient(90deg, var(--green), #15803d); }
.hl-scale::before { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.highlight-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.highlight-list { list-style: none; }
.highlight-list li { font-size: 14px; color: var(--text2); padding: 6px 0; display: flex; align-items: flex-start; gap: 10px; }
.hl-check { color: var(--green); flex-shrink: 0; font-size: 16px; margin-top: 1px; }

/* Protocols */
.providers { text-align: center; padding: 60px 0; }
.providers h2 { font-size: 14px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 28px; }
.provider-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.provider-tag { background: #0f172a; border: 1px solid #1e293b; border-radius: 10px; padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--text2); transition: all 0.3s; }
.provider-tag:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.1); }

/* CTA */
.cta { text-align: center; padding: 100px 0; }
.cta-card { background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(168,85,247,0.06)); border: 1px solid rgba(99,102,241,0.25); border-radius: 24px; padding: 70px 40px; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 60%); animation: rotateBg 20s linear infinite; pointer-events: none; }
@keyframes rotateBg { to { transform: rotate(360deg); } }
.cta-card h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-card p { font-size: 17px; color: var(--text2); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* FAQ */
#faq .section-header { margin-bottom: 32px; }
.faq-list { max-width: 800px; margin: 0 auto; background: #0f172a; border: 1px solid #1e293b; border-radius: 16px; padding: 0 24px; }
.faq-item { border-bottom: 1px solid #1e293b; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 16px; font-weight: 600; padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text); transition: color 0.2s; }
.faq-q:hover { color: var(--accent2); }
.faq-a { font-size: 14px; color: var(--text2); line-height: 1.7; padding: 0 0 20px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-arrow { transition: transform 0.3s; font-size: 12px; color: var(--text3); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; }
footer p { font-size: 13px; color: var(--text3); }
footer a { color: var(--text2); text-decoration: none; }
footer a:hover { color: #fff; }

/* Scripts */
.scripts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 800px; }
.script-card { background: #0f172a; border: 1px solid #1e293b; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; transition: all 0.4s; transform: translateZ(0); }
.script-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 16px 50px rgba(99,102,241,0.12); }
.script-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.script-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.script-price-badge { flex-shrink: 0; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.price-free { background: rgba(34,197,94,0.12); color: #4ade80; }
.price-paid { background: rgba(99,102,241,0.12); color: var(--accent2); }
.script-desc { font-size: 13px; color: var(--text2); line-height: 1.6; flex: 1; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.script-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.script-tag { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; padding: 3px 8px; font-size: 11px; color: var(--text3); font-weight: 500; }
.script-tag.geo { color: #fbbf24; border-color: rgba(245,158,11,0.2); background: rgba(245,158,11,0.06); }
.script-tag.update { color: #38bdf8; border-color: rgba(56,189,248,0.2); background: rgba(56,189,248,0.06); }
.script-btn { display: block; text-align: center; padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; margin-top: auto; }
.script-btn-buy { background: var(--accent); color: #fff; }
.script-btn-buy:hover { background: #4f46e5; }
.script-btn-free { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.script-btn-soon { background: #1e293b; color: var(--text3); cursor: default; }

/* Packages */
.packages-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; perspective: 800px; }
.pkg-card { background: #0f172a; border: 1px solid #1e293b; border-radius: 16px; padding: 28px; text-align: center; transition: all 0.4s; position: relative; transform: translateZ(0); }
.pkg-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 16px 50px rgba(99,102,241,0.12); }
.pkg-card.popular { border-color: var(--accent); box-shadow: 0 0 40px rgba(99,102,241,0.1); }
.pkg-card.popular::before { content: 'Popular'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 14px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; }
.pkg-type-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.pkg-type-standard { color: var(--accent2); }
.pkg-type-premium { color: #fbbf24; }
.pkg-type-unlimited { color: #4ade80; }
.pkg-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.pkg-desc { font-size: 13px; color: var(--text2); margin-bottom: 16px; }
.pkg-price { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.pkg-duration { font-size: 13px; color: var(--text3); margin-bottom: 16px; }
.pkg-details { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.pkg-detail { background: rgba(255,255,255,0.04); border-radius: 6px; padding: 4px 10px; font-size: 12px; color: var(--text2); }
.pkg-detail strong { color: #fff; }
.pkg-btn { display: block; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s; background: var(--accent); color: #fff; }
.pkg-btn:hover { background: #4f46e5; box-shadow: 0 4px 20px rgba(99,102,241,0.3); }

/* Mobile */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .highlights { grid-template-columns: 1fr; }
    .scripts-grid { grid-template-columns: repeat(2, 1fr); }
    .packages-row { grid-template-columns: repeat(2, 1fr); }
}
/* Script Info Notice */
.script-notice { max-width: 800px; margin: 0 auto 40px; background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.15); border-radius: 14px; padding: 22px 28px; }
.script-notice-title { font-size: 14px; font-weight: 700; color: var(--accent2); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.script-notice-body { font-size: 13px; color: var(--text2); line-height: 1.75; }
.script-notice-body ul { list-style: none; padding: 0; margin: 8px 0 0; }
.script-notice-body li { padding-left: 18px; position: relative; margin-bottom: 4px; }
.script-notice-body li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (max-width: 640px) {
    .features-grid, .scripts-grid, .packages-row { grid-template-columns: 1fr; }
    .nav-links .nav-link-text { display: none; }
    .hero { padding: 120px 0 60px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; justify-content: center; }
    .install-cmd { font-size: 12px; }
    .cta-card { padding: 40px 24px; }
    .script-notice { padding: 18px 20px; }
}
