/* ReimaginedOS - Copyright (C) ReimaginedOS and cr1mix
   Licensed under the GNU General Public License v3.0 or later - see LICENSE.txt
   Red layer on top of the base layout: brand color, hero video, tweaks. */

:root {
  --rio-red: #E5484D;
  --rio-blurple: #5865F2;
}

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* Content always above the background canvas (readability on every page). */
main, nav.nav, footer { position: relative; z-index: 2; }



::selection { background: #E5484D; color: #fff; }

@font-face {
  font-family: "Distant Galaxy";
  src: url("../assets/fonts/DistantGalaxy.ttf") format("truetype");
  font-display: swap;
}

/* Test-now buttons never overlap neighbours, even on narrow screens. */
.hero-cta { flex-wrap: wrap; row-gap: 14px; }

/* ---- hero video atmosphere: always blurred, fades out toward the end ---- */
.hero-atmosphere {
  background: #000 none;
}

.hero-atmosphere video {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  object-fit: cover;
  transform: scale(1.08);
  filter: blur(16px) saturate(0.85);
  opacity: 0.5;
}

/* Slimmer atmosphere for inner pages. */
.hero-atmosphere.slim { height: 520px; min-height: 520px; }

/* ---- home video hero box ---- */
.hero-video {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  margin-top: 12px;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  object-fit: cover;
  transform: scale(1.08);
  filter: blur(16px) saturate(0.85);
  opacity: 0.5;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.78));
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: clamp(70px, 10vh, 120px) 32px clamp(60px, 8vh, 96px);
}

.hero-inner .tagline {
  color: var(--fg-70);
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 620px;
  margin: 22px auto 0;
}

.hero-inner .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 14px;
  margin-top: 36px;
}

.hero-inner .role-note { margin-top: 22px; color: var(--fg-50); font-size: 15px; }
.hero-inner .role-note strong { color: var(--fg); }

/* Assets: not selectable, not draggable. */
.shot-rio img, .hero-partner-logo img, .brand img, .link-row img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.hero-header { position: relative; z-index: 2; }

/* ---- giant title in the brand display font, readable over video ---- */
.rio-title {
  font-family: "Distant Galaxy", "Segoe UI", sans-serif;
  font-size: clamp(54px, 9vw, 120px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85), 0 0 90px rgba(229, 72, 77, 0.45);
}

/* ---- Discord buttons: brand blurple, white glyph ---- */
.btn-discord {
  background: var(--rio-blurple);
  color: #fff;
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background: #4752C4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(88, 101, 242, 0.45);
}

.btn-discord .discord-symbol { flex-shrink: 0; }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-small { padding: 9px 20px; font-size: 14px; }

/* ---- partner strip: always centered ---- */
.hero-partners { text-align: center; }
.hero-partners-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

/* ---- partner strip with real logos + names ---- */
.hero-partner-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-70);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.hero-partner-logo img {
  height: 30px;
  width: auto;
  border-radius: 6px;
  opacity: 0.9;
}

.hero-partner-logo:hover { color: var(--rio-red); }
.hero-partner-logo:hover img { opacity: 1; }

/* ---- badge + links + showcase + beta (home) ---- */
.badge {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent, var(--rio-red));
  border: 1px solid rgba(229, 72, 77, 0.4);
  background: rgba(229, 72, 77, 0.12);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 26px;
}

.links h2, .showcase h2, .beta h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 10px;
}

.link-row {
  list-style: none;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 0;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg-70);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.link-row a:hover { border-color: rgba(229, 72, 77, 0.55); color: var(--rio-red); }
.link-row a img { border-radius: 4px; }

.showcase { text-align: center; }
.showcase p { color: var(--fg-50); margin-bottom: 30px; }

.beta {
  text-align: center;
  border: 1px solid rgba(229, 72, 77, 0.3);
  background: linear-gradient(180deg, rgba(229, 72, 77, 0.08), rgba(229, 72, 77, 0.02));
  border-radius: 28px;
  padding: 64px 32px;
  margin: 40px 0 72px;
}

.beta p { color: var(--fg-50); max-width: 560px; margin: 14px auto 30px; }
.beta strong { color: var(--fg); }

footer {
  text-align: center;
  color: var(--fg-30);
  font-size: 13.5px;
  padding: 26px 32px 42px;
  border-top: 1px solid var(--border);
  max-width: 1120px;
  margin: 0 auto;
}

footer a { color: var(--fg-70); }

/* ---- tilted feature cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 28px 24px;
  transform: perspective(900px) rotateX(1.5deg);
}

.card h3 {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card p { color: var(--fg-50); font-size: 14.5px; }

/* Flat serious variant (no tilt, sharp, red index bar). */
.card.flat { transform: none; border-radius: 10px; border-left: 2px solid transparent; }

.card.flat:hover { transform: none; border-color: var(--border); border-left-color: var(--rio-red); }

.more { margin-top: 28px; }
.more a { color: var(--fg); font-weight: 600; text-decoration: none; }
.more a:hover { color: var(--rio-red); }

/* ---- faq ---- */
.faq { max-width: 720px; margin: 30px auto 0; display: grid; gap: 12px; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 16px 20px;
}

.faq summary { cursor: pointer; font-weight: 650; }
.faq summary:hover { color: var(--rio-red); }
.faq details p { color: var(--fg-70); font-size: 14.5px; margin-top: 10px; }
.faq details a { color: var(--fg); }

/* ---- footer with profile ---- */
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-inner img { border-radius: 50%; border: 1px solid var(--border); }
.footer-inner p { margin: 0; }

/* ---- red touches ---- */
.link-accent, .eyebrow { color: var(--rio-red); }

.role-note strong { color: var(--fg); }

/* ---- tilted showcase ---- */
.shot-rio {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow-3), 0 0 90px rgba(229, 72, 77, 0.07);
  transform: perspective(1400px) rotateX(2deg);
  margin-top: 34px;
}

.shot-rio img { display: block; width: 100%; height: auto; }

/* ---- nip table ---- */
.tablewrap { overflow-x: auto; margin-top: 24px; }

table.nip {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

table.nip caption {
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

table.nip th, table.nip td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.nip thead th { color: var(--fg-50); font-weight: 600; font-size: 13px; }
table.nip tbody th { color: var(--fg); font-weight: 600; }
table.nip tbody tr:last-child th, table.nip tbody tr:last-child td { border-bottom: none; }
table.nip td { color: var(--fg-70); }

.toollist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }

.toollist li {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 16px 20px;
  color: var(--fg-70);
  font-size: 15px;
}

.toollist a { color: var(--fg); }
.mono { font-family: var(--mono); font-size: 13.5px; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .card { transform: none; }
}

@media (max-width: 640px) {
  .shot-rio { transform: none; }
  .announce { font-size: 12.5px; }
}

/* ambient canvas background */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nav, .hero-header, main, footer { position: relative; z-index: 1; }

/* apply demo */
.apply-demo { margin: 34px auto 8px; max-width: 1020px; }
.apply-steps { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.apply-step { display: flex; gap: 10px; align-items: center; padding: 10px 16px 10px 10px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; background: rgba(255,255,255,0.03); color: var(--fg-50); transition: border-color 0.25s, background 0.25s, color 0.25s; }
.apply-step strong { display: block; color: var(--fg); font-size: 14px; }
.apply-step div span { font-size: 12px; }
.apply-num { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.08); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--fg); flex-shrink: 0; }
.apply-step.is-active { border-color: rgba(229,72,77,0.6); background: rgba(229,72,77,0.07); color: var(--fg); }
.apply-step.is-active .apply-num { background: #E5484D; color: #fff; }
.apply-step.is-done { opacity: 0.65; }
.apply-step.is-done .apply-num { background: rgba(46,160,67,0.85); color: #fff; }
.apply-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; max-width: 760px; margin: 0 auto; min-height: 380px; }
.apbx-chip { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px dashed rgba(229,72,77,0.55); border-radius: 14px; background: rgba(20,8,10,0.6); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; transition: opacity 0.3s, box-shadow 0.25s; }
.apbx-chip img { border-radius: 8px; flex-shrink: 0; }
.apbx-chip strong { display: block; font-size: 14px; color: var(--fg); }
.apbx-chip span { font-size: 12px; color: var(--fg-50); }
.apbx-chip.is-held { cursor: grabbing; box-shadow: 0 14px 40px rgba(229,72,77,0.35); }
.apbx-chip.is-gone { opacity: 0; pointer-events: none; }
.ame-mock { border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; overflow: hidden; background: #101014; transition: border-color 0.25s, box-shadow 0.25s; width: 100%; max-width: 720px; margin-inline: auto; }
.ame-mock img { display: block; width: 100%; height: auto; }
.ame-mock.is-armed { border-color: #E5484D; box-shadow: 0 0 0 1px #E5484D, 0 0 44px rgba(229,72,77,0.3); }
.ame-hint { text-align: center; font-size: 13px; color: var(--fg-50); padding: 10px 0 14px; margin: 0; }
.apply-result { text-align: center; margin-top: 18px; padding: 14px 18px; border: 1px solid rgba(46,160,67,0.5); background: rgba(46,160,67,0.08); border-radius: 12px; color: var(--fg); }
@media (max-width: 760px) { .apply-stage { min-height: 0; } .apbx-chip { max-width: 280px; margin: 0 auto; } }

/* readability lift */
:root { --fg-50: rgba(245,245,247,.74); }

/* fire download button */
.btn-fire { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(180deg,#F0565C,#C1272F); color: #fff; border: 1px solid rgba(255,255,255,0.22); box-shadow: 0 8px 30px rgba(229,72,77,0.35), inset 0 1px 0 rgba(255,255,255,0.25); text-decoration: none; }
.btn-fire:hover { background: linear-gradient(180deg,#FF646B,#D42E36); box-shadow: 0 10px 38px rgba(229,72,77,0.5), inset 0 1px 0 rgba(255,255,255,0.3); color: #fff; }
.btn-fire svg { flex-shrink: 0; }

/* apply demo: transform drag */
.apbx-chip { transition: opacity 0.3s, box-shadow 0.25s, transform 0.22s ease-out; will-change: transform; }
.apbx-chip.is-held { cursor: grabbing; box-shadow: 0 14px 40px rgba(229,72,77,0.35); transition: opacity 0.3s, box-shadow 0.25s; }

/* trustworthy download button */
.btn-fire { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #0a0a0c; border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 8px 28px rgba(255,255,255,0.12); text-decoration: none; font-weight: 700; }
.btn-fire:hover { background: #f2f2f4; color: #0a0a0c; box-shadow: 0 10px 34px rgba(255,255,255,0.18); }
a.btn-fire:link, a.btn-fire:visited, a.btn-fire:active { color: #0a0a0c; }
.btn-fire svg { flex-shrink: 0; }

/* fixed grid + vignette backdrop */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%); mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%); }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at top, transparent 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.9) 100%); }

/* static red glows (no animation cost) */
body { background-color: #060608; background-image: radial-gradient(circle at 18% 8%, rgba(229,72,77,0.12), transparent 50%), radial-gradient(circle at 85% 55%, rgba(229,72,77,0.08), transparent 45%), radial-gradient(circle at 50% 110%, rgba(229,72,77,0.06), transparent 55%); background-attachment: fixed; }

/* dot texture, slightly visible */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, rgba(229,72,77,0.14) 1px, transparent 0); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 78%); mask-image: radial-gradient(ellipse at center, black 0%, transparent 78%); }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at top, transparent 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.9) 100%); }

/* entrance motion */
@keyframes rio-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy > * { animation: rio-rise 0.8s cubic-bezier(0.22,1,0.36,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hero-copy > *, .reveal { animation: none; opacity: 1; transform: none; transition: none; } }

/* floating pill nav, always readable */
.nav-inner { background: rgba(12,12,16,0.78); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border: 1px solid rgba(255,255,255,0.13); border-radius: 999px; margin-top: 12px; padding-left: 18px; padding-right: 8px; box-shadow: 0 18px 44px rgba(0,0,0,0.55); }
.nav .nav-links a, .nav-links a { color: rgba(255,255,255,0.88); }
.nav .nav-links a:hover, .nav-links a:hover { color: #fff; }
.hero-partners-label { color: rgba(255,255,255,0.6); }
.hero-partner-logo span { color: rgba(255,255,255,0.8); }

/* slim warning strip (no card look) */
.warn-strip { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: #f3c1c3; background: rgba(229,72,77,0.08); border-top: 1px solid rgba(229,72,77,0.35); border-bottom: 1px solid rgba(229,72,77,0.35); padding: 9px 16px; text-align: center; }
.warn-strip strong { color: #fff; }

/* big branding line */
.brand-big { text-align: center; font-size: clamp(30px, 5vw, 54px); font-weight: 800; letter-spacing: -0.02em; color: #fff; margin: 34px 0 6px; }
.brand-big strong { color: #E5484D; }
.brand-sub { text-align: center; color: rgba(255,255,255,0.75); margin: 0 0 8px; }

/* compare mini cards */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.compare-grid .mini { border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 20px; background: rgba(255,255,255,0.03); }
.compare-grid .mini h3 { font-size: 16px; margin: 0 0 8px; color: #fff; }
.compare-grid .mini p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.78); margin: 0; }
@media (max-width: 860px) { .compare-grid { grid-template-columns: 1fr; } }

/* demo: shrinking mock + big next */
.ame-mock { transition: border-color 0.25s, box-shadow 0.25s, max-width 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1), opacity 0.7s; max-width: 720px; margin-inline: auto; }
.ame-mock.is-small { max-width: 560px; }
.demo-next { font-size: 16px; padding: 12px 34px; }

/* hero video fades in only when playable */
.hero-atmosphere video { opacity: 0; transition: opacity 1.4s ease; }
.hero-atmosphere video.is-live { opacity: 1; }

/* hero brand + credit */
.hero-copy .brand-big { margin-top: 6px; }
.made-line { text-align: center; color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 14px; }
.made-line .heart { color: #E5484D; }
.made-line a { color: #fff; font-weight: 700; }

/* demo readable text */
.apply-step div span { color: rgba(255,255,255,0.85); }
.ame-hint { color: rgba(255,255,255,0.85); }
.apply-result { color: #fff; }

/* brand font */
@font-face { font-family: "DistantGalaxy"; src: url("../assets/fonts/DistantGalaxy.ttf") format("truetype"); font-display: swap; }
.brand-big { font-family: "DistantGalaxy", "Segoe UI", sans-serif; letter-spacing: 0.02em; }

/* hero toolbox blur fallback behind video */
.hero-atmosphere { background: #0a0a0c url("../assets/toolbox.jpg") center 30%/cover no-repeat; }
.hero-atmosphere::before { content: ""; position: absolute; inset: 0; background: inherit; filter: blur(28px) brightness(0.55); transform: scale(1.1); }
.hero-atmosphere video { position: relative; z-index: 1; }

/* bigger credit line */
.made-line--big { font-size: 17px; margin-top: 16px; }
.made-line--big .heart { font-size: 1.1em; }

/* download button: white pill, github mark, red glow on hover */
.btn-fire { gap: 10px; }
.btn-fire:hover { box-shadow: 0 10px 38px rgba(229,72,77,0.45), 0 8px 28px rgba(255,255,255,0.12); }
.btn-fire .gh-mark { flex-shrink: 0; }

/* hero: atmosphere overlays, content vertically centered in viewport */
.hero-atmosphere { position: absolute; top: 0; left: 0; right: 0; height: min(860px, 100svh); min-height: 0; overflow: hidden; }
.hero-header { min-height: min(860px, 100svh); display: flex; align-items: center; }
.hero-header > .container { width: 100%; }

/* secondary hero button that reads as a button */
.btn-ghost { border: 1px solid rgba(255,255,255,0.28); color: #fff; background: rgba(255,255,255,0.04); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; background: rgba(255,255,255,0.08); }

.btn-glass, .hero-cta .btn-glass, .more .btn-glass { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-glass:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.4); }

/* full-page video backdrop */
.bg-video-wrap { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(circle at 20% 15%, rgba(160,20,28,0.55), transparent 55%), radial-gradient(circle at 85% 70%, rgba(140,15,25,0.45), transparent 50%), radial-gradient(circle at 55% 100%, rgba(120,10,20,0.4), transparent 55%), #0a0507; }
.bg-video-wrap video, #bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.bg-video-wrap video.is-live, #bg-video.is-live { opacity: 1; }
#bg-canvas { z-index: 1; }
body::before, body::after { z-index: 1; }
.nav, .hero-header, main, footer { position: relative; z-index: 2; }

/* transparent nav, no black pill */
.nav-inner { background: rgba(10,10,12,0.42); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 18px 44px rgba(0,0,0,0.45); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); }
.nav:hover, .nav:focus-within, .nav.scrolled, .nav.menu-open, .nav.nav-solid { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* demo: shrink-to-center exit */
.ame-mock { transform-origin: center center; }
.ame-mock.is-leaving { transform: scale(0.55); opacity: 0; pointer-events: none; }
.apply-result { animation: none; }
.apply-result.is-shown { animation: rio-rise 1s cubic-bezier(0.22,1,0.36,1) both; }

.bg-video-wrap video { transform: scale(1.06); }

/* tutorial: explorer + files */
.dl-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.explorer-mock { border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; background: rgba(255,255,255,0.02); padding: 18px 20px 14px; margin-bottom: 22px; }
.explorer-title { margin: 0 0 12px; font-size: 13px; color: rgba(255,255,255,0.65); }
.explorer-title span { border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 3px 12px; background: rgba(255,255,255,0.04); }
.explorer-files { display: flex; gap: 14px; flex-wrap: wrap; }
.file-chip { display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; background: rgba(255,255,255,0.03); cursor: pointer; user-select: none; -webkit-user-select: none; }
.file-chip strong { display: block; font-size: 14px; color: #fff; }
.file-chip span { font-size: 12px; color: rgba(255,255,255,0.8); }
.file-ico { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.09); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.explorer-hint { margin: 12px 0 0; font-size: 13.5px; color: rgba(255,255,255,0.88); }
.apbx-chip.is-locked { opacity: 0.55; cursor: not-allowed; border-style: solid; }

/* result as plain text, no box - centered in place of the mock */
.apply-result { text-align: center; margin: 0 auto; max-width: 700px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; line-height: 1.5; color: #fff; border: 0; background: none; border-radius: 0; padding: 0; }

.apply-demo [hidden] { display: none !important; }

/* calmer hero */
.hero-copy .brand-big { font-size: clamp(24px, 3.4vw, 40px); margin: 10px 0 6px; }
.heart { color: #E5484D; }
footer .footer-inner p { color: rgba(255,255,255,0.8); }

/* compact AME slot on home */
.ame-mock.is-compact { max-width: 400px; }

/* home demo: solo mock, static exe chip */
.apply-stage--solo { grid-template-columns: minmax(0, 440px); justify-content: center; }
.file-chip--static { cursor: default; }




.bg-video-wrap::after { content: ""; position: absolute; inset: 0; background: rgba(5,3,4,0.22); }
.bg-video-wrap::after { content: ""; position: absolute; inset: 0; background: rgba(5,3,4,0.22); }

/* home demo: downloads + slot */
.ame-slot { max-width: 400px; margin-inline: auto; border: 2px dashed rgba(255,255,255,0.22); border-radius: 16px; background: rgba(255,255,255,0.02); padding: 26px 20px; text-align: center; transition: border-color 0.25s, box-shadow 0.25s, transform 0.7s cubic-bezier(0.22,1,0.36,1), opacity 0.7s; }
.ame-slot.is-armed { border-color: #E5484D; box-shadow: 0 0 0 1px #E5484D, 0 0 44px rgba(229,72,77,0.3); }
.ame-slot.is-leaving { transform: scale(0.55); opacity: 0; pointer-events: none; }
.ame-slot img.ame-shot { display: block; width: 100%; height: auto; border-radius: 10px; }
.ame-slot[hidden], .ame-slot img[hidden] { display: none; }
.ame-slot-inner img { border-radius: 10px; }
.ame-slot-inner p { margin: 8px 0 0; color: #fff; }
.ame-slot-hint { color: rgba(255,255,255,0.85); font-size: 13.5px; }

.bg-video-wrap video { filter: blur(14px) brightness(.9); transform: scale(1.06); }

/* attention line + callout pulse */
.attn-line { text-align: center; color: rgba(255,255,255,0.88); font-size: 14.5px; margin-top: 12px; }
.attn-dot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #E5484D; color: #fff; font-size: 13px; font-weight: 800; margin-right: 8px; vertical-align: 1px; }
@keyframes callout-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0.45); border-color: rgba(229,72,77,0.7); } 50% { box-shadow: 0 0 0 7px rgba(229,72,77,0); border-color: #E5484D; } }
.file-chip.is-callout { animation: callout-pulse 1.6s ease-in-out infinite; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .file-chip.is-callout { animation: none; } }
