:root {
  --obsidian: #0b0f17;
  --midnight: #121a2b;
  --ink: #071018;
  --text: #f4f7ff;
  --muted: #9aa8c7;
  --dim: #6b7a99;
  --cyan: #00d4e8;
  --indigo: #4facfe;
  --accent: #2bb8ff;
  --border: rgba(255, 255, 255, 0.12);
  --font: "Outfit", "PingFang SC", "Hiragino Sans", "Noto Sans SC", "Noto Sans Arabic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --display: Syne, "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: #0b0f17;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeSpeed;
}

a { color: inherit; text-decoration: none; }
code { font-size: 0.92em; color: var(--cyan); }

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, rgba(0, 212, 232, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(79, 172, 254, 0.12), transparent 55%),
    linear-gradient(165deg, #152038 0%, var(--obsidian) 48%, #070a10 100%);
  contain: strict;
}
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-a {
  width: 52vw;
  height: 52vw;
  top: -16%;
  left: -10%;
  background: radial-gradient(circle, rgba(0, 212, 232, 0.22), transparent 68%);
}
.blob-b {
  width: 46vw;
  height: 46vw;
  top: 8%;
  right: -12%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.18), transparent 68%);
  animation-delay: -6s;
}
.grid-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 72% 40%, black 10%, transparent 68%);
  opacity: 0.65;
}
.hero-portal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.portal-arch {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawPortal 2.4s ease-out forwards 0.2s;
}
.portal-u {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards 0.9s;
}
.portal-pulse {
  transform-origin: 400px 400px;
  animation: pulseSoft 4.5s ease-in-out infinite 1.4s;
}

.nav, main, .footer { position: relative; z-index: 1; }

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  background: rgba(11, 15, 23, 0.88);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}
@supports (backdrop-filter: blur(8px)) {
  .nav {
    background: rgba(11, 15, 23, 0.62);
    backdrop-filter: blur(10px);
  }
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-mark {
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
  transition: transform 0.35s ease;
}
.brand-lockup:hover .brand-mark {
  transform: scale(1.05);
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.brand-lockup .wordmark { font-size: 1.45rem; }
.wm-who {
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wm-u { color: var(--text); }
.wm-ru { color: var(--text); } /* legacy alias */

.nav-links { display: none; gap: 0.2rem; margin-inline-start: 1.25rem; }
.nav-links a, .link, .footer-links a {
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-links a:hover, .link:hover, .footer-links a:hover { color: var(--text); }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 0.4rem; }

.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  border-color: rgba(0, 242, 254, 0.45);
  background: rgba(0, 242, 254, 0.08);
  transform: translateY(-1px);
}
.lang-globe { display: block; }
.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  inset-inline-end: 0;
  min-width: 240px;
  max-height: min(78vh, 520px);
  overflow: auto;
  padding: 0.4rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(13, 18, 30, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  z-index: 40;
}
@supports (backdrop-filter: blur(12px)) {
  .lang-menu {
    background: rgba(13, 18, 30, 0.86);
    backdrop-filter: blur(14px);
  }
}
.lang-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: start;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.lang-native { min-width: 0; }
.lang-id {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lang-option:hover,
.lang-option:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.lang-option[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(0, 212, 232, 0.16), rgba(79, 172, 254, 0.14));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 212, 232, 0.18);
}
.btn-ghost {
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  padding: 3rem clamp(1.25rem, 4vw, 3.5rem) 4rem;
  overflow: hidden;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}
.a1 { background: linear-gradient(135deg, var(--cyan), var(--indigo)); }
.a2 { background: linear-gradient(135deg, var(--indigo), #7eb8ff); }
.a3 { background: linear-gradient(135deg, #4facfe, var(--cyan)); }
.a4 { background: linear-gradient(135deg, #f4f7ff, var(--indigo)); }

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  text-align: start;
  animation: riseIn 0.9s ease both;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-mark {
  width: 88px;
  height: 88px;
  display: block;
  flex-shrink: 0;
  border-radius: 22px;
}
.brand-hero {
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 5.6rem);
  line-height: 0.92;
}
.headline {
  margin: 1.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 34rem;
}
.lede {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
  animation: riseIn 0.9s ease both 0.15s;
}
.cta-start { justify-content: start; }

#signal, #pricing, #download, #privacy, #about, #product {
  scroll-margin-top: 5.5rem;
}

/* —— Feature marquee —— */
.marquee-section {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}
.marquee-head {
  padding: 0 clamp(1.25rem, 4vw, 3rem) 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.marquee-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  letter-spacing: -0.03em;
}
.marquee-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marqueeScroll 70s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.feature-tile {
  width: min(82vw, 320px);
  flex: 0 0 auto;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(0, 212, 232, 0.06), transparent 42%),
    rgba(18, 26, 43, 0.9);
  transition: border-color 0.2s ease;
  content-visibility: auto;
  contain-intrinsic-size: 220px;
}
.feature-tile:hover {
  border-color: rgba(0, 242, 254, 0.3);
}
.tile-kicker {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.feature-tile h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.feature-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Live / social feel —— */
.section {
  padding: 4.5rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}
.section h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0;
  letter-spacing: -0.03em;
}
.section-lede {
  max-width: 34rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.muted {
  color: var(--dim);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.live-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.live-copy .section-lede { margin-left: 0; }
.pulse-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.75rem;
  display: grid;
  gap: 0.65rem;
}
.pulse-list li {
  padding: 0.7rem 0.9rem;
  border-inline-start: 2px solid var(--cyan);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-start-start-radius: 0;
  border-start-end-radius: 12px;
  border-end-end-radius: 12px;
  border-end-start-radius: 0;
}
.pulse-list strong { color: var(--text); }

.phone-stage {
  display: grid;
  place-items: center;
}
.phone {
  width: min(100%, 340px);
  padding: 0.85rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(11,15,23,0.9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.phone-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.phone-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.phone-brand img {
  border-radius: 8px;
}
.phone-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.stories {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.story {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--obsidian), var(--obsidian)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--indigo)) border-box;
}
.story.s2 { background:
  linear-gradient(var(--obsidian), var(--obsidian)) padding-box,
  linear-gradient(135deg, var(--indigo), var(--cyan)) border-box; }

.phone-post {
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.28);
  margin-bottom: 0.65rem;
}
.phone-post.dim { opacity: 0.72; }
.post-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}
.post-head .avatar { width: 32px; height: 32px; }
.post-head strong { display: block; font-size: 0.92rem; }
.post-head small { color: var(--dim); font-size: 0.75rem; }
.post-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 2.6em;
}
.post-body.typing::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-inline-start: 2px;
  background: var(--cyan);
  vertical-align: -0.1em;
  animation: blink 1s steps(1) infinite;
}
.post-meta {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.7rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* —— Pricing —— */
.price-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
}
.price-country-label {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.92rem;
}
.country-select {
  min-width: min(100%, 280px);
  max-width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 23, 0.85);
  color: var(--text);
  font: inherit;
  font-weight: 600;
}
.country-select:focus-visible {
  outline: 2px solid rgba(0, 242, 254, 0.45);
  outline-offset: 2px;
}
.price-row {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
.price-block {
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.price-block.accent {
  background:
    linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(127, 0, 255, 0.08));
  border-color: rgba(0, 242, 254, 0.28);
}
.price-block h3 { margin: 0 0 0.45rem; }
.price-block p { margin: 0; color: var(--muted); }

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}
.store {
  width: min(100%, 240px);
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.store:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.35);
}
.store-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.store-icon img { display: block; width: 28px; height: 28px; }
.store-icon-brand {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.25);
}
.store-icon-brand img { width: 32px; height: 32px; }
.store-copy { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.store-kicker { color: var(--dim); font-size: 0.75rem; }
.store strong { font-size: 1.1rem; line-height: 1.2; }

.privacy-band {
  border-top: 1px solid var(--border);
  max-width: none;
  background: rgba(0,0,0,0.2);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  display: grid;
  gap: 1rem;
  background: rgba(0,0,0,0.3);
}
.footer p { color: var(--muted); margin: 0.4rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.copy { color: var(--dim) !important; font-size: 0.85rem; }

.profile {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.handle { color: var(--cyan); font-weight: 700; }
.gate {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}
.gate-copy { color: var(--muted); margin: 0.45rem 0 0; }
.profile .lede { margin-inline-start: 0; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
html[dir="rtl"] .marquee-track {
  animation-name: marqueeScrollRtl;
}
@keyframes marqueeScrollRtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, 4%, 0) scale(1.05); }
}
@keyframes drawPortal {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); opacity: 0.28; }
  50% { transform: scale(1.55); opacity: 0.5; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.section,
.marquee-section,
.privacy-band,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 640px;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .live-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .price-row { grid-template-columns: 1fr 1fr 1.12fr; }
  .hero-copy { padding-inline-end: 10vw; }
  .hero-portal { transform: translateX(8%); }
}

@media (max-width: 899px) {
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-brand { justify-content: center; }
  .headline { margin-inline: auto; }
  .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-portal { opacity: 0.55; transform: scale(1.1) translateY(6%); }
}
@media (max-width: 560px) {
  .nav-explore { display: none; }
  .hero-mark { width: 72px; height: 72px; border-radius: 18px; }
  .brand-hero { font-size: clamp(2.8rem, 16vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
    transform: none !important;
    flex-wrap: wrap;
    width: auto;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
    justify-content: center;
  }
  .post-body.typing::after { display: none; }
  .blob,
  .portal-arch,
  .portal-u,
  .portal-pulse,
  .hero-copy,
  .cta-row {
    animation: none !important;
  }
  .portal-arch { stroke-dashoffset: 0; }
  .portal-u { opacity: 1; }
}
