/* ===========================================================
   Rejoice Careers — landing page styles
   Loads after assets/css/base.css (design tokens live there)
   Mobile-first: designed for 360px up, enhanced at 640/768/1024
   =========================================================== */

/* ---------- Section scaffolding ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 auto 2.4rem; text-align: center; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .45em;
}
.section-head p { color: var(--muted); font-size: 1rem; margin: 0; }
.eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); background: var(--tint);
  padding: .32rem .95rem; border-radius: 999px;
  margin-bottom: .95rem;
}
#openings, #why, #process { scroll-margin-top: 88px; }

@media (min-width: 768px) {
  .section { padding: 5.5rem 0; }
  .section-head { margin-bottom: 3rem; }
}

/* ---------- Sticky translucent nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 17, 45, .58);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease, box-shadow .25s ease;
}
.nav.scrolled {
  background: rgba(13, 17, 45, .88);
  box-shadow: 0 10px 30px rgba(2, 6, 23, .35);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none !important;
}
.brand-mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--grad);
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .45);
}
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  letter-spacing: -.01em; color: #fff; white-space: nowrap;
}
.nav-links { display: none; align-items: center; gap: 1.7rem; }
.nav-links a {
  color: rgba(255, 255, 255, .74); font-weight: 500; font-size: .95rem;
  transition: color .15s ease;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta { white-space: nowrap; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-deep);
  color: #fff;
  padding: 4.2rem 0 3.8rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(90% 75% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(90% 75% at 50% 0%, #000 0%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; inset: -25%; pointer-events: none;
  background:
    radial-gradient(34% 38% at 80% 22%, rgba(124, 58, 237, .45), transparent 70%),
    radial-gradient(30% 34% at 14% 74%, rgba(79, 70, 229, .40), transparent 70%),
    radial-gradient(24% 26% at 58% 102%, rgba(245, 158, 11, .13), transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 780px; margin-inline: auto; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .42rem 1.05rem; border-radius: 999px;
  background: rgba(245, 158, 11, .14);
  border: 1px solid rgba(245, 158, 11, .38);
  color: #fcd34d; font-size: .85rem; font-weight: 600;
  margin-bottom: 1.4rem;
}
.pulse-dot {
  width: 8px; height: 8px; flex: none; border-radius: 50%;
  background: #fbbf24;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(251, 191, 36, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.05rem, 4.5vw + .7rem, 3.5rem);
  font-weight: 800; letter-spacing: -.025em;
  margin: 0 0 .5em;
}
.grad-text {
  background: linear-gradient(92deg, #a5b4fc, #e9d5ff 55%, #fcd34d);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(226, 232, 240, .85);
  max-width: 620px; margin: 0 auto 1.9rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

.hero-stats {
  margin-top: 2.8rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius); overflow: hidden;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.stat { background: rgba(17, 21, 54, .62); padding: 1.1rem .75rem 1rem; text-align: center; }
.stat b {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.25; color: #fff;
}
.stat span { font-size: .78rem; font-weight: 500; color: rgba(203, 213, 225, .78); }

/* gentle entrance for above-the-fold content */
.hero-inner > * { animation: heroUp .7s ease backwards; }
.hero-inner > *:nth-child(2) { animation-delay: .08s; }
.hero-inner > *:nth-child(3) { animation-delay: .16s; }
.hero-inner > *:nth-child(4) { animation-delay: .24s; }
.hero-inner > *:nth-child(5) { animation-delay: .32s; }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .hero { padding: 6.5rem 0 5.5rem; }
}

/* ---------- Openings: filter pills + job cards ---------- */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .55rem; margin-bottom: 2.2rem;
}
.filter-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.2;
  color: var(--ink-2); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: .5rem 1.05rem; cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.filter-pill:hover { border-color: #c7d2fe; color: var(--brand); }
.filter-pill .count {
  font-size: .72rem; font-weight: 700;
  background: var(--tint); color: var(--brand);
  border-radius: 999px; padding: .08rem .5rem;
  transition: background .18s ease, color .18s ease;
}
.filter-pill.active {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .35);
}
.filter-pill.active .count { background: rgba(255, 255, 255, .22); color: #fff; }
.filter-pill:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(79, 70, 229, .25); }

.jobs-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .jobs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .jobs-grid { grid-template-columns: repeat(3, 1fr); } }

.job-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.3rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: cardIn .35s ease backwards;
}
.job-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: var(--shadow-lg);
}
.job-card.is-hidden { display: none; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.job-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.chip-outline { background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }

.job-title {
  font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 .45rem;
}
.job-salary {
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  color: var(--brand); margin-bottom: .7rem;
}
.job-meta {
  display: flex; flex-wrap: wrap; gap: .35rem 1rem;
  font-size: .83rem; color: var(--muted); margin-bottom: .75rem;
}
.job-meta span { display: inline-flex; align-items: center; gap: .38rem; }
.job-meta svg { width: 14px; height: 14px; flex: none; color: var(--faint); }
.job-desc {
  font-size: .9rem; color: var(--ink-2); margin: 0 0 1.05rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-apply {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .95rem; color: var(--brand);
  text-decoration: none !important;
}
.job-apply .arr { transition: transform .18s ease; }
.job-card:hover .job-apply .arr { transform: translateX(4px); }
/* stretch the apply link over the whole card (one big tap target) */
.job-apply::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.job-apply:focus-visible { outline: none; }
.job-apply:focus-visible::after { box-shadow: 0 0 0 3px rgba(79, 70, 229, .35); }

.jobs-empty {
  max-width: 560px; margin-inline: auto;
  padding: 2.6rem 1.6rem; text-align: center;
}
.jobs-empty h3 { margin-bottom: .4rem; }
.jobs-empty p { color: var(--muted); margin: 0; }

/* ---------- Why join: perk cards ---------- */
.perks-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .perks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .perks-grid { grid-template-columns: repeat(3, 1fr); } }

.perk {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.perk:hover { transform: translateY(-3px); border-color: #ddd6fe; box-shadow: var(--shadow-lg); }
.perk-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; margin-bottom: 1rem;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #e0e7ff; color: var(--brand);
}
.perk-icon svg { width: 22px; height: 22px; }
.perk h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.perk p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Hiring process: 4 steps ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.7rem; grid-template-columns: 1fr; }
.step { position: relative; padding-left: 62px; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--grad); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .35);
}
.step h3 { font-size: 1.02rem; margin: .2rem 0 .3rem; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }
.step:not(:last-child)::before {
  content: ""; position: absolute;
  left: 21px; top: 50px; bottom: -1.3rem;
  border-left: 2px dashed #c7d2fe;
}

@media (min-width: 768px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
  .step { padding-left: 0; padding-top: 60px; }
  .step:not(:last-child)::before {
    left: 54px; right: -.8rem; top: 21px; bottom: auto;
    border-left: 0; border-top: 2px dashed #c7d2fe;
  }
}

/* ---------- Final CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--grad-deep);
  border-radius: 24px; box-shadow: var(--shadow-lg);
  padding: 2.8rem 1.4rem; text-align: center; color: #fff;
}
.cta-band::before {
  content: ""; position: absolute; inset: -30%; pointer-events: none;
  background:
    radial-gradient(36% 40% at 82% 18%, rgba(124, 58, 237, .5), transparent 70%),
    radial-gradient(30% 36% at 12% 86%, rgba(79, 70, 229, .45), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 {
  color: #fff; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .4em;
}
.cta-band p {
  color: rgba(226, 232, 240, .84);
  max-width: 560px; margin: 0 auto 1.7rem;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.btn-white { background: #fff; color: var(--brand-deep); box-shadow: 0 10px 24px rgba(2, 6, 23, .35); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(2, 6, 23, .45); }

@media (min-width: 768px) {
  .cta-band { padding: 4rem 2rem; }
}

/* ---------- Footer ---------- */
.footer {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(124, 58, 237, .22), transparent 55%),
    radial-gradient(90% 80% at 5% 10%, rgba(79, 70, 229, .18), transparent 50%),
    #0a0e1c;
  color: #8b95ab; font-size: .92rem;
}
/* glowing hairline across the top */
.footer-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.9), rgba(79,70,229,.9), transparent);
}
.footer .container { position: relative; z-index: 1; }

/* ---- CTA band ---- */
.footer-cta {
  display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start;
  padding: 3.4rem 0 2.6rem;
}
.footer-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: #c7b8ff; background: rgba(124, 58, 237, .16);
  border: 1px solid rgba(124, 58, 237, .35); padding: .3rem .85rem; border-radius: 999px;
}
.footer-headline {
  font-size: clamp(1.8rem, 4.6vw, 3rem); line-height: 1.08; color: #fff;
  margin: .9rem 0 0; letter-spacing: -.01em; max-width: 16ch;
}
.grad-text {
  background: linear-gradient(100deg, #a78bfa, #7c3aed 40%, #f0abfc);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: footerHue 6s ease-in-out infinite;
}
@keyframes footerHue { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---- Columns ---- */
.footer-grid {
  display: grid; gap: 2.4rem; grid-template-columns: 1fr;
  padding: 2.8rem 0 2.4rem; border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer .brand-name { color: #fff; }
.footer-blurb { max-width: 360px; margin: 1rem 0 0; color: #8b95ab; }
.footer-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.footer-stat {
  font-size: .82rem; color: #cbd5e1; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; padding: .4rem .7rem;
}
.footer-stat strong { color: #fff; font-family: var(--font-head); }
.footer h4 {
  font-family: var(--font-body); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: #e2e8f0; margin: 0 0 1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer a { color: #aab3c5; transition: color .15s, transform .15s; display: inline-block; }
.footer a:hover { color: #fff; text-decoration: none; transform: translateX(2px); }
.footer-loc { color: #aab3c5; }

/* ---- Bottom bar ---- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.3rem 0 1.6rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: #64748b;
}
.footer-made .heart { color: #f472b6; display: inline-block; animation: footerBeat 1.6s ease-in-out infinite; }
@keyframes footerBeat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.35); } 30% { transform: scale(1); } }

/* ---- Giant watermark ---- */
.footer-watermark {
  position: absolute; left: 50%; bottom: -.28em; transform: translateX(-50%);
  font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(5rem, 22vw, 18rem); line-height: 1; white-space: nowrap;
  pointer-events: none; user-select: none; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (min-width: 768px) {
  .footer-cta { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1.7fr 1fr 1.2fr; gap: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .grad-text, .footer-made .heart { animation: none; }
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--rd, 0ms);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-inner > *, .job-card { animation: none; }
  .pulse-dot { animation: none; }
  .job-card:hover, .perk:hover, .btn-white:hover { transform: none; }
}
