:root {
  --pink: #ff2f86;
  --pink-2: #ff5a9e;
  --violet: #8f5cff;
  --bg: #0f0b14;
  --panel: #1b1321;
  --text: #fff;
  --muted: #d4c8d8;
  --gold: #ff2f86;
  --blue: #8f5cff;
  --green: #ff5a9e;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #08060b; scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 4%, rgba(135, 54, 142, .22), transparent 35rem),
    #08060b;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }

.landing { padding: 0 0 148px; }
.landing-shell {
  width: min(100%, 440px);
  min-height: 100vh;
  margin: 0 auto;
  background: #100c15;
  box-shadow: 0 0 56px rgba(0, 0, 0, .8);
}

.hero-card {
  position: relative;
  height: 620px;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 62% 38%;
  gap: 3px;
  background: #1d111e;
}
.hero-primary, .hero-side > div { min-width: 0; min-height: 0; overflow: hidden; }
.hero-primary img, .hero-side img {
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.hero-card:hover .hero-primary img { transform: scale(1.025); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; min-width: 0; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9, 5, 12, .08) 20%, rgba(9, 5, 12, .12) 45%, rgba(9, 5, 12, .95) 100%),
    linear-gradient(90deg, rgba(9, 5, 12, .2), transparent 60%);
}
.hero-content { position: absolute; inset: 0; z-index: 2; padding: 20px 18px 28px; }
.hero-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status-pill, .live-pill, .instant-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(16, 9, 20, .72);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
}
.status-pill { gap: 7px; padding: 8px 11px; font-size: 12px; letter-spacing: .02em; }
.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60ff7e;
  box-shadow: 0 0 0 4px rgba(96,255,126,.15), 0 0 12px rgba(96,255,126,.8);
}
.live-pill {
  padding: 7px 11px;
  border-color: rgba(255,47,134,.55);
  color: #ffd7e8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-copy { position: absolute; right: 18px; bottom: 88px; left: 18px; }
.instant-pill {
  padding: 6px 10px;
  border-color: rgba(255,255,255,.14);
  color: #ffb9d6;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-copy h1 {
  margin: 10px 0 7px;
  font-size: clamp(40px, 11vw, 57px);
  line-height: .94;
  letter-spacing: -.05em;
  text-shadow: 0 5px 20px rgba(0,0,0,.55);
}
.hero-copy p { max-width: 360px; margin: 0; color: #eadfeb; font-size: 14px; line-height: 1.48; }

.lang-switch {
  position: absolute;
  top: 66px;
  right: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.lang-switch button {
  min-width: 33px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(15,8,19,.68);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.lang-switch button.on { border-color: var(--pink); background: var(--pink); color: #fff; }

.preview-wrap { position: relative; z-index: 5; height: 109px; margin-top: -80px; padding: 0 13px; cursor: pointer; }
.preview-panel {
  overflow: hidden;
  padding: 12px 0 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(28, 17, 34, .91);
  box-shadow: 0 18px 38px rgba(0,0,0,.5);
  backdrop-filter: blur(14px);
}
.preview-heading { display: flex; justify-content: space-between; gap: 10px; padding: 0 13px 9px; }
.preview-heading b { font-size: 11px; }
.preview-heading span { color: #bbabbf; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.preview-track {
  display: flex;
  width: max-content;
  gap: 8px;
  padding: 0 8px;
  animation: preview-marquee 25s linear infinite;
}
.preview-track > div { width: 105px; height: 55px; flex: 0 0 auto; overflow: hidden; border-radius: 10px; }
.preview-track img { height: 100%; object-fit: cover; }
@keyframes preview-marquee { to { transform: translateX(calc(-50% - 4px)); } }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 20px 12px 24px;
}
.profile-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: var(--panel);
  box-shadow: 0 11px 25px rgba(0,0,0,.28);
  cursor: pointer;
}
.profile-card.short { min-height: 220px; }
.profile-card.medium { min-height: 250px; }
.profile-card.tall { min-height: 278px; }
.profile-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
}
.profile-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(8,5,10,.88));
}
.profile-card:hover img { transform: scale(1.035); filter: saturate(1.06); }
.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--pink);
  box-shadow: 0 6px 15px rgba(255,47,134,.35);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
}
.profile-copy { position: absolute; right: 11px; bottom: 11px; left: 11px; z-index: 2; display: grid; gap: 3px; }
.profile-copy b { font-size: 13px; }
.profile-copy span { color: #d4c9d6; font-size: 10px; }

.tutorial-button, .download-button {
  position: fixed;
  right: max(12px, calc((100vw - 440px) / 2 + 12px));
  left: max(12px, calc((100vw - 440px) / 2 + 12px));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 13px 35px rgba(0,0,0,.5);
}
.tutorial-button {
  bottom: calc(78px + var(--safe-bottom));
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(40, 26, 47, .94);
  font-size: 12px;
  backdrop-filter: blur(12px);
}
.download-button {
  bottom: calc(14px + var(--safe-bottom));
  min-height: 55px;
  background: linear-gradient(100deg, var(--pink), var(--violet));
  font-size: 16px;
  letter-spacing: .01em;
}
.download-button::before {
  content: "↓";
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-right: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  font-size: 19px;
}
.download-busy { opacity: .68; pointer-events: none; }

.backup-row {
  position: fixed;
  right: max(12px, calc((100vw - 440px) / 2 + 12px));
  bottom: calc(140px + var(--safe-bottom));
  left: max(12px, calc((100vw - 440px) / 2 + 12px));
  z-index: 42;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(20,13,25,.94);
}
.backup-row a, .backup-row button {
  flex: 1 1 43%;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #39273e;
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.contact-button {
  position: fixed;
  right: 15px;
  bottom: 150px;
  z-index: 45;
  padding: 10px 13px;
  border-radius: 999px;
  background: #2a1c31;
  color: #fff;
  text-decoration: none;
}

.overlay, .state-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6,3,8,.82);
  backdrop-filter: blur(8px);
}
.state-mask { z-index: 100; }
.dialog, .state-mask > div {
  width: min(100%, 390px);
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: #1c1322;
  box-shadow: 0 25px 70px rgba(0,0,0,.55);
  text-align: center;
}
.dialog h2, .state-mask h2 { margin: 0 0 10px; font-size: 21px; }
.dialog p, .state-mask p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.dialog button {
  width: 100%;
  min-height: 45px;
  margin-top: 7px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(100deg, var(--pink), var(--violet));
  font-weight: 800;
  cursor: pointer;
}
.dialog .dialog-secondary { background: #3b2b40; }
.announce-bar { position: sticky; top: 0; z-index: 70; padding: 9px 12px; background: #ffcf4a; color: #241907; text-align: center; font-size: 13px; font-weight: 800; }

:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 760px) {
  .landing { padding-top: 20px; }
  .landing-shell { border-radius: 22px 22px 0 0; overflow: hidden; }
}
@media (max-width: 360px) {
  .hero-card { height: 570px; }
  .hero-copy { bottom: 82px; }
  .profile-grid { gap: 7px; padding-inline: 8px; }
  .profile-card, .profile-card.medium { min-height: 228px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
