/* Global Cyber Reset & Theme Tokens matching Fig 1 & Fig 2 */
:root {
    --bg-dark: #090a0f;
    --card-bg: #12151e;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --cyan: #00f0ff;
    --magenta: #ff007f;
    --pink-accent: #ff4d8d;
    --pink-hover: #ff2a75;
    --yellow: #ffee00;
    --green: #10b981;
    --border-cyan: rgba(0, 240, 255, 0.3);
    --border-pink: rgba(255, 77, 141, 0.4);
    --font-cyber: 'Share Tech Mono', monospace, sans-serif;
    --font-sans: 'Noto Sans SC', 'PingFang SC', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Scanline & CRT Effect from Fig 1 */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 999;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 240, 255, 0.04) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 0.8;
    position: fixed;
    bottom: 100%;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { top: -10%; }
    100% { top: 100%; }
}

.crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
    z-index: 998;
    opacity: 0.6;
}

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

a {
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--magenta);
}

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

/* Cyber Glitch Animation */
.glitch-text {
    position: relative;
    display: inline-block;
    color: #fff;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    clip: rect(0, 0, 0, 0);
}

.glitch-text::before {
    left: -2px;
    text-shadow: 2px 0 var(--cyan);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: 2px;
    text-shadow: -2px 0 var(--magenta);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    20% { clip: rect(40px, 9999px, 10px, 0); }
    40% { clip: rect(25px, 9999px, 50px, 0); }
    60% { clip: rect(60px, 9999px, 20px, 0); }
    80% { clip: rect(15px, 9999px, 35px, 0); }
    100% { clip: rect(50px, 9999px, 5px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(50px, 9999px, 15px, 0); }
    25% { clip: rect(10px, 9999px, 45px, 0); }
    50% { clip: rect(35px, 9999px, 5px, 0); }
    75% { clip: rect(20px, 9999px, 60px, 0); }
    100% { clip: rect(40px, 9999px, 25px, 0); }
}

/* Header Styles */
.cyber-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-cyan);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-cyber);
    font-size: 22px;
    font-weight: bold;
}

.logo-sub {
    font-size: 14px;
    color: var(--text-muted);
    border-left: 1px solid #333;
    padding-left: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-btn-highlight {
    color: var(--yellow) !important;
    font-weight: bold !important;
}

/* Cyber Button Component */
.cyber-btn {
    display: inline-block;
    position: relative;
    background: #000;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 10px 20px;
    font-family: var(--font-cyber);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
}

.cyber-btn:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.cyber-btn.large {
    padding: 14px 28px;
    font-size: 16px;
}

.cyber-btn.primary {
    background: var(--pink-accent);
    border-color: var(--pink-accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 77, 141, 0.5);
}

.cyber-btn.primary:hover {
    background: var(--pink-hover);
    box-shadow: 0 0 25px rgba(255, 77, 141, 0.8);
}

.cyber-btn.outline {
    background: transparent;
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Hero Terminal matching Fig 1 */
.hero-section {
    padding: 60px 0 80px;
}

.terminal-box {
    background: #0c0e17;
    border: 1px solid var(--border-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.terminal-header {
    background: #161a27;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.status-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.status-dot.red { background: #ff5f56; }
.status-dot.yellow { background: #ffbd2e; }
.status-dot.green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-cyber);
    font-size: 13px;
    color: var(--cyan);
    margin-left: 10px;
}

.terminal-body {
    padding: 40px;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cyber-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: #111420;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    text-align: left;
    font-family: var(--font-cyber);
}

.metric-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.metric-status {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}
.metric-status.corrupt { color: var(--magenta); }
.metric-status.partial { color: var(--cyan); }
.metric-status.lost { color: var(--yellow); }

.progress-bar {
    height: 8px;
    background: #222738;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar .fill {
    height: 100%;
}
.progress-bar .fill.magenta { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.progress-bar .fill.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.progress-bar .fill.yellow { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }

.metric-val {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Core Features */
.features-section {
    padding: 60px 0;
    background: rgba(18, 21, 30, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-sub {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Pricing Cards - Exact match with Fig 2 */
.pricing-section {
    padding: 80px 0;
}

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

.price-card {
    background: #ffffff;
    color: #1e293b;
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-8px);
}

.price-card.popular {
    border: 2px solid #ff4d8d;
    box-shadow: 0 10px 40px rgba(255, 77, 141, 0.3);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d8d;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 77, 141, 0.4);
}

.card-header .plan-name {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
    margin-bottom: 20px;
}

.price-box {
    text-align: center;
    margin-bottom: 30px;
}

.price-box .currency {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.price-box .amount {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
}

.price-box .period {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin-bottom: 35px;
}

.plan-features li {
    font-size: 15px;
    color: #334155;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features .check {
    background: #10b981;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.card-footer {
    text-align: center;
}

.buy-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn.outline-pink {
    background: #ffffff;
    border: 1.5px solid #ff4d8d;
    color: #ff4d8d;
}

.buy-btn.outline-pink:hover {
    background: #fff0f5;
}

.buy-btn.solid-pink {
    background: #ff4d8d;
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 77, 141, 0.4);
}

.buy-btn.solid-pink:hover {
    background: #ff2a75;
    box-shadow: 0 6px 20px rgba(255, 77, 141, 0.6);
}

/* Tutorials Steps */
.tutorial-section {
    padding: 60px 0;
    background: rgba(18, 21, 30, 0.5);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 20px;
    border-radius: 8px;
}

.step-num {
    font-family: var(--font-cyber);
    font-size: 28px;
    color: var(--cyan);
    font-weight: bold;
    margin-bottom: 10px;
}

.step-card h4 {
    font-size: 17px;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Troubleshoot Section */
.troubleshoot-section {
    padding: 60px 0;
}

.trouble-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.trouble-item {
    background: var(--card-bg);
    border: 1px solid var(--border-cyan);
    padding: 20px 25px;
    border-radius: 8px;
}

.trouble-item h4 {
    font-size: 17px;
    color: var(--cyan);
    margin-bottom: 8px;
}

.trouble-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Articles Section */
.articles-section {
    padding: 80px 0;
    background: rgba(12, 14, 23, 0.8);
}

.article-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.art-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.art-card:hover {
    transform: translateY(-5px);
    border-color: var(--pink-accent);
}

.art-tag {
    display: inline-block;
    align-self: flex-start;
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-family: var(--font-cyber);
}

.art-card h3 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.art-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.read-more {
    font-size: 13px;
    color: var(--pink-accent);
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 8px;
}

.faq-item h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Partner External Section */
.partner-external-section {
    padding: 40px 0;
    background: #08090d;
    border-top: 1px solid var(--border-cyan);
}

.partner-title {
    font-size: 18px;
    color: var(--cyan);
    margin-bottom: 5px;
}

.partner-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.external-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.external-links-grid a {
    font-family: var(--font-cyber);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
}

.external-links-grid a:hover {
    color: var(--pink-accent);
    border-color: var(--pink-accent);
}

/* Footer */
.cyber-footer {
    background: #040508;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-muted);
    margin: 0 5px;
}

.footer-links a:hover {
    color: var(--cyan);
}

/* Article Detail Pages Styling */
.article-page {
    padding: 50px 0 80px;
}

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    font-family: var(--font-cyber);
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
}

.article-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 22px;
    color: var(--cyan);
    margin: 30px 0 15px;
    border-left: 4px solid var(--pink-accent);
    padding-left: 12px;
}

.article-content h3 {
    font-size: 18px;
    color: #fff;
    margin: 20px 0 10px;
}

.article-content p {
    margin-bottom: 18px;
    color: #cbd5e1;
}

.article-content ul, .article-content ol {
    margin: 0 0 20px 25px;
    color: #cbd5e1;
}

.article-content li {
    margin-bottom: 8px;
}

.cta-banner {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 77, 141, 0.15));
    border: 1px solid var(--pink-accent);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-banner h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.cta-banner p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.article-faq {
    margin-top: 50px;
    border-top: 1px solid var(--border-cyan);
    padding-top: 30px;
}

.article-faq h3 {
    font-size: 22px;
    color: var(--yellow);
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }
    .price-card { padding: 30px 20px; }
    .article-content { padding: 20px; }
    .faq-list { grid-template-columns: 1fr; }
}
