/* Network landing (views/pub/landing_web.php, theme.landing 'web'), loaded after landing.css.
   Hero: copy + start card left, a network of round profile nodes linked to "you" right (desktop) / below (phone).
   Uses --accent / --brand-from / --brand-to and --spark (highlight, brand theme). */

/* ---- hero ---- */
.whero { position: relative; overflow: hidden; isolation: isolate; padding: var(--s-6) 0 var(--s-8);
  background:
    radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--brand-from) 18%, transparent), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--spark, #ff8a3d) 10%, transparent), transparent 70%); }
.whero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 22%, transparent) 1.2px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 85%); mask-image: linear-gradient(180deg, #000 0, transparent 85%); }
.whero__in { display: grid; gap: var(--s-7); max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 992px) {
  .whero { padding: var(--s-8) 0 var(--s-9); }
  .whero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: var(--s-9); }
}
.whero__live { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--s-3); padding: 6px 14px 6px 10px; border-radius: var(--r-pill);
  background: var(--card); box-shadow: var(--sh-1); font-weight: 800; font-size: var(--fs-sm); color: var(--text-2); }
.whero__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 color-mix(in srgb, var(--online) 50%, transparent); animation: w-pulse 2s infinite; }
@keyframes w-pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.whero__title { font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1.04; max-width: 14ch; margin-bottom: var(--s-3);
  background: linear-gradient(100deg, var(--ink) 40%, var(--accent-ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.whero__lead { max-width: 44ch; margin-bottom: var(--s-5); }

.wstart { padding: var(--s-5); }
.wstart__row { display: grid; gap: var(--s-3); }
@media (min-width: 560px) { .wstart__row { grid-template-columns: 1fr 1fr; } }
.wstart__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.wstart__set .option { min-height: 48px; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.wstart__band { display: flex; align-items: center; gap: 8px; margin: var(--s-4) 0; padding: 10px 14px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--spark, #ff8a3d) 12%, var(--card)); font-weight: 700; font-size: var(--fs-sm); }
.wstart__band .ic { color: var(--spark-ink, #c2410c); }
.wstart__login { margin-top: var(--s-3); }
.wtrust { margin-top: var(--s-4); }

/* ---- the network ---- */
.wnet { position: relative; margin: 0; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.wnet__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wnet__lines line { stroke: var(--accent); stroke-width: 2px; stroke-linecap: round; stroke-dasharray: 6 6; opacity: .55; vector-effect: non-scaling-stroke;
  animation: w-flow 1.6s linear infinite; animation-delay: var(--d, 0ms); }
.wnet__lines line.is-ring { stroke: var(--line-strong); stroke-dasharray: none; opacity: .7; animation: none; }
@keyframes w-flow { to { stroke-dashoffset: -24; } }
.wnode { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  animation: w-pop .6s var(--ease) both; animation-delay: var(--d, 0ms); }
.wnode img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: blur(2px); border: 3px solid var(--card); box-shadow: var(--sh-2); background: var(--surface-2); }
.wnode.is-big { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.wnode.is-big img { border-color: var(--accent); }
.wnode .dot { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--online); border: 2px solid var(--card); }
.wnode__name { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; padding: 2px 9px; border-radius: var(--r-pill);
  background: var(--card); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: var(--sh-1); }
@keyframes w-pop { from { opacity: 0; transform: scale(.6); } }
.wnet__me { position: absolute; left: 50%; top: 52%; width: 92px; height: 92px; margin: -46px 0 0 -46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--card); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 0 22px color-mix(in srgb, var(--accent) 6%, transparent), var(--sh-3); }
.wnet__me img { width: 64px; height: 64px; }
.wnet__me span { position: absolute; top: calc(100% + 8px); padding: 2px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; }
.wchip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-pill); background: var(--card);
  box-shadow: var(--sh-2); font-size: 13px; font-weight: 800; white-space: nowrap; animation: w-float 5s ease-in-out infinite; }
.wchip--msg { left: 60%; top: 41%; color: var(--accent-ink); }
.wchip--like { left: 6%; top: 66%; color: var(--spark-ink, #c2410c); animation-delay: -2.5s; }
@keyframes w-float { 50% { transform: translateY(-8px); } }
.wnet { margin-bottom: 40px; }
.wnet figcaption { position: absolute; left: 0; right: 0; bottom: -44px; }
@media (max-width: 599px) {
  .wnode { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .wnode.is-big { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .wnode__name { display: none; }
  .wnet__me { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .wnet__me img { width: 50px; height: 50px; }
}

/* ---- online strip (story style) ---- */
.wstories { display: flex; gap: var(--s-4); margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) var(--s-2); list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wstories::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .wstories { margin: 0; padding: 4px 0 var(--s-2); } }
.wstories li { scroll-snap-align: start; }
.wstory { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; color: var(--ink); text-decoration: none !important; text-align: center; }
.wstory__ring { width: 96px; height: 96px; padding: 3px; border-radius: 50%; background: var(--line-strong); }
.wstory.is-online .wstory__ring { background: conic-gradient(from 200deg, var(--brand-from), var(--brand-to), var(--spark, #ff8a3d), var(--brand-from)); }
.wstory__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: blur(3px); border: 3px solid var(--bg); background: var(--surface-2); }
.wstory__name { font-weight: 800; font-size: var(--fs-sm); }
.wstory__town { color: var(--muted); font-size: var(--fs-xs); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- steps ---- */
.wsteps { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .wsteps { grid-template-columns: repeat(3, 1fr); } }
.wstep { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.wstep__num { position: absolute; right: 14px; top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 3.6rem; line-height: 1;
  color: color-mix(in srgb, var(--accent) 12%, transparent); }
.wstep__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-3); border-radius: var(--r-md); background: var(--accent); color: var(--on-accent); }
.wstep .h3 { margin-bottom: 4px; }

/* ---- bento ---- */
.wbento { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
@media (min-width: 700px) { .wbento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
  .wbento { grid-template-columns: repeat(3, 1fr); }
  .wtile--chat { grid-column: span 2; }
  .wtile--app { grid-column: span 2; }
}
.wtile { position: relative; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); overflow: hidden; }
.wtile .h3 { color: var(--ink); margin: var(--s-3) 0 4px; }
.wtile__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.wtile--chat { background: var(--accent-grad, var(--accent)); color: rgba(255, 255, 255, .88); border-color: transparent; }
.wtile--chat .h3 { color: #fff; }
.wtile--chat .wtile__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.wtile__gifts { display: flex; gap: 6px; margin-top: var(--s-3); }

@media (prefers-reduced-motion: reduce) {
  .wnet__lines line, .wnode, .wchip, .whero__pulse { animation: none; }
}
