:root {
    --bg-color: #0d0d1a;
    --bg-alt: #16162a;
    --text-color: #e8e8f0;
    --text-muted: #a1a1aa;
    --accent-primary: #6c63ff;
    --accent-secondary: #4f46e5;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', sans-serif;
    --container-max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}
.container-md { max-width: 900px; }
.container-sm { max-width: 700px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }

/* Grid Helpers */
.grid { display: grid; gap: 2rem; }

/* Section Base */
.section { padding: 5rem 0; }
.bg-alt { background-color: var(--bg-alt); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff; padding: 1rem 2rem; border-radius: 8px; font-weight: 600;
    transition: all 0.3s ease; border: none; cursor: pointer; text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4); }
.btn-large { font-size: 1.2rem; padding: 1.2rem 2.5rem; }
.btn-small { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-full { width: 100%; }
.btn-outline { background: transparent; border: 1px solid var(--accent-primary); color: var(--text-color); }
.btn-outline:hover { background: rgba(108, 99, 255, 0.1); box-shadow: 0 0 15px rgba(108, 99, 255, 0.2); }

.glow-btn { position: relative; }
.glow-btn::before {
    content: ''; position: absolute; inset: -5px; background: inherit;
    filter: blur(15px); opacity: 0; transition: opacity 0.3s; z-index: -1; border-radius: inherit;
}
.glow-btn:hover::before { opacity: 0.7; }

/* Cards */
.card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 12px; padding: 2rem; backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(108, 99, 255, 0.3); }

/* Reading Progress */
#reading-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%; z-index: 9999;
}

/* Header */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; padding: 1.5rem 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.5rem; letter-spacing: 1px; }
.nav { display: flex; gap: 2rem; }
.nav a { font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav a:hover { color: var(--accent-primary); }

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

/* Scroll Reveal */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* Block 1: Hero */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding-top: 80px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(circle at center, rgba(108, 99, 255, 0.15) 0%, transparent 60%);
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; right: -50%; bottom: -50%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px; z-index: 0; pointer-events: none;
    transform: perspective(1000px) rotateX(60deg) scale(2);
    animation: gridMove 30s linear infinite; opacity: 0.3;
}
@keyframes gridMove {
    0% { transform: perspective(1000px) rotateX(60deg) translateY(0) scale(2); }
    100% { transform: perspective(1000px) rotateX(60deg) translateY(50px) scale(2); }
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.platforms-row { margin-top: 1.5rem; display: flex; gap: 1rem; justify-content: center; font-size: 2rem; opacity: 0.8; }

/* Block 2: Advantages */
.advantages-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Block 2.5: Counters */
.counters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.counter-box p { color: var(--text-muted); font-size: 1.1rem; }
.counter-number { font-size: 3rem; font-weight: 800; color: var(--accent-primary); display: flex; align-items: center; justify-content: center; }

/* Block 3: Stepper */
.stepper-container { position: relative; padding: 2rem 0; }
.stepper { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.step { flex: 1; text-align: center; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.step-num {
    width: 40px; height: 40px; border-radius: 50%; background: var(--card-bg); border: 2px solid var(--accent-primary);
    display: flex; align-items: center; justify-content: center; font-weight: bold; margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(108, 99, 255, 0); transition: 0.3s;
}
.step:hover .step-num { box-shadow: 0 0 15px rgba(108, 99, 255, 0.4); background: var(--accent-primary); }
.step-line { height: 2px; flex-grow: 1; background: var(--card-border); margin-top: 20px; transition: background 1s ease; }
.step-line.revealed { background: linear-gradient(90deg, var(--accent-primary), var(--card-border)); }

@media (max-width: 768px) {
    .stepper { flex-direction: column; align-items: flex-start; }
    .step { flex-direction: row; text-align: left; width: 100%; gap: 1rem; }
    .step-line { width: 2px; height: 30px; margin: 0 0 0 19px; }
    .step-num { margin-bottom: 0; min-width: 40px; }
}

/* Block 5: Pricing */
.pricing-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pricing-card { display: flex; flex-direction: column; position: relative; }
.pricing-card.popular { border: 2px solid var(--accent-primary); transform: translateY(-10px); box-shadow: 0 10px 30px rgba(108, 99, 255, 0.15); }
.pricing-card.popular:hover { transform: translateY(-15px); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; }
.pricing-header h3 { font-size: 1.5rem; text-align: center; }
.pricing-price { text-align: center; margin: 2rem 0; }
.price-value { font-size: 2.5rem; font-weight: 800; display: flex; align-items: baseline; justify-content: center; }
.price-value span { font-size: 1.2rem; font-weight: 400; color: var(--text-muted); }
.price-total { color: var(--text-muted); margin-bottom: 1rem; }
.price-saving { font-size: 0.9rem; background: rgba(56, 189, 248, 0.1); padding: 5px 10px; border-radius: 6px; display: inline-block; color: #38bdf8; }
.discount { font-weight: bold; }
.old-price { text-decoration: line-through; color: var(--text-muted); }
.pricing-features { flex-grow: 1; list-style: none; margin-bottom: 2rem; }
.pricing-features li { margin-bottom: 0.8rem; display: flex; gap: 0.5rem; }

/* Block 5.5 Calculator */
.calc-title { font-size: 1.1rem; margin-bottom: 1rem; text-align: center; }
.calc-tabs { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.calc-btn { background: var(--bg-color); border: 1px solid var(--card-border); color: var(--text-color); padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; transition: 0.3s; font-weight: 600; }
.calc-btn:hover { background: rgba(108, 99, 255, 0.1); }
.calc-btn.active { background: var(--accent-primary); border-color: var(--accent-primary); }
.calc-results { margin-bottom: 2rem; }
.calc-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.calc-label { width: 180px; font-size: 0.9rem; color: var(--text-muted); }
.calc-bar-wrapper { flex-grow: 1; height: 10px; background: rgba(255,255,255,0.05); border-radius: 5px; overflow: hidden; }
.calc-bar { height: 100%; background: var(--text-muted); width: 0%; transition: width 0.5s ease; }
.calc-bar.highlight { background: var(--accent-primary); }
.calc-val { width: 100px; text-align: right; font-weight: 600; }
.calc-val.hl { color: var(--accent-primary); }
.calc-total { font-size: 1.2rem; text-align: center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--card-border); }

/* Block 6 Platforms */
.platforms-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.platform-card { text-align: center; }
.plat-icon { font-size: 3rem; margin-bottom: 1rem; transition: transform 0.3s, text-shadow 0.3s; }
.platform-card:hover .plat-icon { transform: scale(1.1); text-shadow: 0 0 20px rgba(108, 99, 255, 0.6); }

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

/* Block 6.5 Survey */
.survey-title { font-size: 1.1rem; margin-bottom: 1.5rem; }
.survey-options { display: flex; flex-direction: column; gap: 10px; }
.survey-radio { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 12px 15px; border: 1px solid var(--card-border); border-radius: 8px; transition: 0.3s; }
.survey-radio:hover { background: rgba(255, 255, 255, 0.02); border-color: rgba(108, 99, 255, 0.3); }
.survey-radio input { display: none; }
.radio-custom { width: 16px; height: 16px; border: 2px solid var(--text-muted); border-radius: 50%; display: inline-block; position: relative; }
.survey-radio input:checked + .radio-custom { border-color: var(--accent-primary); }
.survey-radio input:checked + .radio-custom::after { content: ''; position: absolute; inset: 3px; background: var(--accent-primary); border-radius: 50%; }
.survey-radio:has(input:checked) { border-color: var(--accent-primary); background: rgba(108, 99, 255, 0.05); }
.survey-result { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--card-border); animation: slideDown 0.4s ease forwards; }
.hidden { display: none !important; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Block 7 Comparison */
.table-wrapper { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.comparison-table th, .comparison-table td { padding: 1.2rem; text-align: left; border-bottom: 1px solid var(--card-border); }
.comparison-table th { font-size: 1.1rem; color: var(--text-muted); }
.highlight-col { background: rgba(108, 99, 255, 0.05); color: #fff; }

/* Block 8 Reviews */
.reviews-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stars { color: #fbbf24; font-size: 1.2rem; margin-bottom: 0.5rem; letter-spacing: 2px; }
.review-card p { font-style: italic; color: var(--text-muted); margin-top: 1rem; }

/* Block 8.5 Marquee */
.marquee-section { padding: 2rem 0; overflow: hidden; background: rgba(108, 99, 255, 0.1); border-top: 1px solid var(--accent-primary); border-bottom: 1px solid var(--accent-primary); }
.marquee-content { display: flex; white-space: nowrap; width: max-content; animation: marquee 35s linear infinite; font-weight: 600; font-size: 1.1rem; color: var(--text-color); }
.marquee-content span { padding-right: 2rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Block 9 Guarantee */
.guarantee-icon { font-size: 4rem; margin-bottom: 1rem; text-shadow: 0 0 20px rgba(108, 99, 255, 0.5); }
.guarantee-tags { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; font-weight: 600; color: var(--accent-primary); }

/* Block 10 FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg-color); border: 1px solid var(--card-border); border-radius: 8px; overflow: hidden; }
.faq-item summary { padding: 1.2rem 1.5rem; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.5rem; top: 1.2rem; font-size: 1.2rem; font-weight: bold; color: var(--accent-primary); transition: transform 0.3s; }
.faq-item[open] summary::after { content: '−'; }
.faq-content { padding: 0 1.5rem 1.2rem 1.5rem; color: var(--text-muted); }

/* SEO Text */
.seo-text { background: var(--bg-color); padding: 4rem 0; border-top: 1px solid var(--card-border); color: #888; font-size: 0.95rem; }
.seo-text h2, .seo-text h3 { color: #bbb; text-align: left; }
.seo-text h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.seo-text h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 1rem; }
.seo-text p { margin-bottom: 1rem; }
.seo-text strong { color: #ddd; }

/* Block 11 Final CTA */
.final-cta { position: relative; padding: 6rem 0; overflow: hidden; }
.final-cta-bg { position: absolute; inset: 0; background: radial-gradient(circle at bottom, rgba(79, 70, 229, 0.2) 0%, transparent 70%); z-index: 0; }
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { font-size: clamp(2.5rem, 5vw, 4rem); }

/* Mobile Sticky CTA */
.mobile-sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(13, 13, 26, 0.9); backdrop-filter: blur(10px); padding: 15px; z-index: 999; border-top: 1px solid var(--card-border); }
@media (max-width: 768px) {
    .mobile-sticky-cta { display: block; }
    body { padding-bottom: 80px; }
}
