/* ==========================================================================
   Neo-Brutalism & Gen-Z Modern Styling Framework
   Primary Palette: Light Sun Yellow (#FEF08A) / Pure White (#FFFFFF)
   Containers: White (#FFFFFF) with 3px Solid Black (#000000) & Hard Shadow (4px 4px 0px #000)
   CTA / Accents: Flame Orange (#FF5A1F), Venom Pink (#EC4899), Neon Green (#38E54D), Cobalt Blue (#2563EB)
   ========================================================================== */

:root {
    --bg-primary: #FEF08A;
    --bg-alt: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-main: #000000;
    --border-main: #000000;
    --border-width: 3px;
    --shadow-hard: 4px 4px 0px #000000;
    --shadow-hard-hover: 6px 6px 0px #000000;
    --shadow-pressed: 2px 2px 0px #000000;
    
    --accent-orange: #FF5A1F;
    --accent-pink: #EC4899;
    --accent-green: #38E54D;
    --accent-blue: #2563EB;
    --accent-purple: #A855F7;
    --accent-yellow: #FACC15;

    --font-heading: 'Space Grotesk', 'Noto Sans SC', sans-serif;
    --font-body: 'Noto Sans SC', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Canvas */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Typography & Markers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

.marker {
    background-color: var(--bg-primary);
    padding: 2px 8px;
    border: var(--border-width) solid var(--border-main);
    box-shadow: 2px 2px 0px #000;
    display: inline-block;
}

.marker-pink {
    background-color: var(--accent-pink);
    color: #fff;
    padding: 2px 8px;
    border: var(--border-width) solid var(--border-main);
    box-shadow: 2px 2px 0px #000;
    display: inline-block;
}

.marker-cyan {
    background-color: #06B6D4;
    color: #fff;
    padding: 2px 8px;
    border: var(--border-width) solid var(--border-main);
    box-shadow: 2px 2px 0px #000;
    display: inline-block;
}

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

.section-padding {
    padding: 90px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
    border-top: var(--border-width) solid var(--border-main);
    border-bottom: var(--border-width) solid var(--border-main);
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--accent-orange);
    color: #FFFFFF;
    text-align: center;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: var(--border-width) solid var(--border-main);
}

.highlight-code {
    background: #000;
    color: #FF5A1F;
    padding: 2px 6px;
    font-family: monospace;
}

/* Navbar */
.navbar {
    background-color: var(--card-bg);
    border-bottom: var(--border-width) solid var(--border-main);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    background: var(--accent-yellow);
    padding: 2px 6px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
}

.logo-sub {
    font-size: 0.85rem;
    background: var(--accent-orange);
    color: #fff;
    padding: 2px 6px;
    border: 2px solid #000;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 24px;
    font-weight: 700;
}

.nav-links a {
    transition: all 0.15s ease;
}

.nav-links a:hover {
    color: var(--accent-orange);
    text-shadow: 1px 1px 0px #000;
}

/* Neo-Brutalism Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    padding: 12px 24px;
    border: var(--border-width) solid var(--border-main);
    background-color: var(--card-bg);
    color: var(--text-main);
    box-shadow: var(--shadow-hard);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
    text-transform: uppercase;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hard-hover);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-pressed);
}

.btn-primary {
    background-color: var(--accent-yellow);
}

.btn-hero {
    background-color: var(--accent-orange);
    color: #FFFFFF;
    font-size: 1.25rem;
    padding: 16px 36px;
}

.btn-hero:hover {
    background-color: #e04810;
}

.btn-card {
    width: 100%;
    margin-top: 20px;
    background-color: var(--accent-yellow);
}

/* Cards */
.neo-card {
    background-color: var(--card-bg);
    border: var(--border-width) solid var(--border-main);
    box-shadow: var(--shadow-hard);
    padding: 28px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.neo-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hard-hover);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: #000;
    color: #fff;
    font-weight: 900;
    padding: 4px 12px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #333;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 24px;
}

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

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
}

.badge-tag {
    display: inline-block;
    background: var(--accent-pink);
    color: #fff;
    font-weight: 900;
    padding: 8px 16px;
    border: var(--border-width) solid var(--border-main);
    box-shadow: var(--shadow-hard);
    font-size: 1rem;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.rating-box {
    background: #fff;
    border: var(--border-width) solid var(--border-main);
    padding: 12px 20px;
    box-shadow: var(--shadow-hard);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: var(--accent-orange);
    font-weight: 900;
    font-size: 1.2rem;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hl-item {
    background: #fff;
    border: 2px solid #000;
    padding: 8px 16px;
    font-weight: 700;
    box-shadow: 3px 3px 0px #000;
}

/* Features */
.feature-card .card-icon {
    width: 60px;
    height: 60px;
    border: var(--border-width) solid var(--border-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: 3px 3px 0px #000;
}

.bg-yellow { background-color: var(--accent-yellow); }
.bg-pink { background-color: var(--accent-pink); color: #fff; }
.bg-green { background-color: var(--accent-green); }
.bg-blue { background-color: var(--accent-blue); color: #fff; }
.bg-purple { background-color: var(--accent-purple); color: #fff; }

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* Node Table */
.node-table-container {
    overflow-x: auto;
    padding: 0;
}

.node-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.node-table th, .node-table td {
    padding: 16px 20px;
    border-bottom: 2px solid #000;
    font-weight: 700;
}

.node-table th {
    background-color: var(--accent-yellow);
    font-size: 1rem;
    border-bottom: 3px solid #000;
}

.ping-good {
    color: #16a34a;
    font-weight: 900;
}

.status-badge {
    background: var(--accent-green);
    border: 2px solid #000;
    padding: 4px 8px;
    font-size: 0.85rem;
    font-weight: 900;
}

.load-bar-bg {
    width: 100px;
    height: 12px;
    background: #e5e7eb;
    border: 2px solid #000;
    display: inline-block;
    vertical-align: middle;
}

.load-bar-fill {
    height: 100%;
    background: var(--accent-green);
}

/* Pricing Cards */
.pricing-card {
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: #000;
    background-color: #FFFDF0;
    transform: scale(1.03);
}

.badge-popular {
    position: absolute;
    top: -16px;
    right: 20px;
    background: var(--accent-orange);
    color: #fff;
    border: 2px solid #000;
    padding: 4px 12px;
    font-weight: 900;
    box-shadow: 2px 2px 0px #000;
}

.plan-tag {
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #666;
}

.plan-title {
    font-size: 1.8rem;
    margin: 8px 0;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--accent-orange);
}

.plan-price .period {
    font-size: 1rem;
    color: #4b5563;
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px dashed #ccc;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 900;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--accent-yellow);
    width: 32px;
    height: 32px;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #000;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    background: var(--accent-pink);
    color: #fff;
}

/* Knowledge Base */
.kb-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kb-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    border: 2px solid #000;
    font-weight: 900;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.kb-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.kb-card p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 20px;
    flex-grow: 1;
}

.kb-link {
    font-weight: 900;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    gap: 4px;
}

.kb-link:hover {
    text-decoration: underline;
}

/* Review Cards */
.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    box-shadow: 2px 2px 0px #000;
}

.user-role {
    font-size: 0.85rem;
    color: #6b7280;
}

.review-text {
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--accent-yellow);
    border-top: var(--border-width) solid var(--border-main);
    border-bottom: var(--border-width) solid var(--border-main);
    padding: 70px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #9ca3af;
    max-width: 400px;
}

.footer-links h4 {
    color: var(--accent-yellow);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d5db;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .nav-links { display: none; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .pricing-card.popular { transform: none; }
}
