/* Nexus Store - same look as the Nexus app (black glass, Outfit, green accent, teal logo) */
@font-face { font-family: "Outfit"; font-weight: 300; font-display: swap; src: url(assets/fonts/outfit-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url(assets/fonts/outfit-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url(assets/fonts/outfit-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url(assets/fonts/outfit-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url(assets/fonts/outfit-latin-700-normal.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #050505;
  --glass: rgba(10, 10, 10, .55);
  --glass-strong: rgba(14, 14, 14, .9);
  --glass-line: rgba(255, 255, 255, .09);
  --glass-hi: rgba(255, 255, 255, .05);
  --red: #ce1126;
  --red-hi: #e4283d;
  --red-glow: rgba(206, 17, 38, .38);
  --accent: #0e9a4c;
  --accent-hi: #16b35a;
  --accent-deep: #007a3d;
  --accent-glow: rgba(22, 179, 90, .34);
  --teal: #2bb8c6;
  --teal-hi: #3fdcea;
  --text: #f2f2f3;
  --muted: rgba(242, 242, 243, .64);
  --dim: rgba(242, 242, 243, .4);
  --display: "Outfit", "Segoe UI", Tahoma, sans-serif;
  --body: "Outfit", "Segoe UI", Tahoma, sans-serif;
  --top: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] svg.flip { transform: scaleX(-1); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 20px 50px rgba(0, 0, 0, .35);
}

/* ================= background (like the app) ================= */
#bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-art { position: absolute; inset: -40px; background: center / cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 10s ease; filter: saturate(1.1); }
.bg-art.on { opacity: .9; transform: scale(1); }
/* past the hero: the picture blurs and darkens behind the cards, like the app's inner pages */
body.dim .bg-art { filter: blur(26px) brightness(.45) saturate(1.2); transform: scale(1.08); transition: opacity 1.2s ease, filter .6s ease, transform .6s ease; }
#shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 0% 100%, rgba(8, 8, 10, .95) 0%, rgba(8, 8, 10, 0) 70%),
    linear-gradient(90deg, rgba(8, 8, 10, .9) 0%, rgba(8, 8, 10, .45) 50%, rgba(8, 8, 10, .2) 80%),
    linear-gradient(0deg, rgba(5, 5, 5, 1) 0%, rgba(8, 8, 10, 0) 45%),
    linear-gradient(180deg, rgba(8, 8, 10, .7) 0%, rgba(8, 8, 10, 0) 18%);
}
[dir="rtl"] #shade {
  background:
    radial-gradient(90% 70% at 100% 100%, rgba(8, 8, 10, .95) 0%, rgba(8, 8, 10, 0) 70%),
    linear-gradient(270deg, rgba(8, 8, 10, .9) 0%, rgba(8, 8, 10, .45) 50%, rgba(8, 8, 10, .2) 80%),
    linear-gradient(0deg, rgba(5, 5, 5, 1) 0%, rgba(8, 8, 10, 0) 45%),
    linear-gradient(180deg, rgba(8, 8, 10, .7) 0%, rgba(8, 8, 10, 0) 18%);
}
#glow { position: absolute; inset: 0; background: radial-gradient(50% 45% at 72% 30%, rgba(43, 184, 198, .1), transparent 70%); }
#grain {
  position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ================= top bar ================= */
.top { position: sticky; top: 0; z-index: 50; height: var(--top); display: flex; align-items: center; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(5, 5, 5, .72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom-color: var(--glass-line); }
.top .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 22px rgba(0, 0, 0, .6); }
.brand-sig { height: 22px; width: auto; }
.nav { display: flex; gap: 22px; }
.nav a { color: rgba(255, 255, 255, .72); font-weight: 500; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; border-bottom-color: var(--accent-hi); }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { height: 38px; min-width: 46px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .06); font-weight: 600; font-size: 13px; }
.lang:hover { background: rgba(255, 255, 255, .12); }

/* ================= buttons / chips (from the app) ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 500; font-size: 14.5px; letter-spacing: .005em; background: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { color: #fff; background: linear-gradient(160deg, var(--accent-hi), var(--accent-deep)); box-shadow: 0 10px 28px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 12px 36px rgba(22, 179, 90, .5), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-glass { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(14px); }
.btn-glass:hover:not(:disabled) { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .3); }
.btn-discord { color: #fff; background: #5865f2; box-shadow: 0 10px 28px rgba(88, 101, 242, .35); }
.btn-discord:hover:not(:disabled) { background: #6a75f4; }
.btn-sm { height: 38px; padding: 0 16px; border-radius: 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .02em;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px);
}
.chip svg.i { width: 13px; height: 13px; }
.chip.green { background: rgba(31, 174, 91, .9); border-color: rgba(255, 255, 255, .2); box-shadow: 0 6px 20px rgba(31, 174, 91, .35); }
.chip.teal { color: var(--teal-hi); background: rgba(43, 184, 198, .12); border-color: rgba(43, 184, 198, .35); }

/* ================= hero ================= */
.hero { min-height: calc(100vh - var(--top)); min-height: calc(100svh - var(--top)); display: grid; align-items: end; padding: 40px 0 70px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 40px; }
.hero-copy { max-width: 660px; }
.hero-title { margin: 16px 0 0; font: 600 clamp(52px, 8vw, 108px)/.95 var(--display); letter-spacing: -.035em; text-shadow: 0 10px 50px rgba(0, 0, 0, .55); }
.hero-title em { font-style: normal; color: var(--teal-hi); text-shadow: 0 0 40px rgba(63, 220, 234, .35); }
.hero-tag { margin: 18px 0 0; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.hero-desc { margin: 6px 0 0; color: var(--muted); max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero-logo { justify-self: center; width: min(380px, 80%); filter: drop-shadow(0 0 60px rgba(43, 184, 198, .25)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fact { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 12px; font-size: 14px; line-height: 1.35; }
.fact svg.i { width: 22px; height: 22px; color: var(--accent-hi); }
.fact small { display: block; color: var(--muted); font-size: 12.5px; }

/* ================= sections ================= */
.section { padding: 70px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.kicker { font: 600 12.5px var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--accent-hi); }
[dir="rtl"] .kicker { letter-spacing: .05em; }
.sec-title { margin: 8px 0 0; font: 600 clamp(36px, 5vw, 48px)/1 var(--display); letter-spacing: -.03em; }
.sec-sub { margin: 10px 0 0; color: var(--muted); max-width: 60ch; }

/* pack posters */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.poster {
  position: relative; height: 380px; border-radius: 20px; padding: 0; overflow: hidden; text-align: start;
  border: 1px solid rgba(255, 255, 255, .09); background: #111 center / cover;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .2) 55%, rgba(0, 0, 0, 0) 100%); }
.poster:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .5); border-color: transparent; }
.poster .chip { position: absolute; z-index: 1; top: 14px; inset-inline-end: 14px; background: rgba(0, 0, 0, .55); border-color: rgba(255, 255, 255, .18); }
.poster-body { position: absolute; z-index: 1; inset-inline: 20px; bottom: 20px; }
.poster-name { font: 600 30px/1 var(--body); letter-spacing: -.025em; }
.poster-tag { margin-top: 6px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.price { font: 600 22px/1 var(--body); letter-spacing: -.02em; }
.price.soon { font-size: 14px; font-weight: 500; color: var(--muted); }

/* addon filter + grid */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cat { height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .06); color: var(--muted); font-weight: 500; font-size: 13px; }
.cat:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.cat.on { background: var(--accent-hi); border-color: transparent; color: #fff; }
.search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 12px; min-width: 260px; color: var(--dim); }
.search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 500 13.5px var(--body); outline: none; }
.search:focus-within { border-color: var(--accent-hi); }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.addon { border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; text-align: start; padding: 0; color: inherit; transition: transform .2s, border-color .2s; }
.addon:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .25); }
.addon-img { position: relative; aspect-ratio: 16 / 9; background: #111 center / cover; }
.tier { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 9px;
  font-size: 11.5px; font-weight: 700; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); color: #fff; }
.tier.premium { background: linear-gradient(160deg, var(--red-hi), #a50e1f); box-shadow: 0 4px 14px var(--red-glow); }
.tier.free { background: linear-gradient(160deg, var(--accent-hi), var(--accent-deep)); }
.tier svg.i { width: 13px; height: 13px; }
.new-badge { position: absolute; top: 12px; inset-inline-end: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: #fff; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); box-shadow: 0 4px 16px var(--accent-glow); }
.addon-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.addon-cat { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.addon-name { margin: 0; font: 600 21px/1.15 var(--body); letter-spacing: -.02em; }
.addon-desc { margin: 2px 0 14px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.addon-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addon-foot .price { font-size: 18px; }
.addon-foot .note { font-size: 12.5px; color: var(--muted); }

.empty { padding: 40px 16px; text-align: center; color: var(--dim); border: 1px dashed rgba(255, 255, 255, .15); border-radius: 16px; display: grid; justify-items: center; gap: 10px; grid-column: 1 / -1; }
.empty svg.i { width: 28px; height: 28px; }
.skel { border-radius: 20px; background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* fallback art when a product has no picture (from the app, in Nexus teal) */
.art-0 { background-image: radial-gradient(120% 90% at 80% 100%, #128a96 0%, #0a2d33 45%, #0b0b0d 100%); }
.art-1 { background-image: radial-gradient(120% 90% at 20% 100%, #0e6b3a 0%, #13241b 50%, #0b0b0d 100%); }
.art-2 { background-image: radial-gradient(120% 90% at 50% 110%, #2bb8c6 0%, #0b3a40 40%, #0b0b0d 100%); }
.art-3 { background-image: radial-gradient(120% 90% at 90% 0%, #3d3d45 0%, #1a1a1f 45%, #0b0b0d 100%); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { padding: 26px; border-radius: 22px; }
.step-n { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(22, 179, 90, .14); color: #5ee08f; font: 600 18px var(--body); }
.step h3 { margin: 18px 0 6px; font: 600 22px/1.1 var(--display); letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step .btn { margin-top: 18px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: 18px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg.i { transition: transform .2s; color: var(--dim); }
.faq details[open] summary svg.i { transform: rotate(45deg); color: var(--accent-hi); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* banner + footer */
.cta { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center; padding: 26px 28px; border-radius: 24px;
  background: linear-gradient(120deg, rgba(22, 179, 90, .18), rgba(10, 10, 10, .6) 60%); }
.cta img { width: 64px; height: 64px; border-radius: 16px; }
.cta b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.cta p { margin: 4px 0 0; color: var(--muted); }
.foot { padding: 34px 0 40px; border-top: 1px solid var(--glass-line); margin-top: 40px; color: var(--dim); font-size: 13px; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot img { height: 18px; opacity: .8; }
.flag-line { display: inline-flex; width: 34px; height: 3px; border-radius: 2px; overflow: hidden; vertical-align: middle; margin-inline-start: 10px; }
.flag-line i { flex: 1; }
.flag-line i:nth-child(1) { background: #111; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.flag-line i:nth-child(2) { background: #f2f2f2; }
.flag-line i:nth-child(3) { background: #1fae5b; }
.flag-line i:nth-child(4) { background: var(--red); }

/* ================= product window ================= */
.modal-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(4, 4, 6, .6); backdrop-filter: blur(6px); animation: fade .2s ease; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 26px; position: relative; background: var(--glass-strong); animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
.modal-art { position: relative; aspect-ratio: 16 / 8; background: #111 center / cover; }
.modal-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 14, 14, 1) 0%, rgba(14, 14, 14, 0) 60%); }
.modal-in { padding: 0 28px 28px; margin-top: -40px; position: relative; z-index: 1; }
.modal h2 { margin: 10px 0 0; font: 600 38px/1 var(--display); letter-spacing: -.03em; }
.modal .sub { margin: 10px 0 0; color: var(--muted); }
.modal-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, .35); border: 1px solid var(--glass-line); }
.modal-buy .price { font-size: 28px; }
.modal-steps { margin: 20px 0 0; padding: 18px 0 0; list-style: none; display: grid; gap: 12px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--glass-line); }
.modal-steps li { display: flex; gap: 12px; align-items: center; }
.modal-steps b { flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: rgba(22, 179, 90, .14); color: #5ee08f; font-size: 12px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); display: grid; place-items: center; color: var(--text); }
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.modal-close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }

.toast { position: fixed; z-index: 90; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 14px 18px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-line);
  backdrop-filter: blur(20px); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); font-weight: 500; animation: fade .25s ease; max-width: calc(100% - 32px); }

/* ================= phones ================= */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .steps { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 560px) {
  :root { --top: 62px; }
  .brand-sig { display: none; }
  .top-actions .btn-discord span { display: none; }
  .top-actions .btn-discord { padding: 0 12px; }
  .search { min-width: 0; width: 100%; }
  .poster { height: 340px; }
  .modal-in { padding: 0 20px 22px; }
  .modal h2 { font-size: 30px; }
  .section { padding: 54px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
