/* ==========================================================================
   Miku Network — products page (loaded after style.css, which has the shared
   tokens, buttons, navigation, contact cards and footer)
   Header → catalog → how ordering works → help center → contact → footer
   ========================================================================== */

section[id] { scroll-margin-top: 84px; }

.btn--ghost { background: rgba(12, 18, 34, .06); color: var(--ink); }
.btn--ghost:hover { background: rgba(12, 18, 34, .1); }
.btn .i { transition: transform .45s var(--ease); }
.btn:hover .i { transform: translateX(3px); }

/* Chinese: break at punctuation, not inside words */
:lang(zh-CN) .phero__sub, :lang(zh-CN) .gpanel__desc, :lang(zh-CN) .custom__text, :lang(zh-CN) .contact__sub { word-break: keep-all; overflow-wrap: anywhere; }

/* ==========================================================================
   Page header — the homepage's glass ring, smaller and to the side
   ========================================================================== */
.phero { position: relative; padding: 12px; background: var(--paper); }
.phero__frame { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-xl); background: var(--ice); }
.phero__visual {
  position: absolute; top: 56%; right: -6%; z-index: 0; width: 64%; height: 180%; translate: 0 -50%;
  display: grid; place-items: center; perspective: 1600px; pointer-events: none;
}
.phero__visual .hero__ring { scale: .7; }
.phero__content {
  position: relative; z-index: 1;
  width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto;
  padding: clamp(116px, 15vh, 150px) 0 clamp(44px, 6vh, 64px);
}
/* soft ice halo keeps the copy readable over the glass */
.phero__content::before {
  content: ""; position: absolute; left: -12%; top: 8%; bottom: -6%; z-index: -1; width: min(900px, 90%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(238, 243, 252, .92), rgba(238, 243, 252, .6) 55%, rgba(238, 243, 252, 0));
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .06em; color: #5b6784; }
.crumbs a { color: inherit; text-decoration: none; transition: color .3s; }
.crumbs a:hover { color: var(--navy); }
.crumbs span[aria-hidden] { opacity: .5; }
.phero__title { margin: 20px 0 0; font-size: clamp(42px, 6vw, 92px); font-weight: 600; line-height: .98; letter-spacing: -.048em; color: var(--navy); text-wrap: balance; }
:lang(zh-CN) .phero__title { letter-spacing: -.02em; line-height: 1.1; font-weight: 700; }
.phero__sub { max-width: 600px; margin: 22px 0 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.62; color: #46506b; }
.phero__regions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.region {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; color: var(--ink); text-decoration: none;
  background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 12px 30px -18px rgba(20, 40, 120, .35);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.region:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px rgba(18, 138, 250, .3), 0 18px 36px -18px rgba(20, 40, 120, .45); }
.region__code { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: #fff; background: linear-gradient(135deg, #4aa6ff, #0b5fd6); }
.region__text { display: grid; gap: 1px; }
.region__name { font-size: 15px; font-weight: 600; }
.region__meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.region > .i { margin-left: 4px; color: var(--muted-2); transition: transform .4s var(--ease), color .3s; }
.region:hover > .i { color: var(--brand); transform: translateX(3px); }

/* ==========================================================================
   Catalog
   ========================================================================== */
.products { padding: 34px 0 clamp(90px, 12vh, 130px); background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%); }
.catalog__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.catalog__note { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--muted); }
.catalog__note .i { color: var(--brand); }
.sync { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(12, 18, 34, .05); }
.sync__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.sync.is-live { color: var(--ok); background: rgba(22, 163, 74, .1); }
.sync.is-live .sync__dot { background: var(--ok); animation: dot-pulse 2.4s infinite; }

.catalog { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 30px; align-items: start; margin-top: 26px; }
.catalog__side, .catalog__main { min-width: 0; } /* the scrolling tab strip must not widen the page */
.catalog__side { position: sticky; top: 92px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: rgba(12, 18, 34, .06); }
.seg button { border: 0; background: transparent; cursor: pointer; padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s, box-shadow .25s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(10, 20, 50, .14); }
.gtabs { display: grid; gap: 4px; }
.gtab {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 2px;
  width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: transparent; text-align: left; cursor: pointer;
  transition: background-color .25s, box-shadow .25s;
}
.gtab:hover { background: rgba(12, 18, 34, .04); }
.gtab[aria-selected="true"] { background: #fff; box-shadow: inset 0 0 0 1px rgba(18, 138, 250, .28), 0 12px 30px -22px rgba(11, 29, 90, .45); }
.gtab__name { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.gtab__region { grid-row: span 2; align-self: center; padding: 3px 7px; border-radius: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--brand-ink); background: rgba(18, 138, 250, .09); }
.gtab__meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.gpanel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 20px; }
.gpanel__tag { margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.gpanel__title { margin: 6px 0 8px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.gpanel__desc { max-width: 600px; margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.gpanel__store { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--brand-ink); text-decoration: none; background: rgba(18, 138, 250, .08); white-space: nowrap; transition: background-color .25s; }
.gpanel__store:hover { background: rgba(18, 138, 250, .15); }

.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 22px 20px 18px; border-radius: var(--radius-lg); background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(12, 18, 34, .07), 0 18px 40px -32px rgba(11, 29, 90, .4);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(18, 138, 250, .4), 0 28px 50px -30px rgba(11, 29, 90, .5); }
.plan__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan__name { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.plan__badge { flex: none; padding: 4px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: var(--ok); background: rgba(22, 163, 74, .1); white-space: nowrap; }
.plan__badge--low { color: var(--warn); background: rgba(217, 119, 6, .12); }
.plan__badge--out { color: var(--muted); background: rgba(12, 18, 34, .07); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; margin: 16px 0 0; }
.plan__amount { font-size: 29px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan__amount--quote { font-size: 24px; }
.plan__cycle { font-size: 13.5px; color: var(--muted); }
.plan__setup { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.plan__specs { display: grid; gap: 7px; margin: 16px 0 18px; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.plan__specs li { display: flex; gap: 9px; overflow-wrap: anywhere; }
.plan__specs li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: .55em; border-radius: 50%; background: var(--brand-2); }
.plan__cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 11px 14px; border-radius: 12px; background: #0d1017; color: #fff; font-size: 14px; font-weight: 600; transition: background-color .3s; }
.plan:hover .plan__cta { background: var(--brand-ink); }
.plan__cta .i { transition: transform .35s var(--ease); }
.plan:hover .plan__cta .i { transform: translateX(3px); }
.plan.is-soldout { background: #fbfcfe; }
.plan.is-soldout .plan__amount { color: var(--muted); }
.plan.is-soldout .plan__cta { background: rgba(12, 18, 34, .07); color: var(--ink-2); }
.plan.is-soldout:hover .plan__cta { background: rgba(12, 18, 34, .12); }

.custom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: 40px; padding: 26px 30px; border-radius: 24px;
  background: linear-gradient(120deg, #eaf3ff 0%, #f4f8ff 60%, #eef2ff 100%); box-shadow: inset 0 0 0 1px rgba(18, 138, 250, .15);
}
.custom__title { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.custom__text { max-width: 560px; margin: 6px 0 0; color: var(--muted); }
.custom__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   How ordering works
   ========================================================================== */
.steps { padding: clamp(80px, 11vh, 120px) 0; background: var(--mist); }
.steps__title { margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
:lang(zh-CN) .steps__title { letter-spacing: 0; }
.steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin: 40px 0 0; padding: 0; list-style: none; }
.step { position: relative; padding-top: 26px; }
.step::before, .step::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; }
.step::before { right: 0; background: rgba(12, 18, 34, .12); }
.step::after { width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-3)); transition: width .9s var(--ease); }
.step:hover::after { width: 100%; }
.step__num { margin: 0; font-size: 12px; letter-spacing: .12em; color: var(--brand-ink); }
.step h3 { margin: 16px 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.step p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.step__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--brand-ink); text-decoration: none; }
.step__link .i { transition: transform .35s var(--ease); }
.step__link:hover .i { transform: translateX(3px); }

/* ==========================================================================
   Help center
   ========================================================================== */
.help { padding: clamp(80px, 11vh, 120px) 0; background: var(--paper); }
.section-head { max-width: 780px; }
.help__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.help__label { margin: 0 0 12px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px; border-radius: 18px;
  background: var(--mist); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(12, 18, 34, .04);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
}
.tile:hover { transform: translateY(-2px); background: #fff; box-shadow: inset 0 0 0 1px rgba(18, 138, 250, .3), 0 18px 40px -28px rgba(11, 29, 90, .45); }
.tile__icon { width: 44px; height: 44px; padding: 11px; border-radius: 13px; color: var(--brand); background: linear-gradient(180deg, #e6f1ff, #d6e8ff); box-shadow: inset 0 0 0 1px rgba(18, 138, 250, .15); }
.tile__text { display: grid; gap: 2px; min-width: 0; }
.tile__t { font-size: 15.5px; font-weight: 600; }
.tile__d { font-size: 13px; color: var(--muted); }
.tile__go { margin-left: auto; color: var(--muted-2); transition: transform .35s var(--ease), color .3s; }
.tile:hover .tile__go { color: var(--brand); transform: translateX(3px); }
.guides { margin-top: 34px; }
.guides__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.guides__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, color .3s; }
.guides__list a:hover { color: var(--brand-ink); box-shadow: inset 0 0 0 1px rgba(18, 138, 250, .35); }

/* ==========================================================================
   Contact (a smaller version of the homepage section)
   ========================================================================== */
.contact--compact { padding: clamp(80px, 11vh, 120px) 0 clamp(96px, 13vh, 140px); background: var(--mist); }
.contact--compact .contact__title { font-size: clamp(34px, 4.4vw, 64px); }
.contact--compact .contact__sub { max-width: 560px; font-size: 17px; line-height: 1.6; }
.contact--compact .contact__cards { margin-top: 44px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .catalog { grid-template-columns: 250px minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .phero__visual { top: 30%; right: -38%; width: 110%; opacity: .55; }
  .phero__content { padding-top: 112px; }
  .phero__content::before { left: -30%; width: 130%; }

  .catalog { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .catalog__side { position: static; }
  .gtabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .gtabs::-webkit-scrollbar { display: none; }
  .gtab { flex: none; width: auto; min-width: 180px; scroll-snap-align: start; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

  .steps__list { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .help__groups { grid-template-columns: minmax(0, 1fr); }
  .guides__list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .phero__visual { display: none; }
  .phero__regions { flex-direction: column; align-items: stretch; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .custom { padding: 22px; }
}
