/* ==========================================================================
   ALL BLUE (allblue.cfd) - HARDWARE SPECIFICATION DESIGN SYSTEM
   Style: Black & White Monochromatic, 1px Fine Line, High Contrast Grotesque
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@300;400;700&family=Syne:wght@700;800&display=swap');

:root {
  --bg-primary: #030303;
  --bg-card: #080808;
  --bg-card-hover: #121212;
  --border-color: #262626;
  --border-bright: #404040;
  --text-primary: #ffffff;
  --text-secondary: #8c8c8c;
  --text-muted: #525252;
  --accent-white: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.15);
  --font-heading: 'Syne', 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Cursor canvas & elements */
body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
  cursor: default;
}

#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

#cursor-wing {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform 0.05s ease-out;
  display: none;
}

@media (min-width: 992px) {
  body {
    cursor: none;
  }
  #cursor-wing {
    display: block;
  }
  a, button, input, select, .interactive {
    cursor: none !important;
  }
}

/* Layout Utilities & Fine Line Grids */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-line {
  border: 1px solid var(--border-color);
}

.grid-line-t { border-top: 1px solid var(--border-color); }
.grid-line-b { border-bottom: 1px solid var(--border-color); }
.grid-line-l { border-left: 1px solid var(--border-color); }
.grid-line-r { border-right: 1px solid var(--border-color); }

/* Typography Standards */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.mono {
  font-family: var(--font-mono);
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--text-primary);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Header & Telemetry Bar */
.telemetry-bar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

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

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.04em;
}

.brand-logo span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

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

.btn-hardware {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-hardware:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.btn-hardware-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}

.btn-hardware-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
}

/* Hero Section - 3-Column / Integrated Spec Sheet */
.hero-section {
  border-bottom: 1px solid var(--border-color);
  padding: 4rem 0 0 0;
}

.hero-header {
  text-align: center;
  padding-bottom: 3.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  letter-spacing: -0.05em;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 0.95;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

/* Three Large Hardware Metrics (0.00ms, 0 Logs, 100% Bypass) */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-color);
}

.hero-metric-card {
  padding: 3.5rem 2rem;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.hero-metric-card:last-child {
  border-right: none;
}

.hero-metric-card:hover {
  background: var(--bg-card-hover);
}

.metric-num {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.metric-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* Feature Modules Section - Cold Hardware Specs */
.section-padding {
  padding: 5rem 0;
}

.section-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  border: 1px solid var(--border-color);
}

.spec-box {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-color);
  margin: -1px 0 0 -1px;
  background: var(--bg-card);
  transition: all 0.25s ease;
  position: relative;
}

.spec-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  z-index: 2;
}

.spec-box-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: block;
}

.spec-param {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.spec-cold-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: var(--font-sans);
}

/* Live Telemetry / Node Speed Simulator */
.telemetry-dashboard {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.dashboard-header {
  background: #000;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.node-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.node-table th {
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.node-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.node-table tr:last-child td {
  border-bottom: none;
}

.node-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.badge-tag {
  padding: 2px 8px;
  font-size: 0.7rem;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text-primary);
}

/* Pricing Section - Market Comparison Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  border: 1px solid var(--border-color);
  margin-top: 2rem;
}

.pricing-card {
  padding: 3rem 2rem;
  border: 1px solid var(--border-color);
  margin: -1px 0 0 -1px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
}

.pricing-card.featured {
  background: #0f0f0f;
  border: 1px solid var(--text-primary);
  z-index: 3;
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 700;
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin: 1.5rem 0;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  font-family: var(--font-mono);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.pricing-features li strong {
  color: var(--text-primary);
}

/* Articles Directory Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.article-card {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.article-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.article-card-title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: none;
}

.article-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kw-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* User Reviews Section (Hardware Log Style) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  border: 1px solid var(--border-color);
}

.review-card {
  padding: 2rem;
  border: 1px solid var(--border-color);
  margin: -1px 0 0 -1px;
  background: var(--bg-card);
  font-family: var(--font-mono);
}

.review-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
}

.review-user {
  color: var(--text-primary);
  font-weight: 700;
}

.review-content {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ Accordion Section */
.faq-container {
  border: 1px solid var(--border-color);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-trigger {
  width: 100%;
  background: var(--bg-card);
  color: var(--text-primary);
  border: none;
  padding: 1.75rem 2rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-trigger:hover {
  background: var(--bg-card-hover);
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

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

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  background: var(--bg-primary);
}

.faq-content-inner {
  padding: 1.5rem 2rem 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--border-color);
}

/* Footer & PBN Section (🔧 Core Task 2 Compliant) */
footer {
  border-top: 1px solid var(--border-color);
  background: #000;
  padding: 4rem 0 3rem;
  text-align: center;
  font-family: var(--font-mono);
}

.footer-main {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* PBN Friendly SEO Footer Links Zone */
.pbn-links-wrapper {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pbn-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.pbn-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.pbn-link {
  color: #525252;
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pbn-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Article Reader Template Styles */
.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  text-transform: none;
  line-height: 1.2;
  margin: 1.5rem 0;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d4d4d4;
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

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

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

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

.article-callout {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  padding: 1.75rem;
  margin: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.article-callout a {
  color: var(--text-primary);
  text-decoration: underline;
  font-weight: 700;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-metric-card {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .metric-num {
    font-size: 3.5rem;
  }
  .node-table th:nth-child(4),
  .node-table td:nth-child(4) {
    display: none;
  }
}
