/* ==========================================================================
   MESL — Official Corporate-Cloud Stylesheet
   Palette: Pure White (#ffffff), Ice Blue (#f2f6ff), Royal Navy (#0c1e5b),
            Electric Sky Blue (#007bff), Cool Slate (#64748b)
   Pure Native CSS · Zero External Frameworks · Smooth Light & Dark Themes
   ========================================================================== */

:root {
  /* Official Light Theme (Default) */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-ice: #f2f6ff;
  --bg-header: rgba(255, 255, 255, 0.94);
  --bg-glass: rgba(242, 246, 255, 0.72);
  --bg-glass-hover: rgba(230, 239, 255, 0.95);

  --navy: #0c1e5b;
  --navy-deep: #081542;
  --blue: #007bff;
  --blue-hover: #0066d6;
  --blue-soft: rgba(0, 123, 255, 0.08);
  --blue-glow: rgba(0, 123, 255, 0.28);

  --text-primary: #0c1e5b;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border-subtle: #e6ecf5;
  --border-strong: #cfd9ea;

  --shadow-sm: 0 2px 8px rgba(12, 30, 91, 0.05);
  --shadow-md: 0 10px 28px -6px rgba(12, 30, 91, 0.09);
  --shadow-lg: 0 20px 44px -10px rgba(12, 30, 91, 0.14);
  --shadow-blue: 0 8px 22px -4px rgba(0, 123, 255, 0.36);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --container-max: 1180px;
  --header-h: 72px;

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

[data-theme="dark"] {
  --bg-page: #060d24;
  --bg-surface: #0b1638;
  --bg-ice: #0f1d47;
  --bg-header: rgba(6, 13, 36, 0.90);
  --bg-glass: rgba(18, 34, 78, 0.62);
  --bg-glass-hover: rgba(28, 49, 108, 0.85);

  --navy: #0e225c;
  --navy-deep: #071235;
  --blue: #2e90ff;
  --blue-hover: #52a4ff;
  --blue-soft: rgba(46, 144, 255, 0.16);
  --blue-glow: rgba(46, 144, 255, 0.36);

  --text-primary: #f1f5fb;
  --text-secondary: #c3d0e6;
  --text-muted: #93a6c7;

  --border-subtle: rgba(147, 166, 199, 0.16);
  --border-strong: rgba(147, 166, 199, 0.28);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 12px 30px -6px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 24px 48px -10px rgba(0, 0, 0, 0.62);
  --shadow-blue: 0 10px 26px -4px rgba(46, 144, 255, 0.42);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -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);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: var(--theme-transition);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* ==========================================================================
   Sticky Top Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--theme-transition);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  transition: filter 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.brand:hover .brand-logo {
  opacity: 0.85;
}

[data-theme="dark"] .brand-logo {
  filter: invert(1) brightness(1.12);
}

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

.nav-links a {
  position: relative;
  padding: 8px 11px;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

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

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

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

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

/* Refined Translucent Day/Night Toggle */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
  background: var(--bg-glass-hover);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

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

.theme-icon-wrap {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon {
  position: absolute;
  width: 16px;
  height: 16px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

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

.icon-moon {
  opacity: 0;
  transform: rotate(-75deg) scale(0.5);
  color: #93c5fd;
}

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

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

.theme-label {
  color: var(--text-secondary);
}

/* Official Rectangular & Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 22px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: transform 0.22s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

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

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

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  border: 1px solid var(--blue);
  box-shadow: var(--shadow-blue);
}

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

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

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   1. Hero Section (Split Official Layout + Isometric 3D Parallax)
   ========================================================================== */
.hero {
  position: relative;
  background: var(--bg-page);
  padding: 64px 0 76px;
  overflow: hidden;
  transition: var(--theme-transition);
}

.hero-wave-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 56%;
  height: 100%;
  background: var(--bg-ice);
  border-bottom-left-radius: 180px 120px;
  z-index: 0;
  transition: var(--theme-transition);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.hero-brand-kicker {
  display: block;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  perspective: 900px;
}

.iso-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.iso-float-slow {
  animation: isoFloat 6s ease-in-out infinite;
}

.iso-float-chip {
  animation: isoFloatChip 4.8s ease-in-out infinite;
}

.iso-float-chip-alt {
  animation: isoFloatChip 5.4s ease-in-out 0.8s infinite;
}

@keyframes isoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

@keyframes isoFloatChip {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* ==========================================================================
   Shared Section Scaffolding & Smooth Anchor Reveal
   ========================================================================== */
.section {
  padding: 76px 0;
  transition: var(--theme-transition);
}

.section-ice {
  background: var(--bg-ice);
  transition: var(--theme-transition);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-bar {
  width: 44px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin: 14px auto 0;
}

.anchor-pulse {
  animation: sectionPulse 0.85s ease;
}

@keyframes sectionPulse {
  0% { opacity: 0.72; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   2A. How It Works (3 Isometric Cards + Dashed Right Arrows)
   ========================================================================== */
.workflow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, var(--theme-transition);
}

.workflow-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}

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

.workflow-card:hover::after {
  transform: scaleX(1);
}

.workflow-iso {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.workflow-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.workflow-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.workflow-arrow {
  color: var(--blue);
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   2B. Technical Strength & Infrastructure (5-Card Grid with Central Navy Card)
   ========================================================================== */
.infra-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.infra-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.infra-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, var(--theme-transition);
}

.infra-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}

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

.infra-card:hover::after {
  transform: scaleX(1);
}

.infra-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.infra-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.infra-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.infra-center {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.infra-center::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(0, 123, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.infra-center h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 18px 0 10px;
  position: relative;
}

.infra-center p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  position: relative;
}

/* ==========================================================================
   3A. Diagonal Navy-Cornered Metrics Band
   ========================================================================== */
.metrics-band {
  position: relative;
  background: var(--bg-ice);
  padding: 58px 0;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--theme-transition);
}

.metrics-band::before,
.metrics-band::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  background: var(--navy);
  pointer-events: none;
}

.metrics-band::before {
  top: -70px;
  left: -70px;
  transform: rotate(45deg);
}

.metrics-band::after {
  bottom: -70px;
  right: -70px;
  transform: rotate(45deg);
}

.metrics-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric-item {
  padding: 12px 10px;
}

.metric-num {
  display: block;
  font-size: clamp(2.1rem, 3.6vw, 2.85rem);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

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

.metric-unit {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   3B. Official 3-Column Pricing Cards + Clear Comparison Table
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 44px;
}

.price-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 34px 28px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, var(--theme-transition);
}

.price-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}

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

.price-card:hover::after {
  transform: scaleX(1);
}

.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-md);
}

.price-card.featured::after {
  transform: scaleX(1);
}

.price-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.price-tier {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

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

.price-yen {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
}

.price-num {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

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

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

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

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

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 660px;
}

.compare-table th,
.compare-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

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

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

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

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

.col-featured {
  background: var(--blue-soft);
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   4A. 2x3 "为您量身定制的服务" Grid
   ========================================================================== */
.tailored-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tailored-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, var(--theme-transition);
}

.tailored-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}

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

.tailored-card:hover::after,
.tailored-card.is-accent::after {
  transform: scaleX(1);
}

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

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

.tailored-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tailored-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ==========================================================================
   4B. All-Platform Client Showcase (Clash Highlight) + Streaming & AI Cards
   ========================================================================== */
.client-showcase {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 56px;
}

.client-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.client-chip {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-ice);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.22s ease, color 0.22s ease, background-color 0.22s ease;
}

.client-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

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

.client-tile {
  background: var(--bg-ice);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align: center;
}

.client-tile.highlight {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.client-tile-title {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.client-tile-sub {
  font-size: 0.78rem;
  opacity: 0.78;
}

/* Streaming & AI Cards */
.sub-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.sub-block-title h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sub-block-title span {
  font-size: 0.88rem;
  color: var(--blue);
  font-weight: 600;
}

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

.media-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, var(--theme-transition);
}

.media-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}

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

.media-card:hover::after {
  transform: scaleX(1);
}

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

.media-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.m-nf { background: #dc2626; }
.m-dp { background: #1d4ed8; }
.m-yt { background: #e11d48; }
.m-hb { background: #5b21b6; }
.m-sp { background: #15803d; }
.m-bl { background: #db2777; }

.m-oa { background: #0f766e; }
.m-cl { background: #c2410c; }
.m-gm { background: #007bff; }
.m-cs { background: #0c1e5b; }
.m-mj { background: #334155; }
.m-px { background: #0369a1; }

.media-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}

.media-region {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  color: var(--blue);
  white-space: nowrap;
}

.media-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.ai-divider {
  margin-top: 52px;
}

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

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

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

.review-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

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

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  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.92rem;
  color: var(--text-primary);
}

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

/* FAQ */
.faq-list {
  max-width: 840px;
  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-sm);
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, var(--theme-transition);
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--blue);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  padding: 12px 0 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   4C. Full-Width #0c1e5b Navy Partner Banner (3x4 White Logo Matrix)
   ========================================================================== */
.partner-banner {
  background: var(--navy);
  color: #ffffff;
  padding: 68px 0;
  position: relative;
  overflow: hidden;
}

.partner-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 260px at 50% 0%, rgba(0, 123, 255, 0.22), transparent 72%);
  pointer-events: none;
}

.partner-head {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}

.partner-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.partner-head p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.partner-matrix {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.partner-cell {
  height: 66px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.partner-cell:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 123, 255, 0.6);
}

/* ==========================================================================
   Minimal Footer (Strictly 4 Links) & Scroll-to-Top Button
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  transition: var(--theme-transition);
}

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

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

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

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

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

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: var(--blue);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, background-color 0.22s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

/* ==========================================================================
   Subpages & Insights / News Page Layout
   ========================================================================== */
.page-hero {
  padding: 52px 0 36px;
  background: var(--bg-ice);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--theme-transition);
}

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

.page-hero p {
  color: var(--text-muted);
  max-width: 700px;
}

.doc-body {
  padding: 48px 0 76px;
}

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

.doc-stack {
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.doc-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

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

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

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

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

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

.sitemap-links a {
  color: var(--blue);
  font-weight: 500;
}

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

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

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-tag {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   SEO News Index & Long-Form Article Layout
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, var(--theme-transition);
}

.news-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}

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

.news-card:hover::after {
  transform: scaleX(1);
}

.news-card h2 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
}

.news-card h2 a:hover {
  color: var(--blue);
}

.news-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

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

.news-readmore:hover {
  text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Article Two-Column Shell (Content + Sticky TOC) */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  align-items: start;
}

.article-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 38px;
  box-shadow: var(--shadow-sm);
  transition: var(--theme-transition);
}

.article-content h2 {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-ice);
}

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

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

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

.article-content a.inline-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  margin: 12px 0 18px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.82;
}

.article-content li {
  margin-bottom: 7px;
}

.article-table-wrap {
  margin: 20px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  font-size: 0.9rem;
}

.article-table th,
.article-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.article-table th {
  background: var(--bg-ice);
  color: var(--text-primary);
  font-weight: 700;
}

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

/* Sticky Sidebar TOC & CTA */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--theme-transition);
}

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

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

.toc-list a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0 4px 10px;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.sidebar-cta {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.sidebar-cta h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sidebar-cta p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Inline Mobile TOC */
.toc-inline {
  display: none;
  background: var(--bg-ice);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 24px;
}

/* Related Reading Section */
.related-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.related-section h2 {
  border-bottom: none;
  margin: 0 0 18px;
  padding-bottom: 0;
  font-size: 1.25rem;
}

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

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

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

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

.related-card span {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 600;
}

@media (max-width: 1080px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: none;
  }

  .toc-inline {
    display: block;
  }
}

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

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

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

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-wave-bg {
    width: 100%;
    height: 45%;
    top: auto;
    bottom: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 90px 40px;
  }

  .workflow-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .workflow-arrow {
    transform: rotate(90deg);
  }

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

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

  .client-showcase {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  .container {
    padding: 0 18px;
  }

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

  .section {
    padding: 52px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .brand-logo {
    height: 30px;
  }

  .theme-label {
    display: none;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .header-actions .btn-outline {
    display: none;
  }

  /* Strict Single-Column Mobile Layout */
  .pricing-grid,
  .tailored-grid,
  .media-grid,
  .reviews-grid,
  .doc-grid,
  .client-deck {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .partner-matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Finger-friendly mobile CTA buttons */
  .hero-cta-row .btn,
  .price-card .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.98rem;
  }

  .client-showcase {
    padding: 24px 18px;
  }

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

  .footer-nav {
    gap: 18px;
  }

  .footer-nav a {
    display: inline-block;
    padding: 8px 0;
  }
}

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