@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700&display=swap");
:root {
  --bg: #050306;
  --text: #fff9f6;
  --muted: #c7b9c0;
  --ruby: #d90638;
  --gold: #efc88e;
  --line: rgba(255, 255, 255, 0.16);
  --font: "Vazirmatn", "Manrope", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a,
button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
.skip {
  position: fixed;
  top: -80px;
  inset-inline-start: 16px;
  z-index: 300;
  padding: 11px 16px;
  border-radius: 12px;
  background: #fff;
  color: #111;
}
.skip:focus {
  top: 16px;
}
.app {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.app.is-ready {
  opacity: 1;
}
.eyebrow {
  margin: 0;
  color: var(--gold);
  font:
    600 0.72rem/1.5 "Manrope",
    sans-serif;
  letter-spacing: 0.25em;
}
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  pointer-events: none;
}
.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff8e8;
  box-shadow:
    0 0 5px #fff,
    0 0 12px rgba(255, 40, 79, 0.75);
  animation: twinkle var(--d) ease-in-out var(--delay) infinite;
}
.leaf {
  position: absolute;
  top: -10vh;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 0.72);
  opacity: 0.38;
  filter: hue-rotate(var(--hue));
  background: linear-gradient(135deg, #f2a13b, #7c1d0d);
  clip-path: polygon(
    0 47%,
    22% 34%,
    11% 12%,
    38% 24%,
    51% 0,
    62% 28%,
    94% 16%,
    76% 43%,
    100% 56%,
    66% 62%,
    72% 94%,
    48% 69%,
    24% 100%,
    29% 66%
  );
  animation: fall var(--d) linear var(--delay) infinite;
}
.language-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: auto;
  background:
    linear-gradient(rgba(3, 1, 4, 0.42), rgba(3, 1, 4, 0.82)),
    url("assets/hero-clean-v4.webp") center 24% / cover no-repeat;
  transition:
    opacity 0.55s,
    visibility 0.55s;
}
.language-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 28%,
    transparent,
    rgba(3, 1, 4, 0.36) 48%,
    #050306 100%
  );
  pointer-events: none;
}
.language-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gate-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 38px 32px 32px;
  text-align: center;
  border: 1px solid rgba(255, 215, 225, 0.24);
  border-radius: 34px;
  background: linear-gradient(
    150deg,
    rgba(38, 7, 17, 0.88),
    rgba(8, 5, 9, 0.94)
  );
  box-shadow:
    0 40px 100px #000,
    inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}
.gate-logo {
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin: 0 auto 22px;
  padding: 16px;
  border: 1px solid rgba(255, 84, 119, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 28%, #3b101c, #090609 72%);
  filter: drop-shadow(0 0 13px rgba(229, 0, 52, 0.65));
}
.gate-panel h1 {
  margin: 12px 0 5px;
  font-size: clamp(1.75rem, 5vw, 2.55rem);
  font-weight: 500;
}
.gate-panel > p:not(.eyebrow) {
  margin: 0 0 25px;
  color: var(--muted);
}
.language-list {
  display: grid;
  gap: 11px;
}
.language-list button {
  min-height: 60px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  text-align: start;
  transition: 0.25s;
}
.language-list b {
  font-size: 1rem;
}
.language-list small {
  color: #a99da4;
  font-size: 0.78rem;
}
.language-list .flag {
  font-size: 1.35rem;
}
.language-list button:hover,
.language-list button:focus-visible,
.language-list button.is-active {
  outline: none;
  border-color: rgba(255, 71, 108, 0.75);
  background: linear-gradient(
    90deg,
    rgba(188, 0, 42, 0.36),
    rgba(255, 255, 255, 0.05)
  );
  transform: translateY(-2px);
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: #050306;
}
.hero-art {
  position: absolute;
  inset: 0;
  background: url("assets/hero-clean-v4.webp") center/cover no-repeat;
  transform: scale(1.008);
  animation: sceneBreath 18s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(2, 1, 3, 0.1),
      transparent 56%,
      rgba(5, 3, 6, 0.18) 76%,
      #050306 100%
    ),
    radial-gradient(circle at center, transparent 38%, rgba(2, 1, 3, 0.42) 100%);
}
.hero-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(22px, env(safe-area-inset-top)) clamp(18px, 4vw, 58px);
  direction: ltr;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.18));
}
.brand b {
  display: block;
  font:
    500 1.4rem/1 Georgia,
    serif;
}
.brand small {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font: 600 0.56rem/1 "Manrope";
  letter-spacing: 0.32em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language-switch,
.menu-button {
  height: 48px;
  border: 1px solid rgba(255, 135, 160, 0.34);
  background: rgba(7, 4, 8, 0.5);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 10px 35px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.language-switch {
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 999px;
}
.active-flag {
  font-size: 1.35rem;
}
.active-language {
  font-weight: 500;
}
.menu-button {
  width: 48px;
  display: grid;
  place-content: center;
  gap: 5px;
  border-radius: 50%;
}
.menu-button i {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}
.portal-glow {
  position: absolute;
  z-index: 2;
  top: 8.5%;
  left: 50%;
  width: clamp(92px, 16vw, 220px);
  height: 37%;
  transform: translateX(-50%);
  opacity: 0.72;
  isolation: isolate;
  mix-blend-mode: screen;
  pointer-events: none;
}
.portal-glow::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2% 0 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 43%, rgba(255, 232, 197, 0.25) 0, rgba(255, 52, 76, 0.19) 18%, rgba(188, 0, 40, 0.1) 40%, transparent 70%);
  filter: blur(13px);
  transform: scale3d(0.72, 0.91, 1);
  animation: portalBreath 7.6s ease-in-out infinite;
}
.portal-glow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4%;
  bottom: 3%;
  width: clamp(2px, 0.3vw, 4px);
  border-radius: 999px;
  background: linear-gradient(180deg, transparent 0, rgba(255, 215, 154, 0.55) 10%, rgba(255, 250, 229, 0.96) 32%, rgba(255, 236, 210, 0.92) 58%, rgba(255, 50, 78, 0.58) 84%, transparent 100%);
  box-shadow: 0 0 5px rgba(255, 250, 229, 0.78), 0 0 15px rgba(255, 105, 90, 0.48), 0 0 34px rgba(202, 0, 41, 0.27);
  filter: blur(0.35px);
  transform: translateX(-50%) scaleY(0.96);
  transform-origin: center;
  animation: portalCore 7.6s ease-in-out infinite;
}
.portal-glow i {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 14px;
  height: 24%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 229, 178, 0.86) 42%, rgba(255, 255, 244, 0.95) 56%, transparent);
  filter: blur(2px);
  opacity: 0;
  transform: translate3d(-50%, 0, 0) scaleY(0.7);
  animation: portalRise 9.4s cubic-bezier(0.38, 0, 0.22, 1) infinite;
}
.hero-content {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 66%;
  width: min(670px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 0 5px 32px #000;
}
.crystal-logo {
  display: block;
  width: clamp(88px, 12vw, 145px);
  height: auto;
  margin: 0 auto 9px;
  filter: drop-shadow(0 0 18px rgba(255, 61, 34, 0.54));
  animation: logoFloat 5.8s ease-in-out infinite;
}
.hero-kicker {
  margin: 0;
  color: #f0d09f;
  font: 500 clamp(0.65rem, 1.2vw, 0.85rem) / 1.4 "Manrope";
  letter-spacing: 0.31em;
}
.hero h1 {
  margin: 4px 0 8px;
  font:
    400 clamp(4.4rem, 10vw, 8rem) / 0.95 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.07em;
}
.hero-copy {
  margin: 0 auto;
  color: #fff7f3;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
}
.ornament {
  width: min(320px, 70%);
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px auto;
}
.ornament i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament i:last-child {
  transform: scaleX(-1);
}
.ornament b {
  color: #fff0cf;
  font-size: 1.25rem;
  text-shadow: 0 0 15px #ff6b24;
}
.primary-cta {
  position: relative;
  min-width: min(470px, 92%);
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 8px 25px;
  border: 1px solid rgba(255, 213, 154, 0.86);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(188, 0, 42, 0.93),
    rgba(112, 0, 26, 0.93)
  );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    0 0 26px rgba(255, 20, 60, 0.5),
    0 18px 55px rgba(0, 0, 0, 0.5);
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.08rem, 2.4vw, 1.5rem);
  font-weight: 500;
  overflow: hidden;
  transition: 0.3s;
}
.primary-cta::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 18%;
  right: 18%;
  height: 8px;
  border-radius: 50%;
  background: #fff4d8;
  filter: blur(4px);
  opacity: 0.9;
}
.cta-orb {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.cta-orb img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255,95,45,.45)); }
.primary-cta:hover,
.primary-cta:focus-visible {
  outline: none;
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.25),
    0 0 38px rgba(255, 24, 67, 0.75),
    0 22px 60px rgba(0, 0, 0, 0.55);
}
.worlds {
  position: relative;
  max-width: 1420px;
  margin: auto;
  padding: 105px clamp(22px, 5vw, 70px);
  background: #050306;
}
.worlds::before {
  content: "";
  position: absolute;
  inset: 0 8% auto;
  height: 420px;
  z-index: 0;
  background: radial-gradient(ellipse, rgba(136, 0, 35, 0.2), transparent 68%);
  filter: blur(35px);
}
.worlds-heading {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 48px;
}
.worlds-heading h2 {
  margin: 9px 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}
.worlds-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}
.world-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.world-card {
  position: relative;
  isolation: isolate;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 30px;
  background: #100810;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.42);
  transition:
    transform 0.4s,
    border-color 0.4s,
    box-shadow 0.4s;
}
.world-card picture,
.world-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.world-card img {
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.8s,
    filter 0.5s;
}
.anarboom-card img {
  object-position: right center;
}
.future-card {
  background:
    radial-gradient(circle at 76% 28%, rgba(181,20,54,.36), transparent 27%),
    radial-gradient(circle at 70% 70%, rgba(211,145,52,.13), transparent 31%),
    linear-gradient(135deg,#17070c,#050305 68%);
}
.future-card picture { transform:scaleX(-1); }
[dir="rtl"] .future-card picture { transform:none; }
.future-card > picture img { object-position:center; }
.future-card::before { content:""; position:absolute; inset:0; background-image:radial-gradient(circle,rgba(255,255,255,.52) 0 1px,transparent 1.5px); background-size:83px 79px; opacity:.16; }
.future-art { position:absolute; z-index:0; inset-inline-end:7%; top:50%; width:min(45%,300px); aspect-ratio:1; transform:translateY(-50%); border:1px solid rgba(237,190,104,.22); border-radius:42% 58% 54% 46%; box-shadow:inset 0 0 55px rgba(180,17,48,.24),0 0 70px rgba(118,0,31,.18); }
.future-art::before,.future-art::after,.future-art i { content:""; position:absolute; display:block; }
.future-art--bag::before { left:25%; top:32%; width:50%; height:45%; border:3px solid #d8a957; border-radius:15px 15px 28px 28px; background:linear-gradient(145deg,rgba(142,7,34,.72),rgba(35,4,12,.72)); box-shadow:0 0 25px rgba(222,154,55,.22),inset 0 0 20px rgba(255,80,80,.12); }
.future-art--bag::after { left:37%; top:20%; width:26%; height:25%; border:3px solid #d8a957; border-bottom:0; border-radius:50% 50% 0 0; }
.future-art--bag i { left:49%; top:45%; width:8px; height:25px; border-radius:9px; background:linear-gradient(#fff0b2,#b47422); box-shadow:0 0 15px #d59a41; }
.future-art--table::before { left:17%; top:32%; width:66%; height:16%; border:3px solid #d8a957; border-radius:50%; background:linear-gradient(90deg,rgba(81,4,20,.9),rgba(188,22,52,.8),rgba(81,4,20,.9)); box-shadow:0 10px 24px rgba(0,0,0,.65),0 0 22px rgba(222,154,55,.18); }
.future-art--table::after { left:48%; top:47%; width:4%; height:31%; background:linear-gradient(#d9a44d,#71360d); box-shadow:-46px 20px 0 -1px #9a5b22,46px 20px 0 -1px #9a5b22; }
.future-art--table i { left:28%; top:76%; width:44%; height:4px; border-radius:50%; background:#d8a957; box-shadow:0 0 16px rgba(222,154,55,.3); }
.future-monogram { display:grid; place-items:center; width:58px; height:58px; margin-bottom:14px; border:1px solid rgba(242,203,133,.55); border-radius:17px; background:linear-gradient(145deg,rgba(126,0,31,.86),rgba(22,5,11,.9)); color:#f5d89a; font:600 1.7rem/1 Georgia,serif; box-shadow:0 8px 24px #000,inset 0 1px rgba(255,255,255,.15); }
.card-icon--future {
  width:68px !important;
  height:68px !important;
  margin-bottom:12px;
  opacity:1;
  animation:boomLogoFloat 5.8s ease-in-out infinite;
  filter:drop-shadow(0 5px 10px rgba(0,0,0,.8)) drop-shadow(0 0 12px rgba(209,39,51,.32));
}
.card-icon--ecosystem {
  width:68px !important;
  height:68px !important;
  margin-bottom:12px;
  opacity:1;
  animation:boomLogoFloat 5.8s ease-in-out infinite;
  filter:drop-shadow(0 5px 10px rgba(0,0,0,.8)) drop-shadow(0 0 14px rgba(209,39,51,.36));
}

/* Optical logo system: every card logo shares one safe, perceptually matched box. */
.card-icon--boom,
.card-icon--future,
.card-icon--ecosystem {
  width: 80px !important;
  height: 80px !important;
  max-width: 80px;
  max-height: 80px;
  flex: 0 0 80px;
  object-fit: contain !important;
  object-position: center;
}

.chain-lock { position:absolute; z-index:5; inset:50% 12% auto; height:58px; transform:translateY(-50%); display:flex; align-items:center; justify-content:center; pointer-events:none; opacity:.94; }
.chain-lock > i { flex:1; height:10px; opacity:.42; background:repeating-linear-gradient(90deg,transparent 0 7px,#c4923f 8px 12px,transparent 13px 19px); filter:drop-shadow(0 2px 3px #000); }
.chain-lock b { position:relative; width:48px; height:40px; border-radius:10px 10px 13px 13px; background:linear-gradient(135deg,#fff0af,#c27c23 45%,#ffe09a 72%,#7e400e); box-shadow:0 0 26px rgba(222,163,67,.38),0 8px 18px #000; }
.chain-lock b::before { content:""; position:absolute; left:50%; bottom:31px; width:27px; height:25px; border:6px solid #d7a34a; border-bottom:0; border-radius:18px 18px 0 0; transform:translateX(-50%); }
.chain-lock b::after { content:""; position:absolute; left:50%; top:14px; width:6px; height:13px; border-radius:5px; background:#4c1c07; transform:translateX(-50%); }
[dir="rtl"] .future-art { transform:translateY(-50%) scaleX(-1); }
.card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(4, 3, 5, 0.97),
      rgba(4, 3, 5, 0.78) 38%,
      rgba(4, 3, 5, 0.13) 73%,
      transparent
    ),
    linear-gradient(0deg, rgba(4, 3, 5, 0.48), transparent 65%);
}
.card-icon {
  position: static !important;
  display: block;
  width: 54px !important;
  height: 54px !important;
  margin: 0 0 15px;
  object-fit: contain !important;
  opacity: .88;
  filter:
    saturate(.88)
    drop-shadow(0 4px 8px rgba(0, 0, 0, .72))
    drop-shadow(0 0 8px rgba(190, 29, 36, .24));
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}
.world-card:hover .card-icon {
  transform: translateY(-2px) scale(1.025);
  opacity: 1;
  filter:
    drop-shadow(0 4px 9px rgba(0, 0, 0, .7))
    drop-shadow(0 0 12px rgba(255, 83, 54, .38));
}
.card-icon--boom {
  width: 64px !important;
  height: 64px !important;
  margin-bottom: 14px;
  opacity: .98;
  filter:
    saturate(.94)
    drop-shadow(0 5px 10px rgba(0, 0, 0, .72))
    drop-shadow(0 0 10px rgba(184, 16, 43, .26));
  transform-origin: 50% 58%;
  animation: boomLogoFloat 5.8s ease-in-out infinite;
}
@keyframes boomLogoFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -3px, 0); }
}
.card-copy {
  position: absolute;
  z-index: 3;
  left: 29px;
  bottom: 29px;
  width: min(56%, 370px);
  text-align: left;
}
.card-label {
  color: var(--gold);
  font: 600 0.67rem/1 "Manrope";
  letter-spacing: 0.22em;
}
.card-copy h3 {
  margin: 10px 0 9px;
  font: 500 clamp(1.55rem, 3vw, 2.4rem) / 1 "Manrope";
  letter-spacing: -0.045em;
}
.card-copy p {
  margin: 0;
  color: #d0c3ca;
  font-size: 0.92rem;
  line-height: 1.75;
}
.card-action {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.card-action b {
  font-size: 0.82rem;
}
.card-action i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  font-style: normal;
  transition: 0.3s;
}
.soon {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 14px;
  border: 1px solid rgba(105, 216, 255, 0.32);
  border-radius: 15px;
  background: rgba(53, 152, 196, 0.12);
  color: #b3eaff;
  font-size: 0.76rem;
}
.world-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 208, 220, 0.5);
  box-shadow:
    0 35px 95px rgba(0, 0, 0, 0.55),
    0 0 38px rgba(187, 0, 44, 0.16);
}
.world-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}
.world-card:hover .card-action i {
  background: #fff;
  color: #111;
  transform: translate(3px, -3px);
}
.world-ai {
  opacity: 0.9;
}
.locked-card {
  cursor: pointer;
}
.locked-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 2, 5, 0.08), rgba(5, 2, 5, 0.22));
  pointer-events: none;
}
.lock-seal {
  position: absolute;
  z-index: 5;
  top: 27px;
  inset-inline-start: 29px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 13px 15px 9px;
  border: 1px solid rgba(244, 205, 139, 0.38);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(38, 14, 16, 0.88), rgba(10, 6, 8, 0.86));
  box-shadow: 0 13px 34px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 246, 220, 0.1);
  backdrop-filter: blur(9px);
}
.lock-seal i,
.locked-emblem i {
  position: relative;
  display: block;
  width: 29px;
  height: 24px;
  border-radius: 6px 6px 8px 8px;
  background: linear-gradient(135deg, #fff1bd 0%, #d99a37 44%, #ffe2a0 72%, #9d5c17 100%);
  box-shadow: 0 0 18px rgba(237, 180, 76, 0.34), inset 0 1px rgba(255, 255, 255, 0.72);
}
.lock-seal i::before,
.locked-emblem i::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 17px;
  height: 17px;
  border: 4px solid #e5ad50;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  transform: translateX(-50%);
}
.lock-seal i::after,
.locked-emblem i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #481b0a;
  transform: translateX(-50%);
}
.lock-seal b {
  color: #f4d39a;
  font-size: 0.58rem;
  font-weight: 600;
  white-space: nowrap;
}
.locked-action i {
  border-color: rgba(239, 200, 140, 0.48);
  color: var(--gold);
}
.locked-card:hover {
  border-color: rgba(239, 200, 140, 0.52);
}
.locked-card:hover .lock-seal {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(220, 157, 57, 0.16);
}
.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 22px 110px;
  color: #9f939a;
  text-align: center;
}
.signature span {
  width: min(150px, 15vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.24),
    transparent
  );
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 34px clamp(22px, 5vw, 70px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #82777e;
  font-size: 0.75rem;
}
footer div {
  display: flex;
  align-items: center;
  gap: 14px;
}
footer b {
  color: #e2d9dd;
  font: 600 1rem/1 "Manrope";
}
footer p {
  margin: 0;
  font-family: "Manrope";
}
.install-fab {
  position: static;
  min-width: 142px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 203, 169, 0.38);
  border-radius: 999px;
  background: linear-gradient(
    145deg,
    rgba(126, 0, 31, 0.96),
    rgba(36, 5, 15, 0.96)
  );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.14),
    0 10px 32px rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: 0.3s;
}
.install-fab:hover,
.install-fab:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: rgba(255, 221, 189, 0.8);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    0 18px 48px #000,
    0 0 32px rgba(217, 6, 56, 0.48);
}
.install-fab img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.install-fab span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  text-align: start;
  line-height: 1.2;
}
.install-fab small {
  color: #e7bda9;
  font-size: 0.62rem;
}
.install-fab b {
  margin-top: 0;
  font-size: 0.82rem;
}
.install-fab > i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-inline-start: auto;
  border-radius: 50%;
  background: #fff0d8;
  color: #2a0710;
  font-style: normal;
  font-weight: 700;
}
.install-fab.is-installed {
  display: none;
}
.install-dialog {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.28s;
}
.install-dialog.is-open {
  opacity: 1;
  visibility: visible;
}
.locked-dialog {
  position: fixed;
  inset: 0;
  z-index: 410;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.28s;
}
.locked-dialog.is-open {
  opacity: 1;
  visibility: visible;
}
.locked-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 1, 3, 0.82);
  backdrop-filter: blur(12px);
}
.locked-panel {
  position: relative;
  width: min(450px, 100%);
  padding: 42px 29px 28px;
  overflow: hidden;
  border: 1px solid rgba(239, 200, 140, 0.42);
  border-radius: 31px;
  background: radial-gradient(circle at 50% 0, rgba(131, 56, 11, 0.2), transparent 37%), linear-gradient(150deg, #280b12, #10070b 57%, #070507);
  box-shadow: 0 42px 120px #000, 0 0 48px rgba(200, 135, 38, 0.12), inset 0 1px rgba(255, 244, 218, 0.1);
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: 0.34s;
}
.locked-dialog.is-open .locked-panel {
  transform: none;
}
.locked-close {
  position: absolute;
  top: 15px;
  inset-inline-end: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 1.45rem;
}
.locked-emblem {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 5px auto 22px;
  border: 1px solid rgba(239, 200, 140, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 85, 18, 0.2), rgba(20, 8, 11, 0.9) 68%);
  box-shadow: 0 0 35px rgba(221, 160, 62, 0.16);
}
.locked-emblem i {
  width: 34px;
  height: 28px;
}
.locked-emblem i::before {
  bottom: 21px;
  width: 20px;
  height: 20px;
}
.locked-panel h2 {
  margin: 12px 0 9px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 500;
}
.locked-panel > p:not(.eyebrow) {
  max-width: 360px;
  margin: 0 auto 25px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}
.locked-confirm {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(239, 205, 151, 0.64);
  border-radius: 18px;
  background: linear-gradient(180deg, #a66a20, #6d380f);
  box-shadow: 0 12px 34px rgba(89, 43, 8, 0.38), inset 0 1px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-weight: 600;
}
.install-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 1, 3, 0.78);
  backdrop-filter: blur(11px);
}
.install-panel {
  position: relative;
  width: min(470px, 100%);
  padding: 34px 28px 28px;
  border: 1px solid rgba(255, 205, 184, 0.28);
  border-radius: 30px;
  background: linear-gradient(150deg, #310914 0%, #12070c 54%, #080608 100%);
  box-shadow:
    0 35px 110px #000,
    inset 0 1px rgba(255, 255, 255, 0.09);
  text-align: center;
  transform: translateY(18px) scale(0.98);
  transition: 0.35s;
}
.install-dialog.is-open .install-panel {
  transform: none;
}
.install-close {
  position: absolute;
  top: 15px;
  inset-inline-end: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.install-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin: 0 auto 17px;
  padding: 14px;
  border: 1px solid rgba(255, 89, 118, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle, #661128, #13070c 72%);
  filter: drop-shadow(0 0 14px rgba(236, 8, 61, 0.45));
}
.install-panel h2 {
  margin: 11px 0 6px;
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 500;
}
.install-lead {
  margin: 0 auto 23px;
  max-width: 360px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}
.install-steps {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  text-align: start;
}
.install-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.045);
}
.install-steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(207, 8, 51, 0.22);
  color: #f2c18e;
  font: 0.66rem/1 "Manrope";
}
.install-steps span {
  font-size: 0.86rem;
  line-height: 1.65;
}
.install-confirm {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(255, 218, 166, 0.7);
  border-radius: 18px;
  background: linear-gradient(180deg, #c70a38, #76001f);
  box-shadow: 0 10px 30px rgba(131, 0, 32, 0.38);
  cursor: pointer;
  font-weight: 600;
}
.install-confirm b {
  font-size: 1.35rem;
}
.dialog-open {
  overflow: hidden;
}
.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 8, 13, 0.94);
  box-shadow: 0 14px 45px #000;
  transform: translate(-50%, 30px);
  opacity: 0;
  transition: 0.3s;
  text-align: center;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
[dir="rtl"] .world-card picture {
  transform: scaleX(-1);
}
[dir="rtl"] .card-shade {
  transform: scaleX(-1);
}
[dir="rtl"] .world-card:hover .card-icon {
  transform: translateY(-2px) scale(1.025);
}
[dir="ltr"] .instagram-card picture {
  transform: scaleX(-1);
}
[dir="rtl"] .instagram-card picture {
  transform: none;
}
/* QifNar / MizNar: English keeps the current composition; FA and AR mirror it. */
[dir="rtl"] .qifnar-card picture,
[dir="rtl"] .miznar-card picture {
  transform: none;
}
[dir="rtl"] .card-copy {
  left: auto;
  right: 29px;
  text-align: right;
}
[dir="rtl"] .world-card:hover .card-action i {
  transform: translate(-3px, -3px);
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.08;
    transform: scale(0.5);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.3);
  }
}
@keyframes fall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0);
  }
  45% {
    transform: translate3d(var(--drift), 52vh, 0) rotate(230deg);
  }
  100% {
    transform: translate3d(calc(var(--drift) * -0.3), 112vh, 0) rotate(520deg);
  }
}
@keyframes sceneBreath {
  to {
    transform: scale(1.035);
  }
}
@keyframes portalBreath {
  0%, 100% { opacity: 0.38; transform: scale3d(0.72, 0.91, 1); }
  48% { opacity: 0.67; transform: scale3d(0.84, 1.01, 1); }
}
@keyframes portalCore {
  0%, 100% { opacity: 0.66; transform: translateX(-50%) scaleY(0.96); }
  48% { opacity: 0.92; transform: translateX(-50%) scaleY(1.015); }
}
@keyframes portalRise {
  0%, 22% { opacity: 0; transform: translate3d(-50%, 15%, 0) scaleY(0.58); }
  38% { opacity: 0.55; }
  62% { opacity: 0.16; }
  76%, 100% { opacity: 0; transform: translate3d(-50%, -280%, 0) scaleY(1.05); }
}
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-0.3deg);
    filter: drop-shadow(0 0 12px rgba(255, 61, 34, 0.38));
  }
  50% {
    transform: translateY(-7px) rotate(0.3deg);
    filter: drop-shadow(0 0 26px rgba(255, 74, 35, 0.72));
  }
}
@media (max-width: 760px) {
  .future-art { inset-inline-end:2%; width:53%; opacity:.9; }
  .chain-lock { inset-inline:9%; top:48%; }
  .future-monogram { width:50px; height:50px; font-size:1.45rem; }
  .card-icon--future { width:58px !important; height:58px !important; }
  .card-icon--ecosystem { width:58px !important; height:58px !important; }
  .hero {
    min-height: 100svh;
  }
  .hero-art {
    background-position: center top;
  }
  .hero-header {
    padding: 18px 16px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand b {
    font-size: 1.05rem;
  }
  .brand small {
    font-size: 0.45rem;
  }
  .header-actions {
    gap: 8px;
  }
  .language-switch {
    min-width: 112px;
    height: 42px;
    padding: 0 12px;
    gap: 8px;
    font-size: 0.78rem;
  }
  .active-flag {
    font-size: 1.08rem;
  }
  .menu-button {
    width: 42px;
    height: 42px;
  }
  .hero-content {
    top: 67%;
    width: calc(100% - 28px);
  }
  .crystal-logo {
    width: 94px;
    margin-bottom: 6px;
  }
  .hero-kicker {
    font-size: 0.59rem;
    letter-spacing: 0.24em;
  }
  .hero h1 {
    font-size: clamp(4rem, 18vw, 5.7rem);
  }
  .hero-copy {
    max-width: 340px;
    font-size: 0.9rem;
  }
  .ornament {
    margin: 15px auto;
    width: 66%;
  }
  .primary-cta {
    min-width: min(390px, 92%);
    min-height: 64px;
    gap: 20px;
    padding: 7px 20px;
    font-size: 1.05rem;
  }
  .cta-orb {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }
  .portal-glow {
    top: 10.5%;
    width: clamp(88px, 27vw, 150px);
    height: 31%;
    opacity: 0.68;
  }
  .worlds {
    padding: 82px 16px 88px;
  }
  .worlds-heading {
    margin-bottom: 32px;
    padding-inline: 5px;
  }
  .worlds-heading h2 {
    font-size: 2.25rem;
  }
  .worlds-heading > p:last-child {
    font-size: 0.88rem;
  }
  .world-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .world-card {
    min-height: 310px;
    border-radius: 25px;
  }
  .card-icon {
    width: 46px !important;
    height: 46px !important;
    margin-bottom: 12px;
  }
  .card-icon--boom {
    width: 56px !important;
    height: 56px !important;
  }
  .card-icon--boom,
  .card-icon--future,
  .card-icon--ecosystem {
    width: 68px !important;
    height: 68px !important;
    max-width: 68px;
    max-height: 68px;
    flex-basis: 68px;
  }
  .card-copy {
    left: 21px;
    bottom: 21px;
    width: 61%;
  }
  .card-copy h3 {
    font-size: 1.5rem;
  }
  .card-copy p {
    font-size: 0.79rem;
  }
  .card-action,
  .soon {
    margin-top: 14px;
  }
  [dir="rtl"] .card-copy {
    left: auto;
    right: 21px;
  }
  .world-card:hover {
    transform: none;
  }
  .world-card:hover img {
    transform: none;
  }
  .world-card:active {
    transform: scale(0.99);
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
  footer div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .gate-panel {
    padding: 32px 18px;
  }
  .gate-logo {
    width: 66px;
    height: 66px;
  }
  .install-fab {
    min-width: 105px;
    width: auto;
    height: 42px;
    padding: 5px 9px;
    justify-content: center;
  }
  .install-fab img {
    display: block;
    width: 28px;
    height: 28px;
  }
  .install-fab span {
    display: flex;
  }
  .install-fab small { display:none; }
  .install-fab b { margin:0; font-size:.72rem; white-space:nowrap; }
  .install-fab > i {
    display:none;
  }
  .install-panel {
    padding: 31px 18px 20px;
    border-radius: 26px;
  }
  .install-logo {
    width: 60px;
    height: 60px;
  }
  .install-steps li {
    min-height: 54px;
  }
  .primary-cta {
    min-width: min(340px, 82%);
    min-height: 56px;
    gap: 14px;
    padding: 5px 16px;
    font-size: 0.96rem;
  }
  .cta-orb {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }
}
@media (max-width: 390px) {
  .brand span {
    display: none;
  }
  .hero-content {
    top: 68%;
  }
  .hero h1 {
    font-size: 4rem;
  }
  .primary-cta {
    min-height: 54px;
  }
  .world-card {
    min-height: 250px;
  }
  .card-copy h3 {
    font-size: 1.32rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .atmosphere {
    display: none;
  }
  .portal-glow::before {
    opacity: 0.46;
    transform: scale3d(0.76, 0.95, 1);
  }
  .portal-glow::after {
    opacity: 0.76;
  }
  .portal-glow i {
    display: none;
  }
}

/* Responsive stability pass — keep every header control whole. */
.hero-header,
.hero-header * { min-width: 0; }
.hero-header {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  gap: clamp(10px, 2vw, 28px);
}
.brand { flex: 0 1 auto; }
.brand span { min-width: 0; }
.header-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
.language-switch,
.install-fab,
.menu-button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.hero-content,
.worlds-heading,
.card-copy { min-width: 0; }
.hero h1,
.hero-copy,
.worlds-heading h2,
.worlds-heading p,
.card-copy h3,
.card-copy p { overflow-wrap: anywhere; }

@media (max-width: 1120px) {
  .hero-header { padding-inline: clamp(18px, 3vw, 34px); }
  .brand img { width: 46px; height: 46px; }
  .brand b { font-size: 1.15rem; }
  .language-switch { min-width: 126px; padding-inline: 14px; }
  .install-fab { min-width: 112px; }
}

@media (max-width: 900px) {
  .hero-header { gap: 10px; }
  .brand small { display: none; }
  .language-switch { min-width: 104px; gap: 8px; padding-inline: 12px; }
  .install-fab { min-width: 92px; justify-content: center; padding-inline: 14px; }
  .install-fab > i { display: none; }
}

@media (max-width: 640px) {
  .hero-header {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-inline: 14px;
  }
  .brand span { display: none; }
  .header-actions { gap: 6px; }
  .language-switch { min-width: 92px; height: 42px; padding-inline: 10px; }
  .install-fab { min-width: 74px; height: 42px; padding-inline: 12px; }
  .menu-button { width: 42px; height: 42px; }
  .primary-cta { width: min(100%, 390px); min-width: 0; }
}

@media (max-width: 390px) {
  .hero-header { padding-inline: 10px; }
  .brand img { width: 36px; height: 36px; }
  .language-switch { min-width: 82px; padding-inline: 8px; gap: 6px; }
  .active-language { font-size: .72rem; }
  .active-flag { font-size: .95rem; }
  .install-fab { min-width: 62px; padding-inline: 9px; }
  .menu-button { width: 40px; height: 40px; }
}

/* Final card-logo guard: text wrapping must never push a logo outside its card. */
.world-card .card-copy {
  top: 38px;
  bottom: 29px;
  display: flex;
  min-height: 0;
  padding-top: 94px;
  flex-direction: column;
  justify-content: flex-end;
}
.world-card .card-copy > :is(.card-icon--boom, .card-icon--future, .card-icon--ecosystem) {
  position: absolute !important;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 80px !important;
  height: 80px !important;
  max-width: 80px;
  max-height: 80px;
  margin: 0;
  object-fit: contain !important;
  object-position: center;
}
.world-card .card-copy > .card-label {
  position: absolute;
  inset-block-start: 29px;
  inset-inline-start: 94px;
  max-width: calc(100% - 94px);
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.world-card .card-copy > h3 {
  margin-top: 0;
}

@media (max-width: 760px) {
  .world-card .card-copy {
    top: 36px;
    bottom: 21px;
    padding-top: 80px;
  }
  .world-card .card-copy > :is(.card-icon--boom, .card-icon--future, .card-icon--ecosystem) {
    width: 68px !important;
    height: 68px !important;
    max-width: 68px;
    max-height: 68px;
  }
  .world-card .card-copy > .card-label {
    inset-block-start: 22px;
    inset-inline-start: 80px;
    max-width: calc(100% - 80px);
    font-size: .64rem;
  }
  .world-card .card-copy > h3 {
    font-size: clamp(1.22rem, 5vw, 1.5rem);
    line-height: 1.08;
  }
}

/* v6.16 — short laptop displays: keep the complete CTA inside the hero. */
@media (min-width: 761px) and (max-height: 900px) {
  .hero { min-height: max(680px, 100svh); }
  .hero-content { top: 58%; }
  .crystal-logo { width: clamp(78px, 11vh, 112px); margin-bottom: 4px; }
  .hero h1 { font-size: clamp(4rem, 13vh, 6.35rem); }
  .ornament { margin-block: 12px; }
  .primary-cta { min-height: 62px; }
  .cta-orb { width: 48px; height: 48px; }
}

@media (min-width: 761px) and (max-height: 720px) {
  .hero-content { top: 54%; }
  .crystal-logo { width: 76px; }
  .hero h1 { font-size: 4.35rem; }
  .hero-copy { font-size: .98rem; }
}
