﻿/* Public landing page (Welcome.aspx, shown at "/" to visitors who are not signed in).
   Full-screen photo under a dark overlay, glass controls, big headline. Always dark: the text sits on the photo.
   Accent colours follow the new app's auth panel (rose + violet glows on near-black). */

:root {
  --wl-ink: #08080f;
  --wl-text: #fff;
  --wl-text-2: rgba(255, 255, 255, .78);
  --wl-text-3: rgba(255, 255, 255, .56);
  --wl-glass: rgba(255, 255, 255, .08);
  --wl-glass-hi: rgba(255, 255, 255, .14);
  --wl-line: rgba(255, 255, 255, .16);
  --wl-rose: #f43f5e;
  --wl-violet: #8b5cf6;
  --wl-gutter: clamp(16px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.wl {
  background: var(--wl-ink);
  color: var(--wl-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Icons (the Lucide sprite of Content/modern/icons.svg). */
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i-sm { width: 16px; height: 16px; }
.wl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Background: photo (slow zoom) + overlay + glows + dot grid ---- */
.wl-bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.wl-photo {
  position: absolute; inset: -2%;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  animation: wl-drift 28s ease-in-out infinite alternate;
  filter: saturate(1.05);
}
@keyframes wl-drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }

.wl-shade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(8, 8, 15, .92) 0%, rgba(8, 8, 15, .74) 38%, rgba(8, 8, 15, .38) 70%, rgba(8, 8, 15, .5) 100%),
    linear-gradient(0deg, rgba(8, 8, 15, .9) 0%, rgba(8, 8, 15, 0) 42%);
}
.wl-glow {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(800px 520px at 108% -12%, color-mix(in srgb, var(--wl-rose) 42%, transparent), transparent 62%),
    radial-gradient(760px 560px at -12% 112%, color-mix(in srgb, var(--wl-violet) 40%, transparent), transparent 62%);
  mix-blend-mode: screen;
}
.wl-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 70%);
}

/* ---- Layout ---- */
.wl-page {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 0 var(--wl-gutter);
}

/* Top bar */
.wl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0; }
.wl-logo { display: inline-flex; background: #fff; border-radius: 14px; padding: 9px 14px; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6); transition: transform .2s ease; }
.wl-logo:hover { transform: translateY(-1px); }
.wl-logo img { display: block; height: 30px; width: auto; max-width: 160px; object-fit: contain; }
.wl-top-actions { display: flex; align-items: center; gap: 10px; }

/* Language picker (glass pill) */
.wl-lang { position: relative; display: flex; align-items: center; margin: 0; }
.wl-lang label { position: absolute; left: 13px; display: inline-flex; color: var(--wl-text-2); pointer-events: none; }
.wl-lang select {
  appearance: none; -webkit-appearance: none;
  height: 40px; padding: 0 34px 0 38px;
  border-radius: 999px; border: 1px solid var(--wl-line);
  background: var(--wl-glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--wl-text); font: 550 13.5px/1 Inter, system-ui, sans-serif; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.wl-lang select:hover { background-color: var(--wl-glass-hi); }
.wl-lang select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wl-lang option { color: #111; background: #fff; }
.wl-lang noscript button { margin-left: 6px; }

/* Buttons */
.wl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.wl-btn-glass {
  color: var(--wl-text); border: 1px solid var(--wl-line); background: var(--wl-glass);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.wl-btn-glass:hover { background: var(--wl-glass-hi); border-color: rgba(255, 255, 255, .28); }
.wl-btn-primary {
  color: var(--wl-ink); background: #fff; border: 1px solid #fff;
  box-shadow: 0 12px 32px -12px rgba(255, 255, 255, .55);
}
.wl-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(255, 255, 255, .7); }
.wl-btn-primary .i { transition: transform .2s ease; }
.wl-btn-primary:hover .i { transform: translateX(3px); }

/* Hero */
.wl-hero { align-self: center; max-width: 780px; padding: 6vh 0 4vh; }
.wl-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--wl-line); background: var(--wl-glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--wl-text-2); font-size: 13px; font-weight: 550; letter-spacing: .01em;
}
.wl-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: wl-pulse 2.4s ease-out infinite; }
@keyframes wl-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }

.wl-hero h1 {
  margin: 22px 0 0;
  font-size: clamp(38px, 6.2vw, 82px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 650;
  background: linear-gradient(180deg, #fff 0%, #fff 55%, rgba(255, 255, 255, .72) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.wl-lead { margin: 22px 0 0; max-width: 52ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--wl-text-2); text-wrap: pretty; }
.wl-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.wl-cta .wl-btn { height: 52px; padding: 0 26px; font-size: 15.5px; }

/* Footer: glass feature cards + copyright */
.wl-foot { padding: 0 0 26px; }
.wl-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 980px; }
.wl-features li {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 14px 16px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  color: var(--wl-text-2); font-size: 14px; line-height: 1.35;
}
.wl-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--wl-rose) 55%, transparent), color-mix(in srgb, var(--wl-violet) 55%, transparent));
  border: 1px solid rgba(255, 255, 255, .18);
}
.wl-copy { margin: 18px 0 0; color: var(--wl-text-3); font-size: 12.5px; }

/* Entrance */
.wl-in { opacity: 0; transform: translateY(14px); animation: wl-up .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes wl-up { to { opacity: 1; transform: none; } }

/* No backdrop-filter: make the glass a little more solid. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wl-btn-glass, .wl-lang select, .wl-eyebrow, .wl-features li { background-color: rgba(20, 20, 30, .7); }
}

@media (max-width: 860px) {
  .wl-features { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .wl-shade { background: linear-gradient(180deg, rgba(8, 8, 15, .7) 0%, rgba(8, 8, 15, .82) 50%, rgba(8, 8, 15, .94) 100%); }
}
@media (max-width: 560px) {
  .wl-top { padding: 16px 0; }
  .wl-logo img { height: 26px; }
  .wl-hide-sm { display: none; }
  .wl-hero { padding: 4vh 0 3vh; }
  .wl-cta { flex-direction: column; }
  .wl-cta .wl-btn { width: 100%; }
  .wl-features li { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .wl-photo, .wl-dot { animation: none; }
  .wl-in { animation: none; opacity: 1; transform: none; }
  .wl-btn, .wl-logo, .wl-btn-primary .i { transition: none; }
}
