:root {
    --bg-color: #121212;
    --bg-color-alt: #1a1a1a;
    --bg-color-card: #242424;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --accent-yellow: #FFD700;
    --accent-yellow-hover: #e5c100;
    --accent-green: #2ecc71;
    --accent-green-glare: rgba(46, 204, 113, 0.2);
    --danger-red: #e74c3c;
    --danger-red-glare: rgba(231, 76, 60, 0.2);
    --border-color: #333333;
    --font-main: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 0 20px rgba(255, 215, 0, 0.3);
}

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

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;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(255, 215, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-color);
    text-transform: uppercase;
}

.logo-accent {
    color: var(--accent-yellow);
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-color);
}

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

/* Small CTA button in header */
.btn-sm {
    padding: 9px 18px;
    font-size: 0.85rem;
}

/* Burger button (mobile) */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Push hero down to account for fixed header */
.hero {
    padding-top: 150px !important;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: #000;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background-color: var(--accent-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background-color: var(--bg-color-card);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.pulse-btn {
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* BLOCK 1: HERO */
.hero {
    padding: 80px 0;
    background: radial-gradient(circle at center, var(--bg-color-alt) 0%, var(--bg-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
}

.hero-h1 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text-color);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-interactive {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* HERO INERACTIVE WIDGET */
.glitch-widget {
    background: var(--bg-color-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    width: 320px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.glitch-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--danger-red);
    transition: var(--transition);
}

.glitch-widget.active::before {
    background: var(--accent-green);
    box-shadow: 0 0 15px var(--accent-green);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.provider {
    font-weight: 700;
    color: var(--text-muted);
}

.signal-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.signal-indicator.error { color: var(--danger-red); }
.signal-indicator.success { color: var(--accent-green); }

.bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.bar {
    width: 4px;
    background-color: currentColor;
    border-radius: 2px;
}

.bar:nth-child(1) { height: 6px; }
.bar:nth-child(2) { height: 9px; }
.bar:nth-child(3) { height: 12px; }
.bar:nth-child(4) { height: 16px; }

.bar.inactive {
    opacity: 0.2;
}

.status-icon {
    font-size: 1.2rem;
}

/* TOGGLE SWITCH */
.widget-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--accent-green);
    box-shadow: 0 0 15px var(--accent-green-glare);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.switch-label {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-color);
}

/* TERMINAL LOGS */
.widget-terminal {
    background: #000;
    border-radius: 8px;
    padding: 10px;
    font-family: monospace;
    font-size: 0.8rem;
    height: 60px;
    overflow: hidden;
    position: relative;
}

.log-line {
    margin-bottom: 5px;
}

.log-line.error { color: var(--danger-red); }
.log-line.success { color: var(--accent-green); }

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 0.5s steps(30, end);
}

/* BLOCK 2: DASHBOARD */
.dashboard {
    padding: 60px 0;
    background-color: var(--bg-color-alt);
}

.dashboard-panel {
    background-color: var(--bg-color-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: var(--shadow-premium);
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.status-row:last-child {
    border-bottom: none;
}

.status-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
}

.status-badge.danger {
    color: var(--danger-red);
    box-shadow: 0 0 10px var(--danger-red-glare);
}

.status-badge.success {
    color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green-glare);
}

.dashboard-desc {
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* BLOCK 3: PLATFORMS */
.platforms {
    padding: 60px 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.platform-card {
    background-color: var(--bg-color-card);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.platform-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-yellow);
    box-shadow: var(--shadow-accent);
}

.platform-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.platform-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.platform-card p {
    color: var(--text-muted);
}

.center-btn {
    text-align: center;
}

/* BLOCK 4: STEPPER */
.how-it-works {
    padding: 60px 0;
    background-color: var(--bg-color-alt);
}

.stepper-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}

.steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255,255,255,0.02);
}

.step:hover {
    background: rgba(255,255,255,0.05);
}

.step.active {
    border-color: var(--accent-yellow);
    background: rgba(255, 215, 0, 0.05);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--bg-color-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step.active .step-number {
    background-color: var(--accent-yellow);
    color: #000;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.step-text h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.step-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.step-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-box {
    width: 300px;
    height: 300px;
    background-color: var(--bg-color-card);
    border-radius: 20px;
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.visual-box.active-anim {
    border-color: var(--accent-yellow);
    border-style: solid;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, var(--bg-color-card) 70%);
}

.visual-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.visual-desc {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-yellow);
    text-align: center;
}

/* BLOCK 5: COMPARISON */
.comparison {
    padding: 60px 0;
}

.table-container {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-color-card);
    border-radius: 12px;
    overflow: hidden;
}

.compare-table th, .compare-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.compare-table th {
    background-color: rgba(0,0,0,0.4);
    font-weight: 700;
    font-size: 1.1rem;
}

.highlight-col {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--accent-yellow);
}

.compare-table td.success {
    color: var(--accent-green);
    background-color: rgba(46, 204, 113, 0.05);
}

.compare-table td.fail {
    color: var(--danger-red);
}

/* BLOCK 6: TARIFFS */
.tariffs {
    padding: 60px 0;
    background-color: var(--bg-color-alt);
}

.tariffs-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: var(--bg-color-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.card-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--text-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.features li {
    margin-bottom: 12px;
    color: #ddd;
    display: flex;
    gap: 10px;
}

.pricing-card.premium {
    border-color: var(--accent-yellow);
    box-shadow: var(--shadow-accent);
    transform: scale(1.05);
    background: linear-gradient(to bottom, #2f2f2f, #242424);
}

.pricing-card.premium:hover {
    transform: scale(1.05) translateY(-5px);
}

.card-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-yellow);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.pricing-card.premium .card-header {
    color: var(--accent-yellow);
}

/* BLOCK 7: FAQ */
.faq {
    padding: 60px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-color-card);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-q {
    padding: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-q:hover {
    color: var(--accent-yellow);
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-a {
    padding: 0 20px;
    color: var(--text-muted);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.faq-item.active .faq-a {
    padding: 0 20px 20px 20px;
    max-height: 300px; /* arbitrary max height */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-yellow);
}

/* BLOCK 9: FINAL CTA */
.final-cta {
    padding: 80px 0;
}

.cta-box {
    background: radial-gradient(circle at center, #242424 0%, #121212 100%);
    border: 1px solid #444;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-color);
}

.cta-box p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 30px;
}

.cta-actions {
    margin-bottom: 15px;
}

.cta-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FOOTER & SEO */
.footer {
    padding: 40px 0 20px;
    background-color: var(--bg-color-alt);
    border-top: 1px solid var(--border-color);
}

.seo-text-block {
    margin-bottom: 30px;
    padding: 24px 28px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    max-width: 100%;
}

.seo-text-block p {
    font-size: 0.88rem;
    color: #888;
    line-height: 1.8;
    margin: 0 0 14px 0;
}

.seo-text-block p:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    text-align: center;
    color: #555;
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid #222;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-h2 {
        font-size: 2rem;
    }
    
    .status-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .stepper-layout {
        flex-direction: column;
    }
    
    .visual-box {
        width: 100%;
        max-width: 300px;
    }

    .pricing-card.premium {
        transform: scale(1);
    }
    .pricing-card.premium:hover {
        transform: translateY(-5px);
    }

    /* Header mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--border-color);
        padding: 20px 0;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 14px 24px;
        display: block;
        width: 100%;
        font-size: 1.1rem;
    }

    .nav-link::after {
        display: none;
    }

    .burger {
        display: flex;
    }

    .header-inner .btn-sm {
        display: none;
    }
}
