/* Leo SEO — 21st century blue system
   Prompt: deep navy canvas, electric signal blue, cyan secondary,
   bento metrics, glass panels, soft mesh light — modern HK B2B agency
*/

:root {
  --glow-teal: rgba(47, 155, 255, 0.18);
  --glow-amber: rgba(0, 212, 200, 0.12);
  --surface-glass: rgba(255, 255, 255, 0.78);
  --hairline: rgba(11, 28, 51, 0.1);
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(88, 166, 214, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 20%, rgba(222, 121, 65, 0.1), transparent 50%),
    #fff8e7;
}

body::before {
  display: none;
}

.site-header--float {
  background: transparent;
}

.site-header__pill {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(47, 155, 255, 0.14);
}

.site-header--float.is-scrolled .site-header__pill {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(47, 155, 255, 0.22);
}

.site-logo__text span,
.logo-accent {
  color: var(--signal);
}

.site-logo__mark {
  display: none;
}

.section-eyebrow {
  color: var(--signal);
}

.section-eyebrow::before {
  background: linear-gradient(90deg, var(--signal), var(--signal-2));
}

.section--problem,
.section--cases,
.section--insights,
.section--clients {
  background: #eef3f9;
}

/* ========== Hero — Stage card (Mars-style layout, Leo brand) ========== */
.hero--stage {
  position: relative;
  display: block;
  align-items: stretch;
  min-height: auto;
  padding: 6.5rem 0 2.5rem;
  overflow: hidden;
  background: #f5f7fb;
  color: var(--ink);
  isolation: isolate;
}

.hero__rings {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 35%, transparent 18%, rgba(11, 28, 51, 0.035) 18.5%, transparent 19%),
    radial-gradient(circle at 50% 35%, transparent 32%, rgba(11, 28, 51, 0.03) 32.5%, transparent 33%),
    radial-gradient(circle at 50% 35%, transparent 46%, rgba(11, 28, 51, 0.025) 46.5%, transparent 47%),
    radial-gradient(circle at 50% 35%, transparent 60%, rgba(11, 28, 51, 0.02) 60.5%, transparent 61%);
}

.hero__stage-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

.hero__frame {
  position: relative;
  border-radius: 2.25rem;
  overflow: hidden;
  min-height: clamp(420px, 62vh, 640px);
  background: #0b1c33;
  box-shadow:
    0 40px 90px rgba(11, 28, 51, 0.22),
    0 0 0 1px rgba(11, 28, 51, 0.08);
}

.hero__frame-bg {
  position: absolute;
  inset: 0;
}

.hero__frame-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.04);
}

.hero__frame-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 17, 31, 0.82) 0%, rgba(7, 17, 31, 0.45) 42%, rgba(7, 17, 31, 0.15) 68%, rgba(7, 17, 31, 0.35) 100%),
    linear-gradient(180deg, transparent 55%, rgba(7, 17, 31, 0.55) 100%);
  pointer-events: none;
}

.hero__frame-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: clamp(420px, 62vh, 640px);
  padding: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 4.5rem;
}

.hero__frame-copy {
  align-self: center;
  max-width: 18ch;
  padding-bottom: 1rem;
}

.hero__kicker {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 242, 255, 0.78);
}

.hero__kicker span {
  color: #5eb4ff;
}

.hero--stage h1 {
  margin: 0;
  max-width: none;
  color: #fff;
  font-family: var(--font-ui);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero__floaters {
  position: absolute;
  inset: 12% 38% auto 8%;
  pointer-events: none;
  z-index: 3;
}

.hero__glass {
  position: absolute;
  width: min(220px, 42%);
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(12, 22, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.hero__glass--serp {
  top: 0;
  left: 0;
  animation: heroFloat 7s ease-in-out infinite;
}

.hero__glass--ai {
  top: -1.5rem;
  right: -8%;
  left: auto;
  width: min(200px, 40%);
  animation: heroFloat 8.5s ease-in-out infinite 0.6s;
}

.hero__glass-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.hero__glass-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9bff;
  box-shadow: 0 0 10px rgba(47, 155, 255, 0.8);
}

.hero__glass-bar em {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(232, 242, 255, 0.75);
}

.hero__glass small {
  display: block;
  font-size: 0.68rem;
  color: rgba(232, 242, 255, 0.55);
}

.hero__glass strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__glass-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eb4ff;
}

.hero__glass--ai p {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(232, 242, 255, 0.88);
}

.hero__glass-pulse {
  width: 100%;
  height: 22px;
  color: #2f9bff;
  filter: drop-shadow(0 0 6px rgba(47, 155, 255, 0.55));
}

.hero__leo {
  position: relative;
  z-index: 4;
  margin: 0;
  align-self: end;
  justify-self: end;
  width: min(100%, 420px);
  margin-right: -1.5rem;
  margin-bottom: -2.5rem;
}

.hero__leo img {
  width: 100%;
  height: auto;
  max-height: min(68vh, 580px);
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.45));
  mask-image: linear-gradient(180deg, #000 62%, transparent 98%);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 98%);
}

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 88px;
  z-index: 5;
  pointer-events: none;
}

.hero__wave-fill {
  fill: #f5f7fb;
}

.hero__wave-accent {
  fill: none;
  stroke: #2f9bff;
  stroke-width: 10;
  opacity: 0.9;
}

.hero__below {
  padding: 1.75rem 0.25rem 0.5rem;
  max-width: 46rem;
}

.hero__quote {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero__quote strong {
  color: var(--teal-950);
  font-weight: 800;
}

.hero--stage .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn--dark {
  background: #0b1c33;
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-ui);
  font-weight: 700;
}

.btn--dark:hover {
  background: #123056;
  color: #fff !important;
}

.btn--signal {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #2f9bff;
  color: #061018 !important;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem 0.85rem 1.35rem;
  font-family: var(--font-ui);
  font-weight: 800;
}

.btn--signal:hover {
  background: #1a7de0;
  color: #fff !important;
}

.btn__play {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #fff;
  position: relative;
}

.btn__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #2f9bff;
}

.hero__proof--inline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 40rem;
}

.hero__proof--inline li {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(11, 28, 51, 0.08);
  box-shadow: 0 10px 28px rgba(11, 28, 51, 0.04);
}

.hero__proof--inline strong {
  display: block;
  font-size: 0.9rem;
  color: var(--teal-950);
  margin-bottom: 0.15rem;
}

.hero__proof--inline span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 980px) {
  .hero--stage {
    padding-top: 5.5rem;
  }

  .hero__frame {
    border-radius: 1.5rem;
    min-height: 480px;
  }

  .hero__frame-grid {
    grid-template-columns: 1fr;
    min-height: 480px;
    padding-bottom: 5rem;
  }

  .hero__frame-copy {
    max-width: none;
    align-self: start;
    z-index: 5;
  }

  .hero__floaters {
    display: none;
  }

  .hero__leo {
    width: min(78%, 340px);
    margin: 0 auto -2rem;
    justify-self: center;
  }

  .hero__proof--inline {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__glass {
    animation: none;
  }
}

/* ========== Metrics board (21C bento) ========== */
.metrics {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
  margin-top: -1rem;
}

.metrics__head {
  margin-bottom: 1.75rem;
}

.metrics__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
}

.metrics__board {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 1rem;
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 1.5rem 1.35rem 1.4rem;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(238, 245, 252, 0.9));
  border: 1px solid rgba(47, 155, 255, 0.14);
  box-shadow:
    0 18px 40px rgba(11, 28, 51, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.metric::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 155, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.metric:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 155, 255, 0.35);
  box-shadow: 0 24px 50px rgba(11, 28, 51, 0.12);
}

.metric--primary {
  background:
    linear-gradient(145deg, #0b1c33 0%, #123056 55%, #0f2a4a 100%);
  border-color: transparent;
  color: #e8f2ff;
  box-shadow: 0 24px 60px rgba(11, 28, 51, 0.28);
}

.metric--primary::before {
  background: radial-gradient(circle, rgba(47, 155, 255, 0.35), transparent 70%);
  inset: -10% auto auto 40%;
  width: 220px;
  height: 220px;
}

.metric--primary .metric__index,
.metric--primary .metric__desc,
.metric--primary .metric__label {
  color: rgba(232, 242, 255, 0.72);
}

.metric--primary .metric__value {
  color: #fff;
  background: linear-gradient(120deg, #fff 30%, #5eb4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric--cta {
  background:
    linear-gradient(145deg, rgba(47, 155, 255, 0.12), rgba(0, 212, 200, 0.08)),
    #fff;
  border-color: rgba(47, 155, 255, 0.28);
}

.metric__index {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--signal);
}

.metric__value {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--teal-900);
}

.metric__value--text {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
}

.metric__value--text span {
  margin-left: 0.2rem;
  font-size: 0.55em;
  font-weight: 700;
  color: var(--signal);
  letter-spacing: 0;
}

.metric__label {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--teal-900);
}

.metric__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.metric__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.15rem;
}

.metric__tags span {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #dceaf8;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.metric__link {
  display: inline-flex;
  margin-top: 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--signal);
  text-decoration: none;
}

.metric__link:hover {
  color: var(--amber-dark);
}

.layer:hover,
.service:hover,
.case:hover {
  border-top-color: var(--signal);
}

.package--featured {
  border-color: var(--signal);
}

.package__badge {
  background: var(--signal);
  color: #fff;
}

.package__price span {
  background: none;
  color: var(--teal-950);
}

.process-list__num {
  background: none;
  color: var(--signal);
}

.section--packages {
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(47, 155, 255, 0.1), transparent 55%),
    var(--bg);
}

.section--cta {
  background:
    radial-gradient(ellipse 50% 40% at 20% 0%, rgba(47, 155, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 80%, rgba(0, 212, 200, 0.12), transparent 50%),
    var(--teal-900);
}

.btn--primary {
  box-shadow: 0 12px 30px rgba(47, 155, 255, 0.35);
}

/* Cases */
.case--story {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow);
}

.case--story:hover {
  transform: translateY(-4px);
}

.case__block strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--teal-900);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.case__block p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.case__block--result {
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(47, 155, 255, 0.4);
}

.case__block--result strong {
  color: var(--signal);
}

/* Testimonials */
.section--testimonials {
  background: #fff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial {
  background: linear-gradient(180deg, #f5f9ff, #eef4fb);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  border-left: 4px solid var(--signal);
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.testimonial figcaption {
  font-weight: 700;
  color: var(--teal-900);
}

.testimonial figcaption span {
  display: block;
  margin-top: 0.2rem;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* Clients / 品牌夥伴 */
.section--clients {
  text-align: left;
  background: #f3f6fa;
}

.partners-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.partners-head__copy h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}

.partners-head__copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
}

.partners-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 1.25rem;
  box-shadow: 0 16px 40px rgba(11, 28, 51, 0.06);
  overflow: hidden;
}

.partners-stats__item {
  padding: 1.15rem 1.25rem;
}

.partners-stats__item + .partners-stats__item {
  border-left: 1px solid var(--hairline);
}

.partners-stats__item strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--teal-950);
  margin-bottom: 0.25rem;
}

.partners-stats__item span {
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.partners-stats--page {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2.5rem;
}

.partners-groups {
  display: grid;
  gap: 2rem;
}

.partners-group__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--signal);
  letter-spacing: -0.01em;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(47, 155, 255, 0.35);
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.partners-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--teal-950);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.partners-logo:hover,
.partners-logo.is-link:hover {
  border-color: rgba(47, 155, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(11, 28, 51, 0.08);
  color: var(--teal-950);
  text-decoration: none;
}

.partners-logo__text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.partners-logo__text em {
  font-style: normal;
  color: var(--signal);
}

.partners-logo--nmg .partners-logo__text {
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.25;
}

.partners-logo--nmg .partners-logo__text em {
  display: block;
}

.partners-logo--img img {
  width: auto;
  height: 36px;
  max-width: 150px;
  object-fit: contain;
}

.partners-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.section--partners-hero h1 {
  margin-bottom: 0.75rem;
}

.client-wall {
  display: none;
}

@media (max-width: 980px) {
  .partners-head,
  .partners-stats,
  .partners-stats--page {
    grid-template-columns: 1fr;
  }

  .partners-stats__item + .partners-stats__item {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .testimonial-grid,
  .client-wall {
    grid-template-columns: 1fr;
  }
}

.site-footer--stacked {
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(47, 155, 255, 0.22), transparent 58%),
    radial-gradient(ellipse 40% 30% at 90% 100%, rgba(0, 212, 200, 0.1), transparent 50%),
    var(--teal-950);
  position: relative;
  overflow: hidden;
}

.site-footer--stacked::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 155, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 155, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.site-footer__stack {
  position: relative;
  z-index: 1;
}

.site-footer__badge {
  animation: footer-badge-pulse 4.5s ease-in-out infinite;
}

@keyframes footer-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(47, 155, 255, 0.04); }
  50% { box-shadow: 0 0 0 12px rgba(47, 155, 255, 0.08), 0 0 28px rgba(47, 155, 255, 0.18); }
}

.primary-nav a:not(.nav-cta)::after {
  display: none;
}

.breadcrumbs a {
  color: var(--teal-800);
}

@media (max-width: 1100px) {
  .metrics__board {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .testimonial-grid,
  .client-wall {
    grid-template-columns: 1fr;
  }

  .metrics__board {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 0;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .client-wall,
  .testimonial-grid,
  .metrics__board {
    grid-template-columns: 1fr 1fr;
  }
}
