:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f1222;
  --ink-2: #3b3f55;
  --muted: #6b7089;
  --line: #e6e8f0;
  --line-strong: #d5d8e4;
  --night: #0b0d1a;
  --accent: #5b5bf7;
  --accent-2: #9b5cf6;
  --accent-soft: #eef0ff;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --ok: #12a46b;
  --danger: #e5484d;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 18, 40, 0.04), 0 8px 28px -12px rgba(16, 18, 40, 0.14);
  --ring: 0 0 0 4px rgba(91, 91, 247, 0.16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; }
.muted { color: var(--muted); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 26, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad);
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 6px 20px -6px rgba(124, 92, 246, 0.8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: -0.01em; }
.brand-text small { font-size: 12px; color: rgba(255, 255, 255, 0.55); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  padding: 88px 0 96px;
  margin-top: -61px;
  padding-top: 149px;
}

.hero-glow {
  position: absolute;
  inset: -40% -10% auto;
  height: 140%;
  background:
    radial-gradient(40% 50% at 25% 40%, rgba(91, 91, 247, 0.45), transparent 70%),
    radial-gradient(35% 45% at 75% 30%, rgba(155, 92, 246, 0.38), transparent 70%),
    radial-gradient(30% 40% at 60% 80%, rgba(56, 189, 248, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.eyebrow.plain {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 28px;
  max-width: 40em;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 500;
}

.chips svg { width: 16px; height: 16px; stroke: #c4b5fd; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Icons ---------- */
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 80px;
}

.job > p {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 17px;
}

.job h2 {
  margin: 40px 0 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.job ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job li {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s;
}

.job li:hover { border-color: #c7c9fb; transform: translateY(-1px); }

.job li .tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}

.job li .tick svg { width: 14px; height: 14px; stroke-width: 2.4; }

.job .outro {
  margin-top: 36px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: #2e2f7a;
  font-size: 16px;
}

/* ---------- Summary ---------- */
.summary { position: relative; }
.summary-card { position: sticky; top: 88px; padding: 24px; }

.summary-kicker {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta { margin: 0 0 20px; padding: 0; list-style: none; }

.meta li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.meta li:last-child { border-bottom: 0; }

.meta .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.meta .ico svg { width: 17px; height: 17px; }
.meta dt, .meta .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.meta .v { font-size: 14px; font-weight: 600; line-height: 1.4; }

.summary-note { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- Cards / buttons ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(91, 91, 247, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s, background 0.2s;
}

.btn:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover:not(:disabled) { background: #f3f4f9; filter: none; }

.btn-danger { background: var(--danger); box-shadow: 0 8px 22px -10px rgba(229, 72, 77, 0.8); }

.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }

/* ---------- Apply ---------- */
.apply {
  padding: 88px 0 96px;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(91, 91, 247, 0.08), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.apply-head { text-align: center; margin-bottom: 36px; }

.section-title {
  margin: 0 0 28px;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.progress { max-width: 460px; margin: 0 auto; }

.progress-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: inherit;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.steps {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.steps li { display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.steps li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  transition: all 0.2s;
}
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--ok); border-color: var(--ok); }

#apply-form { display: grid; gap: 20px; }

.step { padding: 28px; }

.step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.step-head h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.step-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  transition: all 0.25s;
}

.step-num.done { background: var(--ok); color: transparent; position: relative; }
.step-num.done::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateY(-2px) rotate(-45deg);
}

.grid { display: grid; gap: 16px; }
.grid + .grid { margin-top: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: 1fr 1fr 1fr; }
.grid .span-2 { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; color: var(--accent); }

input, select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfbfe;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

input::placeholder { color: #a3a7bd; font-weight: 400; }
input:hover, select:hover { border-color: #bfc3d6; }
input:focus, select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: var(--ring); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7089' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

input.invalid, select.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12); }

/* Drop zone */
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 36px 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fbfbfe;
  cursor: pointer;
  transition: all 0.2s;
}

.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.has-file { border-style: solid; border-color: var(--ok); background: #effaf5; }
.drop.invalid { border-color: var(--danger); background: #fff5f5; }
.drop input { display: none; }

.drop-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.drop-icon svg { width: 22px; height: 22px; }
.drop.has-file .drop-icon { color: var(--ok); }
.drop-title { font-weight: 600; font-size: 15px; }
.drop-title u { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.drop-hint { color: var(--muted); font-size: 13px; }

/* Interview */
.prompt {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(91, 91, 247, 0.08), rgba(155, 92, 246, 0.08));
  border: 1px solid rgba(91, 91, 247, 0.18);
}

.prompt-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.prompt p { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(91, 91, 247, 0.28), transparent 70%),
    var(--night);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
#live-video { transform: scaleX(-1); }

.stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #e8e9f5;
  text-align: center;
  padding: 24px;
  pointer-events: none;
}

.stage-overlay p { margin: 8px 0 0; font-weight: 700; font-size: 16px; }
.stage-overlay small { color: rgba(232, 233, 245, 0.6); font-size: 13px; }

.stage-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.stage-icon svg { width: 26px; height: 26px; }

.countdown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 13, 26, 0.45);
  color: #fff;
  font-size: 96px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.countdown span { animation: pop 0.9s ease-out both; }
@keyframes pop {
  0% { transform: scale(1.6); opacity: 0; }
  30% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.2; }
}

.rec-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 13, 26, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.rec-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.7);
  animation: ping 1.4s ease-out infinite;
}

@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0); } }

.timer-row { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; font-weight: 600; }

.meter { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width 0.25s linear; }
.meter.warn i { background: linear-gradient(90deg, #f59e0b, var(--danger)); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.error, .form-error {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff1f1;
  color: #b4232a;
  font-size: 14px;
  font-weight: 500;
}

.submit-row { display: grid; gap: 12px; margin-top: 4px; }
.submit-row .form-error { margin: 0; }

.upload { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.upload-bar { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.upload-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.2s; }

.fineprint { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* Success */
.success { padding: 48px 32px; text-align: center; animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.success h2 { margin: 18px 0 8px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.success p { margin: 0 auto; max-width: 30em; color: var(--muted); }

.success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(18, 164, 107, 0.12);
}
.success-icon svg { width: 30px; height: 30px; stroke-width: 2.6; }

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

/* Footer */
.footer { background: var(--night); color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
.footer a { color: #c4b5fd; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.job li.reveal { transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s; }
.job li.reveal.in:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .summary { order: -1; }
  .summary-card { position: static; }
}

@media (max-width: 640px) {
  .hero { padding-bottom: 64px; padding-top: 120px; }
  .lede { font-size: 16px; }
  .job ul, .grid.two, .grid.three { grid-template-columns: 1fr; }
  .step { padding: 20px; }
  .brand-text small { display: none; }
  .steps { font-size: 12px; }
}
