:root {
    --bg-color: #000000;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --primary-color: #A855F7; 
    --primary-hover: #9333ea;
    --secondary-color: #111215;
    --secondary-hover: #1e1f24;
    --secondary-text: #e2e8f0;
    --card-bg: #111215; 
    --card-border: #27272A; 
    --bg-alt: #0a0a0c;
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.6);
    --shadow-lg: 0 0 40px rgba(168, 85, 247, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 4px; 
}

html.light {
    --bg-color: #ffffff;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --primary-color: #9333ea;
    --primary-hover: #A855F7;
    --secondary-color: #f8fafc;
    --secondary-hover: #f1f5f9;
    --secondary-text: #334155;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --bg-alt: #f8fafc;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

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

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

a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }
ul { list-style: none; }

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

/* Header */
.header {
    position: sticky; top: 0; z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    transition: background-color var(--transition), border-color var(--transition);
}
html.light .header { background-color: rgba(255, 255, 255, 0.85); }

.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-color); display: flex; align-items: center; }
.stealth-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background-color: #22c55e; margin-right: 12px;
    box-shadow: 0 0 8px #22c55e; animation: pulse 2.5s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}
.nav-links { display: flex; gap: 25px; }
.nav-links a { color: var(--text-color); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-color); }
.nav-actions { display: flex; align-items: center; gap: 15px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: var(--border-radius); font-weight: 600;
    cursor: pointer; transition: var(--transition); border: none; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.9rem;
}
.btn-primary {
    background-color: transparent; border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
    position: relative; overflow: hidden; z-index: 1;
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--primary-color);
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: -1;
}
.btn-primary:hover { color: #fff !important; border-color: var(--primary-color); box-shadow: var(--shadow-lg); }
.btn-primary:hover::before { transform: scaleX(1); }

.btn-secondary { background-color: var(--secondary-color); color: var(--secondary-text) !important; border: 1px solid var(--card-border); }
.btn-secondary:hover { background-color: var(--secondary-hover); }
.btn-outline { background-color: transparent; border: 1px solid var(--card-border); color: var(--text-color); }
.btn-outline:hover { background-color: var(--card-border); }
.btn-large { padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Theme Toggle */
.theme-toggle {
    background: transparent; border: 1px solid var(--card-border); padding: 8px; border-radius: var(--border-radius);
    cursor: pointer; color: var(--text-color); display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.theme-toggle:hover { background-color: var(--secondary-color); }
html.light .sun-icon { display: none; }
html.light .moon-icon { display: block; }
html:not(.light) .sun-icon { display: block; }
html:not(.light) .moon-icon { display: none; }
.sun-icon, .moon-icon { width: 18px; height: 18px; }

/* Sections */
.section { padding: 90px 0; border-bottom: 1px solid var(--card-border); }
.bg-alt { background-color: var(--bg-alt); }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 60px; font-weight: 700; letter-spacing: 1px; }
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Card */
.card {
    background-color: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: var(--border-radius); padding: 35px;
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary-color); }

/* Hero Section */
.hero { position: relative; padding: 160px 0; text-align: center; overflow: hidden; border-bottom: 1px solid var(--card-border); }
.hero-bg-layer {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0;
    background-image: linear-gradient(var(--card-border) 1px, transparent 1px), linear-gradient(90deg, var(--card-border) 1px, transparent 1px);
    background-size: 40px 40px; opacity: 0.2;
    mask-image: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent 70%);
    -webkit-mask-image: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent 70%);
    transition: opacity 0.3s;
}
html.light .hero-bg-layer { opacity: 0.5; }
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 85, 247, 0.1), transparent 70%);
    pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.3s;
}
.hero:hover::before { opacity: 1; }
.relative-z { position: relative; z-index: 2; }

.hero-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 25px; line-height: 1.2; letter-spacing: 2px; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 45px; max-width: 650px; margin-inline: auto; font-weight: 300; }
.hero-actions { display: flex; gap: 20px; justify-content: center; }

/* Icons SVG */
.glyph-icon { width: 40px; height: 40px; stroke: var(--primary-color); margin-bottom: 20px; stroke-width: 1.5; fill: none; }

/* Pricing */
.pricing-card { text-align: center; display: flex; flex-direction: column; position: relative; }
.pricing-card.popular { border-color: var(--primary-color); box-shadow: var(--shadow-lg); z-index: 1; }
.badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background-color: var(--primary-color); color: #fff; padding: 4px 16px; border-radius: var(--border-radius); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.price { font-size: 2.8rem; font-weight: 800; margin: 25px 0; font-family: 'Courier New', Courier, monospace; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; font-family: sans-serif; }
.pricing-features { margin-bottom: 35px; text-align: left; flex-grow: 1; }
.pricing-features li { padding: 12px 0; border-bottom: 1px dashed var(--card-border); color: var(--text-muted); font-size: 0.95rem; display: flex; align-items: center; }
.pricing-features li::before { content: '✓'; color: var(--primary-color); margin-right: 10px; font-weight: bold; }
.pricing-features li:last-child { border-bottom: none; }

/* Reviews */
.review-card { display: flex; flex-direction: column; }
.stars { margin-bottom: 15px; color: var(--primary-color); letter-spacing: 2px; }
.review-text { font-style: italic; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.review-author { font-weight: 600; text-align: right; font-family: 'Courier New', Courier, monospace; font-size: 0.9rem; }

/* Telemetry & FAQ */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { border: 1px solid var(--card-border); border-radius: var(--border-radius); margin-bottom: 15px; background-color: var(--card-bg); overflow: hidden; transition: var(--transition); }
.faq-question { padding: 20px 25px; font-weight: 600; cursor: pointer; position: relative; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-question::after { content: '+'; font-size: 1.5rem; transition: transform 0.3s ease; color: var(--text-muted); font-weight: 300; }
.faq-item.active .faq-question::after { transform: rotate(45deg); color: var(--primary-color); }
.faq-answer { max-height: 0; transition: all 0.4s ease; opacity: 0; }
.faq-answer p { padding: 0 25px 25px; color: var(--text-muted); margin: 0; }
.faq-item.active .faq-answer { max-height: 600px; opacity: 1; padding-bottom: 10px; }
.monospace-metric { font-family: 'Courier New', Courier, monospace; color: var(--primary-color); margin-right: 15px; font-size: 0.85rem; padding: 3px 8px; border: 1px solid var(--card-border); border-radius: 3px; }
.telemetry-pre { background-color: #050505; border: 1px solid var(--card-border); padding: 20px; border-radius: 4px; color: #10b981; font-family: 'Courier New', Courier, monospace; font-size: 0.85rem; overflow-x: auto; margin: 0 25px 25px; line-height: 1.5; }
html.light .telemetry-pre { background-color: #1e293b; }

/* Footer */
.footer { padding: 50px 0; background-color: var(--bg-alt); text-align: center; margin-top: auto; border-top: 1px solid var(--card-border); }
.footer-links { margin-bottom: 25px; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-weight: 500; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-color); }
.footer-copyright { color: var(--text-muted); font-size: 0.85rem; font-family: 'Courier New', Courier, monospace; }

/* Typography Helpers */
.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }

/* Responsive Media Queries */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; height: auto; padding: 20px 0; gap: 20px; }
    .nav-links { gap: 15px; flex-wrap: wrap; justify-content: center; width: 100%; font-size: 0.85rem; }
    .nav-actions { width: 100%; justify-content: center; }
    .hero { padding: 100px 0 80px; }
    .hero-title { font-size: 2rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .btn, button, .faq-question { min-height: 48px; }
    .section { padding: 60px 0; }
    .telemetry-pre { margin: 0 15px 15px; font-size: 0.75rem; }
    .faq-question { padding: 15px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .faq-question::after { position: absolute; right: 15px; top: 15px; }
}
