/* E-IX Cloud (e-ixjc.homes) - Light Dashboard & Pixel-Accent Design System */
:root {
  --bg-canvas: #f6f8fc;
  --bg-surface: #ffffff;
  --bg-subtle: #eef2f8;
  --bg-dark: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-strong: #0f172a;

  /* Image 1 inspired vivid 8-bit accents adapted for light mode */
  --accent-crimson: #ff1654;
  --accent-emerald: #00c853;
  --accent-sky: #0ea5e9;
  --accent-amber: #f59e0b;
  --accent-indigo: #4f46e5;
  --accent-orange: #f97316;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-pixel: 4px 4px 0px #0f172a;
  --shadow-pixel-crimson: 4px 4px 0px #ff1654;
  --shadow-pixel-sky: 4px 4px 0px #0ea5e9;
  --shadow-pixel-amber: 5px 5px 0px #f59e0b;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, Monaco, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.08), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(255, 22, 84, 0.06), transparent 30%),
    radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Pixel 4-color bar inspired by Reference Image 1 */
.pixel-bar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pixel-dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--border-strong);
  display: inline-block;
  transition: transform 0.2s ease;
}

.pixel-dot.c-red { background: var(--accent-crimson); }
.pixel-dot.c-green { background: var(--accent-emerald); }
.pixel-dot.c-blue { background: var(--accent-sky); }
.pixel-dot.c-yellow { background: #ffec27; }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--border-strong);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: 3px 3px 0 var(--accent-crimson);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: transform 0.15s ease;
}

.brand-logo:hover .brand-mark {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--accent-sky);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.08rem;
  color: var(--text-primary);
}

.brand-domain {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav-caret {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-caret,
.nav-item.open .nav-caret {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 245px;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-pixel);
  border-radius: var(--radius-sm);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  z-index: 120;
}

.nav-item:hover .dropdown-panel,
.nav-item.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 9px 11px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.dropdown-link:hover {
  background: var(--bg-subtle);
}

.dropdown-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--border-strong);
}

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 1px 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn-primary {
  background: var(--accent-indigo);
  color: #ffffff;
  box-shadow: 3px 3px 0 var(--border-strong);
}

.btn-primary:hover {
  background: #4338ca;
  box-shadow: 5px 5px 0 var(--border-strong);
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #0f172a;
  box-shadow: 3px 3px 0 var(--border-strong);
}

.btn-amber:hover {
  box-shadow: 5px 5px 0 var(--border-strong);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 3px 3px 0 var(--border-light);
}

.btn-outline:hover {
  box-shadow: 4px 4px 0 var(--border-strong);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  align-items: center;
  justify-content: center;
}

/* Top Live Ticker Strip */
.ticker-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: #065f46;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.6);
  animation: pulseRing 1.8s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(0, 200, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  border-radius: 999px;
  font-weight: 600;
}

/* Hero Dashboard Section */
.hero-section {
  padding: 36px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 28px;
  align-items: stretch;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.euler-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: 3px 3px 0 var(--accent-sky);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.3vw, 2.75rem);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
  color: var(--accent-indigo);
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: rgba(255, 236, 39, 0.75);
  z-index: -1;
}

.hero-desc {
  margin: 0 0 22px;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  position: relative;
  transition: transform 0.15s ease;
}

.kpi-card:hover {
  transform: translate(-2px, -2px);
}

.kpi-card.accent-red { box-shadow: 3px 3px 0 var(--accent-crimson); }
.kpi-card.accent-green { box-shadow: 3px 3px 0 var(--accent-emerald); }
.kpi-card.accent-blue { box-shadow: 3px 3px 0 var(--accent-sky); }
.kpi-card.accent-yellow { box-shadow: 3px 3px 0 #eab308; }

.kpi-value {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero Right: Telemetry & Chart Dashboard Card */
.dashboard-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: 6px 6px 0 var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 12px;
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
}

.tab-pills {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.tab-pill {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: 4px;
}

.tab-pill.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-stat {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.mini-stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mini-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.mini-stat-sub {
  font-size: 0.72rem;
  color: #059669;
  font-weight: 600;
}

.chart-wrap {
  position: relative;
  background: #fbfcfe;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.legend-items {
  display: flex;
  gap: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

#trafficChart {
  width: 100%;
  height: 195px;
  display: block;
}

.quick-sub-box {
  background: var(--bg-subtle);
  border: 1.5px dashed #94a3b8;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sub-url-preview {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-sub-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Section Headers */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-surface);
  border-top: 1.5px solid var(--border-light);
  border-bottom: 1.5px solid var(--border-light);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-indigo);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 6px 0 0;
  color: var(--text-secondary);
  max-width: 680px;
  font-size: 0.95rem;
}

/* Node Matrix Section */
.node-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  background: var(--bg-surface);
  padding: 14px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--bg-canvas);
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

.node-table-wrap {
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: 5px 5px 0 var(--border-strong);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.node-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 0.88rem;
}

.node-table th {
  text-align: left;
  padding: 13px 16px;
  background: var(--bg-subtle);
  border-bottom: 2px solid var(--border-strong);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.node-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

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

.node-table tbody tr:hover {
  background: #f8fafc;
}

.node-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.flag-badge {
  font-size: 1.25rem;
  line-height: 1;
}

.proto-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid;
}

.proto-hy2 { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.proto-reality { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.proto-tuic { background: #fdf2f8; color: #9d174d; border-color: #fbcfe8; }
.proto-iplc { background: #fffbeb; color: #b45309; border-color: #fde68a; }

.ping-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
}

.ping-fast { color: #059669; }
.ping-mid { color: #d97706; }

.mult-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.unlock-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.unlock-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

/* Pricing Grid (Image 2 Content in Light Image-1 Accent Style) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-pixel);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translate(-3px, -3px);
}

.price-card.featured {
  border-color: var(--accent-amber);
  box-shadow: 6px 6px 0 var(--accent-amber);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 32%);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f59e0b, #f97316);
  color: #0f172a;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
}

.plan-name {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.plan-price-row {
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid var(--border-light);
}

.plan-currency {
  font-size: 1.5rem;
  font-weight: 800;
  vertical-align: super;
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
}

.plan-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feat-star {
  color: var(--accent-amber);
  font-weight: 900;
  flex-shrink: 0;
}

.price-card.featured .feat-star {
  color: var(--accent-sky);
}

.price-card.enterprise .feat-star {
  color: var(--accent-orange);
}

/* Quick Setup & Client Download Center */
.client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.client-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.client-tab-btn.active {
  background: var(--accent-indigo);
  color: #ffffff;
  box-shadow: 3px 3px 0 var(--border-strong);
}

.client-panel {
  display: none;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-pixel);
  border-radius: var(--radius-md);
  padding: 24px;
}

.client-panel.active {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.step-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.step-list li {
  margin-bottom: 8px;
}

.client-spec-box {
  background: var(--bg-canvas);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

/* Knowledge Base / Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--accent-sky);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cat-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: #eef2ff;
  color: var(--accent-indigo);
  font-weight: 700;
}

.article-card h3 {
  margin: 8px 0;
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 800;
}

.article-excerpt {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kw-tag {
  font-size: 0.72rem;
  padding: 2px 7px;
  background: var(--bg-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
  font-weight: 600;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-indigo);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: none;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

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

/* Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: 4px 4px 0 var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar-pixel {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-mono);
  background: #e0f2fe;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.review-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Footer with FAQ Directory */
.site-footer {
  background: #ffffff;
  border-top: 2px solid var(--border-strong);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 36px;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-indigo);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Global Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 16px 24px;
}

.search-modal.open {
  display: flex;
}

.search-dialog {
  width: 100%;
  max-width: 720px;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: 8px 8px 0 var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.search-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-strong);
}

.search-input-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
}

.search-body {
  padding: 16px 18px 20px;
  max-height: 68vh;
  overflow-y: auto;
}

.hot-terms-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hot-terms-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.hot-term-btn {
  border: 1.5px solid var(--border-light);
  background: var(--bg-canvas);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hot-term-btn:hover {
  border-color: var(--accent-crimson);
  color: var(--accent-crimson);
  background: #fff1f2;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-item {
  display: block;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.search-result-item:hover {
  border-color: var(--accent-indigo);
  background: #f8fafc;
}

/* Toast Notification */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--bg-dark);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent-emerald);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Article Page Layout */
.article-shell {
  padding: 36px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.article-main {
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  box-shadow: 5px 5px 0 var(--border-strong);
  border-radius: var(--radius-md);
  padding: 34px 36px;
}

.article-main h1 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.25;
  font-weight: 900;
}

.article-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1.5px solid var(--border-light);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.tldr-box {
  background: #f0f9ff;
  border: 2px solid var(--border-strong);
  box-shadow: 4px 4px 0 var(--accent-sky);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 24px;
}

.tldr-box strong {
  display: block;
  margin-bottom: 6px;
  color: #0369a1;
}

.article-main h2 {
  margin: 28px 0 12px;
  font-size: 1.32rem;
  font-weight: 800;
  padding-left: 12px;
  border-left: 4px solid var(--accent-crimson);
}

.article-main h3 {
  margin: 20px 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
}

.article-main p {
  margin: 0 0 14px;
  color: #334155;
}

.article-main ul,
.article-main ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #334155;
}

.article-main li {
  margin-bottom: 6px;
}

.article-main pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  margin: 16px 0;
}

.article-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.88rem;
}

.article-main th,
.article-main td {
  border: 1px solid var(--border-light);
  padding: 10px 12px;
  text-align: left;
}

.article-main th {
  background: var(--bg-subtle);
  font-weight: 800;
}

.inline-link {
  color: var(--accent-indigo);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-banner {
  margin: 26px 0;
  padding: 20px;
  background: linear-gradient(135deg, #eef2ff 0%, #fff1f2 100%);
  border: 2px solid var(--border-strong);
  box-shadow: 4px 4px 0 var(--accent-indigo);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.related-box {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 2px solid var(--border-light);
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.related-card-link {
  display: block;
  padding: 12px 14px;
  background: var(--bg-canvas);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.related-card-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--accent-sky);
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px;
}

.sidebar-card h4 {
  margin: 0 0 12px;
  font-size: 0.96rem;
  font-weight: 800;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid,
  .pricing-grid,
  .articles-grid,
  .reviews-grid,
  .client-panel.active,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .faq-list,
  .related-links-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border-strong);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
  }

  .nav-menu.mobile-open {
    display: flex;
  }

  .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border-light);
    display: none;
    margin-top: 4px;
  }

  .nav-item.open .dropdown-panel {
    display: block;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .kbd-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-kpis,
  .dash-metrics {
    grid-template-columns: 1fr;
  }

  .article-main {
    padding: 22px 18px;
  }
}

