/* ==========================================================================
   Miaona.lat — Pure HTML & Native CSS Design System
   Frosted Porcelain Canvas + Multi-Layer Dynamic CSS Aurora & Orbit Stage
   Zero JavaScript · Zero External Frameworks
   ========================================================================== */

:root {
  --canvas: #f5f7fc;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --surface-tint: rgba(241, 245, 249, 0.72);
  --ink: #0f172a;
  --ink-body: #334155;
  --ink-muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(37, 99, 235, 0.28);

  --cobalt: #2563eb;
  --cobalt-deep: #1d4ed8;
  --cobalt-soft: rgba(37, 99, 235, 0.1);
  --indigo: #4f46e5;
  --teal: #0d9488;
  --teal-soft: rgba(13, 148, 136, 0.11);
  --amber: #ea580c;
  --amber-soft: rgba(234, 88, 12, 0.12);

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

  --shadow-sm: 0 4px 14px -4px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 14px 34px -14px rgba(15, 23, 42, 0.12);
  --shadow-highlight: 0 22px 46px -16px rgba(37, 99, 235, 0.22);

  --container: 1240px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--canvas);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  background-color: transparent;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--cobalt);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--cobalt-deep);
}

/* ==========================================================================
   Pure-CSS Dynamic Animated Background Stage (Zero JS)
   ========================================================================== */
.aurora-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(59, 130, 246, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 86% 24%, rgba(244, 114, 182, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 82% 85%, rgba(13, 148, 136, 0.1) 0%, transparent 48%),
    linear-gradient(155deg, #f5f8ff 0%, #fdf5fb 52%, #f1fbf8 100%);
}

.aurora-dots {
  position: absolute;
  inset: -64px;
  background-image: radial-gradient(rgba(37, 99, 235, 0.22) 1.35px, transparent 1.35px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 100%);
  animation: dotsSlide 34s linear infinite;
  will-change: transform;
}

.aurora-wave {
  position: absolute;
  border-radius: 50%;
  filter: blur(66px);
  will-change: transform;
}

.aurora-wave--blue {
  width: 640px;
  height: 640px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.34) 0%, rgba(99, 102, 241, 0.16) 48%, transparent 74%);
  animation: waveDriftA 18s ease-in-out infinite alternate;
}

.aurora-wave--teal {
  width: 580px;
  height: 580px;
  top: 24%;
  right: -110px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.32) 0%, rgba(16, 185, 129, 0.14) 52%, transparent 75%);
  animation: waveDriftB 21s ease-in-out infinite alternate;
}

.aurora-wave--peach {
  width: 540px;
  height: 540px;
  bottom: -120px;
  left: 22%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, rgba(139, 92, 246, 0.18) 50%, transparent 75%);
  animation: waveDriftC 24s ease-in-out infinite alternate;
}

.aurora-sheen {
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(59, 130, 246, 0.08) 52%,
    transparent 62%
  );
  animation: sheenSweep 14s ease-in-out infinite;
  will-change: transform;
}

.orbit-ring {
  position: absolute;
  top: 10%;
  right: 6%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px dashed rgba(37, 99, 235, 0.18);
  animation: slowSpin 42s linear infinite;
}

.orbit-ring::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.65);
}

.orbit-ring--inner {
  top: 17%;
  right: 10%;
  width: 320px;
  height: 320px;
  border-color: rgba(13, 148, 136, 0.2);
  animation: slowSpinReverse 30s linear infinite;
}

.orbit-ring--inner::before {
  background: var(--teal);
  box-shadow: 0 0 14px rgba(13, 148, 136, 0.65);
}

.pulse-nodes span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08);
  animation: nodeFloat 13s ease-in-out infinite;
}

.pulse-nodes span:nth-child(1) { top: 18%; left: 10%; animation-delay: 0s; }
.pulse-nodes span:nth-child(2) { top: 44%; left: 6%; background: rgba(13, 148, 136, 0.5); animation-delay: -3s; }
.pulse-nodes span:nth-child(3) { top: 68%; left: 88%; animation-delay: -6s; }
.pulse-nodes span:nth-child(4) { top: 82%; left: 16%; background: rgba(234, 88, 12, 0.4); animation-delay: -9s; }
.pulse-nodes span:nth-child(5) { top: 32%; left: 82%; background: rgba(79, 70, 229, 0.45); animation-delay: -4.5s; }

@keyframes dotsSlide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(32px, 32px, 0); }
}

@keyframes waveDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(130px, 80px, 0) scale(1.14); }
}

@keyframes waveDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1.06); }
  100% { transform: translate3d(-120px, -65px, 0) scale(0.92); }
}

@keyframes waveDriftC {
  0% { transform: translate3d(0, 0, 0) scale(0.95); }
  100% { transform: translate3d(90px, -90px, 0) scale(1.12); }
}

@keyframes sheenSweep {
  0% { transform: translate3d(-28%, -10%, 0); }
  50% { transform: translate3d(26%, 10%, 0); }
  100% { transform: translate3d(-28%, -10%, 0); }
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slowSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes nodeFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-22px) scale(1.35); opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-dots,
  .aurora-wave,
  .aurora-sheen,
  .orbit-ring,
  .pulse-nodes span,
  .mm-item,
  .live-beacon {
    animation: none !important;
  }
}

/* ==========================================================================
   Animated Floating Marshmallows Field (Pure HTML/SVG + CSS Keyframes)
   ========================================================================== */
.marshmallow-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mm-item {
  position: absolute;
  opacity: 0.94;
  filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.14));
  will-change: transform;
}

.mm-item svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Diverse placement across left/right sky, hero spaces, and floating mid-zones */
.mm-1  { top: 9%;  left: 1.4%;  width: 84px;  animation: mmFloatA 13s ease-in-out infinite; }
.mm-2  { top: 10%; right: 1.4%; width: 98px;  animation: mmFloatB 15s ease-in-out infinite; animation-delay: -3s; }
.mm-3  { top: 25%; left: 1%;    width: 82px;  animation: mmFloatC 12s ease-in-out infinite; animation-delay: -5s; }
.mm-4  { top: 27%; right: 1.2%; width: 80px;  animation: mmFloatA 14s ease-in-out infinite; animation-delay: -7s; }
.mm-5  { top: 43%; left: 1.8%;  width: 78px;  animation: mmFloatB 16s ease-in-out infinite; animation-delay: -2s; }
.mm-6  { top: 45%; right: 1.6%; width: 86px;  animation: mmFloatC 13.5s ease-in-out infinite; animation-delay: -9s; }
.mm-7  { top: 61%; left: 1.2%;  width: 96px;  animation: mmFloatA 17s ease-in-out infinite; animation-delay: -4s; }
.mm-8  { top: 7%;  left: 44%;   width: 72px;  opacity: 0.88; animation: mmCrossA 20s ease-in-out infinite; animation-delay: -6s; }
.mm-9  { top: 64%; right: 1.4%; width: 86px;  animation: mmFloatB 14.5s ease-in-out infinite; animation-delay: -8s; }
.mm-10 { top: 80%; left: 1.8%;  width: 84px;  animation: mmFloatC 15.5s ease-in-out infinite; animation-delay: -1s; }
.mm-11 { top: 53%; left: 48%;   width: 86px;  opacity: 0.72; animation: mmCrossB 22s ease-in-out infinite; animation-delay: -11s; }
.mm-12 { top: 82%; right: 1.8%; width: 82px;  animation: mmFloatA 13s ease-in-out infinite; animation-delay: -10s; }
.mm-13 { top: 6%;  left: 62%;   width: 70px;  opacity: 0.84; animation: mmFloatC 19s ease-in-out infinite; animation-delay: -13s; }
.mm-14 { top: 73%; left: 66%;   width: 78px;  opacity: 0.76; animation: mmCrossB 18s ease-in-out infinite; animation-delay: -5.5s; }
.mm-15 { top: 20%; left: 51%;   width: 74px;  opacity: 0.86; animation: mmFloatB 15s ease-in-out infinite; animation-delay: -4.2s; }
.mm-16 { top: 56%; right: 24%;  width: 74px;  opacity: 0.74; animation: mmFloatC 16s ease-in-out infinite; animation-delay: -7.5s; }

@keyframes mmFloatA {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg) scale(1); }
  35%      { transform: translate3d(18px, -28px, 0) rotate(7deg) scale(1.04); }
  70%      { transform: translate3d(-12px, 16px, 0) rotate(-3deg) scale(0.97); }
}

@keyframes mmFloatB {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(5deg) scale(1); }
  40%      { transform: translate3d(-22px, -24px, 0) rotate(-8deg) scale(1.05); }
  75%      { transform: translate3d(14px, 20px, 0) rotate(4deg) scale(0.96); }
}

@keyframes mmFloatC {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(16px, -32px, 0) rotate(11deg); }
}

@keyframes mmCrossA {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-10deg); }
  50%      { transform: translate3d(48px, -38px, 0) rotate(12deg); }
}

@keyframes mmCrossB {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg); }
  50%      { transform: translate3d(-46px, -34px, 0) rotate(-12deg); }
}

@media (max-width: 1180px) {
  .mm-item {
    opacity: 0.65;
  }
}

@media (max-width: 720px) {
  .mm-item {
    opacity: 0.42;
    transform-origin: center;
  }
  .mm-8, .mm-11, .mm-13, .mm-14, .mm-15, .mm-16 {
    opacity: 0.24;
  }
  .mm-1, .mm-2, .mm-3, .mm-4, .mm-5, .mm-6, .mm-7,
  .mm-8, .mm-9, .mm-10, .mm-11, .mm-12, .mm-13, .mm-14,
  .mm-15, .mm-16 {
    width: 56px;
  }
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.wrap {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section-block {
  padding-block: 4.5rem;
}

.section-block--compact {
  padding-block: 3.25rem;
}

.section-head {
  max-width: 780px;
  margin-bottom: 2.3rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.78rem;
  border-radius: var(--radius-pill);
  background: var(--cobalt-soft);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: var(--cobalt-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-body);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn--cta {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--indigo) 100%);
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.55);
}

.btn--cta:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(37, 99, 235, 0.65);
}

.btn--outline {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: var(--shadow-sm);
}

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

.btn--teal {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal) 0%, #059669 100%);
  box-shadow: 0 10px 22px -8px rgba(13, 148, 136, 0.5);
}

.btn--teal:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.55rem 1.12rem;
  font-size: 0.88rem;
}

.btn--full {
  width: 100%;
}

/* ==========================================================================
   Sticky Top Header (Logo Strictly Top-Left)
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 74px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-lockup:hover {
  color: var(--ink);
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.22);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cobalt);
  font-family: var(--font-mono);
}

.menu-check {
  display: none;
}

.menu-trigger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.menu-trigger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--ink-body);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-list a:hover {
  color: var(--cobalt);
}

/* ==========================================================================
   Hero Showcase
   ========================================================================== */
.hero-area {
  padding-block: 3.6rem 2.6rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: 2.4rem;
  align-items: center;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.82rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--ink-body);
  box-shadow: var(--shadow-sm);
}

.status-chip--live {
  background: var(--teal-soft);
  border-color: rgba(13, 148, 136, 0.28);
  color: #0f766e;
}

.live-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.24);
  animation: beaconPulse 2s ease-in-out infinite;
}

@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

.hero-h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.8vw, 3.05rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.gradient-ink {
  background: linear-gradient(125deg, var(--cobalt) 0%, var(--teal) 60%, var(--indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--ink-body);
  max-width: 640px;
}

.geo-callout {
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-left: 4px solid var(--cobalt);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  color: var(--ink-body);
}

.geo-callout strong {
  color: var(--ink);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.kpi-tile {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.kpi-num {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--cobalt-deep);
  line-height: 1.25;
}

.kpi-txt {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

/* Topology / Route Panel */
.topology-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: var(--shadow-highlight);
}

.topology-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.95rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.topology-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
}

.topology-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.24rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--cobalt-soft);
  color: var(--cobalt-deep);
}

.route-pipeline {
  display: grid;
  gap: 0.85rem;
}

.route-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  border: 1px solid var(--line);
}

.route-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--teal) 100%);
}

.route-step strong {
  display: block;
  font-size: 0.93rem;
  color: var(--ink);
}

.route-step small {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.route-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--teal);
}

.topology-foot {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Onboarding 4-Step Strip
   ========================================================================== */
.steps-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.step-idx {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cobalt);
  background: var(--cobalt-soft);
  padding: 0.16rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.55rem;
}

.step-box h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
}

.step-box p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-body);
}

/* ==========================================================================
   PRICING SECTION: STRICTLY SAME-ROW 4 COLUMNS ON DESKTOP
   ========================================================================== */
.pricing-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.65rem 1.35rem 1.45rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-highlight);
}

.plan-card--popular {
  border: 2px solid var(--cobalt);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(242, 247, 255, 0.84) 100%);
  box-shadow: var(--shadow-highlight);
}

.plan-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--amber) 0%, #f97316 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.32);
}

.plan-name {
  margin: 0 0 0.3rem;
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--ink);
}

.plan-tagline {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
  min-height: 2.75rem;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.18rem;
  margin-bottom: 0.25rem;
}

.plan-yen {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cobalt);
}

.plan-num {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.plan-unit {
  font-size: 0.86rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.plan-annual {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1rem;
}

.plan-quota-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.62rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  border: 1px solid var(--line);
  font-size: 0.86rem;
}

.plan-quota-box strong {
  color: var(--cobalt-deep);
  font-size: 0.96rem;
}

.plan-specs {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.54rem;
  font-size: 0.87rem;
  color: var(--ink-body);
}

.plan-specs li {
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
}

.plan-specs li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 900;
  flex-shrink: 0;
}

.pricing-footnote {
  margin: 1.4rem auto 0;
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  font-size: 0.87rem;
  color: var(--ink-body);
  text-align: center;
}

/* ==========================================================================
   Bento Architecture & Global Nodes Directory
   ========================================================================== */
.bento-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.bento-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.bento-card {
  padding: 1.55rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.bento-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}

.bento-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-body);
}

.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.chip {
  padding: 0.28rem 0.68rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-body);
}

.chip--primary {
  background: var(--cobalt-soft);
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--cobalt-deep);
}

/* ==========================================================================
   8-Article Knowledge & SEO Hub
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.45rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.tag-badge {
  padding: 0.18rem 0.58rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--teal-soft);
  color: #0f766e;
}

.post-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.07rem;
  font-weight: 800;
  line-height: 1.42;
}

.post-card h3 a {
  color: var(--ink);
}

.post-card h3 a:hover {
  color: var(--cobalt);
}

.post-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-body);
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.post-link {
  font-weight: 700;
  color: var(--cobalt);
}

/* ==========================================================================
   User Reviews (Near Bottom)
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.review-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.45rem;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.review-rating {
  font-size: 0.86rem;
  font-weight: 800;
  color: #d97706;
  margin-bottom: 0.65rem;
}

.review-quote {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-body);
}

.review-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.review-user strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
}

.review-user span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.review-tier {
  padding: 0.2rem 0.56rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--cobalt-soft);
  color: var(--cobalt-deep);
  white-space: nowrap;
}

/* ==========================================================================
   Pure-HTML FAQ Accordion (Bottom)
   ========================================================================== */
.faq-stack {
  display: grid;
  gap: 0.85rem;
  max-width: 920px;
  margin-inline: auto;
}

.faq-card {
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-card[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.faq-card summary {
  list-style: none;
  cursor: pointer;
  padding: 1.12rem 1.35rem;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-card summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--cobalt);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-card[open] summary::after {
  content: "−";
  color: var(--teal);
}

.faq-body {
  padding: 0 1.35rem 1.2rem;
  font-size: 0.93rem;
  color: var(--ink-body);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 0.9rem;
}

/* ==========================================================================
   Authoritative External Links & Bottom CTA Banner
   ========================================================================== */
.ext-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.ext-box {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.ext-box h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 800;
}

.ext-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.ext-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.52rem 0.72rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-body);
  font-size: 0.87rem;
  font-weight: 600;
}

.ext-links a:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.ext-links span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.1rem 2.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #1e3a8a 0%, #2563eb 52%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 22px 44px -16px rgba(37, 99, 235, 0.45);
}

.cta-panel h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  color: #ffffff;
}

.cta-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
}

.btn--white {
  background: #ffffff;
  color: var(--cobalt-deep);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.btn--white:hover {
  background: #f8fafc;
  color: var(--ink);
  transform: translateY(-2px);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  margin-top: 2.5rem;
  padding: 3rem 0 2rem;
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid var(--line);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.15fr 1fr;
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.footer-cols h4 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.87rem;
}

.footer-cols ul a {
  color: var(--ink-body);
}

.footer-cols ul a:hover {
  color: var(--cobalt);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Article Detail Pages & Sitemap / Legal Pages
   ========================================================================== */
.article-wrap {
  width: min(100% - 2rem, 920px);
  margin-inline: auto;
  padding-block: 2.4rem 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 1.35rem;
}

.article-paper {
  padding: 2.2rem 2.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.article-header {
  padding-bottom: 1.35rem;
  margin-bottom: 1.55rem;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin: 0.55rem 0 0.85rem;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 900;
  line-height: 1.28;
  color: var(--ink);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.article-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--ink);
  padding-left: 0.75rem;
  border-left: 4px solid var(--cobalt);
}

.article-prose h3 {
  margin: 1.45rem 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}

.article-prose p {
  margin: 0 0 1.05rem;
  color: var(--ink-body);
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
  color: var(--ink-body);
}

.article-prose li + li {
  margin-top: 0.42rem;
}

.article-prose pre {
  margin: 1.1rem 0 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-prose th,
.article-prose td {
  padding: 0.72rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.article-prose th {
  background: var(--surface-tint);
  color: var(--ink);
  font-weight: 800;
}

.inline-cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(13, 148, 136, 0.09));
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.inline-cta-card strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
}

.inline-cta-card span {
  font-size: 0.86rem;
  color: var(--ink-body);
}

.article-nav-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.nav-jump-card {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  border: 1px solid var(--line);
}

.nav-jump-card:hover {
  border-color: var(--cobalt);
  background: #ffffff;
}

.nav-jump-card small {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cobalt);
  margin-bottom: 0.25rem;
}

.nav-jump-card strong {
  display: block;
  font-size: 0.94rem;
  color: var(--ink);
}

.related-box {
  margin-top: 1.5rem;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  border: 1px solid var(--line);
}

.related-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.48rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Rules (Keep Pricing Same Row on Desktop >= 920px)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-bottom,
  .reviews-grid,
  .ext-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .menu-trigger {
    display: flex;
    flex-shrink: 0;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .menu-check:checked ~ .main-nav {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  /* On narrower viewports, keep pricing horizontally aligned with smooth snap scroll */
  .pricing-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(255px, 82%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.75rem;
    max-width: 100%;
  }

  .plan-card {
    scroll-snap-align: start;
  }

  .steps-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-kpi-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-top,
  .bento-bottom,
  .articles-grid,
  .reviews-grid,
  .ext-grid,
  .article-nav-cards,
  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.65rem;
  }

  .article-paper {
    padding: 1.45rem 1.2rem;
  }
}

@media (max-width: 540px) {
  .steps-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .route-step {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .route-badge {
    grid-column: 2;
    justify-self: start;
  }
}
