/* RegenX3 Landing Gate — brand palette */

:root {
  --rx3-bg: #263b43;
  --rx3-bg-deep: #1b2c32;
  --rx3-panel: rgba(32, 42, 44, 0.72);
  --rx3-light: #f7f4ef;
  --rx3-surface: #ffffff;
  --rx3-text: #202a2c;
  --rx3-muted: #566369;
  --rx3-accent: #9e8468;
  --rx3-accent-deep: #756049;
  --rx3-line: #d8d9d3;
  --rx3-teal: #3d6a73;
  --rx3-font-serif: "Playfair Display", Georgia, serif;
  --rx3-font-sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body.regenx3-gate-body {
  margin: 0;
  min-height: 100%;
  font-family: var(--rx3-font-sans);
  background: radial-gradient(1200px 700px at 50% -10%, #35545d 0%, var(--rx3-bg) 45%, var(--rx3-bg-deep) 100%);
  color: #fff;
}

.rx3-gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 28px;
  gap: 22px;
}

.rx3-brand { text-align: center; }
.rx3-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.rx3-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #c8d6dc, transparent 55%),
    linear-gradient(145deg, var(--rx3-teal), var(--rx3-bg-deep));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 0 0 1px rgba(158,132,104,0.35);
}
.rx3-word {
  font-family: var(--rx3-font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.rx3-word em { font-style: italic; font-weight: 500; }
.rx3-word i { color: var(--rx3-accent); font-style: normal; margin-left: 1px; }
.rx3-tagline {
  margin: 10px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8d6dc;
}

.rx3-panel {
  width: min(720px, 100%);
  border-radius: 14px;
  padding: 36px 34px 28px;
  animation: rx3In 0.35s ease both;
}
@keyframes rx3In {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.rx3-panel[hidden] { display: none !important; }

.rx3-panel-dark {
  background: rgba(20, 32, 36, 0.88);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(12px);
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.rx3-panel-dark h1 {
  margin: 0 0 10px;
  font-family: var(--rx3-font-sans);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff !important;
}
.rx3-panel-dark p { margin: 0; color: rgba(255,255,255,0.9) !important; }

.rx3-panel-light {
  background: var(--rx3-surface);
  color: var(--rx3-text);
  border: 1px solid var(--rx3-line);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.rx3-panel-light h1 {
  margin: 0 0 12px;
  font-family: var(--rx3-font-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--rx3-bg);
}
.rx3-lead {
  text-align: center;
  color: var(--rx3-muted);
  max-width: 46ch;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.rx3-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.rx3-actions-stack { flex-direction: column; align-items: stretch; }
.rx3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.rx3-btn:hover { transform: translateY(-1px); }
.rx3-btn-primary {
  background: var(--rx3-accent-deep);
  color: #fff;
  border-color: var(--rx3-accent-deep);
}
.rx3-btn-primary:hover { background: var(--rx3-accent); border-color: var(--rx3-accent); }
.rx3-panel-light .rx3-btn-primary {
  background: var(--rx3-bg);
  border-color: var(--rx3-bg);
}
.rx3-panel-light .rx3-btn-primary:hover {
  background: #3b565f;
  border-color: #3b565f;
}
.rx3-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.rx3-panel-light .rx3-btn-ghost {
  color: var(--rx3-teal);
  border-color: var(--rx3-teal);
}
.rx3-fine {
  margin-top: 22px !important;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55) !important;
}

.rx3-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rx3-choice {
  text-align: left;
  background: var(--rx3-light);
  border: 1px solid var(--rx3-line);
  border-radius: 10px;
  padding: 20px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.rx3-choice:hover {
  border-color: var(--rx3-teal);
  box-shadow: 0 10px 24px rgba(38,59,67,0.1);
  transform: translateY(-2px);
}
.rx3-choice-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--rx3-teal);
  border: 1px solid var(--rx3-line);
  margin-bottom: 4px;
}
.rx3-choice strong {
  font-size: 1.02rem;
  color: var(--rx3-bg);
}
.rx3-choice span:last-child {
  font-size: 0.88rem;
  color: var(--rx3-muted);
  line-height: 1.45;
}

.rx3-back {
  background: none;
  border: 0;
  color: var(--rx3-muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 0;
}
.rx3-back:hover { color: var(--rx3-bg); text-decoration: underline; }

.rx3-foot {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

@media (max-width: 720px) {
  .rx3-choices { grid-template-columns: 1fr; }
  .rx3-panel { padding: 28px 20px 22px; }
  .rx3-actions { flex-direction: column; }
  .rx3-btn { width: 100%; }
}
