:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.3);
    --secondary: #64748b;
    --bg: #0a0f1e;
    --bg-light: #0f172a;
    --surface: #1a2332;
    --surface-hover: #1e293b;
    --border: #2a3a4e;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #2563eb, #7c3aed);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

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

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

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }

.loader { position: relative; width: 60px; height: 60px; }
.loader-ring {
    width: 60px; height: 60px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loader-shield {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: var(--primary);
    width: 24px; height: 24px;
    border: 3px solid var(--primary);
    border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

/* ===== Typography ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 16px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px;
    line-height: 1.2;
}
.page-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}
.page-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 500px;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.3s;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo i { margin-right: 6px; color: var(--primary); font-size: 1.2rem; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}
.nav a:not(.btn):hover { color: var(--text); }
.nav a:not(.btn):hover::after { width: 100%; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 30px var(--primary-glow);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: var(--surface);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.stat-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 4px;
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* Hero BG Shapes */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}
.shape-1 {
    width: 500px; height: 500px;
    background: var(--primary);
    top: -200px; right: -100px;
    animation: float 8s ease-in-out infinite;
}
.shape-2 {
    width: 400px; height: 400px;
    background: #7c3aed;
    bottom: -150px; left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
    width: 300px; height: 300px;
    background: #06b6d4;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* ===== Features Preview ===== */
.features-preview {
    padding: 100px 0;
    text-align: center;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.feature-card {
    background: var(--surface);
    padding: 36px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: left;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
}
.feature-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--primary);
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ===== Protocols ===== */
.protocols {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-light);
}
.protocols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.protocol-card {
    background: var(--surface);
    padding: 36px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.protocol-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.protocol-logo { width: 64px; height: 64px; margin-bottom: 16px; }
.protocol-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.protocol-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Pricing ===== */
.pricing, .pricing-preview {
    padding: 100px 0;
    text-align: center;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.pricing-card {
    background: var(--surface);
    padding: 36px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
}
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.1);
    transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.price { margin-bottom: 8px; }
.amount { font-size: 2.8rem; font-weight: 800; }
.currency { font-size: 1.2rem; font-weight: 600; color: var(--text-muted); }
.period { color: var(--text-muted); font-size: 0.95rem; }
.plan-desc { color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }
.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
    flex: 1;
}
.features-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.features-list li:last-child { border-bottom: none; }
.features-list li i { color: var(--success); width: 16px; }
.features-list li.disabled { color: var(--text-muted); opacity: 0.5; }
.features-list li.disabled i { color: var(--text-muted); }
.pricing-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pricing-note i { color: var(--primary); }

/* Pricing Table */
.pricing-table {
    margin-top: 60px;
    text-align: left;
}
.pricing-table h3 { margin-bottom: 24px; text-align: center; }
.table-wrapper { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
}
th, td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
th { background: var(--bg-light); font-weight: 600; }
td:first-child { text-align: left; font-weight: 500; }
td.highlight { background: rgba(37, 99, 235, 0.05); }
th.highlight { background: rgba(37, 99, 235, 0.1); }

/* Payment Info */
.payment-info {
    margin-top: 60px;
    text-align: center;
}
.payment-info h3 { margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.payment-methods {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
}
.payment-method i { color: var(--primary); font-size: 1.2rem; }

/* ===== Reviews ===== */
.reviews {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-light);
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.review-card {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: left;
    transition: all 0.3s ease;
}
.review-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}
.review-stars { color: var(--warning); margin-bottom: 16px; font-size: 0.9rem; gap: 2px; display: flex; }
.review-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.review-avatar {
    width: 40px; height: 40px;
    background: var(--surface-hover);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
}
.review-author div { display: flex; flex-direction: column; }
.review-author strong { font-size: 0.95rem; }
.review-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq {
    padding: 60px 0 100px;
}
.faq-preview {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-light);
}
.faq-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 32px;
}
.faq-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.faq-search input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.faq-search input:focus { border-color: var(--primary); }
.faq-categories {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.faq-cat {
    padding: 8px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.faq-cat:hover, .faq-cat.active { background: var(--primary); color: white; border-color: var(--primary); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
}
.faq-question i { transition: transform 0.3s ease; color: var(--text-muted); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}
.faq-answer p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.faq-more { margin-top: 24px; }
.faq-more .btn i { font-size: 0.85rem; }

/* ===== Features Detail ===== */
.features-detail {
    padding: 60px 0;
}
.feature-block {
    display: flex;
    gap: 30px;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1px solid var(--border);
    align-items: flex-start;
    transition: all 0.3s ease;
}
.feature-block:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.05);
}
.feature-block-icon {
    min-width: 60px;
    height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 14px;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}
.feature-block-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}
.feature-block-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}
.feature-block-content ul { list-style: none; padding: 0; }
.feature-block-content li {
    padding: 6px 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
.feature-block-content li i { color: var(--success); }

/* ===== CTA ===== */
.cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg), var(--surface));
}
.cta h2 { font-size: 2.5rem; margin-bottom: 16px; }
.cta p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 32px; }

/* ===== Page Hero ===== */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-light);
    padding: 60px 0 0;
    border-top: 1px solid var(--border);
}
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-desc { color: var(--text-muted); margin-top: 12px; font-size: 0.9rem; max-width: 350px; }
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}
.footer-social a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.2s;
    text-decoration: none;
}
.footer-social a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.footer-col h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    .page-title { font-size: 2.2rem; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-links-group { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { flex-wrap: wrap; gap: 30px; }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    .feature-block { flex-direction: column; padding: 28px; }
}

@media (max-width: 600px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        gap: 16px;
    }
    .burger { display: flex; }
    .hero-title { font-size: 2rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-stats { gap: 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-links-group { grid-template-columns: 1fr; }
    .payment-methods { flex-direction: column; align-items: center; }
    .pricing-note { flex-direction: column; text-align: center; }
}
