/* KaziHub welcome page. Loaded only here, so the app's own stylesheet stays lean.
   Every animation is opt-out via prefers-reduced-motion at the foot of the file. */

.wl { --ink: #0b1b2b; --wash: #f6f9fc; }
.wl a { text-decoration: none; }

/* ---------- shared shell ---------- */
.wl-wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.1rem; }
/* padding-block, not a shorthand: every section also carries .wl-wrap, whose
   side padding is the page's gutter. `padding: 3.5rem 0` overrode it, and on a
   phone -- where the 1080px max-width leaves no margin of its own -- that put
   the text hard against both edges of the screen. */
.wl-section { padding-block: 3.5rem; }
.wl-eyebrow {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--brand); margin-bottom: .5rem;
}
.wl-section h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); margin-bottom: .4rem; }
.wl-lead { color: var(--muted); max-width: 56ch; margin-bottom: 1.6rem; }

/* ---------- top bar ---------- */
.wl-nav {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center;
  gap: .9rem; padding: .7rem 1.1rem; background: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.wl-nav.is-stuck { border-bottom-color: var(--border); }

/* The bar rides over the hero photograph rather than sitting above it: the script
   pulls the hero up by exactly the bar's height and switches the bar's own
   colours to light-on-dark. It is applied from JavaScript, so a browser without
   it keeps the plain white bar with the photograph starting underneath -- which
   is correct, just less striking. */
.wl.is-overlay .wl-hero {
  margin-top: calc(-1 * var(--wl-navh, 3.4rem));
  padding-top: calc(3.5rem + var(--wl-navh, 3.4rem));
  min-height: calc(540px + var(--wl-navh, 3.4rem));
}
@media (min-width: 900px) {
  .wl.is-overlay .wl-hero {
    padding-top: calc(4rem + var(--wl-navh, 3.4rem));
    min-height: calc(620px + var(--wl-navh, 3.4rem));
  }
}
.wl.is-overlay .wl-nav:not(.is-stuck) {
  background: transparent; border-bottom-color: transparent;
}
/* Over the photograph the navy wordmark would disappear, so it is flattened to
   white until the bar turns solid. */
.wl.is-overlay .wl-nav:not(.is-stuck) .wl-brand img {
  filter: brightness(0) invert(1);
}
.wl.is-overlay .wl-nav:not(.is-stuck) .wl-btn-ghost {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); color: #fff;
  backdrop-filter: blur(4px);
}
.wl.is-overlay .wl-nav:not(.is-stuck) .wl-btn-ghost:hover {
  background: rgba(255,255,255,.26); border-color: #fff; color: #fff;
}
.wl.is-overlay .wl-nav:not(.is-stuck) .langswitch {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.wl.is-overlay .wl-nav:not(.is-stuck) .langswitch-opt { color: rgba(255,255,255,.82); }
.wl.is-overlay .wl-nav:not(.is-stuck) .langswitch-opt:hover {
  background: rgba(255,255,255,.16); color: #fff;
}
.wl.is-overlay .wl-nav:not(.is-stuck) .langswitch-opt.is-active {
  background: #fff; color: var(--ink);
}
.wl-brand { display: flex; align-items: center; }
.wl-brand img { height: 36px; width: auto; display: block; transition: filter .3s ease; }
.wl-nav .spacer { margin-left: auto; }
.wl-nav .wl-btn {
  padding: .62rem .9rem; font-size: .8rem; min-height: 2.15rem;
}

/* ---------- hero ---------- */
/* The photographs run behind the words rather than beside them. Everything in
   here is therefore laid over a dark scrim and written in white. */
.wl-hero {
  position: relative; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 3.5rem 0 4.5rem; min-height: 540px;
}
@media (min-width: 900px) { .wl-hero { min-height: 620px; padding: 4rem 0 5rem; } }

.wl-hero-bg { position: absolute; inset: 0; z-index: 0; background: #0b1b2b; }
.wl-hslide {
  position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
.wl-hslide.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s ease; }
.wl-hslide > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; transform: scale(1.04);
}
/* A slow push in while a photograph is up, so a still image still breathes. */
.wl-hslide.is-on > img { animation: wl-ken 7.5s ease-out both; }
@keyframes wl-ken { from { transform: scale(1.04) } to { transform: scale(1.14) } }

/* Dark on the side the words sit, clearing towards the photograph. The first
   gradient darkens the top strip on its own, so the transparent top bar reads
   even when a slide puts bright sky behind it. */
.wl-hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(6,16,26,.60), rgba(6,16,26,0) 24%),
    linear-gradient(to top, rgba(6,16,26,.92) 0%, rgba(6,16,26,.72) 40%,
                    rgba(6,16,26,.55) 100%);
}
@media (min-width: 900px) {
  .wl-hero-scrim {
    background:
      linear-gradient(to bottom, rgba(6,16,26,.58), rgba(6,16,26,0) 22%),
      linear-gradient(100deg, rgba(6,16,26,.95) 0%, rgba(6,16,26,.88) 38%,
                      rgba(6,16,26,.55) 66%, rgba(6,16,26,.36) 100%),
      linear-gradient(to top, rgba(6,16,26,.45), rgba(6,16,26,0) 55%);
  }
}

/* One column. The right half used to hold two floating cards; with those gone
   the text keeps its own measure rather than stretching across the photograph.
   The limit goes on the text, not on this element -- it is also .wl-wrap, which
   is centred, so capping it here would centre the whole hero. */
/* width:100% matters: .wl-hero is a column flex container, and .wl-wrap's
   `margin: 0 auto` is a cross-axis auto margin, which shrinks a flex item to its
   content and centres it. Without this the whole hero drifts to the middle. */
.wl-hero-grid { position: relative; z-index: 1; width: 100%; }
.wl-hero-grid > div { max-width: 44rem; }
.wl-hero h1 {
  font-size: clamp(2rem, 6vw, 3.15rem); line-height: 1.08; letter-spacing: -.02em;
  margin-bottom: .9rem; color: #fff; text-shadow: 0 2px 18px rgba(6,16,26,.45);
}
.wl-hero h1 .accent {
  background: linear-gradient(100deg, #8ed8ff, #5fe0c4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wl-hero p.big {
  font-size: 1.05rem; color: rgba(255,255,255,.88); max-width: 48ch; margin-bottom: 1.5rem;
  text-shadow: 0 1px 12px rgba(6,16,26,.5);
}
.wl-hero .wl-btn-ghost {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); color: #fff;
  backdrop-filter: blur(4px);
}
.wl-hero .wl-btn-ghost:hover { background: rgba(255,255,255,.26); border-color: #fff; color: #fff; }
.wl-hero .wl-note { color: rgba(255,255,255,.72); }

/* Label for the photograph currently up, beside its dots. */
.wl-hero-ctrl {
  position: absolute; z-index: 2; right: 1.1rem; bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.wl-hero-tag {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,.8);
}
@media (max-width: 620px) { .wl-hero-tag { display: none; } }

.wl-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.1rem; }
.wl-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .72rem 1.12rem;
  border-radius: 999px; font-weight: 650; font-size: .9rem; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wl-btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(16,80,138,.28); }
.wl-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16,80,138,.34); }
.wl-btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.wl-btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.wl-note { font-size: .82rem; color: var(--faint); }

/* Trades: named with an icon rather than photographed. The hero already runs all
   four photographs; repeating them here at a quarter of the width only cropped
   them. */
.wl-trades { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .wl-trades { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .wl-trades { grid-template-columns: repeat(4, 1fr); } }
.wl-trade {
  display: grid; gap: .3rem; align-content: start; padding: 1.1rem 1rem 1.2rem;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.wl-trade:hover {
  transform: translateY(-4px); border-color: var(--brand);
  box-shadow: 0 14px 32px rgba(11,27,43,.12);
}
.wl-trade .icon { width: 1.75rem; height: 1.75rem; color: var(--brand); margin-bottom: .35rem; }
.wl-trade strong { font-size: .95rem; }
.wl-trade span { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* Slide dots, used by the hero slideshow. */
.wl-dots { display: flex; gap: .15rem; }
.wl-dot {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.wl-dot::before {
  content: ""; width: 9px; height: 9px; border-radius: 999px;
  background: rgba(255,255,255,.5); transition: width .25s ease, background .25s ease;
}
.wl-dot.is-on::before { width: 24px; background: #fff; }
.wl-dot:hover::before { background: rgba(255,255,255,.85); }

/* ---------- scroll reveal ---------- */
.wl-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.wl-reveal.is-in { opacity: 1; transform: none; }

/* ---------- feature grid ---------- */
.wl-features { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .wl-features { grid-template-columns: 1fr 1fr; } }
.wl-feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.15rem; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.wl-feature:hover { transform: translateY(-4px); border-color: var(--brand);
                    box-shadow: 0 12px 30px rgba(11,27,43,.10); }
.wl-feature .icon { width: 1.7rem; height: 1.7rem; color: var(--brand); margin-bottom: .55rem; }
.wl-feature h3 { margin-bottom: .3rem; }
.wl-feature p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- closing call to action ---------- */
.wl-final {
  text-align: center; border-radius: 20px; padding: 2.75rem 1.25rem;
  background: linear-gradient(140deg, var(--brand-dark), #0a2c4d);
  color: #fff; margin: 1rem 0 3rem;
}
.wl-final h2 { color: #fff; }
.wl-final p { color: rgba(255,255,255,.82); max-width: 46ch; margin: 0 auto 1.4rem; }
.wl-final .wl-btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.34);
                          color: #fff; }
.wl-final .wl-btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.wl-final .wl-btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }

.wl-foot { text-align: center; color: var(--faint); font-size: .8rem;
           padding-bottom: 2.5rem; line-height: 1.9; }
.wl-by { font-size: .76rem; }

/* Motion is decoration here; the page must read the same without it. */
@media (prefers-reduced-motion: reduce) {
  /* The hero holds still and swaps without a crossfade or a zoom. The dots
     still work, so the other photographs remain reachable -- less motion, not
     less content. */
  .wl-hslide, .wl-hslide.is-on { transition: none; }
  .wl-hslide.is-on > img { animation: none; transform: none; }
  .wl-reveal { opacity: 1; transform: none; transition: none; }
  .wl-btn:hover, .wl-feature:hover, .wl-trade:hover { transform: none; }
}
