/* XUSOI Layer 03 — Website design (separate from Layer2 morph) */

.xusoi-layer3 {
  --xsd-fg: #0a0a0a;
  --xsd-muted: #6b6b6b;
  --xsd-line: rgba(0, 0, 0, 0.06);
  --xsd-bg: #ffffff;
  --xsd-soft: #f4f4f4;
  --xsd-font: "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", "PingFang TC",
    "Microsoft JhengHei", sans-serif;
  --xsd-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--xsd-fg);
  background:
    radial-gradient(120% 80% at 50% -10%, #f0f0f0 0%, transparent 55%),
    var(--xsd-bg);
  font-family: var(--xsd-font);
}

.xsd {
  position: relative;
  z-index: 1;
  padding:
    calc(var(--nav-island-top, 0.9rem) + var(--nav-h, 3.85rem) + 2.5rem)
    0
    clamp(3.5rem, 8vw, 6rem);
}

.xsd__inner {
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

/* Top band: brand + headline + giant price in one stacked composition */
.xsd-mast {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.85rem;
  max-width: 42rem;
  margin: 0 auto;
}

.xsd-mast__brand {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xsd-muted);
}

.xsd-mast__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  line-height: 0.9;
}

.xsd-mast__num {
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  font-weight: 650;
  letter-spacing: -0.06em;
}

.xsd-mast__unit {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 500;
  transform: translateY(-0.35em);
}

.xsd-mast__note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--xsd-muted);
}

.xsd-mast__title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.xsd-mast__lead {
  margin: 0;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--xsd-muted);
}

/* Full-bleed-feeling browser stage under the mast */
.xsd-stage {
  position: relative;
  width: 100%;
}

.xsd-browser {
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid var(--xsd-line);
  overflow: hidden;
  min-height: min(58svh, 28rem);
  display: flex;
  flex-direction: column;
}

.xsd-browser__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--xsd-line);
  background: #fafafa;
}

.xsd-browser__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #d2d2d2;
}

.xsd-browser__url {
  margin-left: 0.4rem;
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  color: var(--xsd-muted);
  background: #efefef;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xsd-browser__screen {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f7f7f7 0%, #ffffff 42%, #f3f3f3 100%);
}

.xsd-web {
  position: absolute;
  inset: 0;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(1rem, 3vw, 1.6rem);
  min-height: 0;
}

.xsd-web__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.xsd-web__brand {
  font-size: 0.9rem;
  font-weight: 600;
}

.xsd-web__links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.xsd-web__link {
  font-size: 0.72rem;
  color: var(--xsd-muted);
}

.xsd-web__hero {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.55rem;
  max-width: 28rem;
}

.xsd-web__title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.xsd-web__tag {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--xsd-muted);
}

.xsd-web__cta {
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.62rem 1.05rem;
}

.xsd-web__rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.xsd-web__cell {
  padding: 0.75rem 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--xsd-line);
  opacity: 0.5;
}

.xsd-web__cell.is-active {
  opacity: 1;
  background: #fff;
}

.xsd-web__cell-k {
  font-size: 0.66rem;
  color: var(--xsd-muted);
  margin-bottom: 0.2rem;
}

.xsd-web__cell-v {
  font-size: 0.84rem;
  font-weight: 500;
}

/* Bottom proof row — not a card grid of features beside a preview */
.xsd-proof {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.25rem;
  text-align: center;
}

.xsd-proof li {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--xsd-muted);
}

.xsd-proof li::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: #bdbdbd;
  transform: translateY(-0.08em);
}

@media (max-width: 720px) {
  .xsd-web__rail {
    grid-template-columns: 1fr;
  }

  .xsd-browser {
    min-height: min(70svh, 32rem);
  }

  /* Keep full website mock readable — scroll inside the screen, never clip halves */
  .xsd-browser__screen {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .xsd-web {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 100%;
  }

  .xsd-proof {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xsd-web__cell {
    opacity: 1;
  }
}
