/* ==========================================================================
   TAG (TAGInternet) — Gallery White & Frosted-Acrylic Native CSS
   Pure CSS | Zero External Frameworks | Brick-Grid Hero | Auto Day/Night
   ========================================================================== */

:root {
  /* Day Mode (Default — Pure Gallery White) */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f7f7f9;
  --bg-header: rgba(255, 255, 255, 0.82);

  /* Frosted-Acrylic Translucent Glass */
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-bg-strong: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(20, 21, 24, 0.09);
  --glass-specular: rgba(255, 255, 255, 0.95);
  --sheen-accent: rgba(200, 50, 27, 0.11);
  --sheen-white: rgba(255, 255, 255, 0.55);

  /* Brick-Grid Pattern */
  --brick-line: rgba(20, 21, 24, 0.048);

  /* Signature Palette */
  --text-primary: #141518;
  --text-secondary: #4b5059;
  --text-muted: #727782;

  --accent: #c8321b;
  --accent-hover: #a82814;
  --accent-soft: rgba(200, 50, 27, 0.08);
  --accent-border: rgba(200, 50, 27, 0.38);

  --gold: #ca8a04;
  --gold-soft: rgba(202, 138, 4, 0.1);
  --gold-border: rgba(202, 138, 4, 0.45);

  --band-dark: #141518;
  --band-dark-text: #ffffff;
  --band-dark-muted: #9ca3af;
  --band-dark-border: rgba(255, 255, 255, 0.1);

  --border-color: rgba(20, 21, 24, 0.085);
  --border-strong: rgba(20, 21, 24, 0.16);

  --bg-toggle: rgba(255, 255, 255, 0.65);
  --bg-toggle-hover: rgba(255, 255, 255, 0.95);

  --shadow-sm: 0 2px 8px rgba(20, 21, 24, 0.04), inset 0 1px 0 var(--glass-specular);
  --shadow-md: 0 12px 32px -8px rgba(20, 21, 24, 0.09), 0 2px 6px rgba(20, 21, 24, 0.04), inset 0 1px 0 var(--glass-specular);
  --shadow-lift: 0 20px 44px -10px rgba(20, 21, 24, 0.13), 0 4px 12px rgba(200, 50, 27, 0.08), inset 0 1px 0 var(--glass-specular);
  --shadow-red: 0 18px 42px -12px rgba(200, 50, 27, 0.24), inset 0 1px 0 var(--glass-specular);
  --shadow-gold: 0 18px 42px -12px rgba(202, 138, 4, 0.22), inset 0 1px 0 var(--glass-specular);

  --badge-ok-bg: rgba(16, 185, 129, 0.11);
  --badge-ok-text: #047857;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --container-max: 1180px;
  --header-height: 68px;
  --transition-theme: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-silk: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg-page: #0e1013;
  --bg-surface: #15171c;
  --bg-subtle: #14161b;
  --bg-header: rgba(14, 16, 19, 0.82);

  --glass-bg: rgba(23, 25, 31, 0.84);
  --glass-bg-strong: rgba(26, 29, 36, 0.92);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-specular: rgba(255, 255, 255, 0.08);
  --sheen-accent: rgba(200, 50, 27, 0.18);
  --sheen-white: rgba(255, 255, 255, 0.1);

  --brick-line: rgba(255, 255, 255, 0.045);

  --text-primary: #f5f6f8;
  --text-secondary: #a1a7b3;
  --text-muted: #787f8c;

  --accent: #e0462e;
  --accent-hover: #ef5840;
  --accent-soft: rgba(224, 70, 46, 0.16);
  --accent-border: rgba(224, 70, 46, 0.5);

  --gold: #eab308;
  --gold-soft: rgba(234, 179, 8, 0.14);
  --gold-border: rgba(234, 179, 8, 0.45);

  --band-dark: #090a0c;
  --band-dark-border: rgba(255, 255, 255, 0.08);

  --border-color: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);

  --bg-toggle: rgba(28, 31, 38, 0.62);
  --bg-toggle-hover: rgba(38, 42, 52, 0.9);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 var(--glass-specular);
  --shadow-md: 0 14px 36px -8px rgba(0, 0, 0, 0.55), inset 0 1px 0 var(--glass-specular);
  --shadow-lift: 0 22px 48px -10px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(224, 70, 46, 0.2), inset 0 1px 0 var(--glass-specular);
  --shadow-red: 0 20px 44px -12px rgba(200, 50, 27, 0.32), inset 0 1px 0 var(--glass-specular);
  --shadow-gold: 0 20px 44px -12px rgba(202, 138, 4, 0.25), inset 0 1px 0 var(--glass-specular);

  --badge-ok-bg: rgba(16, 185, 129, 0.16);
  --badge-ok-text: #34d399;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color var(--transition-theme), color var(--transition-theme);
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Anchor Jump Smooth Highlight Animation */
@keyframes anchorArrive {
  0% {
    opacity: 0.72;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.anchor-active {
  animation: anchorArrive 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Specular Frosted-Acrylic Glass Surface
   ========================================================================== */
.glass-card {
  position: relative;
  background-color: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-silk),
    box-shadow var(--transition-silk),
    border-color var(--transition-silk),
    background-color var(--transition-theme);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    var(--sheen-accent) 0%,
    var(--sheen-white) 32%,
    transparent 70%
  );
  transition: opacity 0.35s ease;
  z-index: 0;
}

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

.glass-card > * {
  position: relative;
  z-index: 1;
}

.glass-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* ==========================================================================
   Header & Navigation Directory
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background-color: var(--bg-header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-theme), border-color var(--transition-theme);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(200, 50, 27, 0.28);
  flex-shrink: 0;
}

.brand-sub {
  color: var(--accent);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 7px 11px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
  background-color: var(--bg-subtle);
}

.nav-links a.nav-news {
  color: var(--accent);
  font-weight: 600;
  background-color: var(--accent-soft);
}

.nav-links a.nav-news:hover {
  background-color: var(--accent);
  color: #ffffff;
}

/* Mobile Quick Anchor Strip */
.mobile-nav-strip {
  display: none;
  border-top: 1px solid var(--border-color);
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 8px;
}

.mobile-nav-strip::-webkit-scrollbar {
  display: none;
}

.mobile-nav-strip a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-nav-strip a.nav-news {
  color: var(--accent);
  background-color: var(--accent-soft);
  border-color: var(--accent-border);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Refined Translucent Day/Night Toggle Button */
.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-toggle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color var(--transition-theme),
    border-color var(--transition-theme),
    color var(--transition-theme),
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--bg-toggle-hover);
  box-shadow: 0 4px 14px rgba(20, 21, 24, 0.1);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  width: 17px;
  height: 17px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-45deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-silk),
    background-color 0.2s ease,
    box-shadow var(--transition-silk),
    border-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 16px;
  min-height: 36px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 13px 28px;
  min-height: 48px;
  font-size: 0.98rem;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px -4px rgba(200, 50, 27, 0.42);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -4px rgba(200, 50, 27, 0.5);
}

.btn-secondary {
  background-color: var(--glass-bg-strong);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--gold);
  color: #ffffff;
  box-shadow: 0 6px 18px -4px rgba(202, 138, 4, 0.38);
}

.btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(202, 138, 4, 0.48);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Brick-Grid Hero Section & Layered Frosted-Acrylic Telemetry Cards
   ========================================================================== */
.hero {
  position: relative;
  padding: 76px 0 84px;
  overflow: hidden;
  background-color: var(--bg-page);
  /* Subtle Architectural Brick-Grid Pattern */
  background-image:
    linear-gradient(to bottom, var(--brick-line) 1px, transparent 1px),
    linear-gradient(to right, var(--brick-line) 1px, transparent 1px),
    linear-gradient(to right, var(--brick-line) 1px, transparent 1px);
  background-size: 100% 44px, 88px 88px, 88px 88px;
  background-position: 0 0, 0 0, 44px 44px;
  transition: background-color var(--transition-theme);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 70% at 50% 40%, transparent 35%, var(--bg-page) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--glass-bg);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.45rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.hero-title .text-red {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 30px;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust svg {
  color: var(--accent);
}

/* Layered Frosted-Glass Telemetry Stack */
.telemetry-stack {
  position: relative;
  padding-bottom: 62px;
}

.telemetry-main {
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.telemetry-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.telemetry-plan {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.telemetry-pill {
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background-color: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  font-size: 0.76rem;
  font-weight: 700;
}

.usage-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.usage-row strong {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.usage-bar {
  height: 7px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  overflow: hidden;
  margin-bottom: 18px;
}

.usage-fill {
  width: 68%;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent) 0%, #e65c40 100%);
}

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

.spec-chip {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.spec-chip small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.spec-chip strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Overlapping Node Latency Live Card */
.telemetry-float {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 78%;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-lift);
  background-color: var(--glass-bg-strong);
}

.latency-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.latency-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--badge-ok-text);
  font-size: 0.74rem;
}

.latency-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.latency-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.latency-ms {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--badge-ok-text);
}

/* ==========================================================================
   Pitch-Black #141518 Metrics Band
   ========================================================================== */
.metrics-band {
  background-color: var(--band-dark);
  color: var(--band-dark-text);
  border-top: 1px solid var(--band-dark-border);
  border-bottom: 1px solid var(--band-dark-border);
  padding: 34px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-block {
  padding: 4px 16px;
  border-left: 1px solid var(--band-dark-border);
}

.metric-block:first-child {
  border-left: none;
  padding-left: 0;
}

.metric-num {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.metric-num .accent-red {
  color: #ef5840;
}

.metric-num .accent-gold {
  color: #eab308;
}

.metric-desc {
  font-size: 0.84rem;
  color: var(--band-dark-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 84px 0;
}

.section-alt {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-theme);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   3 Numbered Frosted-Glass Feature Cards (#advantages)
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.feature-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.feature-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--accent-soft);
}

.feature-visual {
  height: 112px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.works-with {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.platform-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Streaming & AI Support Cards (Zero Generic AI Bot Icons)
   ========================================================================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.media-card {
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.media-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.monogram {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  flex-shrink: 0;
}

.mono-nf { background-color: #c8321b; }
.mono-dp { background-color: #141518; }
.mono-yt { background-color: #dc2626; }
.mono-max { background-color: #4338ca; }

.mono-gpt { background-color: #141518; }
.mono-cl { background-color: #c8321b; }
.mono-gm { background-color: #1e3a8a; }
.mono-mj { background-color: #ca8a04; }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background-color: var(--badge-ok-bg);
  color: var(--badge-ok-text);
  font-size: 0.74rem;
  font-weight: 700;
}

.media-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.media-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.media-tag {
  font-size: 0.73rem;
  padding: 3px 9px;
  border-radius: 6px;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Plans & Pricing (Bronze / #c8321b Silver / #ca8a04 Gold)
   ========================================================================== */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
  align-items: stretch;
}

.plan-card {
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}

.plan-silver {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-red);
}

.plan-silver:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px -12px rgba(200, 50, 27, 0.34), inset 0 1px 0 var(--glass-specular);
}

.plan-gold {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-gold);
}

.plan-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px -12px rgba(202, 138, 4, 0.32), inset 0 1px 0 var(--glass-specular);
}

.plan-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.tag-bronze {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.tag-silver {
  background-color: var(--accent);
  color: #ffffff;
}

.tag-gold {
  background-color: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.plan-name {
  font-size: 1.24rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan-en {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.price-currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.price-amount {
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

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

.plan-subnote {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: -12px 0 18px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex: 1;
}

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

.check-icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
}

.plan-gold .check-icon {
  color: var(--gold);
}

/* Pricing Comparison Table */
.table-wrap {
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  font-size: 0.91rem;
}

.compare-table th,
.compare-table td {
  padding: 15px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

.compare-table thead th {
  background-color: var(--bg-subtle);
  font-weight: 700;
}

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

.compare-table .col-silver {
  background-color: var(--accent-soft);
  font-weight: 600;
  color: var(--text-primary);
}

.compare-table .col-gold {
  background-color: var(--gold-soft);
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-footnote {
  text-align: center;
  margin-top: 18px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ==========================================================================
   User Reviews
   ========================================================================== */
.review-card {
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.review-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.72;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--band-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.author-role {
  font-size: 0.79rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ (Native HTML Details / Summary)
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
}

.faq-item[open] {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 19px;
  height: 19px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   Bottom CTA Band
   ========================================================================== */
.cta-banner {
  background-color: var(--band-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200, 50, 27, 0.36) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2,
.cta-banner p,
.cta-banner a {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 0.98rem;
  color: var(--band-dark-muted);
  max-width: 540px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   Footer (Strictly 4 Titles Opening Separate Pages)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-page);
  padding: 38px 0;
  transition: background-color var(--transition-theme), border-color var(--transition-theme);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 40px;
}

.footer-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 4px;
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   Subpages & Recommended Insights Page
   ========================================================================== */
.doc-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-page);
  background-image:
    linear-gradient(to bottom, var(--brick-line) 1px, transparent 1px),
    linear-gradient(to right, var(--brick-line) 1px, transparent 1px);
  background-size: 100% 44px, 88px 88px;
  transition: background-color var(--transition-theme);
}

.doc-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.doc-hero p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.doc-main {
  padding: 48px 0 84px;
}

.doc-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 900px;
  margin: 0 auto;
}

.doc-section + .doc-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border-color);
}

.doc-section h2 {
  font-size: 1.24rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.doc-section p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.78;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.doc-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.sitemap-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sitemap-box {
  padding: 24px;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.sitemap-box h2 {
  font-size: 1.08rem;
  margin-bottom: 14px;
}

.sitemap-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sitemap-links a {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.93rem;
}

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

.node-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.node-item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.node-item strong {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 4px;
}

.node-item span {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Recommended News Cards */
.news-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.news-cat {
  color: var(--accent);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background-color: var(--accent-soft);
}

.news-card h2 {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.38;
}

.news-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.72;
  flex: 1;
}

/* ==========================================================================
   Responsive Media Queries (Tablet & Mobile Single-Column)
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .mobile-nav-strip {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 860px) {
  .grid-3,
  .pricing-cards,
  .sitemap-grid,
  .news-grid,
  .node-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .metric-block:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .section {
    padding: 58px 0;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-stack {
    padding-bottom: 0;
  }

  .telemetry-float {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .telemetry-specs {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }

  .header-cta {
    display: none;
  }

  .btn {
    min-height: 46px;
  }

  .plan-card,
  .feature-card,
  .news-card {
    padding: 24px 20px;
  }

  .faq-item summary {
    padding: 18px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .cta-banner {
    padding: 40px 20px;
  }

  .doc-card {
    padding: 24px 18px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }

  .footer-nav a {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }
}

/* ==========================================================================
   Long-Form SEO Article Editorial Styles
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.toc-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

.toc-title {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  padding: 4px 8px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.toc-list a:hover {
  color: var(--accent);
  background-color: var(--accent-soft);
  border-left-color: var(--accent);
}

.article-body {
  border-radius: var(--radius-lg);
  padding: 40px 42px;
}

.article-body h2 {
  font-size: 1.42rem;
  font-weight: 800;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

.article-body p {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

.article-body a.inline-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px dashed var(--accent-border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.article-body a.inline-link:hover {
  color: var(--accent-hover);
  border-bottom-style: solid;
}

.article-body ul.prose-list,
.article-body ol.prose-list {
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body ul.prose-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  line-height: 1.78;
  font-size: 0.96rem;
}

.article-body ul.prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.article-body ol.prose-list {
  counter-reset: item;
}

.article-body ol.prose-list li {
  counter-increment: item;
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
  line-height: 1.78;
  font-size: 0.96rem;
}

.article-body ol.prose-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.callout-box {
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background-color: var(--accent-soft);
  border-left: 4px solid var(--accent);
}

.callout-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 0.96rem;
}

.callout-box p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.article-cta-box {
  margin: 28px 0;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background-color: var(--band-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-cta-box h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1.12rem;
}

.article-cta-box p {
  margin: 0;
  color: var(--band-dark-muted);
  font-size: 0.89rem;
}

.article-faq {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-section {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.related-section h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  padding: 18px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.related-card p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    position: static;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .article-body {
    padding: 24px 18px;
  }

  .article-cta-box {
    padding: 20px 18px;
  }

  .article-cta-box .btn {
    width: 100%;
  }
}
