:root {
  --bg-primary: #06080F;
  --bg-secondary: #0B0F19;
  --bg-card: rgba(17, 24, 39, 0.72);
  --bg-card-hover: rgba(24, 34, 56, 0.85);
  --bg-glass: rgba(11, 15, 25, 0.82);
  --text-main: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(59, 130, 246, 0.45);
  --accent-blue: #3B82F6;
  --accent-blue-hover: #2563EB;
  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
  --accent-purple: #8B5CF6;
  --accent-amber: #F59E0B;
  --gradient-brand: linear-gradient(135deg, #3B82F6 0%, #06B6D4 50%, #10B981 100%);
  --gradient-surface: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.14), transparent 65%);
  --shadow-glow: 0 0 35px -5px rgba(59, 130, 246, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image: 
    var(--gradient-surface),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-position: top center;
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky Glassmorphic Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #06080F;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cmd-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmd-btn:hover {
  border-color: var(--border-highlight);
  color: var(--text-main);
  background: rgba(59, 130, 246, 0.08);
}

.cmd-kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* Main Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
  flex: 1;
}

.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
  flex: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60A5FA;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.pill-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.75rem;
}

/* Quick Decision Finder Bar */
.quick-finder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.finder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.finder-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.finder-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-glow);
}

.finder-card:hover::before {
  opacity: 1;
}

.finder-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.finder-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.finder-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Interactive Calculator Glass Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title h2 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.panel-title p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.preset-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover, .preset-btn.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: var(--accent-blue);
  color: #fff;
}

.slider-wrap {
  background: rgba(6, 8, 15, 0.65);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
}

.slider-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
}

.slider-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.slider-readout {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: #60A5FA;
}

input[type=range] {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #1E293B;
  outline: none;
  cursor: pointer;
  accent-color: var(--accent-blue);
}

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

.telemetry-box {
  background: rgba(6, 8, 15, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  text-align: left;
}

.telemetry-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
}

.telemetry-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--accent-emerald);
  margin-top: 0.25rem;
}

/* Pricing & Recommendation Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.tier-card {
  background: #080C14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tier-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.tier-card.featured {
  border-color: var(--accent-blue);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, #080C14 100%);
  box-shadow: var(--shadow-glow);
}

.featured-ribbon {
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--gradient-brand);
  color: #04060A;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.tier-brand {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.tier-plan {
  font-size: 0.83rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1rem;
}

.tier-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.tier-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.tier-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--accent-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Infrastructure Hardware Addon */
.infra-addon {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
}

.infra-addon-header {
  margin-bottom: 1.25rem;
}

.infra-addon-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.infra-addon-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.hardware-box {
  background: rgba(6, 8, 15, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hw-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.hw-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.hw-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Section Headings & Filter Bar */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.filter-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  min-width: 220px;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-blue);
}

/* Dynamic Content Hub Grid */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.22s ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.hub-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hub-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.14);
  color: #60A5FA;
}

.hub-read {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hub-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.hub-summary {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hub-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: #60A5FA;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Data Tables */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-card);
}

.table-scroll {
  overflow-x: auto;
}

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

th, td {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

th {
  background: rgba(6, 8, 15, 0.85);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.score-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

/* Article & Comparison Specific Layout */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.verdict-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.verdict-card.winner {
  border-color: var(--accent-blue);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(17, 24, 39, 0.8) 100%);
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
}

.prose p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: 0.55rem;
}

.callout-banner {
  background: rgba(15, 23, 42, 0.9);
  border-left: 4px solid var(--accent-blue);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.35rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Command Palette Modal */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.cmd-backdrop.open {
  display: flex;
}

.cmd-modal {
  background: #0F1626;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  width: 92%;
  max-width: 620px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.cmd-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.cmd-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 0.5rem;
}

.cmd-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.15s;
}

.cmd-result-item:hover {
  background: rgba(59, 130, 246, 0.15);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04060B;
  padding: 3rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #fff;
}

.disclosure-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links {
    justify-content: center;
  }
  .glass-panel {
    padding: 1.35rem;
  }
}
