/* LootNest — landing page styles (Agent A owns this file).
   Contract: build on the frozen tokens in styles.css + fx.css (per-page CSS vars:
   --accent, --accent2, --accent-soft, --cta-text, --glow). No external fonts/libs. */

::selection { background: var(--accent); color: var(--cta-text); }

body {
  background:
    radial-gradient(1100px 560px at 8% -12%, var(--accent-soft), transparent 62%),
    radial-gradient(900px 520px at 100% -4%, color-mix(in srgb, var(--accent2) 13%, transparent), transparent 58%),
    radial-gradient(820px 480px at 50% 112%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 62%),
    linear-gradient(180deg, #080b14 0%, #05070d 46%, #04060b 100%);
}

/* ── Header ─────────────────────────────────────────────── */
.top {
  background: linear-gradient(180deg, rgba(8, 11, 19, 0.92), rgba(5, 7, 13, 0.7));
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
}
.top::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45; pointer-events: none;
}
.top-in { padding: 12px 0; }
.brand-mark { box-shadow: 0 8px 22px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.brand-name { text-shadow: 0 1px 14px var(--glow); }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.top-actions .nx-sound-toggle { flex: none; }
.nx-sound-toggle[aria-pressed="false"] { color: #5f6b80; }
.nx-sound-toggle:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.status-pill { background: rgba(17, 21, 32, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; padding: 60px 0 34px; }
.hero-grid { grid-template-columns: 236px 1fr; gap: 34px; }
.hero::before {
  content: "";
  position: absolute; inset: -70px 0 auto 0; height: 460px; z-index: 0;
  background:
    radial-gradient(560px 300px at 24% 32%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(460px 260px at 78% 16%, color-mix(in srgb, var(--accent2) 11%, transparent), transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; }

.hero-art { padding: 12px; }
.hero-art .ring { inset: 2px; border-radius: 46px; filter: blur(24px); opacity: 0.95; }
.hero-float { position: relative; z-index: 1; }
.device-frame {
  position: relative;
  display: grid; place-items: center;
  width: clamp(172px, 44vw, 212px);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 40px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 34%, rgba(2, 4, 10, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.6),
    0 0 60px -18px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.device-frame::before {
  content: "";
  position: absolute; inset: 7px; border-radius: 33px; z-index: 2; pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 14px 32px rgba(0, 0, 0, 0.55),
    inset 0 -8px 24px rgba(0, 0, 0, 0.4);
}
.device-frame::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.2), transparent 32%, transparent 64%, rgba(255, 255, 255, 0.05));
  mix-blend-mode: screen; opacity: 0.5;
}
.hero-frame .hero-icon,
.hero-frame .hero-initials {
  width: 100%; height: 100%; border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.hero-frame .hero-initials { font-size: clamp(30px, 7vw, 44px); background: linear-gradient(160deg, rgba(24, 29, 43, 0.9), rgba(10, 13, 22, 0.92)); }

.hero h1 { font-size: clamp(28px, 6vw, 46px); letter-spacing: 0.005em; text-wrap: balance; }
.hero h1 .hl {
  background: linear-gradient(104deg, var(--accent) 8%, var(--accent2) 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 24px var(--glow));
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .hl { color: var(--accent); -webkit-text-fill-color: currentColor; }
}
.hero .lead { font-size: 16px; line-height: 1.66; color: #a9b4c8; }

.chips .chip {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, transparent), var(--accent-soft));
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 16px 40px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), filter 0.18s ease, box-shadow 0.18s ease;
}
.btn::after {
  content: "";
  position: absolute; top: -40%; bottom: -40%; left: -30%; width: 44%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-170%) rotate(8deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 22px 54px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn:hover::after { transform: translateX(370%) rotate(8deg); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
.btn.small { border-radius: 12px; box-shadow: 0 10px 26px -6px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

.trust { border-top-color: rgba(255, 255, 255, 0.12); }
.trust-icon {
  width: 26px; height: 26px; padding: 5px; border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 40px 0; }
.section h2 { letter-spacing: 0.01em; text-wrap: balance; }
.section h2::after {
  content: "";
  display: block; width: 44px; height: 3px; margin-top: 12px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-sub { line-height: 1.6; }
#tiers { scroll-margin-top: 90px; }

/* Glass card base shared by steps, tiers, FAQ and related cards */
.step, .tier, .faq details, .rel-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)), var(--panel);
  border-color: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

/* ── Steps ──────────────────────────────────────────────── */
.step { border-radius: 20px; }
.step::before {
  content: "";
  position: absolute; inset: 0 auto auto 0; width: 100%; height: 92px; pointer-events: none;
  background: radial-gradient(190px 84px at 16% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%);
}
.step-num {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 25%, transparent), var(--accent-soft));
  box-shadow: 0 6px 18px -6px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.step.hover-lift:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45), 0 0 40px -18px var(--glow); }

/* ── Tiers ──────────────────────────────────────────────── */
.tier { border-radius: 22px; }
.tier-glyph { filter: drop-shadow(0 4px 12px var(--glow)); }
.tier-reward { font-size: 22px; letter-spacing: -0.01em; }
.tier.popular {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)) padding-box,
    linear-gradient(160deg, var(--accent), var(--accent2)) border-box;
}
.tier.popular::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 130px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 100% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 74%);
}
.tier-flag { box-shadow: 0 8px 22px var(--glow); }
.tier.hover-lift:not(.popular):hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45), 0 0 40px -18px var(--glow); }

/* ── Intro + FAQ ────────────────────────────────────────── */
.prose { position: relative; }
.prose p { line-height: 1.72; }
.prose p:first-child { color: #d7dfec; font-size: 14.8px; }
.faq details { border-radius: 15px; }
.faq details:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.faq summary:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 8px; }

/* ── Gallery (device frames) ────────────────────────────── */
.gallery-sec:empty { display: none; }
.gallery { gap: 20px; }
.gallery .shot {
  position: relative; overflow: hidden;
  padding: 11px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 26%, rgba(3, 5, 10, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 50px -24px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.gallery .shot::before {
  content: "";
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 5px; border-radius: 999px; z-index: 3;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.gallery .shot::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; z-index: 2; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 30%);
  opacity: 0.45; mix-blend-mode: screen;
}
.gallery .shot img {
  width: 100%; height: auto; aspect-ratio: 9 / 19; object-fit: cover;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.07);
}
.gallery .shot:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.24); }
.gallery .shot.lead { border-color: color-mix(in srgb, var(--accent) 65%, transparent); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px -18px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.18); }

/* ── Related ────────────────────────────────────────────── */
.rel-card { border-radius: 16px; }
.rel-card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 34px -14px var(--glow); }
.rel-icon { border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.rel-name { font-weight: 700; }
.rel-card:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  position: relative; margin-top: 48px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}
.footer a { transition: color 0.15s ease; }

/* ── Motion: staggered card rises (progressive) ─────────── */
@keyframes ln-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ln-cta {
  0%, 100% { box-shadow: 0 16px 40px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 20px 56px var(--glow), 0 0 0 8px color-mix(in srgb, var(--accent) 10%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
}
@keyframes ln-ring {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .steps.is-visible > .step,
  .tiers.is-visible > .tier,
  .related.is-visible > .rel-card,
  .faq.is-visible > details,
  .gallery-sec.is-visible .shot {
    animation: ln-rise 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: var(--ln-d, 0s);
  }
  .steps > .step:nth-child(2),
  .tiers > .tier:nth-child(2),
  .related > .rel-card:nth-child(2),
  .faq > details:nth-child(2),
  .gallery-sec .shot:nth-child(2) { --ln-d: 0.09s; }
  .steps > .step:nth-child(3),
  .tiers > .tier:nth-child(3),
  .related > .rel-card:nth-child(3),
  .faq > details:nth-child(3),
  .gallery-sec .shot:nth-child(3) { --ln-d: 0.18s; }
  .related > .rel-card:nth-child(4),
  .faq > details:nth-child(4) { --ln-d: 0.27s; }
  .related > .rel-card:nth-child(5) { --ln-d: 0.36s; }
  .related > .rel-card:nth-child(6) { --ln-d: 0.45s; }
  .hero::before { animation: nx-float 9s ease-in-out infinite; will-change: transform; }
  .hero .btn.primary { animation: ln-cta 3.6s ease-in-out infinite; }
  .hero-art .ring { animation: ln-ring 5.2s ease-in-out infinite; }
  .status-dot { animation: nx-pulse-dot 2.4s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .gallery .shot:hover { transform: none; }
  .btn:hover::after { transition: none; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero { padding: 44px 0 26px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-art { padding: 4px; }
  .device-frame { width: min(52vw, 212px); }
  .section { padding: 32px 0; }
  .gallery { gap: 12px; }
}
@media (max-width: 520px) {
  .top-actions { gap: 8px; }
  .device-frame { width: min(58vw, 196px); padding: 10px; border-radius: 34px; }
  .hero-frame .hero-icon, .hero-frame .hero-initials { border-radius: 24px; }
  .gallery { gap: 10px; }
  .gallery .shot { padding: 8px; border-radius: 22px; }
  .gallery .shot img { border-radius: 15px; }
  .gallery .shot::before { width: 34px; height: 4px; top: 3px; }
  .trust { gap: 12px 16px; }
}
