/* ============================================================
   Rising Force Reward — Servidor de RF Online
   Direction 05 · Faction Triptych
   Palette: orange / white / black
   ============================================================ */

:root {
  --bg:        #0C0C0E;
  --surface:   #141417;
  --surface-2: #1a1a1e;
  --border:    #26261c;
  --border-hi: #3a3a30;

  --ink:       #ECECEF;
  --ink-soft:  #C9C9CE;
  --ink-mute:  #8d8d95;

  --org:       #FF7A2D;
  --org-deep:  #E5410E;
  --org-lite:  #FFB259;
  --grad-org:  linear-gradient(135deg, #FFB259 0%, #FF7A2D 55%, #E5410E 100%);

  --container: 520px;
  --radius:    12px;
  --ease:      cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, #17110b 0%, var(--bg) 46%) no-repeat,
    var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0 18px 56px;
}

.page {
  width: 100%;
  max-width: var(--container);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- SIGNATURE: faction triptych header ---------- */
.factions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 232px;
  margin: 0 -18px;          /* full-bleed on mobile */
  position: relative;
  overflow: hidden;
}
.factions::after {          /* fade the band into the page */
  content: "";
  position: absolute; inset: auto 0 0 0; height: 96px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.faction {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faction + .faction { border-left: 1px solid rgba(255,122,45,.22); }
.faction--accretia { background: linear-gradient(to bottom, #3a2410, var(--bg) 78%); }
.faction--bellato  { background: linear-gradient(to bottom, #5a2c0c, var(--bg) 78%); }
.faction--cora     { background: linear-gradient(to bottom, #7a3408, var(--bg) 78%); }

.faction__name {
  margin-top: 18px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 1;
}
.faction__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-top: 16px;
}
.faction__art::before {        /* backlight so the black emblems read on dark */
  content: "";
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,166,86,.95) 0%,
    rgba(255,122,45,.55) 36%,
    rgba(255,122,45,0) 70%);
  filter: blur(2px);
}
.faction__art img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Brand crest ---------- */
.brand {
  margin: -74px 0 0;        /* overlap the faction band */
  text-align: center;
  position: relative;
  z-index: 2;
}
.brand__logo {
  width: min(84%, 360px);
  height: auto;
  /* transparent PNG — glow follows the logo shape, no card */
  filter:
    drop-shadow(0 10px 26px rgba(229,65,14,.55))
    drop-shadow(0 0 34px rgba(255,122,45,.40));
}

/* ---------- Copy ---------- */
.kicker {
  margin: 22px 0 6px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--org);
}
.tagline {
  margin: 0 auto;
  max-width: 40ch;
  text-align: center;
  color: var(--ink-soft);
  font-size: .96rem;
}

/* ---------- Primary CTA ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  margin: 26px 0 30px;
  padding: 16px 24px;
  border-radius: var(--radius);
  background: var(--grad-org);
  color: #140a04;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(229,65,14,.7);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -12px rgba(229,65,14,.85);
}
.cta .fa-angle-right { transition: transform .18s var(--ease); }
.cta:hover .fa-angle-right { transform: translateX(4px); }

/* ---------- Link cards ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.link {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  padding: 15px 18px 15px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.link::before {            /* faction tab */
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--grad-org);
}
.link:hover,
.link:focus-visible {
  transform: translateX(4px);
  border-color: var(--border-hi);
  background: var(--surface-2);
}
.link__icon {
  flex: none;
  width: 24px;
  font-size: 1.25rem;
  text-align: center;
  color: var(--org);
}
.link__label {
  flex: 1;
  font-weight: 500;
  font-size: 1rem;
}
.link__go {
  color: var(--ink-mute);
  transition: transform .16s var(--ease), color .16s var(--ease);
}
.link:hover .link__go { color: var(--org); transform: translateX(3px); }

/* ---------- Socials ---------- */
.social-label {
  margin: 30px 0 14px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.social {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.social:hover,
.social:focus-visible {
  transform: translateY(-3px);
  color: var(--org);
  border-color: var(--org);
  box-shadow: 0 10px 22px -10px rgba(255,122,45,.6);
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 36px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.foot__dot { color: var(--org); margin: 0 8px; }

/* ---------- Focus visibility ---------- */
:focus-visible {
  outline: 2px solid var(--org-lite);
  outline-offset: 3px;
}

/* ---------- Motion: entrance (restrained, opt-in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .brand, .kicker, .tagline, .cta, .link, .social-label, .socials, .foot {
    animation: rise .5s var(--ease) both;
  }
  .kicker     { animation-delay: .05s; }
  .tagline    { animation-delay: .10s; }
  .cta        { animation-delay: .15s; }
  .link:nth-child(1) { animation-delay: .20s; }
  .link:nth-child(2) { animation-delay: .26s; }
  .link:nth-child(3) { animation-delay: .32s; }
  .link:nth-child(4) { animation-delay: .38s; }
  .social-label { animation-delay: .42s; }
  .socials      { animation-delay: .46s; }
  .foot         { animation-delay: .50s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 540px) {
  .factions { margin: 0; border-radius: 0 0 16px 16px; }
}
@media (max-width: 360px) {
  .factions { height: 200px; }
  .faction__name { letter-spacing: .18em; }
  .link__label, .cta { font-size: .95rem; }
}
