/* =========================================
   Neo-Brutalist CSS Variables & Theming
   ========================================= */
:root {
    --bg-color: #f4f4f0;         /* Stark Light */
    --text-color: #0a0a0c;       /* Pitch Black */
    --border-color: #0a0a0c;
    --card-bg: #ffffff;
    --primary-color: #ff1e56;    /* Electric Crimson */
    --accent-yellow: #facc15;    /* Laser Yellow */
    --shadow-color: #0a0a0c;
    --border-width: 2px;
}

[data-theme="dark"] {
    --bg-color: #0a0a0c;         /* Pitch Black */
    --text-color: #f4f4f0;       /* Stark White */
    --border-color: #f4f4f0;
    --card-bg: #111111;
    --primary-color: #ff1e56;
    --accent-yellow: #facc15;
    --shadow-color: #ff1e56;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   Typography & Brutalist Elements
   ========================================= */
.mono-tag {
    font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--border-color);
    color: var(--bg-color);
    padding: 4px 8px;
    font-size: 0.85rem;
    display: inline-block;
    border: var(--border-width) solid var(--border-color);
}

.mono-tag.highlight-bg {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.highlight {
    color: var(--primary-color);
    font-weight: 900;
}

/* =========================================
   Layout & Utility
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    border-bottom: var(--border-width) solid var(--border-color);
}
.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: left;
    border-left: 8px solid var(--primary-color);
    padding-left: 16px;
}

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

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

/* Brutalist Cards */
.brutal-card {
    background-color: var(--card-bg);
    border: var(--border-width) solid var(--border-color);
    box-shadow: 6px 6px 0px 0px var(--shadow-color);
    padding: 24px;
    transition: transform 0.1s, box-shadow 0.1s, border-color 0.1s;
    display: flex;
    flex-direction: column;
}

.brutal-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px 0px var(--primary-color);
    border-color: var(--primary-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 1rem 0;
}

/* =========================================
   Marquee Animation
   ========================================= */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--accent-yellow);
    color: #0a0a0c;
    border-bottom: var(--border-width) solid var(--border-color);
    padding: 10px 0;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 15s linear infinite;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-weight: 900;
    font-size: 1rem;
}

.marquee-content span {
    padding-right: 50px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* =========================================
   Header & Navigation
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: var(--border-width) solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.1s;
}

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

.nav-highlight {
    background: var(--accent-yellow);
    color: #0a0a0c !important;
    padding: 2px 8px;
    border: 2px solid #0a0a0c;
}

.btn-brutal-icon {
    background: var(--card-bg);
    border: var(--border-width) solid var(--border-color);
    box-shadow: 2px 2px 0px 0px var(--shadow-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-brutal-icon:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px 0px var(--shadow-color);
}

.btn-brutal-icon svg {
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }

/* =========================================
   Buttons
   ========================================= */
.btn-brutal {
    display: inline-block;
    border: var(--border-width) solid var(--border-color);
    padding: 14px 28px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    box-shadow: 5px 5px 0px 0px var(--shadow-color);
    transition: transform 0.1s, box-shadow 0.1s;
    font-size: 1.1rem;
}

.btn-brutal:active {
    transform: translate(5px, 5px);
    box-shadow: 0px 0px 0px 0px var(--shadow-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--border-color);
}

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--text-color);
}

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

/* =========================================
   Hero Section
   ========================================= */
.hero {
    padding-top: 100px;
    padding-bottom: 100px;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(128,128,128,0.05) 10px, rgba(128,128,128,0.05) 20px);
}

.hero-tag {
    margin-bottom: 20px;
}

.headline {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    max-width: 800px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* =========================================
   Node Stats & Simulator
   ========================================= */
.node-stats {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
    border-top: 2px dashed var(--border-color);
    padding-top: 1rem;
}

.simulator-box {
    background: var(--bg-color);
    border-width: 4px;
}

.sim-header {
    margin-bottom: 1.5rem;
}

.brutal-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 16px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    outline: none;
    margin-bottom: 2rem;
}

.brutal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 32px;
    background: var(--primary-color);
    border: 2px solid var(--border-color);
    cursor: pointer;
    box-shadow: 2px 2px 0px 0px var(--border-color);
}

.sim-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    flex: 1;
    border: 2px solid var(--border-color);
    padding: 16px;
    background: var(--card-bg);
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 900;
    margin-top: 8px;
}

.bar-container {
    width: 100%;
    height: 30px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 2px solid var(--border-color);
}

/* =========================================
   Pricing
   ========================================= */
.pricing-card {
    position: relative;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    margin: 1rem 0;
    border-bottom: 4px solid var(--border-color);
    padding-bottom: 1rem;
}

.price-cycle {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: -apple-system, sans-serif;
}

.pricing-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 2px dashed var(--border-color);
    font-weight: 600;
}
.pricing-features li:last-child {
    border-bottom: none;
}

/* =========================================
   Reviews & FAQ
   ========================================= */
.review-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    font-style: italic;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item p {
    margin-top: 1rem;
    font-weight: 500;
}

/* =========================================
   Footer & Other Pages
   ========================================= */
.footer {
    border-top: 4px solid var(--border-color);
    padding: 3rem 0;
    background-color: var(--card-bg);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.brutal-link {
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
}

.brutal-link:hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
}

/* Simple Pages (About, Terms, Privacy) */
.page-header {
    padding: 60px 0 40px 0;
    border-bottom: 4px solid var(--border-color);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

.page-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-left: 6px solid var(--primary-color);
    padding-left: 12px;
}

.page-content p, .page-content li {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.page-content ul {
    list-style: square inside;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* =========================================
   Responsive / Media Queries
   ========================================= */
@media (max-width: 900px) {
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    .headline {
        font-size: 2.8rem;
    }
    .nav-links {
        display: none; /* Hide on mobile for simplicity, or implement brutalist menu */
    }
    .hero-actions {
        flex-direction: column;
    }
}
