:root {
  color-scheme: light dark;
  --bg: #f6f4ef;
  --bg-soft: rgba(255,255,255,0.54);
  --panel: rgba(255,255,255,0.72);
  --panel-strong: rgba(255,255,255,0.82);
  --text: #101010;
  --text-soft: #575757;
  --line: rgba(16,16,16,0.12);
  --shadow: 0 24px 80px rgba(0,0,0,0.10);
  --blur: blur(26px) saturate(1.2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090909;
    --bg-soft: rgba(12,12,12,0.48);
    --panel: rgba(10,10,10,0.66);
    --panel-strong: rgba(10,10,10,0.78);
    --text: #f6f6f1;
    --text-soft: #b0b0aa;
    --line: rgba(255,255,255,0.12);
    --shadow: 0 26px 90px rgba(0,0,0,0.38);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.rcg-public-body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.rcg-gate {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: 28px;
  isolation: isolate;
  overflow: hidden;
}

.rcg-atmosphere {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.rcg-orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(52px);
  opacity: .48;
  animation: rcgFloat 16s ease-in-out infinite alternate;
}
.orb-1 {
  width: 34rem; height: 34rem; left: -6rem; top: -5rem;
  background: radial-gradient(circle at 50% 50%, rgba(255,120,124,.24), rgba(255,120,124,0) 72%);
}
.orb-2 {
  width: 30rem; height: 30rem; right: 2%; top: 4%;
  background: radial-gradient(circle at 50% 50%, rgba(123,156,255,.20), rgba(123,156,255,0) 72%);
  animation-duration: 19s;
}
.orb-3 {
  width: 28rem; height: 28rem; left: 18%; bottom: -8%;
  background: radial-gradient(circle at 50% 50%, rgba(255,203,112,.18), rgba(255,203,112,0) 72%);
  animation-duration: 20s;
}
.orb-4 {
  width: 26rem; height: 26rem; right: 14%; bottom: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(122,215,199,.17), rgba(122,215,199,0) 72%);
  animation-duration: 22s;
}

.rcg-particle {
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  box-shadow: 0 0 18px rgba(255,255,255,.22);
  opacity: .5;
  animation: rcgParticle 18s linear infinite;
}
@media (prefers-color-scheme: light) {
  .rcg-particle {
    background: rgba(16,16,16,.10);
    box-shadow: 0 0 18px rgba(16,16,16,.10);
  }
}
.p-1 { left: 9%; top: 18%; animation-duration: 17s; }
.p-2 { left: 22%; top: 72%; width: 6px; height: 6px; animation-duration: 21s; }
.p-3 { right: 14%; top: 22%; width: 10px; height: 10px; animation-duration: 19s; }
.p-4 { right: 8%; top: 68%; animation-duration: 22s; }
.p-5 { left: 64%; top: 12%; width: 5px; height: 5px; animation-duration: 24s; }
.p-6 { left: 48%; top: 80%; width: 7px; height: 7px; animation-duration: 20s; }

.rcg-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}

.rcg-copy,
.rcg-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: clamp(28px, 4vw, 42px);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.rcg-copy {
  padding: clamp(24px, 4vw, 48px);
}

.rcg-kicker {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: .74rem;
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rcg-copy h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.15rem, 5.3vw, 4.5rem);
  line-height: .96;
  letter-spacing: -.05em;
  font-weight: 760;
  text-wrap: balance;
}

.rcg-body {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: clamp(.96rem, 1.35vw, 1.07rem);
  line-height: 1.58;
}
.rcg-body p { margin: 0; }
.rcg-body p + p { margin-top: 12px; }

.rcg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.rcg-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 760;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.rcg-button:hover { transform: translateY(-1px); }
.rcg-button-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.rcg-button-secondary { background: transparent; color: var(--text); }

.rcg-visual {
  padding: clamp(16px, 3vw, 22px);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
}

.rcg-image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.28);
  aspect-ratio: 1 / 1;
}
@media (prefers-color-scheme: dark) {
  .rcg-image-frame { background: rgba(255,255,255,.04); }
}
.rcg-image-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rcg-visual-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.rcg-visual-info span,
.rcg-visual-info strong {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  font-size: .73rem;
  line-height: 1;
}
@media (prefers-color-scheme: dark) {
  .rcg-visual-info span,
  .rcg-visual-info strong { background: rgba(255,255,255,.05); }
}
.rcg-visual-info span { color: var(--text-soft); font-weight: 700; }
.rcg-visual-info strong { color: var(--text); font-weight: 820; }

.rcg-footer-note {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 16px auto 0;
  text-align: center;
  color: var(--text-soft);
  font-size: .8rem;
  line-height: 1.35;
}

@keyframes rcgFloat {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2.5%, -2.8%, 0) scale(1.08); }
}

@keyframes rcgParticle {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: .18; }
  20% { opacity: .42; }
  50% { transform: translate3d(26px, -18px, 0) scale(1.12); opacity: .28; }
  100% { transform: translate3d(-18px, -42px, 0) scale(.96); opacity: .14; }
}

@media (max-width: 1040px) {
  .rcg-shell {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .rcg-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.05rem, 8vw, 4rem);
  }

  .rcg-body {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .rcg-gate {
    padding: 16px;
  }

  .rcg-copy,
  .rcg-visual {
    border-radius: 24px;
  }

  .rcg-copy {
    padding: 20px 16px 22px;
  }

  .rcg-kicker {
    margin-bottom: 12px;
    font-size: .64rem;
    letter-spacing: .14em;
  }

  .rcg-copy h1 {
    max-width: 9.8ch;
    font-size: clamp(1.82rem, 8.8vw, 2.9rem);
    line-height: .98;
  }

  .rcg-body {
    margin-top: 14px;
    font-size: .9rem;
    line-height: 1.5;
  }

  .rcg-actions {
    flex-direction: column;
    margin-top: 20px;
  }

  .rcg-button {
    width: 100%;
  }

  .rcg-visual {
    padding: 12px;
  }

  .rcg-image-frame {
    border-radius: 20px;
    aspect-ratio: 1 / 1.04;
  }

  .rcg-visual-info {
    margin-top: 12px;
    gap: 8px;
  }

  .rcg-visual-info span,
  .rcg-visual-info strong {
    min-height: 28px;
    padding: 7px 10px;
    font-size: .66rem;
  }

  .rcg-footer-note {
    margin-top: 12px;
    font-size: .74rem;
  }

  .rcg-orb {
    filter: blur(44px);
    opacity: .42;
  }
}
