@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Noto+Sans+SC:wght@400;500&display=swap');

:root {
    --bg: #0D1108;
    --panel: #121709;
    --ink: #E8EDDC;
    --dim: #7E8A6C;
    --line: rgba(232, 237, 220, 0.09);
    --acc: #E09A45;
    --border-radius: 3px;
    --box-shadow: none;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    color: var(--ink);
    background-color: var(--bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

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

.bg-light {
    background-color: transparent; /* Removed bg-light to maintain strict bg */
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: 'Chakra Petch', sans-serif;
    color: var(--ink);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

h2.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--dim);
}

ul {
    padding-left: 20px;
    margin-bottom: 1rem;
    color: var(--dim);
}

/* Data/Labels */
.label, .badge, .user, .price span, .icon, .faq-item h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--line);
    background-color: var(--panel);
    color: var(--ink);
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--acc);
    color: var(--bg);
    border-color: var(--acc);
}

.btn-primary:hover {
    background-color: var(--panel);
    color: var(--acc);
    border-color: rgba(224, 154, 69, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--acc);
    border-color: var(--line);
}

.btn-outline:hover {
    background-color: var(--panel);
    color: var(--acc);
    border-color: rgba(224, 154, 69, 0.5);
}

.btn-large {
    padding: 15px 32px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Layout */
section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    background-color: rgba(13, 17, 8, 0.9);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--acc);
    letter-spacing: 0.05em;
}

.main-nav {
    display: flex;
    gap: 24px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dim);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--acc);
}

/* Hero */
.hero {
    padding: 120px 0;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* Cards */
.card {
    background: var(--panel);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--line);
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: rgba(224, 154, 69, 0.5);
}

.card:hover h3 {
    color: var(--acc);
    transition: color 0.3s ease;
}

.icon {
    color: var(--acc);
    margin-bottom: 1rem;
}

/* Pricing */
.pricing-card {
    text-align: center;
    position: relative;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2rem;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--dim);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    padding-left: 0;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.pricing-card.featured {
    border-color: var(--acc);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--acc);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

/* Testimonials */
.testimonials .user {
    margin-top: 1rem;
    color: var(--acc);
}

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

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 10;
    background-color: var(--bg);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--dim);
    text-decoration: none;
    margin: 0 15px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

.copyright {
    color: var(--dim);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
}

/* Info Pages */
.info-page {
    padding: 60px 0;
    position: relative;
    z-index: 10;
}
.info-page h1 {
    margin-bottom: 2rem;
}
.info-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.info-page a {
    color: var(--acc);
}

/* Circuit Background & Labels */
#circuit-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.corner-label {
    position: fixed;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--dim);
    z-index: 5;
    pointer-events: none;
    text-transform: uppercase;
}

.top-left { top: 20px; left: 20px; }
.top-right { top: 20px; right: 20px; }
.bottom-left { bottom: 20px; left: 20px; }

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2.section-title {
        font-size: 1.5rem;
    }
    
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none;
    }
    
    .footer-links a {
        display: block;
        margin: 10px 0;
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    .corner-label {
        display: none; /* Hide decorative labels on mobile */
    }
}
