/* ---------- Tokens ---------- */
:root {
  --purple-900: #5E0DD9;
  --purple-700: #6F18F2;
  --purple-500: #8135F3;
  --purple-400: #9656F5;
  --purple-tint: rgba(94, 13, 217, 0.1);
  --ink: #020817;
  --muted: #756C84;
  --red: #e02424;
  --green: #28a745;
  --font-body: "Roboto", system-ui, sans-serif;
  --font-head: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: #54595F;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  padding: 20px 30px;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  line-height: 1;
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn:hover { transform: scale(1.2); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn--white { background: #fff; color: var(--purple-700); }
.btn--purple { background: var(--purple-700); color: #fff; }
.btn--purple:focus-visible { outline-color: var(--purple-500); }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 100px 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, var(--purple-400) 0%, var(--purple-700) 100%);
}
.logo-pill {
  width: min(420px, 100%);
  padding: 14px 0;
  display: flex;
  justify-content: center;
  background: #fff;
  border-radius: 1000px;
}
.logo-pill img { width: 85%; display: block; }
.hero__title {
  max-width: 70%;
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
}
.hero__lead { max-width: 60%; font-size: 21px; line-height: 1.6; }
.hero__note { max-width: 60%; font-size: 18px; font-style: italic; opacity: .9; }
.hero .btn { margin-top: 10px; }
.hero__chevron {
  display: inline-block;
  margin-top: 20px;
  animation: jump 1s infinite alternate;
}
.hero__chevron svg { width: 20px; height: 20px; fill: #fff; display: block; }
@keyframes jump {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

/* ---------- Mission + About Us ---------- */
.mission {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 50px;
  text-align: center;
  color: #fff;
  background: var(--purple-900);
}
.mission__title {
  max-width: 90%;
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
}
.mission__lead { max-width: 80%; font-size: 21px; }
.mission__sub { max-width: 80%; font-size: 21px; opacity: .9; }
.mission .btn { margin-top: 10px; }

.about-us {
  width: 100%;
  max-width: 900px;
  margin-top: 50px;
  padding: 50px;
  text-align: left;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--purple-400) 0%, var(--purple-700) 100%);
}
.about-us h3 { font-size: 28px; margin-bottom: 20px; }
.glass {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  transition: background .5s, box-shadow .5s;
}
.glass:hover { background: rgba(255, 255, 255, .15); box-shadow: 0 0 40px rgba(255, 255, 255, .15); }
.glass p { font-size: 21px; line-height: 1.6; color: rgba(255, 255, 255, .95); }

/* ---------- About the role ---------- */
.role {
  padding: 100px 20px 20px;
  background: var(--purple-tint);
}
.role__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: center;
}
.role__text h2 { font-size: 32px; color: var(--purple-500); margin-bottom: 20px; }
.role__text p { font-size: 21px; line-height: 1.6; color: var(--muted); }
.role__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  background: #fff;
  border: .5px solid rgba(129, 53, 243, .2);
  border-radius: 20px;
}
.role__card h3 { font-size: 21px; font-weight: 600; color: #000; margin-bottom: 7px; }
.role__card p { font-size: 18px; color: var(--muted); }
.role__card small { font-size: 14px; }

/* ---------- Details ---------- */
.details {
  padding: 50px 20px 100px;
  background: linear-gradient(180deg, var(--purple-tint) 0%, #fff 9%);
}
.details__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
}
.details__block { width: 100%; }
.details__block h3, .work-with h3 { font-size: 28px; color: var(--purple-500); margin-bottom: 16px; }

.check-list { list-style: none; padding: 0; display: grid; gap: 19px; }
.check-list li {
  position: relative;
  padding-left: 36px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--purple-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.work-with {
  width: 100%;
  padding: 50px;
  background: var(--purple-tint);
  border: .5px solid rgba(129, 53, 243, .2);
  border-radius: 20px;
}
.work-with p { font-size: 21px; color: var(--muted); }
.details .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.footer {
  padding: 100px 20px;
  color: #fff;
  background: linear-gradient(180deg, var(--purple-400) 0%, var(--purple-700) 100%);
}
.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto 50px;
}
.footer__cols > div { flex: 1 1 280px; }
.footer h4 { font-size: 24px; margin-bottom: 16px; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }
.contact-list svg { width: 14px; height: 14px; fill: #fff; }

.social { display: flex; gap: 5px; }
.social__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: transform .2s;
}
.social__icon:hover { transform: translateY(-3px); }
.social__icon svg { width: 20px; height: 20px; fill: #fff; }
.social__icon--youtube   { background: #cd201f; }
.social__icon--instagram { background: #262626; }
.social__icon--facebook  { background: #3b5998; }
.social__icon--linkedin  { background: #0077b5; }
.footer__copy { text-align: center; font-size: 16px; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, .8);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 50px;
  margin: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #333;
  cursor: pointer;
}
.modal__close:hover { color: var(--purple-500); }
.modal__title { font-size: 28px; color: var(--purple-500); margin-bottom: 20px; }
.modal__sub { font-size: 21px; color: var(--muted); margin-bottom: 30px; }

/* ---------- Form ---------- */
.apply-form {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}
.progress { height: 20px; margin-bottom: 20px; background: #F8F8F8; }
.progress__bar {
  width: 33%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--purple-700);
  color: #fff;
  font: 700 11px/1 var(--font-head);
  transition: width .35s ease;
}

.step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.step.is-active { display: block; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 10px;
  font: 700 16px/1.2 var(--font-head);
  color: var(--ink);
}
.req { color: var(--red); }
.warn { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: red; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px;
  font: 400 16px var(--font-body);
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #aaa; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(129, 53, 243, .15);
}
.field .invalid { border-color: var(--red); }

.field input[type="file"] { padding: 8px; background: #fafafa; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  font: 600 14px var(--font-head);
  color: #fff;
  background: var(--purple-500);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.hint { margin-top: 6px; font-size: 13px; color: var(--muted); }

.select-wrap { position: relative; padding: 4px; border: 1px solid #ddd; border-radius: 4px; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 36px; border: 1px solid #555; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.word-counter { margin-top: 5px; font-size: 14px; color: red; }
.word-counter.ok { color: green; }
.field-error, .form-message {
  margin-top: 10px;
  font-size: 14px;
  color: #d33;
}
.form-message { padding: 10px 12px; border-radius: 4px; background: #fdecea; }

.buttons { display: flex; gap: 16px; margin-top: 20px; }
.btn-step {
  flex: 1;
  padding: 20px;
  font: 500 21px var(--font-body);
  color: #fff;
  background: var(--purple-500);
  border: .5px solid var(--purple-500);
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.btn-step:hover { background: var(--purple-700); }
.btn-step--prev { color: var(--purple-500); background: #fff; }
.btn-step--prev:hover { color: var(--purple-500); background: #f6f0ff; }
.btn-step:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Voice recorder ---------- */
.voice-recorder {
  margin: 0 0 4px;
  padding: 20px;
  text-align: center;
  color: #fff;
  background: #111;
  border: 2px solid var(--purple-500);
  border-radius: 12px;
  transition: all .3s ease;
}
.voice-recorder.valid { border-color: var(--green); background: #1a4d1a; }
.voice-recorder label { display: block; margin-bottom: 10px; font: 700 15px Arial, sans-serif; text-align: left; color: #fff; }
.voice-recorder pre {
  margin: 0 0 15px;
  padding: 15px;
  text-align: left;
  white-space: pre-wrap;
  font: 14px/1.5 "Courier New", monospace;
  color: #000;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.voice-recorder__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.voice-recorder button {
  padding: 10px 18px;
  color: #fff;
  background: #222;
  border: 0;
  border-radius: 8px;
  font: 14px Arial, sans-serif;
  cursor: pointer;
  transition: background-color .3s;
}
.voice-recorder button:disabled { background: #555; cursor: not-allowed; }
.voice-recorder button:hover:not(:disabled) { background: #333; }
.voice-recorder button.is-recording { background: #dc3545; }
#visualizer { display: block; width: 100%; height: 60px; margin-top: 10px; background: #000; border-radius: 10px; }
.voice-recorder audio { width: 100%; margin-top: 15px; }
.recording-status { margin-top: 10px; padding: 8px; border-radius: 4px; font: 14px Arial, sans-serif; text-align: center; }
.status-required { color: #721c24; background: #f8d7da; border: 1px solid #f5c6cb; }
.status-complete { color: #155724; background: #d4edda; border: 1px solid #c3e6cb; }
.status-working  { color: #856404; background: #fff3cd; border: 1px solid #ffeeba; }
.flash-animation { animation: flash .5s ease-in-out 3; }
@keyframes flash { 0%, 100% { background: #111; } 50% { background: #dc3545; } }

/* ---------- Success / loading ---------- */
.success { text-align: center; padding: 30px 10px 10px; }
.success__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  font-size: 36px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}
.success h4 { font-size: 26px; color: var(--purple-500); margin-bottom: 10px; }
.success p { margin-bottom: 24px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.success .btn-step { max-width: 200px; }

.loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, .95);
  border-radius: 20px;
}
.loading h4 { margin: 18px 0 6px; font-size: 22px; color: var(--purple-500); }
.loading p { color: var(--muted); }
.loading__spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #eadcff;
  border-top-color: var(--purple-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .logo-pill img { width: 100%; padding: 0 20px; }
  .role__inner { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .hero { padding: 60px 20px; }
  .logo-pill { width: 62%; }
  .hero__title, .hero__lead, .hero__note { max-width: 100%; }
  .hero__title, .mission__title { font-size: 30px; }
  .hero__lead { font-size: 18px; }
  .hero__note { font-size: 16px; }

  .mission { padding: 20px; }
  .mission__title, .mission__lead, .mission__sub { max-width: 100%; }
  .mission__lead, .mission__sub { font-size: 18px; }
  .about-us { padding: 30px 20px; }
  .glass { padding: 20px; }
  .glass p { font-size: 18px; }

  .role { padding: 60px 20px 20px; }
  .role__text p, .work-with p { font-size: 18px; }
  .work-with { padding: 30px 20px; }

  .footer { padding: 60px 20px; }

  .modal__dialog { padding: 30px 12px; border-radius: 16px; }
  .modal__sub { font-size: 18px; margin-bottom: 20px; }
  .apply-form { padding: 14px; }
  .btn-step { font-size: 18px; padding: 16px 10px; }
  .voice-recorder { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__chevron, .flash-animation, .loading__spinner { animation: none; }
  .btn:hover { transform: none; }
}
