/**
 * Marketing shell — full-bleed atmosphere; glass on elements;
 * ink rectangles draw on load and every SPA transition.
 */
:root {
  --wn-ink: #ffffff;
  --wn-ink-dim: rgba(255, 255, 255, 0.92);
  --wn-ink-mute: rgba(255, 255, 255, 0.78);
  --wn-accent: #f0a45a;
  --wn-accent-soft: #ffcf8a;
  --wn-progress: #e85d7a;
  --wn-glass: rgba(255, 255, 255, 0.05);
  --wn-glass-strong: rgba(10, 14, 22, 0.34);
  --wn-glass-card: rgba(8, 12, 20, 0.38);
  --wn-stroke: rgba(255, 255, 255, 0.16);
  --wn-stroke-soft: rgba(255, 255, 255, 0.09);
  --wn-btn: #ffffff;
  --wn-btn-ink: #0b0f16;
  --wn-btn-ghost: rgba(8, 12, 20, 0.52);
  --wn-radius: 30px;
  --wn-radius-sm: 18px;
  --wn-radius-pill: 999px;
  --wn-font: "Cairo", "Outfit", system-ui, sans-serif;
  --wn-display: "Cairo", "Outfit", system-ui, sans-serif;
  --wn-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* Hash scrolling is handled in JS to avoid jump-to-top glitches */
html { scroll-behavior: auto; }

.wn-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--wn-font);
  color: var(--wn-ink);
  background: #04060a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wn-body[dir="rtl"] { font-family: "Cairo", system-ui, sans-serif; }
.wn-body[dir="ltr"] { font-family: "Outfit", "Cairo", system-ui, sans-serif; }
.wn-body[dir="ltr"] .wn-h1,
.wn-body[dir="ltr"] .wn-hero-brand { font-family: "Outfit", system-ui, sans-serif; }

/* ── Full-bleed atmosphere ───────────────────────────── */
.wn-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.wn-bg-img {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.06) brightness(0.94);
  animation: wn-bg-drift 36s var(--wn-ease) infinite alternate;
  transition: filter 0.7s var(--wn-ease), opacity 0.7s ease;
}
.wn-bg-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--wn-ease), transform 0.9s var(--wn-ease);
}
/* Modern luxury sketch strokes — not heritage ornaments */
.wn-bg-sketchlines {
  opacity: 0.28;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23e8d5b5' stroke-width='0.85' stroke-linecap='round' opacity='0.7'%3E%3Cpath d='M18 40 C70 18 140 22 202 48'/%3E%3Cpath d='M12 170 C80 198 150 190 208 155'/%3E%3Cpath d='M40 12 C28 90 36 150 58 208'/%3E%3Cpath d='M190 16 C205 85 198 145 172 210'/%3E%3Ccircle cx='110' cy='110' r='52' stroke-dasharray='2 10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 72%);
}
.wn-bg-sketchgrid {
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image:
    linear-gradient(rgba(232, 213, 181, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 213, 181, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 55% 50% at 70% 55%, #000 5%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 70% 55%, #000 5%, transparent 68%);
  animation: wn-qr-drift 48s linear infinite;
}
.wn-bg-filaments {
  opacity: 0.4;
  background:
    radial-gradient(ellipse 42% 32% at 18% 28%, rgba(240, 196, 140, 0.16), transparent 70%),
    radial-gradient(ellipse 38% 30% at 78% 68%, rgba(255, 255, 255, 0.06), transparent 72%),
    linear-gradient(118deg, transparent 42%, rgba(232, 213, 181, 0.1) 50%, transparent 58%);
}
.wn-bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 62% at 42% 36%, transparent 30%, rgba(6, 7, 10, 0.12) 72%, rgba(6, 7, 10, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.12) 0%, transparent 42%, rgba(8, 9, 12, 0.34) 100%),
    linear-gradient(115deg, rgba(232, 213, 181, 0.06) 0%, transparent 45%);
  transition: background 0.7s ease, opacity 0.7s ease;
}
/* Landing: vivid photo plate with light veil so UI stays readable */
.wn-body[data-wn-mode="landing"] .wn-bg-img {
  filter: saturate(1.18) contrast(1.08) brightness(0.92);
}
.wn-body[data-wn-mode="landing"] .wn-bg-veil {
  display: block;
  background:
    radial-gradient(ellipse 62% 52% at 70% 40%, transparent 18%, rgba(6, 7, 10, 0.28) 70%, rgba(6, 7, 10, 0.52) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.22) 0%, transparent 44%, rgba(8, 9, 12, 0.42) 100%),
    linear-gradient(115deg, rgba(255, 196, 120, 0.1) 0%, transparent 48%);
}
.wn-body[data-wn-mode="landing"] .wn-bg-grain {
  opacity: 0.2;
}
.wn-body[data-wn-mode="landing"] .wn-bg-sketchlines {
  opacity: 0.36;
}
.wn-body[data-wn-mode="landing"] .wn-bg-sketchgrid {
  opacity: 0.16;
  transform: scale(1.03);
}
.wn-body[data-wn-mode="landing"] .wn-bg-filaments {
  opacity: 0.4;
}
.wn-body[data-wn-mode="landing"] .wn-glow-a { opacity: 0.65; }
.wn-body[data-wn-mode="landing"] .wn-glow-c { opacity: 0.35; }
.wn-bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.wn-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.9s var(--wn-ease);
}
.wn-glow-a {
  width: min(46vw, 420px);
  height: min(46vw, 420px);
  top: 8%;
  inset-inline-start: -6%;
  background: radial-gradient(circle, rgba(240, 196, 140, 0.38), transparent 68%);
  animation: wn-glow-drift 18s ease-in-out infinite alternate;
}
.wn-glow-b {
  width: min(38vw, 340px);
  height: min(38vw, 340px);
  bottom: 12%;
  inset-inline-end: -4%;
  background: radial-gradient(circle, rgba(180, 190, 210, 0.16), transparent 70%);
  animation: wn-glow-drift 22s ease-in-out infinite alternate-reverse;
}
.wn-glow-c {
  width: min(28vw, 260px);
  height: min(28vw, 260px);
  top: 42%;
  inset-inline-end: 18%;
  opacity: 0.28;
  background: radial-gradient(circle, rgba(100, 180, 200, 0.22), transparent 70%);
  animation: wn-glow-drift 26s ease-in-out infinite alternate;
}

/* Auth mode: deepen atmosphere without swapping the photo */
body[data-wn-mode="auth"] .wn-bg-img {
  filter: saturate(1.02) contrast(1.1) brightness(0.82);
}
body[data-wn-mode="auth"] .wn-bg-veil {
  background:
    radial-gradient(ellipse 60% 50% at 68% 42%, transparent 12%, rgba(6, 7, 10, 0.4) 68%, rgba(6, 7, 10, 0.68) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.35) 0%, transparent 42%, rgba(8, 9, 12, 0.55) 100%),
    linear-gradient(115deg, rgba(232, 213, 181, 0.08) 0%, transparent 48%);
}
body[data-wn-mode="auth"] .wn-bg-sketchlines { opacity: 0.36; }
body[data-wn-mode="auth"] .wn-bg-sketchgrid { opacity: 0.16; transform: scale(1.03); }
body[data-wn-mode="auth"] .wn-glow-a { opacity: 0.65; }
body[data-wn-mode="auth"] .wn-glow-c { opacity: 0.35; }
@keyframes wn-bg-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(-1.4%, 0.8%, 0); }
}
@keyframes wn-glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, -3%, 0) scale(1.08); }
}
@keyframes wn-qr-drift {
  from { background-position: 72% 58%; }
  to   { background-position: 68% 52%; }
}

/* ── Stage: clear atmosphere + ink rectangle (no big glass slab) ─ */
.wn-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(0.75rem, 2vw, 1.4rem);
  display: grid;
  align-items: stretch;
}

.wn-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  min-height: calc(100vh - 2 * clamp(0.75rem, 2vw, 1.4rem));
  margin-inline: auto;
  padding: clamp(1.15rem, 2.6vw, 1.85rem) clamp(1.15rem, 3vw, 2.15rem) clamp(1.2rem, 2.2vw, 1.7rem);
  border-radius: var(--wn-radius);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
  animation: wn-frame-in 0.7s var(--wn-ease) both;
}
@keyframes wn-frame-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Outer ink rectangle — draws on load / every SPA transition */
.wn-ink-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.wn-ink-frame rect {
  fill: none;
  stroke: rgba(232, 213, 181, 0.7);
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
/* Root fix: injected ink SVGs must NEVER paint a black fill (default SVG rect = black). */
.wn-ink-stroke,
.wn-ink-stroke rect,
svg.wn-ink-stroke,
svg.wn-ink-stroke rect {
  fill: none !important;
  background: none !important;
}
.wn-frame.is-inked > .wn-ink-frame rect {
  animation: wn-ink-draw 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes wn-ink-draw {
  to { stroke-dashoffset: 0; }
}

/* Glass lives on the elements, not behind them */
.wn-glass-pane {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, transparent 42%),
    rgba(8, 12, 20, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--wn-radius-sm);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}
.wn-glass-pane > .wn-ink-stroke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
  border-radius: inherit;
}
.wn-glass-pane > .wn-ink-stroke rect {
  fill: none;
  stroke: rgba(232, 213, 181, 0.78);
  stroke-width: 1.35;
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.wn-glass-pane.is-inked > .wn-ink-stroke rect {
  animation: wn-ink-draw 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--wn-ink-delay, 0.08s);
}

/* ── Nav ─────────────────────────────────────────────── */
.wn-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.35rem;
}
.wn-hero-copy.wn-glass-pane {
  padding: clamp(1.1rem, 2.4vw, 1.55rem) clamp(1.15rem, 2.6vw, 1.7rem);
  max-width: 36rem;
}
.wn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.wn-brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  background: linear-gradient(145deg, var(--wn-accent), var(--wn-accent-soft));
  box-shadow:
    0 0 0 3px rgba(240, 164, 90, 0.2),
    0 6px 16px rgba(240, 164, 90, 0.35);
  transform: rotate(12deg);
}
.wn-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.6rem);
  flex-wrap: wrap;
}
.wn-nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
  text-shadow: none;
}
.wn-nav-links a:hover { color: #fff; }
.wn-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* ── Buttons ─────────────────────────────────────────── */
.wn-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--wn-radius-pill);
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--wn-ease), box-shadow 0.25s ease, background 0.2s ease;
  will-change: transform;
}
.wn-btn:active { transform: scale(0.98); }
.wn-btn-solid {
  background: linear-gradient(180deg, #fff 0%, #f2f4f7 100%);
  color: var(--wn-btn-ink);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.wn-btn-solid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: none;
  pointer-events: none;
  z-index: -1;
}
.wn-btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}
.wn-btn-solid:hover::after {
  animation: wn-btn-shine 0.85s var(--wn-ease);
}
@keyframes wn-btn-shine {
  to { transform: translateX(120%); }
}
.wn-btn-solid > * { position: relative; z-index: 1; }
.wn-btn-ghost {
  background: var(--wn-btn-ghost);
  color: var(--wn-ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}
.wn-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}
.wn-btn-wide { width: 100%; min-height: 3rem; font-size: 0.98rem; }

.wn-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

/* ── Hero ────────────────────────────────────────────── */
.wn-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(1.5rem, 5vh, 3.5rem) clamp(1rem, 3vh, 2rem);
  perspective: 1200px;
}
.wn-hero--cinema {
  align-items: center;
  min-height: 0;
}
.wn-hero--copy-only {
  grid-template-columns: 1fr !important;
  max-width: 46rem;
  min-height: 0 !important;
  align-items: start;
  padding-block: clamp(1.25rem, 4vh, 2.75rem) clamp(0.75rem, 2vh, 1.5rem);
}
.wn-hero-copy {
  max-width: 40rem;
  transform-style: preserve-3d;
}
.wn-hero--cinema .wn-hero-copy {
  padding: 0;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.wn-hero-proof {
  margin: 1.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}
.wn-hero-stage {
  position: relative;
  min-height: clamp(280px, 42vh, 420px);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}
.wn-hero-orbit {
  position: absolute;
  width: min(88%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(240, 164, 90, 0.22), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08), transparent 60%);
  filter: blur(2px);
  animation: wn-orbit-pulse 8s ease-in-out infinite alternate;
}
@keyframes wn-orbit-pulse {
  from { transform: scale(0.92); opacity: 0.7; }
  to { transform: scale(1.06); opacity: 1; }
}
.wn-hero-float {
  position: relative;
  width: min(100%, 300px);
  height: 340px;
  transform-style: preserve-3d;
  animation: wn-float-3d 7s ease-in-out infinite alternate;
}
@keyframes wn-float-3d {
  from { transform: rotateY(-14deg) rotateX(8deg) translateY(0); }
  to { transform: rotateY(-6deg) rotateX(4deg) translateY(-12px); }
}
.wn-hero-phone-shell {
  position: absolute;
  inset-inline-end: 8%;
  top: 8%;
  width: 58%;
  aspect-ratio: 9 / 17;
  border-radius: 1.35rem;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.18), transparent 40%),
    linear-gradient(180deg, #1a1f2a 0%, #0b0e14 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateZ(40px);
  overflow: hidden;
}
.wn-hero-phone-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.12) 48%, transparent 56%);
  animation: wn-phone-shine 5.5s ease-in-out infinite;
}
@keyframes wn-phone-shine {
  0%, 100% { transform: translateX(-30%); opacity: 0.4; }
  50% { transform: translateX(30%); opacity: 0.85; }
}
.wn-hero-phone-ui {
  position: absolute;
  inset: 12% 10% 14%;
  display: grid;
  align-content: start;
  gap: 0.45rem;
}
.wn-hero-ui-bar {
  height: 0.35rem;
  width: 72%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}
.wn-hero-ui-bar.short { width: 44%; opacity: 0.45; }
.wn-hero-ui-card {
  height: 2.6rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, rgba(240, 164, 90, 0.35), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.wn-hero-qr-plate {
  position: absolute;
  inset-inline-start: 0;
  bottom: 6%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 1.1rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.16), transparent 50%),
    rgba(12, 16, 24, 0.88);
  border: 1px solid rgba(232, 213, 181, 0.35);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateZ(70px) rotateY(18deg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.wn-hero-qr-grid {
  width: 62%;
  aspect-ratio: 1;
  background:
    linear-gradient(#e8d5b5 1px, transparent 1px) 0 0 / 18% 18%,
    linear-gradient(90deg, #e8d5b5 1px, transparent 1px) 0 0 / 18% 18%,
    #0c1018;
  border-radius: 0.25rem;
  opacity: 0.9;
  box-shadow: inset 0 0 0 6px #0c1018;
}
.wn-hero-qr-scan {
  position: absolute;
  inset-inline: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0a45a, transparent);
  box-shadow: 0 0 12px rgba(240, 164, 90, 0.8);
  animation: wn-qr-scan 2.4s ease-in-out infinite;
}
@keyframes wn-qr-scan {
  0%, 100% { top: 22%; opacity: 0.35; }
  50% { top: 72%; opacity: 1; }
}
@media (max-width: 860px) {
  .wn-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .wn-hero-stage {
    min-height: 220px;
    max-width: 260px;
    margin-inline: auto;
  }
  .wn-hero-float {
    height: 240px;
    width: 220px;
  }
}
.wn-hero-brand {
  margin: 0 0 0.55rem;
  font-family: var(--wn-display);
  font-size: clamp(1.85rem, 4.8vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  text-shadow: none;
  animation: wn-brand-rise 0.9s var(--wn-ease) both;
}
.wn-hero--cinema .wn-kicker {
  animation: wn-brand-rise 0.9s var(--wn-ease) 0.08s both;
}
.wn-hero--cinema .wn-h1 {
  animation: wn-brand-rise 0.95s var(--wn-ease) 0.14s both;
}
.wn-hero--cinema .wn-lead {
  animation: wn-brand-rise 1s var(--wn-ease) 0.22s both;
}
.wn-hero--cinema .wn-hero-cta {
  animation: wn-brand-rise 1.05s var(--wn-ease) 0.3s both;
}
@keyframes wn-brand-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.wn-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: none;
}
.wn-kicker-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--wn-accent);
  box-shadow: 0 0 0 4px rgba(240, 164, 90, 0.22);
  animation: wn-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes wn-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(240, 164, 90, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(240, 164, 90, 0.08); }
}
.wn-h1 {
  margin: 0;
  font-family: var(--wn-display);
  font-size: clamp(2.35rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #fff;
  text-shadow: none;
}
.wn-h1 em {
  font-style: normal;
  font-weight: inherit;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #fff;
}
.wn-lead {
  margin: 1.05rem 0 0;
  max-width: 30rem;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  text-shadow: none;
}
.wn-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  padding: 0.4rem 0.75rem 0.4rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--wn-stroke-soft);
  font-size: 0.86rem;
  color: var(--wn-ink-dim);
}
.wn-proof-star {
  color: var(--wn-accent);
  font-size: 1rem;
}

/* ── Side glass card ─────────────────────────────────── */
.wn-card {
  justify-self: end;
  width: min(100%, 348px);
  padding: 1.2rem 1.2rem 1.25rem;
  border-radius: calc(var(--wn-radius-sm) + 6px);
  animation: wn-card-in 1s 0.15s var(--wn-ease) both;
}
@keyframes wn-card-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.wn-card-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wn-ink-mute);
}
.wn-card-live {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 4px rgba(61, 214, 140, 0.2);
  animation: wn-live 1.8s ease-in-out infinite;
}
@keyframes wn-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.wn-card-title {
  margin: 0 0 0.95rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wn-card-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.wn-chip {
  display: grid;
  gap: 0.2rem;
  padding: 0.72rem 0.75rem;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--wn-stroke-soft);
}
.wn-chip span {
  font-size: 0.68rem;
  color: var(--wn-ink-mute);
  font-weight: 500;
}
.wn-chip strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wn-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.2rem 0 1rem;
}
.wn-card-meta b {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.wn-card-meta span {
  font-size: 0.78rem;
  color: var(--wn-ink-mute);
}

/* ── Auth specialization ─────────────────────────────── */
.wn-auth-stage .wn-frame {
  min-height: auto;
  width: min(980px, 100%);
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
}
.wn-auth-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.2rem, 4vw, 2.5rem);
  align-items: center;
  padding-block: clamp(0.8rem, 3vh, 2rem);
}
.wn-auth-copy .wn-h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}
.wn-auth-feats {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.4rem;
}
.wn-auth-feat {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--wn-ink-dim);
}
.wn-auth-feat i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--wn-accent);
  box-shadow: 0 0 0 4px rgba(240, 164, 90, 0.18);
}
.wn-form {
  width: min(100%, 380px);
  justify-self: end;
  padding: 1.4rem 1.35rem 1.45rem;
  border-radius: calc(var(--wn-radius-sm) + 8px);
  animation: wn-card-in 0.85s 0.1s var(--wn-ease) both;
}
.wn-auth-copy.wn-glass-pane {
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
}
.wn-form-head { margin-bottom: 1.1rem; }
.wn-form-head h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.wn-form-head p {
  margin: 0.35rem 0 0;
  color: var(--wn-ink-mute);
  font-size: 0.88rem;
}
.wn-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.wn-biz-type {
  border: 0;
  margin: 0 0 0.85rem;
  padding: 0;
  min-width: 0;
}
.wn-biz-type legend {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wn-ink-dim);
}
.wn-biz-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.wn-biz-card {
  position: relative;
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0.75rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.wn-biz-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.wn-biz-card strong {
  font-size: 0.88rem;
  color: var(--wn-ink);
  pointer-events: none;
}
.wn-biz-card span {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--wn-ink-mute);
  pointer-events: none;
}
.wn-biz-card:hover {
  border-color: rgba(247, 248, 250, 0.28);
  transform: translateY(-1px);
}
/* Selection follows the radio only — stale .is-selected must never keep a twin lit */
.wn-biz-card:has(input:checked) {
  border-color: rgba(45, 212, 191, 0.65);
  background: rgba(15, 118, 110, 0.28);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.28);
}
.wn-biz-card.is-selected:not(:has(input:checked)) {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: none;
}
@media (max-width: 520px) {
  .wn-biz-cards { grid-template-columns: 1fr; }
}
.wn-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wn-ink-dim);
}
.wn-field input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--wn-stroke);
  background: rgba(0, 0, 0, 0.34);
  color: var(--wn-ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wn-field input::placeholder { color: rgba(247, 248, 250, 0.35); }
.wn-field input:focus {
  border-color: rgba(240, 164, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(240, 164, 90, 0.14);
}
.wn-error {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(220, 60, 80, 0.18);
  border: 1px solid rgba(255, 120, 140, 0.35);
  color: #ffd5db;
  font-size: 0.86rem;
}
.wn-alt {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--wn-ink-mute);
}
.wn-alt a { color: var(--wn-ink); font-weight: 600; }
.wn-form-lang {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.65rem;
}
.wn-form-lang .lang-switch a,
.wn-nav .lang-switch a {
  color: var(--wn-ink-dim) !important;
}

.wn-body .ui-lang-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--wn-stroke-soft);
}
.wn-body .ui-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  min-height: 1.85rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  color: var(--wn-ink-mute);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
}
.wn-body .ui-lang-btn.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #0b0f16;
}

/* ── Below-fold experiment area (landing) ────────────── */
.wn-below {
  position: relative;
  z-index: 1;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}
/* Offset sticky/top nav when jumping to in-page sections */
.wn-below > section[id],
.wn-hero[id],
#sim,
#audience,
#idea,
#features,
#how,
#try-themes,
#occasions {
  scroll-margin-top: 1.25rem;
}
.wn-below-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}
.wn-below-head .wn-kicker { color: rgba(255,255,255,0.86); }
.wn-below-head h2 {
  margin: 0;
  font-family: var(--wn-display);
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: none;
}
.wn-below-head p {
  margin: 0.6rem 0 0;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  text-shadow: none;
}

.wn-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1rem 2.5rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.8rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 860px) {
  .wn-hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-block: 1.6rem 1.2rem;
  }
  .wn-hero--cinema,
  .wn-hero--copy-only {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
  }
  .wn-card {
    justify-self: stretch;
    width: 100%;
  }
  .wn-nav-links { display: none; }
  .wn-auth-grid { grid-template-columns: 1fr; }
  .wn-form { justify-self: stretch; width: 100%; }
  .wn-auth-copy { order: -1; }
  .wn-h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
}

/* ── SPA panel shell + transitions ───────────────────── */
/* Prevent full-document snapshot flash during View Transitions */
html {
  view-transition-name: none;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none !important;
  mix-blend-mode: normal;
}

.wn-shell-slot {
  position: relative;
  z-index: 1;
  view-transition-name: wn-panel;
  isolation: isolate;
}
.wn-panel {
  min-height: 100vh;
}

/* After first paint, skip heavy entrance fades — ink redraw handles presence. */
body.wn-spa-ready .wn-frame {
  animation: none !important;
}
body.wn-spa-ready .wn-panel-enter,
body.wn-spa-ready .wn-auth-grid.wn-panel-enter .wn-auth-copy,
body.wn-spa-ready .wn-auth-grid.wn-panel-enter .wn-form,
body.wn-spa-ready .wn-auth-grid.wn-panel-enter .wn-auth-feat,
body.wn-spa-ready .wn-card,
body.wn-spa-ready .wn-form {
  animation: none !important;
}
.wn-nav-veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  background: rgba(4, 6, 10, 0.18);
  transition: opacity 0.22s ease;
}
.wn-nav-veil.is-on {
  opacity: 1;
  pointer-events: auto;
}
body.is-navigating {
  cursor: progress;
}

/* Gentle first-load settle — SPA swaps use View Transition only (see wn-spa-ready above). */
.wn-panel-enter {
  animation: wn-panel-rise 0.45s var(--wn-ease) both;
}
.wn-auth-grid.wn-panel-enter .wn-auth-copy,
.wn-auth-grid.wn-panel-enter .wn-form {
  animation: wn-panel-rise 0.42s var(--wn-ease) both;
}
.wn-auth-grid.wn-panel-enter .wn-form {
  animation-delay: 0.05s;
}
.wn-auth-grid.wn-panel-enter .wn-auth-feat {
  animation: wn-feat-in 0.4s var(--wn-ease) both;
}
.wn-auth-grid.wn-panel-enter .wn-auth-feat:nth-child(1) { animation-delay: 0.08s; }
.wn-auth-grid.wn-panel-enter .wn-auth-feat:nth-child(2) { animation-delay: 0.14s; }
.wn-auth-grid.wn-panel-enter .wn-auth-feat:nth-child(3) { animation-delay: 0.2s; }

@keyframes wn-panel-rise {
  from {
    opacity: 0.92;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes wn-feat-in {
  from { opacity: 0.5; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}
body[dir="rtl"] .wn-auth-grid.wn-panel-enter .wn-auth-feat {
  animation-name: wn-feat-in-rtl;
}
@keyframes wn-feat-in-rtl {
  from { opacity: 0.5; transform: translateX(6px); }
  to   { opacity: 1; transform: none; }
}

/* Opacity-only crossfade — no blur/scale (those flash on dark atmospheres) */
::view-transition-group(wn-panel) {
  animation-duration: 0.34s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(wn-panel),
::view-transition-new(wn-panel) {
  animation-duration: 0.34s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: normal;
  height: 100%;
}
::view-transition-old(wn-panel) {
  animation-name: wn-vt-out;
}
::view-transition-new(wn-panel) {
  animation-name: wn-vt-in;
}
@keyframes wn-vt-out {
  to { opacity: 0; }
}
@keyframes wn-vt-in {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wn-bg-img, .wn-frame, .wn-card, .wn-form, .wn-glow, .wn-kicker-dot, .wn-card-live,
  .wn-bg-sketchgrid, .wn-panel-enter, .wn-auth-grid.wn-panel-enter .wn-auth-copy,
  .wn-auth-grid.wn-panel-enter .wn-form, .wn-auth-grid.wn-panel-enter .wn-auth-feat {
    animation: none !important;
  }
  .wn-ink-frame rect,
  .wn-glass-pane > .wn-ink-stroke rect {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .wn-nav-veil,
  .wn-bg-img,
  .wn-bg-veil,
  .wn-bg-ornament,
  .wn-glow {
    transition: none !important;
  }
  ::view-transition-old(wn-panel),
  ::view-transition-new(wn-panel) {
    animation: none !important;
  }
}
