/* Melloq Artistic Glassmorphism Landing Page — built on /ui-core.css tokens & real app components */
html {
  scroll-behavior: smooth;
  font-family: var(--font);
  color: var(--label);
  background: #eaf2e3;
}
body {
  margin: 0;
  font: 17px/1.45 var(--font);
  color: var(--label);
  background:
    radial-gradient(circle at 14% 8%, rgba(159, 232, 112, 0.38) 0%, transparent 42%),
    radial-gradient(circle at 86% 22%, rgba(255, 186, 212, 0.28) 0%, transparent 40%),
    radial-gradient(circle at 22% 54%, rgba(154, 224, 203, 0.34) 0%, transparent 46%),
    radial-gradient(circle at 82% 76%, rgba(255, 224, 120, 0.28) 0%, transparent 44%),
    linear-gradient(180deg, #eef6e8 0%, #e4efe0 48%, #eaf3e4 100%);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  --flight-dir: 1;
  --mx: 0px;
  --my: 0px;
}
[dir="rtl"] body { --flight-dir: -1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }

/* ---------- Living Ambient Botanical Canvas (Refracted behind Glass) ---------- */
.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.88;
  will-change: transform;
}
.orb-1 {
  width: 520px; height: 520px;
  top: -90px; left: -60px;
  background: radial-gradient(circle, rgba(132, 224, 72, 0.85) 0%, rgba(159, 232, 112, 0) 70%);
  animation: orbDriftA 14s ease-in-out infinite alternate;
}
.orb-2 {
  width: 460px; height: 460px;
  top: 22%; right: -70px;
  background: radial-gradient(circle, rgba(255, 154, 194, 0.78) 0%, rgba(255, 186, 212, 0) 70%);
  animation: orbDriftB 17s ease-in-out infinite alternate;
}
.orb-3 {
  width: 540px; height: 540px;
  top: 52%; left: 4%;
  background: radial-gradient(circle, rgba(104, 216, 186, 0.8) 0%, rgba(154, 224, 203, 0) 70%);
  animation: orbDriftA 19s ease-in-out infinite alternate-reverse;
}
.orb-4 {
  width: 440px; height: 440px;
  bottom: -60px; right: 8%;
  background: radial-gradient(circle, rgba(255, 206, 84, 0.78) 0%, rgba(255, 224, 120, 0) 70%);
  animation: orbDriftB 16s ease-in-out infinite alternate-reverse;
}
.ambient-lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
  transform: translate3d(calc(var(--mx) * -0.4), calc(var(--my) * -0.4), 0);
  transition: transform 0.25s ease-out;
}
@keyframes orbDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, 45px, 0) scale(1.14); }
}
@keyframes orbDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-55px, -40px, 0) scale(1.12); }
}

/* ---------- Core Glassmorphism Surface Primitives ---------- */
.glass-surface {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.36) 100%);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(159, 232, 112, 0.18),
    0 24px 60px rgba(23, 52, 4, 0.1),
    0 4px 16px rgba(23, 52, 4, 0.05);
}

/* Specular light reflection following cursor on 3D tilt cards */
.tilt-card {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 20%;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  will-change: transform;
}
.tilt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.55), transparent 60%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

/* ---------- Floating Capsule Glassmorphic Navbar ---------- */
.l-nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding: 0 16px;
  margin-top: 14px;
}
.l-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 9px 12px 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(240, 252, 232, 0.48) 100%);
  backdrop-filter: blur(30px) saturate(210%);
  -webkit-backdrop-filter: blur(30px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.96),
    0 16px 38px rgba(23, 52, 4, 0.1),
    0 2px 8px rgba(23, 52, 4, 0.05);
}
.l-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--green-ink);
}
.l-brand img {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(159, 232, 112, 0.45));
}
.l-brand .beta-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(159, 232, 112, 0.32);
  border: 1px solid rgba(46, 122, 18, 0.22);
  color: var(--green-text);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.l-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(23, 52, 4, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.l-nav-links a {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-ink);
  opacity: 0.78;
  transition: background 0.18s, opacity 0.18s, transform 0.15s;
}
.l-nav-links a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}
.l-nav-actions { display: flex; align-items: center; gap: 8px; }
.l-lang-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--green-ink);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(23, 52, 4, 0.06);
  transition: transform 0.15s, background 0.18s;
}
.l-lang-jump:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}
.l-nav-cta {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #aaf07c 0%, #86dc53 100%);
  color: var(--green-ink);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 18px rgba(134, 220, 83, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ---------- Scroll-Reveal Choreography ---------- */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.975);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-ready .reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Section Rhythm & Editorial Typography ---------- */
main, footer { position: relative; z-index: 1; }
.l-sec {
  position: relative;
  padding: 68px 20px;
  margin: 0 auto;
}
.l-sec.wide { max-width: 1180px; }
.l-sec.mid { max-width: 1020px; }

.l-sec-band { width: 100%; position: relative; }
.l-sec-band.night {
  background:
    radial-gradient(circle at 18% 22%, rgba(159, 232, 112, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(234, 185, 73, 0.18) 0%, transparent 48%),
    linear-gradient(160deg, #0d1708 0%, #16290c 55%, #101e08 100%);
  color: #eefbe4;
  border-top: 1px solid rgba(159, 232, 112, 0.22);
  border-bottom: 1px solid rgba(159, 232, 112, 0.22);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(23, 52, 4, 0.06);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-text);
}
.night .eyebrow-pill {
  background: rgba(159, 232, 112, 0.14);
  border-color: rgba(159, 232, 112, 0.3);
  color: var(--green);
}

.l-head { margin: 0 0 32px; }
.l-head.center { text-align: center; }
.l-head h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #122903 0%, #275e0d 55%, #173404 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.l-head h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--green-ink);
}
.night .l-head h2 { color: #ffffff; }
.l-head p {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(16px, 2vw, 19px);
  color: #4a5a40;
  font-weight: 500;
}
.l-head:not(.center) p { margin: 0; }
.night .l-head p { color: rgba(238, 251, 228, 0.78); }

/* ---------- 1. Hero: 3D Glassmorphic Dual-Screen Studio ---------- */
.hero-sec { padding-top: 28px; padding-bottom: 56px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px 0 36px;
}
.hero-cta {
  min-height: 54px;
  padding: 0 28px;
  font-size: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a8f079 0%, #83db4f 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 14px 34px rgba(131, 219, 79, 0.48);
  transition: transform 0.18s cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), 0 18px 42px rgba(131, 219, 79, 0.6);
}
.hero-dl {
  min-height: 54px;
  padding: 0 22px;
  font-size: 15.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 26px rgba(23, 52, 4, 0.08);
  transition: transform 0.18s, background 0.18s;
}
.hero-dl:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
}

.dual-stage-wrap {
  position: relative;
  padding: 10px;
}
/* Glowing refraction aura behind hero glass */
.dual-stage-wrap::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  border-radius: 40px;
  background: linear-gradient(90deg, rgba(159, 232, 112, 0.45), rgba(154, 224, 203, 0.4), rgba(255, 186, 212, 0.38));
  filter: blur(42px);
  z-index: 0;
  animation: auraPulse 6s ease-in-out infinite alternate;
}
@keyframes auraPulse {
  0% { opacity: 0.65; transform: scale(0.97); }
  100% { opacity: 0.95; transform: scale(1.03); }
}

.dual-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 112px 1fr;
  align-items: stretch;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.34) 100%);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.98),
    inset 0 -1px 2px rgba(159, 232, 112, 0.25),
    0 32px 80px rgba(23, 52, 4, 0.14);
  overflow: hidden;
}
.dual-pane {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  background: rgba(255, 255, 255, 0.32);
  position: relative;
  z-index: 2;
}
.dual-pane.right {
  background: rgba(255, 255, 255, 0.48);
}
.dual-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 700;
}
.dual-who { display: flex; align-items: center; gap: 8px; }
.dual-role {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(23, 52, 4, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: var(--green-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dual-msgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
  gap: 10px;
  position: relative;
}
.dual-stage .msg.mine .bubble {
  background: linear-gradient(135deg, #9fe870 0%, #84db50 100%);
  box-shadow: 0 8px 22px rgba(132, 219, 80, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.dual-stage .msg.theirs .bubble {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px rgba(23, 52, 4, 0.08);
}
.dual-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 16px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 14px rgba(23, 52, 4, 0.05);
  font-size: 15px;
  color: var(--label);
  min-height: 44px;
}
.dual-composer .typewriter { flex: 1; min-height: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dual-composer .caret {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--green-text);
  vertical-align: -3px;
  animation: caretBlink 0.9s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Center Glass Portal + Soundwave Bridge + Floating Mell */
.dual-divider {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(159, 232, 112, 0.22) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(154, 224, 203, 0.25) 100%);
  border-inline: 1px solid rgba(255, 255, 255, 0.78);
  z-index: 3;
}
.portal-ring {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(159, 232, 112, 0.35) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(46, 122, 18, 0.18), 0 0 0 8px rgba(159, 232, 112, 0.14);
  animation: mellFloat 4.2s ease-in-out infinite;
}
@keyframes mellFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-9px) rotate(3deg); }
}
.mell-bridge-keeper {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(23, 52, 4, 0.18));
  transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.dual-stage.flying .portal-ring {
  box-shadow: 0 12px 34px rgba(159, 232, 112, 0.55), 0 0 0 14px rgba(159, 232, 112, 0.28);
}
.dual-stage.flying .mell-bridge-keeper {
  transform: scale(1.18) rotate(-8deg);
}
.portal-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}
.portal-wave i {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--green-text);
  opacity: 0.55;
  animation: waveBar 1.1s ease-in-out infinite;
}
.portal-wave i:nth-child(2) { animation-delay: 0.15s; height: 14px; }
.portal-wave i:nth-child(3) { animation-delay: 0.3s; height: 10px; }
.portal-wave i:nth-child(4) { animation-delay: 0.45s; height: 15px; }
.portal-wave i:nth-child(5) { animation-delay: 0.6s; height: 9px; }
@keyframes waveBar {
  0%, 100% { transform: scaleY(0.55); opacity: 0.45; }
  50% { transform: scaleY(1.25); opacity: 0.95; }
}

/* Flying morphing glass bubble across the center bridge */
.flight-bubble {
  position: absolute;
  top: 52%;
  left: 26%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 10;
  padding: 10px 18px;
  border-radius: 22px;
  background: rgba(159, 232, 112, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  color: var(--green-ink);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 18px 40px rgba(23, 52, 4, 0.25), 0 0 24px rgba(159, 232, 112, 0.65);
  pointer-events: none;
  opacity: 0;
  max-width: 290px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[dir="rtl"] .flight-bubble { left: auto; right: 26%; transform: translate(50%, -50%) scale(0.92); }
.dual-stage.flying .flight-bubble {
  animation: flyAcross 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes flyAcross {
  0% { opacity: 0; transform: translate(calc(-50% * var(--flight-dir)), -50%) scale(0.88) rotate(-4deg); }
  22% { opacity: 1; transform: translate(calc(-5% * var(--flight-dir)), -75%) scale(1.04) rotate(-2deg); }
  52% { opacity: 1; transform: translate(calc(82% * var(--flight-dir)), -82%) scale(1.08) rotate(2deg); background: rgba(255, 255, 255, 0.92); }
  100% { opacity: 0; transform: translate(calc(175% * var(--flight-dir)), -50%) scale(0.95) rotate(0deg); background: rgba(255, 255, 255, 0.95); }
}

.pair-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.pair-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  color: var(--green-ink);
  opacity: 0.76;
  transition: transform 0.15s, background 0.18s, opacity 0.18s, box-shadow 0.18s;
}
.pair-dot:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
}
.pair-dot.on {
  opacity: 1;
  background: linear-gradient(135deg, rgba(159, 232, 112, 0.65), rgba(255, 255, 255, 0.85));
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 18px rgba(46, 122, 18, 0.14);
}

/* ---------- 2. Problem / Solution: Layered Glass Polish Studio ---------- */
.polish-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
  align-items: center;
}
.raw-box, .melloq-box {
  padding: 26px;
  border-radius: 28px;
  position: relative;
}
.raw-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52) 0%, rgba(240, 242, 245, 0.34) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px dashed rgba(60, 60, 67, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 40px rgba(0, 0, 0, 0.05);
}
.melloq-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(238, 251, 228, 0.52) 100%);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.98),
    0 26px 64px rgba(23, 52, 4, 0.12),
    0 0 0 4px rgba(159, 232, 112, 0.22);
}
.box-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--secondary);
}
.melloq-box .box-tag {
  background: linear-gradient(135deg, rgba(159, 232, 112, 0.45), rgba(255, 255, 255, 0.85));
  color: var(--green-ink);
}
.raw-bubble {
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(229, 231, 235, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #4b5563;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
}
.tone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tone-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  color: var(--green-text);
}
.melloq-box .mell-peek {
  position: absolute;
  top: -34px;
  inset-inline-end: 18px;
  width: 76px;
  height: 76px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(23, 52, 4, 0.18));
  animation: mellFloat 4.8s ease-in-out infinite;
}
.melloq-box .details {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.92);
}
.tap-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--green-text);
  font-weight: 600;
}

/* ---------- 3. Core Feature: 4-Language Group Chat + Live Theme Glass ---------- */
.group-stage {
  position: relative;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.38) 100%);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.96),
    0 28px 68px rgba(23, 52, 4, 0.11);
  overflow: hidden;
  transition: background-color 0.35s ease;
}
.group-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
}
.group-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.group-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.theme-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
}
.theme-dot:hover, .theme-dot.on {
  transform: scale(1.22);
  outline: 2px solid var(--green-ink);
}
.flag-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.flag-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: var(--label);
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 0.15s, background 0.18s, box-shadow 0.18s;
}
.flag-tab:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}
.flag-tab.on {
  background: linear-gradient(135deg, #a5ef76 0%, #84db50 100%);
  color: var(--green-ink);
  border-color: #ffffff;
  box-shadow: 0 6px 18px rgba(132, 219, 80, 0.42);
}
.group-messages {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: rgba(250, 252, 247, 0.46);
  background-image: var(--chat-pattern);
  background-size: var(--chat-pattern-size, 190px 190px);
  min-height: 330px;
  transition: background-color 0.3s ease;
}
.group-messages .msg {
  transition: transform 0.25s cubic-bezier(0.2, 1.3, 0.4, 1), opacity 0.25s;
}
.group-messages.switching .msg {
  transform: translateY(4px) scale(0.985);
}

/* ---------- 4. Postcards (.pc-card + .pc-slam + 3D Levitation) ---------- */
.pc-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.pc-stage-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  perspective: 1400px;
  padding: 22px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.28) 100%);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), 0 26px 64px rgba(23, 52, 4, 0.1);
}
.pc-stage-wrap .pc-card {
  --pc-w: min(80vw, 330px);
  cursor: pointer;
}
.pc-stamp-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 390px;
}
.pc-stamp-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(23, 52, 4, 0.06);
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.16s cubic-bezier(0.2, 1.4, 0.4, 1), background 0.18s, box-shadow 0.18s;
}
.pc-stamp-pill:hover, .pc-stamp-pill.on {
  background: linear-gradient(135deg, rgba(159, 232, 112, 0.65), rgba(255, 255, 255, 0.92));
  border-color: #ffffff;
  color: var(--green-ink);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 26px rgba(46, 122, 18, 0.16);
}

/* ---------- 5. Language Bridge (.bond) ---------- */
.bridge-stage {
  position: relative;
  padding: 38px 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(238, 251, 228, 0.44) 100%);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.98),
    0 26px 64px rgba(23, 52, 4, 0.1);
  text-align: center;
}
.bridge-meter-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0 22px;
}
.bridge-meter-wrap .bond svg {
  width: min(82vw, 560px);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(111, 207, 63, 0.28));
}
[dir="rtl"] .bridge-meter-wrap .bond svg {
  transform: scaleX(-1);
}
.bridge-level-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--green-ink);
  margin: 0 0 18px;
}
.bridge-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.bridge-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: var(--secondary);
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 0.15s, background 0.18s;
}
.bridge-step:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.9); }
.bridge-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(23, 52, 4, 0.08);
  font-size: 11px;
  font-weight: 800;
}
.bridge-step.done {
  background: rgba(255, 255, 255, 0.88);
  color: var(--green-ink);
}
.bridge-step.done span {
  background: var(--green);
  color: var(--green-ink);
}
.bridge-step.current {
  background: linear-gradient(135deg, rgba(159, 232, 112, 0.55), rgba(255, 255, 255, 0.95));
  box-shadow: 0 6px 18px rgba(46, 122, 18, 0.16);
}

/* ---------- 6. Mell Stickers Kinetic Glass Constellation ---------- */
.sticker-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px 24px;
  padding: 16px 0;
}
.wall-item {
  position: relative;
  width: clamp(120px, 18vw, 156px);
  font-size: 17px;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.36) 100%);
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.96),
    0 14px 34px rgba(23, 52, 4, 0.09);
  transform: rotate(var(--rot, -2deg)) translateY(var(--dy, 0px));
  animation: stickerBob 5.2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: transform 0.25s cubic-bezier(0.2, 1.5, 0.4, 1), box-shadow 0.22s, background 0.22s;
  cursor: pointer;
  user-select: none;
}
@keyframes stickerBob {
  0%, 100% { transform: rotate(var(--rot, -2deg)) translateY(var(--dy, 0px)); }
  50% { transform: rotate(calc(var(--rot, -2deg) * -0.5)) translateY(calc(var(--dy, 0px) - 8px)); }
}
.wall-item:hover, .wall-item:focus-visible {
  animation-play-state: paused;
  transform: rotate(0deg) translateY(-10px) scale(1.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 251, 228, 0.72) 100%);
  box-shadow:
    inset 0 1px 2px #ffffff,
    0 22px 48px rgba(23, 52, 4, 0.18),
    0 0 0 4px rgba(159, 232, 112, 0.35);
  z-index: 3;
}
.wall-lang-tag {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(23, 52, 4, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(159, 232, 112, 0.5);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(23, 52, 4, 0.2);
}

/* ---------- 7. Single Timeline: Laser-Scanned Glass QR Flow ---------- */
.tl-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 20px;
  align-items: stretch;
}
.tl-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(90deg, rgba(159, 232, 112, 0.3), #5cc72a, rgba(159, 232, 112, 0.3));
  background-size: 200% 100%;
  animation: pulseBeam 2.6s linear infinite;
  z-index: 0;
  border-radius: 4px;
}
@keyframes pulseBeam {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.tl-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.4) 100%);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.96),
    0 20px 48px rgba(23, 52, 4, 0.09);
}
.tl-step-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(159, 232, 112, 0.28);
  border: 1px solid rgba(46, 122, 18, 0.18);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--green-ink);
}
.tl-node .qr-code {
  width: 152px;
  margin: 6px auto;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(23, 52, 4, 0.08);
  overflow: hidden;
}
.qr-laser {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #5cc72a, #9fe870, #5cc72a, transparent);
  box-shadow: 0 0 12px #5cc72a;
  animation: qrScan 2.4s ease-in-out infinite alternate;
}
@keyframes qrScan {
  0% { top: 14px; }
  100% { top: calc(100% - 14px); }
}
.tl-mini-join {
  text-align: center;
  padding: 10px 4px;
}
.tl-mini-join .avatar { margin-bottom: 8px; box-shadow: 0 6px 16px rgba(23, 52, 4, 0.12); }
.tl-mini-join b { display: block; font-size: 16px; margin-bottom: 10px; }

/* ---------- 8. Privacy & Self-Destructing Media (Noir Glass Night Section) ---------- */
.privacy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.privacy-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(159, 232, 112, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 32px rgba(0, 0, 0, 0.22);
  font-weight: 600;
  font-size: 16px;
}
.privacy-list .p-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, #a8f079, #7fd34f);
  color: var(--green-ink);
  box-shadow: 0 4px 14px rgba(159, 232, 112, 0.4);
}
.destruct-demo {
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.24), 0 22px 54px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.destruct-demo .bubble {
  background: rgba(36, 60, 20, 0.85);
  border: 1px solid rgba(159, 232, 112, 0.3);
  color: #eefbe4;
  cursor: default;
}
.destruct-demo .expiry { color: var(--green); font-weight: 700; }
.destruct-demo .media.gone { color: #cfe2c4; }
.destruct-photo {
  width: 230px;
  height: 144px;
  border-radius: 16px;
  overflow: hidden;
  display: block;
}

/* ---------- 9. Pricing & Credits (Glass Chat + Holographic .pro-card) ---------- */
.pricing-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: center;
}
.pricing-chat {
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.4) 100%);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.96),
    0 24px 58px rgba(23, 52, 4, 0.09);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-layout .pro-card {
  padding: 26px 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 214, 107, 0.25) 0%, transparent 45%),
    linear-gradient(155deg, rgba(15, 29, 8, 0.92), rgba(34, 64, 13, 0.88) 60%, rgba(47, 90, 18, 0.88));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1.5px solid rgba(255, 214, 107, 0.42);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    0 28px 68px rgba(15, 29, 8, 0.28);
}

/* ---------- 10. Glassmorphic Download Dock & Footer ---------- */
.dl-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 15% 20%, rgba(159, 232, 112, 0.28) 0%, transparent 48%),
    linear-gradient(135deg, rgba(20, 44, 6, 0.88) 0%, rgba(36, 74, 12, 0.84) 100%);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1.5px solid rgba(159, 232, 112, 0.42);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 26px 64px rgba(15, 29, 8, 0.22);
  color: #eefbe4;
}
.dl-card h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.dl-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btns .btn {
  border-radius: 999px;
  padding: 0 18px;
  min-height: 42px;
}
.dl-btns .btn.plain {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}
.dl-btns .btn.plain:hover { background: rgba(255, 255, 255, 0.25); }

.l-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 32px rgba(23, 52, 4, 0.06);
}
.lang-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--label);
  transition: transform 0.15s, background 0.18s;
}
.lang-pill:hover {
  background: #ffffff;
  transform: translateY(-2px);
}
.lang-pill.current {
  background: linear-gradient(135deg, #a8f079, #84db50);
  color: var(--green-ink);
  border-color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(132, 219, 80, 0.38);
}
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #536448;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a:hover { color: var(--green-text); text-decoration: underline; }

/* ---------- Responsive (Mobile Single-Pane & Touch) ---------- */
@media (max-width: 860px) {
  .l-nav-links { display: none; }
  .l-sec { padding: 48px 16px; }
  .dual-stage { grid-template-columns: 1fr; }
  .dual-divider {
    flex-direction: row;
    padding: 10px 16px;
    border-inline: 0;
    border-block: 1px solid rgba(255, 255, 255, 0.78);
  }
  .portal-ring { width: 56px; height: 56px; }
  .mell-bridge-keeper { width: 46px; height: 46px; }
  .dual-pane { min-height: 210px; }
  .flight-bubble { display: none; }
  .polish-grid, .pc-showcase, .tl-track, .privacy-layout, .pricing-layout {
    grid-template-columns: 1fr;
  }
  .tl-track::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-orb, .portal-ring, .portal-wave i, .wall-item, .qr-laser, .tl-track::before, .dual-composer .caret, .dual-stage.flying .flight-bubble {
    animation: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
