/* ===== CAREERS PAGE ===== */

/* Hero animation - plays on load, not on scroll */
.hero-animate {
  animation: heroFadeIn .8s ease forwards;
}

@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Hero */
.careers-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.careers-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.careers-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.careers-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,30,.4) 0%, rgba(10,15,30,.7) 60%, rgba(10,15,30,.95) 100%);
}

.careers-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
  margin: 0 auto;
  text-align: center;
}

.careers-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
}

.careers-hero__eyebrow .material-symbols-rounded { font-size: 1.1rem; }

.careers-hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.careers-hero__title span {
  display: block;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.careers-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.careers-hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* Job Search Bar */
.job-search {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 6px;
  max-width: 640px;
  margin: 0 auto;
}

.job-search__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-right: 1px solid rgba(255,255,255,.08);
}

.job-search__field:last-of-type { border-right: none; }

.job-search__field .material-symbols-rounded {
  font-size: 1.3rem;
  color: rgba(255,255,255,.4);
}

.job-search__field select,
.job-search__field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: .88rem;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.job-search__field select option { background: #1a1f2e; color: #fff; }
.job-search__field input::placeholder { color: rgba(255,255,255,.35); }

.job-search__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.job-search__btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.job-search__btn .material-symbols-rounded { font-size: 1.2rem; }

.careers-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.35);
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.careers-hero__scroll .material-symbols-rounded { font-size: 1.4rem; }

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Stats Bar ===== */
.stats-bar {
  padding: 56px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat {
  padding: 20px;
}

.stat__number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  margin-top: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Why Section ===== */
.why-section {
  padding: 80px 0;
}

.why-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-section__text h2 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.why-section__text h2 em {
  font-style: normal;
  color: var(--accent);
}

.why-section__text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.why-section__image {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.why-section__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .6s ease;
}

.why-section__image:hover img { transform: scale(1.04); }

.why-section__image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}

/* CTA Link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--accent);
  transition: gap var(--transition), color var(--transition);
}

.link-arrow:hover { gap: 14px; color: var(--accent-hover); }
.link-arrow .material-symbols-rounded { font-size: 1.2rem; }

/* ===== Benefits ===== */
.benefits {
  padding: 80px 0;
  background: rgba(0,0,0,.15);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.benefits__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.benefits__header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.benefits__header p {
  color: var(--text-secondary);
  font-size: .95rem;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.benefit-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.1);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.benefit-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
}

.benefit-card__icon .material-symbols-rounded { font-size: 1.6rem; }

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== Culture / Life Section ===== */
.culture {
  padding: 80px 0;
}

.culture__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.culture__header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.culture__header p {
  color: var(--text-secondary);
  font-size: .95rem;
}

.culture__mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.culture__tile {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.culture__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform .6s ease;
}

.culture__tile:hover img { transform: scale(1.06); }

.culture__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, transparent 60%);
  pointer-events: none;
}

.culture__tile span {
  position: absolute;
  bottom: 16px;
  left: 18px;
  z-index: 2;
  font-weight: 700;
  font-size: .9rem;
}

.culture__tile--wide { grid-column: span 2; }
.culture__tile--tall { grid-row: span 2; }

/* ===== Hiring Process ===== */
.process {
  padding: 80px 0;
  background: rgba(0,0,0,.15);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.process__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.process__header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.process__header p {
  color: var(--text-secondary);
  font-size: .95rem;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* connecting line */
.process__steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #7c3aed, #3b5bdb, #16a34a);
  z-index: 0;
}

.process__step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process__step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: all var(--transition);
}

.process__step:hover .process__step-num {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.process__step-num .material-symbols-rounded { font-size: 1.6rem; }

.process__step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.process__step p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

/* ===== Open Roles CTA ===== */
.roles-cta {
  padding: 80px 0;
  text-align: center;
}

.roles-cta h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.roles-cta p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

.roles-cta__departments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.dept-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
  cursor: pointer;
}

.dept-chip:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  transform: translateY(-2px);
}

.dept-chip .material-symbols-rounded { font-size: 1.2rem; opacity: .6; }

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn--lg .material-symbols-rounded { font-size: 1.3rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .careers-hero__title { font-size: 2.6rem; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .why-section__grid { grid-template-columns: 1fr; gap: 40px; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .culture__mosaic { grid-template-columns: repeat(2, 1fr); }
  .culture__tile--wide { grid-column: span 1; }
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process__steps::before { display: none; }
}

@media (max-width: 768px) {
  .careers-hero { min-height: 85vh; }
  .careers-hero__title { font-size: 2rem; }
  .careers-hero__subtitle { font-size: 1rem; }
  .job-search { flex-direction: column; }
  .job-search__field { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 12px 16px; }
  .job-search__field:last-of-type { border-bottom: none; }
  .stat__number { font-size: 2.2rem; }
  .why-section__text h2 { font-size: 1.8rem; }
  .benefits__header h2, .culture__header h2, .process__header h2, .roles-cta h2 { font-size: 1.7rem; }
  .benefits__grid { grid-template-columns: 1fr; }
  .culture__mosaic { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .careers-hero__title { font-size: 1.7rem; }
  .stats-bar__grid { grid-template-columns: 1fr; }
  .roles-cta__departments { flex-direction: column; align-items: center; }
}

/* ===== OPEN ROLES (dynamic) ===== */
.open-roles {
  padding: 80px 0 100px;
  text-align: center;
}
.open-roles__header {
  max-width: 620px;
  margin: 0 auto 40px;
}
.open-roles__header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.open-roles__header h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.open-roles__header p {
  color: var(--text-secondary);
  font-size: 1rem;
}
.open-roles__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip .material-symbols-rounded { font-size: 1rem; opacity: .7; }
.filter-chip:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-chip.active .material-symbols-rounded { opacity: 1; }

.open-roles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  text-align: left;
}
.open-roles__loading {
  grid-column: 1 / -1;
  padding: 60px;
  color: var(--text-muted);
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.open-roles__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.open-roles__empty .material-symbols-rounded {
  font-size: 3rem;
  opacity: .4;
  margin-bottom: 16px;
  display: block;
}
.open-roles__empty h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,.8);
}

.role-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.role-card:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -20px rgba(251, 146, 60, .3);
}
.role-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.role-card__tag .material-symbols-rounded { font-size: 13px; }
.role-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.role-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.role-card__meta span {
  font-size: .72rem;
  padding: 4px 10px;
  background: rgba(255,255,255,.06);
  border-radius: 99px;
  color: rgba(255,255,255,.7);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.role-card__meta span .material-symbols-rounded { font-size: 13px; }
.role-card__desc {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.role-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: .82rem;
  margin-top: auto;
  padding-top: 8px;
}
.role-card__cta .material-symbols-rounded { font-size: 1rem; transition: transform var(--transition); }
.role-card:hover .role-card__cta .material-symbols-rounded { transform: translateX(4px); }

/* ===== APPLY MODAL ===== */
.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.apply-modal[hidden] { display: none; }
.apply-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,8,15,.85);
  backdrop-filter: blur(10px);
}
.apply-modal__panel {
  position: relative;
  background: #12151f;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  animation: applyModalIn .3s ease;
}
@keyframes applyModalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.apply-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.06);
  border: 0;
  border-radius: 10px;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.apply-modal__close:hover { background: rgba(255,255,255,.12); color: #fff; }
.apply-modal__head {
  margin-bottom: 24px;
  padding-right: 40px;
}
.apply-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.apply-modal__eyebrow .material-symbols-rounded { font-size: 14px; }
.apply-modal__head h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #fff;
}
.apply-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.apply-modal__meta span {
  font-size: .72rem;
  padding: 4px 10px;
  background: rgba(255,255,255,.06);
  border-radius: 99px;
  color: rgba(255,255,255,.7);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.apply-modal__meta .material-symbols-rounded { font-size: 13px; }
.apply-modal__body h4 {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  margin: 18px 0 8px;
}
.apply-modal__body p {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
}
.apply-modal__form label,
.apply-modal__row label {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  margin-bottom: 14px;
}
.apply-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.apply-modal__form input,
.apply-modal__form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-family: inherit;
  font-size: .88rem;
  outline: none;
  transition: all .15s;
  resize: vertical;
}
.apply-modal__form input::placeholder,
.apply-modal__form textarea::placeholder {
  color: rgba(255,255,255,.3);
}
.apply-modal__form input:focus,
.apply-modal__form textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.07);
}
.apply-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.apply-modal__actions .btn {
  padding: 11px 22px;
  font-size: .85rem;
}
.apply-modal__success {
  text-align: center;
  padding: 20px 0;
}
.apply-modal__success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(22, 163, 74, .15);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.apply-modal__success-icon .material-symbols-rounded { font-size: 2.2rem; }
.apply-modal__success h3 {
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 10px;
}
.apply-modal__success p {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto 24px;
}
.apply-modal__success .btn {
  min-width: 140px;
}

@media (max-width: 600px) {
  .apply-modal__row { grid-template-columns: 1fr; }
  .apply-modal__panel { padding: 28px 22px; }
  .apply-modal__head h2 { font-size: 1.3rem; }
}
