/* ==========================================================================
   TAG (TAGInternet) - Official Editorial-Infra Native CSS
   Pure White (#ffffff) + Terracotta Red (#c8321b) + Pitch Black (#141518)
   + Emerald Live (#16a34a) + Amber Gold (#ca8a04)
   Zero External Frameworks | Instant Load | Light Default + Auto Dark Mode
   ========================================================================== */

:root {
  /* Light Mode (Default) */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f8f9fa;
  --bg-surface-soft: #f3f4f6;
  --bg-glass: rgba(255, 255, 255, 0.86);
  --bg-brick-line: rgba(17, 24, 39, 0.055);
  --bg-hero-glow: radial-gradient(ellipse 68% 58% at 62% 18%, rgba(200, 50, 27, 0.09), transparent 72%);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  --border-subtle: #e5e7eb;
  --border-strong: #d1d5db;

  /* Signature Brand Accents */
  --brand-red: #c8321b;
  --brand-red-hover: #ad2814;
  --brand-red-soft: rgba(200, 50, 27, 0.08);
  --brand-red-border: rgba(200, 50, 27, 0.32);

  --pitch-black: #141518;
  --emerald: #16a34a;
  --emerald-soft: rgba(22, 163, 74, 0.1);
  --gold: #ca8a04;
  --gold-hover: #a16207;
  --gold-soft: rgba(202, 138, 4, 0.1);

  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-sm: 0 4px 12px -2px rgba(17, 24, 39, 0.06), 0 2px 4px -2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 18px 40px -12px rgba(17, 24, 39, 0.12), 0 6px 16px -6px rgba(17, 24, 39, 0.06);
  --shadow-float: 0 22px 48px -12px rgba(17, 24, 39, 0.18), 0 4px 14px -4px rgba(17, 24, 39, 0.08);

  /* Translucent Theme Toggle */
  --toggle-bg: rgba(255, 255, 255, 0.65);
  --toggle-bg-hover: rgba(243, 244, 246, 0.92);
  --toggle-border: rgba(17, 24, 39, 0.14);
  --toggle-icon: #374151;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container-max: 1160px;
  --transition-theme: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="dark"] {
  --bg-page: #0d0f12;
  --bg-surface: #15181e;
  --bg-surface-alt: #111318;
  --bg-surface-soft: #1d212a;
  --bg-glass: rgba(13, 15, 18, 0.84);
  --bg-brick-line: rgba(255, 255, 255, 0.045);
  --bg-hero-glow: radial-gradient(ellipse 68% 58% at 62% 18%, rgba(200, 50, 27, 0.16), transparent 72%);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --brand-red: #dc3d24;
  --brand-red-hover: #ef4b32;
  --brand-red-soft: rgba(220, 61, 36, 0.14);
  --brand-red-border: rgba(220, 61, 36, 0.45);

  --pitch-black: #08090b;
  --emerald: #22c55e;
  --emerald-soft: rgba(34, 197, 94, 0.14);
  --gold: #eab308;
  --gold-hover: #facc15;
  --gold-soft: rgba(234, 179, 8, 0.14);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 6px 16px -4px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 20px 44px -12px rgba(0, 0, 0, 0.65);
  --shadow-float: 0 24px 54px -10px rgba(0, 0, 0, 0.78);

  --toggle-bg: rgba(29, 33, 42, 0.55);
  --toggle-bg-hover: rgba(45, 51, 64, 0.78);
  --toggle-border: rgba(255, 255, 255, 0.16);
  --toggle-icon: #e5e7eb;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -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;
  transition: var(--transition-theme);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

/* Subtle section focus animation when jumping via anchor */
@keyframes anchorReveal {
  0% { opacity: 0.72; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.section.anchor-flash {
  animation: anchorReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.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);
  transition: var(--transition-theme);
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(200, 50, 27, 0.25));
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

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

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 2px;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-digest-link {
  color: var(--brand-red) !important;
  font-weight: 600 !important;
}

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

.header-signin {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.header-signin:hover {
  color: var(--text-primary);
  background: var(--bg-surface-soft);
}

/* Refined Translucent Day/Night Toggle Button */
.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--toggle-icon);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.28s ease, border-color 0.28s ease, transform 0.22s ease, box-shadow 0.28s ease;
  box-shadow: var(--shadow-xs);
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  background: var(--toggle-bg-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

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

.theme-toggle svg {
  position: absolute;
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

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

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

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) 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;
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  min-height: 46px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  min-height: 38px;
  font-size: 0.875rem;
}

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

.btn-primary:hover {
  background: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(200, 50, 27, 0.56);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-outline-red {
  background: transparent;
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.btn-outline-red:hover {
  background: var(--brand-red-soft);
  transform: translateY(-2px);
}

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

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero Section (Brick-Grid + Warm Terracotta Glow + Split 2-Col Official UI)
   ========================================================================== */
.hero {
  position: relative;
  padding: 76px 0 88px;
  background-color: var(--bg-page);
  background-image:
    var(--bg-hero-glow),
    linear-gradient(to right, var(--bg-brick-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-brick-line) 1px, transparent 1px);
  background-size: 100% 100%, 48px 32px, 48px 32px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition-theme);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 3.85rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.hero-title-brand {
  color: var(--brand-red);
  position: relative;
  display: inline-block;
}

.hero-title-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 4px;
  background: var(--brand-red);
  border-radius: 2px;
}

.hero-title-rest {
  color: var(--text-primary);
}

.hero-lead {
  font-size: clamp(1.18rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 12px;
  letter-spacing: -0.015em;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Right Hero: Layered Parallax Subscription Card + Floating Live Latency Card */
.hero-visual {
  position: relative;
  padding-bottom: 44px;
  padding-left: 28px;
  perspective: 1000px;
}

.sub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease-out, var(--transition-theme);
  will-change: transform;
}

.sub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.sub-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--emerald);
}

.sub-plan-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.sub-quota-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.sub-quota-main {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sub-quota-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-soft);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  width: 25.6%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--brand-red);
}

.sub-stats-mini {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.sub-stats-mini strong {
  color: var(--text-primary);
}

.sub-clients-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.sub-clients-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.client-chip {
  height: 36px;
  border-radius: 10px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.client-chip:hover {
  transform: translateY(-2px);
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* Floating Node Latency Card (Bottom-Left Overlap) */
.latency-float-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 276px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-float);
  z-index: 4;
  transition: transform 0.2s ease-out, var(--transition-theme);
  will-change: transform;
}

.latency-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.latency-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--emerald);
}

.latency-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

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

.latency-ms {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--emerald);
}

/* ==========================================================================
   Full-Width Pitch-Black Metrics Band (#141518)
   ========================================================================== */
.metrics-band {
  background: var(--pitch-black);
  color: #ffffff;
  padding: 36px 0;
}

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

.metric-col {
  text-align: center;
  padding: 6px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

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

.metric-big {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
}

.metric-sub {
  font-size: 0.86rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* ==========================================================================
   Common Sections
   ========================================================================== */
.section {
  padding: 84px 0;
  scroll-margin-top: 72px;
}

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

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

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

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.24;
  margin-bottom: 12px;
}

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

/* ==========================================================================
   3 Numbered Core Advantages (Official 01 / 02 / 03 Alternating Rows)
   ========================================================================== */
.features-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-card-panel {
  order: 1;
}

.feature-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.feature-text h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin-bottom: 14px;
}

.feature-text p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 18px;
}

.inline-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-red);
  transition: gap 0.2s ease;
}

.inline-cta-link:hover {
  gap: 10px;
}

.feature-card-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-theme);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.panel-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  color: var(--emerald);
}

/* 01: Latency Bar Comparison */
.bar-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  margin-bottom: 7px;
  color: var(--text-secondary);
}

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

.bar-item.is-tag .bar-meta {
  color: var(--text-primary);
  font-weight: 700;
}

.bar-item.is-tag .bar-meta strong {
  color: var(--brand-red);
}

.bar-track {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-soft);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

.bar-fill.slow { width: 92%; background: #9ca3af; }
.bar-fill.mid  { width: 42%; background: #6b7280; }
.bar-fill.fast { width: 11%; background: var(--brand-red); }

/* 02: Tokyo Native Residential Unlock Checklist */
.unlock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.unlock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 600;
}

.unlock-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 03: Terracotta World Map Card */
.map-box {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  padding: 18px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.map-pill {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--brand-red-border);
  color: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* Works With Strip */
.works-strip {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

.works-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.work-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.work-pill:hover {
  transform: translateY(-2px);
  border-color: var(--brand-red);
}

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

.media-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, var(--transition-theme);
}

.media-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-red);
  box-shadow: var(--shadow-sm);
}

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

.media-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
  flex-shrink: 0;
}

.tag-emerald {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--emerald-soft);
  color: var(--emerald);
}

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

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

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

.ai-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, var(--transition-theme);
}

.ai-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-red);
  box-shadow: var(--shadow-sm);
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.ai-card-title span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ai-card p {
  font-size: 0.89rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.ai-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Monogram Brand Colors */
.bg-netflix { background: #e50914; }
.bg-youtube { background: #dc2626; }
.bg-disney  { background: #1d4ed8; }
.bg-hbo     { background: #4c1d95; }
.bg-dazn    { background: #111827; }
.bg-spotify { background: #16a34a; }
.bg-tvb     { background: #0369a1; }
.bg-bili    { background: #ec4899; }

.bg-openai  { background: #10a37f; }
.bg-claude  { background: #c25934; }
.bg-gemini  { background: #2563eb; }
.bg-mj      { background: #1f2937; }
.bg-cursor  { background: #374151; }
.bg-px      { background: #0f766e; }

/* ==========================================================================
   Official 3-Column Pricing Grid (Bronze / Silver Featured / Gold) + Table
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 44px;
}

.pricing-card {
  position: relative;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, var(--transition-theme);
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pricing-card.plan-silver {
  border: 2px solid var(--brand-red);
  box-shadow: 0 18px 40px -16px rgba(200, 50, 27, 0.24);
}

.pricing-card.plan-gold {
  border: 2px solid var(--gold);
  box-shadow: 0 18px 40px -16px rgba(202, 138, 4, 0.2);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  color: #ffffff;
}

.plan-badge.red { background: var(--brand-red); }
.plan-badge.gold { background: var(--gold); }

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

.plan-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.plan-price-block {
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

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

.plan-amount {
  font-size: 2.55rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

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

.plan-usd-ref {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

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

.check-emerald {
  width: 18px;
  height: 18px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Comparison Table */
.table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-theme);
}

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

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

.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: var(--bg-surface-alt);
  font-weight: 700;
}

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

.col-silver {
  color: var(--brand-red);
  font-weight: 700;
}

.col-gold {
  color: var(--gold);
  font-weight: 700;
}

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

/* ==========================================================================
   Reviews & FAQ
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-theme);
}

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

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

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

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

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

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

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

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.22s ease, var(--transition-theme);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--brand-red);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 24px;
  font-weight: 600;
  font-size: 1rem;
  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(--brand-red);
}

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

/* ==========================================================================
   Floating Bottom-Right Chat / Support Button (#c8321b)
   ========================================================================== */
.floating-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -6px rgba(200, 50, 27, 0.55);
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.floating-chat:hover {
  background: var(--brand-red-hover);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 32px -6px rgba(200, 50, 27, 0.65);
}

/* ==========================================================================
   Minimal Footer (Strictly 4 Links Only)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 36px 0;
  transition: var(--transition-theme);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   Subpages & Digest Articles (sitemap / about / terms / privacy / digest)
   ========================================================================== */
.subpage-main {
  padding: 56px 0 88px;
  flex: 1;
}

.subpage-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 46px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-theme);
}

.subpage-header {
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
}

.subpage-header h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.subpage-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.prose h2 {
  font-size: 1.28rem;
  font-weight: 700;
  margin: 30px 0 12px;
  color: var(--text-primary);
}

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

.prose p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.82;
}

.prose ul {
  margin: 0 0 18px 20px;
  color: var(--text-secondary);
  line-height: 1.82;
}

.prose li {
  margin-bottom: 8px;
}

.highlight-box {
  background: var(--brand-red-soft);
  border-left: 4px solid var(--brand-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  margin: 20px 0;
  color: var(--text-primary);
  font-size: 0.94rem;
}

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

.sitemap-group,
.digest-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sitemap-group h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.sitemap-group ul {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sitemap-group a {
  color: var(--brand-red);
  font-weight: 500;
}

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

.digest-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.digest-card h2 {
  margin: 4px 0 0;
  font-size: 1.12rem;
  line-height: 1.4;
}

.digest-card p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.digest-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
}

.digest-card-link {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.digest-card-link:hover {
  transform: translateY(-2px);
  border-color: var(--brand-red);
  box-shadow: var(--shadow-sm);
}

.digest-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-top: 6px;
}

/* ==========================================================================
   Long-Form SEO Article Components (Breadcrumb, TOC, Related Reading)
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

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

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

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.article-toc {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 0 0 32px;
}

.article-toc-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.article-toc ol {
  margin: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.91rem;
}

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

.article-toc a:hover {
  color: var(--brand-red);
  text-decoration: underline;
}

.prose h2[id] {
  scroll-margin-top: 84px;
}

.prose h3 {
  font-size: 1.06rem;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--text-primary);
}

.prose a.internal-link {
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-faq {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.article-faq h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.related-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

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

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

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-red);
}

.related-card-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}

.related-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Responsive Media Queries (@media)
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links {
    gap: 14px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-grid,
  .pricing-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .header-inner {
    height: 62px;
  }

  .nav-links,
  .header-signin {
    display: none;
  }

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

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 50px;
  }

  .hero-visual {
    padding-left: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .latency-float-card {
    position: static;
    width: 100%;
  }

  .sub-clients-row {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .metric-col {
    border-right: none;
    padding: 8px 4px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 34px;
  }

  /* Strict Single-Column Mobile Layout */
  .feature-row,
  .media-grid,
  .ai-grid,
  .pricing-grid,
  .reviews-grid,
  .sitemap-grid,
  .digest-grid,
  .related-grid,
  .unlock-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-card-panel {
    order: initial;
  }

  .feature-card-panel {
    padding: 20px;
  }

  .btn {
    min-height: 48px;
  }

  .header-actions .btn-sm {
    min-height: 40px;
    padding: 8px 16px;
  }

  .floating-chat {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-nav {
    gap: 16px 24px;
  }

  .subpage-main {
    padding: 36px 0 60px;
  }

  .subpage-card {
    padding: 26px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
