/* Neo-Brutalism Global & Utility Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800;900&family=Noto+Sans+SC:wght@400;700;900&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f0;
  --bg-dark: #121212;
  --text-main: #000000;
  --text-inverted: #ffffff;
  --border-black: #000000;
  --border-width: 4px;
  --shadow-distance: 6px;
  --shadow-color: #000000;
  --accent-yellow: #ffee00;
  --accent-green: #00ff66;
  --accent-pink: #ff0055;
  --accent-cyan: #00e5ff;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

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

/* Base Neo-Brutalism Classes */
.nb-box {
  background: #ffffff;
  border: var(--border-width) solid var(--border-black);
  box-shadow: var(--shadow-distance) var(--shadow-distance) 0px var(--shadow-color);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.nb-box-dark {
  background: var(--bg-dark);
  color: var(--text-inverted);
  border: var(--border-width) solid var(--border-black);
  box-shadow: var(--shadow-distance) var(--shadow-distance) 0px var(--shadow-color);
}

.nb-card-hover {
  cursor: pointer;
}

.nb-card-hover:hover {
  transform: translate(-3px, -3px);
  box-shadow: calc(var(--shadow-distance) + 4px) calc(var(--shadow-distance) + 4px) 0px var(--shadow-color);
}

.nb-card-hover:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0px var(--shadow-color);
}

.nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  background: var(--text-main);
  color: var(--text-inverted);
  border: var(--border-width) solid var(--border-black);
  box-shadow: 4px 4px 0px var(--shadow-color);
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.nb-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--shadow-color);
}

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

.nb-btn-alt {
  background: #ffffff;
  color: #000000;
}

.nb-btn-alt:hover {
  background: #000000;
  color: #ffffff;
}

.nb-badge {
  display: inline-block;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  text-transform: uppercase;
  background: #ffffff;
}

/* Header & Nav */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid #000000;
  padding: 1rem 0;
}

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

.logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-badge {
  background: #000;
  color: #fff;
  padding: 0.2rem 0.6rem;
  font-size: 0.9rem;
  border: 2px solid #000;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  box-shadow: 3px 3px 0px #000;
}

/* Hero Section */
.hero-section {
  padding: 5rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  font-weight: 600;
  color: #333;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Marquee Section */
.marquee-wrapper {
  background: #000000;
  color: #ffffff;
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
  padding: 0.8rem 0;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.marquee-content {
  display: inline-flex;
  animation: marquee-anim 25s linear infinite;
  gap: 2rem;
}

.marquee-item {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: #555;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
}

/* Card Styling */
.card-inner {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.card-desc {
  font-size: 1rem;
  font-weight: 600;
  color: #444;
  flex-grow: 1;
}

/* Node Latency Dashboard */
.latency-box {
  background: #ffffff;
  padding: 2rem;
}

.node-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.node-item {
  border: 3px solid #000;
  padding: 1.2rem;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 4px 4px 0px #000;
}

.node-info h4 {
  font-size: 1.1rem;
  font-weight: 900;
}

.node-info p {
  font-size: 0.85rem;
  font-weight: 700;
  color: #666;
}

.node-status {
  text-align: right;
}

.ping-tag {
  font-size: 1rem;
  font-weight: 900;
  padding: 0.2rem 0.5rem;
  border: 2px solid #000;
  background: #fff;
  display: inline-block;
}

.ping-fast { background: #e6ffe6; }
.ping-medium { background: #fffbe6; }

/* Pricing Cards */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-header {
  border-bottom: 3px solid #000;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.price-title {
  font-size: 1.5rem;
  font-weight: 900;
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin: 1rem 0 0.5rem;
}

.price-amount span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #666;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
}

.price-features li {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-features li::before {
  content: "✔";
  font-weight: 900;
  display: inline-block;
  border: 2px solid #000;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 16px;
  font-size: 0.8rem;
  background: #000;
  color: #fff;
}

/* FAQ Accordion */
.faq-item {
  margin-bottom: 1.2rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #ffffff;
  padding: 1.2rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 900;
  border: 3px solid #000;
  box-shadow: 4px 4px 0px #000;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #ffffff;
  border: 3px solid #000;
  border-top: none;
  box-shadow: 4px 4px 0px #000;
}

.faq-answer-content {
  padding: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 900;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Article Cards (Knowledge Base) */
.article-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.article-tag {
  align-self: flex-start;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.article-excerpt {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-link-btn {
  font-weight: 900;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */
.site-footer {
  background: #000000;
  color: #ffffff;
  border-top: 4px solid #000000;
  padding: 4rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.footer-col p {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ccc;
  line-height: 1.6;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 2px solid #333;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #888;
}

/* Article Page Specifics */
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.article-header {
  border-bottom: 4px solid #000;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.article-header-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 1rem 0;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #666;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 600;
}

.article-body h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #000;
}

.article-body h3 {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 1.8rem 0 0.8rem;
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-cta-box {
  background: #ffffff;
  border: 4px solid #000;
  box-shadow: 6px 6px 0px #000;
  padding: 2.5rem;
  margin: 3.5rem 0;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}
