/* RADIENT RP — shared shell with forum */

:root {
  --ink: #07080b;
  --ink-soft: #10131a;
  --panel: #141820;
  --sand: #f3efe6;
  --sand-muted: rgba(243, 239, 230, 0.62);
  --amber: #e8a54b;
  --amber-deep: #c47d28;
  --teal: #1a4a52;
  --line: rgba(243, 239, 230, 0.1);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --shell-h: 3.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--sand);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.page-veil {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-veil.is-on {
  opacity: 1;
}

/* Shared chrome — mirrors forum header */
.shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--shell-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.1rem, 3.5vw, 2.5rem);
  background: rgba(7, 8, 11, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.shell__brand {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}

.shell__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.shell__nav a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-muted);
  transition: color 0.2s ease;
}

.shell__nav a:hover,
.shell__nav a.is-active {
  color: var(--amber);
}

/* Hero — one composition */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--shell-h) + clamp(3rem, 10vh, 6rem))
    clamp(1.1rem, 3.5vw, 2.5rem) clamp(2.5rem, 7vh, 4.5rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(90% 70% at 78% 12%, rgba(232, 165, 75, 0.16), transparent 55%),
    radial-gradient(80% 60% at 8% 88%, rgba(26, 74, 82, 0.4), transparent 50%),
    linear-gradient(165deg, #0c1018 0%, var(--ink) 48%, #050608 100%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hero__glow--amber {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  top: 6%;
  right: 4%;
  background: rgba(232, 165, 75, 0.2);
  animation: drift-a 16s ease-in-out infinite alternate;
}

.hero__glow--teal {
  width: min(68vw, 620px);
  height: min(48vw, 460px);
  bottom: -12%;
  left: -10%;
  background: rgba(26, 74, 82, 0.42);
  animation: drift-b 20s ease-in-out infinite alternate;
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 239, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 230, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
  transform: perspective(700px) rotateX(48deg) translateY(-12%);
  transform-origin: center top;
}

.hero__edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(to top, rgba(232, 165, 75, 0.1), transparent 60%);
}

.hero__edge::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 165, 75, 0.4), transparent);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--sand);
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--amber);
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.hero__lede {
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.6;
  color: var(--sand-muted);
  max-width: 30rem;
  margin-bottom: 1.6rem;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 3px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber-deep);
}

.btn--primary:hover {
  background: #f0b45c;
}

.btn--ghost {
  background: transparent;
  color: var(--sand);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: rgba(243, 239, 230, 0.35);
  background: rgba(243, 239, 230, 0.04);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-3%, 5%) scale(1.06);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(5%, -3%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand,
  .hero__headline,
  .hero__lede,
  .hero__actions,
  .hero__glow,
  .page-veil {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    align-items: center;
  }

  .hero__actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
  }
}
