/* ==========================================================================
   ImmTelecom - Enterprise Telecom Portal Stylesheet
   Pure Gallery White (#ffffff) + Deep Slate-Petrol (#283a46) + Azure (#3b99fc)
   Default: Day Mode | Auto-switches by system clock & manual toggle
   ========================================================================== */

:root {
  /* Day Mode (Default Corporate-Telecom Palette) */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f7f8fa;
  --bg-muted: #f1f4f8;

  --hero-bg: #283a46;
  --hero-bg-deep: #1e2d37;
  --hero-text: #ffffff;
  --hero-sub: rgba(255, 255, 255, 0.8);
  --hero-grid: rgba(255, 255, 255, 0.08);
  --hero-line: rgba(59, 153, 252, 0.34);

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

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

  --accent: #3b99fc;
  --accent-hover: #2584eb;
  --accent-soft: rgba(59, 153, 252, 0.1);
  --accent-border: rgba(59, 153, 252, 0.35);

  --badge-bg: #6b7280;
  --badge-text: #ffffff;

  --status-ok: #10b981;
  --toggle-bg: rgba(31, 41, 55, 0.04);
  --toggle-hover: rgba(59, 153, 252, 0.1);
  --toggle-border: rgba(31, 41, 55, 0.14);

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);

  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --container-max: 1160px;
  --transition-theme: background-color 0.36s cubic-bezier(0.22, 1, 0.36, 1),
                      color 0.36s cubic-bezier(0.22, 1, 0.36, 1),
                      border-color 0.36s cubic-bezier(0.22, 1, 0.36, 1),
                      box-shadow 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg-page: #0f171e;
  --bg-surface: #15202b;
  --bg-subtle: #1a2733;
  --bg-muted: #20303e;

  --hero-bg: #182630;
  --hero-bg-deep: #111c24;
  --hero-text: #f8fafc;
  --hero-sub: rgba(226, 232, 240, 0.8);
  --hero-grid: rgba(255, 255, 255, 0.06);
  --hero-line: rgba(59, 153, 252, 0.42);

  --text-primary: #eef2f6;
  --text-secondary: #b0becb;
  --text-muted: #8496a7;

  --border-color: #263645;
  --border-strong: #354a5e;

  --accent: #3b99fc;
  --accent-hover: #60aeff;
  --accent-soft: rgba(59, 153, 252, 0.16);
  --accent-border: rgba(59, 153, 252, 0.45);

  --badge-bg: #334657;
  --badge-text: #e2e8f0;

  --toggle-bg: rgba(255, 255, 255, 0.06);
  --toggle-hover: rgba(255, 255, 255, 0.13);
  --toggle-border: rgba(255, 255, 255, 0.15);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  -webkit-text-size-adjust: 100%;
}

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

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

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

ul,
ol {
  list-style: none;
}

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

/* Smooth Anchor Target Pulse Animation */
@keyframes sectionFocus {
  0% {
    box-shadow: inset 0 3px 0 0 var(--accent);
  }
  100% {
    box-shadow: inset 0 3px 0 0 transparent;
  }
}

.section-targeted {
  animation: sectionFocus 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   WHMCS-Inspired Two-Tier Corporate Telecom Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-theme);
}

.header-top {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-theme);
}

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

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

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.utility-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.utility-item:hover {
  color: var(--accent);
}

.utility-sep {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
}

.btn-portal-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  border: 1px solid var(--accent);
  transition: background-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-portal-cart:hover {
  background: var(--accent-hover);
  box-shadow: 0 3px 10px rgba(59, 153, 252, 0.3);
}

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

.theme-toggle:hover {
  background: var(--toggle-hover);
  border-color: var(--accent);
}

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

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  width: 16px;
  height: 16px;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
}

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

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-70deg) scale(0.5);
  color: #7dd3fc;
}

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

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

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Secondary Navigation Bar */
.header-nav {
  background: var(--bg-surface);
  transition: var(--transition-theme);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 4px;
}

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

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease;
}

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

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

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

.nav-news-link {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

.nav-news-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(59, 153, 252, 0.32);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Deep Slate-Petrol (#283a46) Hero Banner with Vector Telemetry Parallax
   ========================================================================== */
.hero-banner {
  position: relative;
  background: linear-gradient(180deg, var(--hero-bg) 0%, var(--hero-bg-deep) 100%);
  color: var(--hero-text);
  padding: 68px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-telemetry {
  position: absolute;
  inset: -24px;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-telemetry svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  margin-bottom: 18px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-ok);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.24);
}

.hero-banner h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  color: var(--hero-sub);
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   3-Column Quick-Action Strip (#f7f8fa) with 2px #3b99fc Spring Top-Border
   ========================================================================== */
.quick-strip {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-theme);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.quick-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 20px;
  border-right: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.quick-item:last-child {
  border-right: none;
}

.quick-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quick-item:hover {
  background: var(--bg-surface);
  color: var(--accent);
}

.quick-item:hover::before {
  transform: scaleX(1);
}

.quick-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.quick-item:hover .quick-icon {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.quick-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.quick-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Section Framing
   ========================================================================== */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-theme);
}

.section-alt {
  background: var(--bg-subtle);
}

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

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.section-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 480px;
  text-align: right;
}

/* ==========================================================================
   Core Advantages (3 Illustrated Telecom Cards)
   ========================================================================== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.adv-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, var(--transition-theme);
}

.adv-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.adv-visual {
  height: 152px;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.adv-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.adv-body h3 {
  font-size: 1.06rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.adv-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.spec-tag {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* ==========================================================================
   Streaming & AI Support Cards (Strict Enterprise Design, Zero Bot/Sparkle Icons)
   ========================================================================== */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cap-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--hero-bg);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-top-color 0.25s ease, box-shadow 0.25s ease, var(--transition-theme);
}

.cap-card:hover {
  border-top-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.cap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.cap-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cap-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cap-card h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cap-badge {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--badge-bg);
  color: var(--badge-text);
  white-space: nowrap;
}

.cap-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.service-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.service-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.service-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.service-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.service-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cap-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 22px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.cap-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

/* ==========================================================================
   Real ImmTelecom Pricing Cards & Full Plan Comparison Table
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, var(--transition-theme);
}

.plan-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

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

.plan-ribbon {
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-xs);
}

.plan-tier {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.plan-name {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

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

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

.price-num {
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

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

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
  flex: 1;
}

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

.table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.compare-table th,
.compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

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

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

.compare-table tbody tr:hover td {
  background: var(--bg-subtle);
}

.compare-table td {
  color: var(--text-secondary);
}

.compare-table .plan-col-name {
  font-weight: 600;
  color: var(--text-primary);
}

.compare-table .price-cell {
  font-weight: 700;
  color: var(--accent);
}

.table-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Left-Bordered Announcement / Review Blocks (#6b7280 Date Badges + Azure Hover)
   ========================================================================== */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--border-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  transition: border-left-color 0.22s ease, box-shadow 0.22s ease, var(--transition-theme);
}

.feed-item:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.feed-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.date-badge {
  display: inline-block;
  padding: 2px 9px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: var(--radius-xs);
}

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

.feed-item h3 {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feed-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

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

/* ==========================================================================
   FAQ Accordion (Pure HTML details/summary)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--border-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: border-left-color 0.22s ease, var(--transition-theme);
}

.faq-item:hover,
.faq-item[open] {
  border-left-color: var(--accent);
}

.faq-item summary {
  list-style: none;
  padding: 17px 22px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-primary);
  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-plus {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.22s ease;
}

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

.faq-answer {
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   Bottom Portal CTA Strip
   ========================================================================== */
.portal-cta {
  background: var(--hero-bg);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.portal-cta h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  margin-bottom: 6px;
}

.portal-cta p {
  font-size: 0.94rem;
  color: var(--hero-sub);
}

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

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

.footer-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  transition: color 0.2s ease, background-color 0.2s ease;
}

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

/* ==========================================================================
   Subpage Layouts (About, Terms, Privacy, Sitemap, Digest News)
   ========================================================================== */
.page-banner {
  background: var(--hero-bg);
  color: #ffffff;
  padding: 44px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-banner h1 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 600;
  margin-bottom: 8px;
}

.page-banner p {
  font-size: 0.95rem;
  color: var(--hero-sub);
  max-width: 680px;
}

.doc-wrap {
  max-width: 920px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 20px;
  transition: var(--transition-theme);
}

.doc-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.doc-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.8;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

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

.doc-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

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

.notice-box {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
}

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

.node-pill {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-pill span {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent);
}

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

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

.sitemap-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sitemap-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Responsive Media Queries (Mobile Single-Column & Touch-Friendly)
   ========================================================================== */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .adv-grid,
  .capability-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-desc {
    text-align: left;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }

  .utility-lang,
  .utility-login,
  .utility-sep {
    display: none;
  }

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

  .header-nav {
    display: none;
    border-top: 1px solid var(--border-color);
  }

  .header-nav.is-open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 14px;
  }

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

  .nav-links a {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a::after {
    display: none;
  }

  .hero-banner {
    padding: 48px 0 44px;
  }

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

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

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

  .quick-item {
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 16px;
  }

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

  .section {
    padding: 46px 0;
  }

  .pricing-grid,
  .service-matrix,
  .node-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .plan-card .btn,
  .cap-card .btn,
  .portal-cta .btn {
    width: 100%;
    min-height: 48px;
  }

  .portal-cta {
    padding: 28px 20px;
  }

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

  .footer-nav {
    gap: 8px 18px;
  }
}

/* ==========================================================================
   Long-Form SEO Article Layout, Breadcrumb, TOC & Related Reading
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

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

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 16px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

.article-shell {
  max-width: 960px;
  margin: 36px auto 64px;
  padding: 0 20px;
}

.toc-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin-bottom: 28px;
  transition: var(--transition-theme);
}

.toc-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  font-size: 0.88rem;
}

.toc-list a {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color 0.2s ease;
}

.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

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

.article-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 38px;
  margin-bottom: 28px;
  transition: var(--transition-theme);
}

.article-content h2 {
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 34px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.35;
}

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

.article-content h3 {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.article-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 14px;
}

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

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

.article-content ul {
  margin: 12px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

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

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

.article-content .table-wrap {
  margin: 18px 0 22px;
}

.article-faq {
  margin-top: 32px;
}

.related-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 28px;
  transition: var(--transition-theme);
}

.related-box h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

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

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--border-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: border-left-color 0.22s ease, background-color 0.22s ease;
}

.related-card:hover {
  border-left-color: var(--accent);
  background: var(--bg-surface);
}

.related-card strong {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.related-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

.digest-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.digest-readmore:hover {
  color: var(--accent-hover);
}

@media (max-width: 768px) {
  .toc-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 24px 18px;
  }

  .related-box {
    padding: 22px 18px;
  }
}
